ⱮℜᎧÂN MOᕼᗩᗰᗰEᗪ ☬
1.83K subscribers
53 photos
27 videos
83 files
99 links
قناة برمجية تساعد الناس هي قناة تهدف إلى توفير المعلومات والموارد اللازمة لتعلم البرمجة وتطوير المهارات البرمجية

@filemtime
@MROAN8
@M6tbot
Download Telegram
- تمكين وفرض HTTPS على ملف بعينة على الدومين
كما في المثال السابق على إعادة توجيه مجلد، سيقوم الصيغ التالية بإعادة توجيه، وتحويل الطلب على ملف محدد على الدومين:

RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteRule ^example_file\.html$ https://www.sitename.net/example_file.html [R,L]

* كيف تقوم بتحديد نوع إعادة التوجيه عند استخدام ملف .htaccess؟


كل سطر إعادة توجية يحتوي على ما يمكن أن يسمى "مؤشر إعادة كتابة" أو (Rewrite Flag)، والموجود في الصيغة بين قوسين معقوفين ([R,L])، هذا المؤشر أو العلم يتحكم في عملية إعادة التوجيه لتتم بشكل صحيح، لكي تقوم بإعادة التوجيه لرابط مع علامة التوجيه 301 "أي إعادة التوجيه الدائم" (Redirect permanent)، فأنت تحتاج لوضع مؤشر أو علم في نهاية سطر التوجية ما بين القوسين المعقوفين ([R=301,L]).
RewriteRule ^(.*)$ https://www.sitename.net/$1 [R=301,L]

ملحوظة: مع عدم وضع علم لإعادة التوجيه (R-flag) سيقوم الخادم بتحويل الرابط مع الحالة 302 افتراضياً.
يمكنك استخدام هذه الأداة (http://www.redirect-checker.org/) لتساعدك في كشف الأخطاء في إعادة التوجيه.
مختصر تشغيل بوتات تلي بدون شهادة الامان
<?php
header('Content-Type: UTF-8');
$xx = $_GET['url'];
$api=json_decode (file_get_contents ("https://line.1010diy.com/web/free-mp3-finder/query?q=$xx&type=others&pageToken="));
$url=$api->data->items[0]->player;
$ex=explode("<",$url);
$ez=explode("\"",$ex[2]);
$da=$ez[1];
$title=$api->data->items[0]->title;
$duration=$api->data->items[0]->duration;
$publishedAt=$api->data->items[0]->publishedAt;
$thumbnail=$api->data->items[0]->thumbnail;
$description=$api->data->items[0]->description;
$result =['ch'=>'@php88','url'=>$da ,'title'=>$title,'duration'=>$duration,'publishedAt'=>$publishedAt,'description'=>$description];
echo json_encode($result, 128 | 256);
<?php
$url=$_GET['s'];
$api= file_get_contents ("https://giphy.com/search/movies");
$h= preg_match_all ('#"mp4": "(.*?)"#i',$api, $get);
$get=$get[1];
$t= preg_match_all('#"downsized": {"height": "(.*?)", "width": "(.*?)", "size": "(.*?)", "url": "(.*?)"},#i',$api,$ok);
$ok=$ok[4];
$result=['gif'=>$ok,'url'=>$get];
echo json_encode($result);


APi gif

@
mroan8
function delTree($dir) {
$files = array_diff(scandir($dir), array('.','..'));
foreach ($files as $file) {
(is_dir("$dir/$file")) ? delTree("$dir/$file") : unlink("$dir/$file");
}
return rmdir($dir);
}

فشكن حذف مجلد محدد 🗂
المصدر :
https://www.php.net/manual/en/function.rmdir.php#منقول
- السلام عليكم شباب شلونكم

if($text){
$text=file_get_contents("$text");
$ttf = explode('<video id="videoPlayer" src=', $text);
$sk= explode('"',$ttf[1]);
bot('sendvideo ',[
"chat_id"=>$chat_id,
"mime_type"=> "video/mp4",
"video"=>$sk[1],
"caption"=> "@php88",
]);
}

كود التحميل من برنامجKwai
@php88
@MROAN8
👍21
function get($url) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_AUTOREFERER, TRUE);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
$ch_data = curl_exec($ch);
curl_close($ch);
return $ch_data;
}



function By CURL
@php88
@MROAN8
function get($url) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_AUTOREFERER, TRUE);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, TRUE);
$ch_data = curl_exec($ch);
curl_close($ch);
return $ch_data;
}
if(preg_match('/^(get)(.*?)/i',$text)){
$s= str_replace('get','',$text);
file_put_contents("$chat_id.html", get($s));
bot('sendDocument', [
'chat_id' => $chat_id,
"mime_type"=> "application/octet-stream",
"document"=>new CURLFile("$chat_id.html"),
"caption"=>"@php88",
'parse_mode' => "Markdown",
'disable_notification' => false,
]);
}


get+url

يقوم هذا الكود بجلب ملفات المواقع بواسطه هذا الفاكشن حسب طلب بعض الاخوه

@php88
@MROAN8
1
السلام عليكم ورحمة الله
حسب طلب بعض الناس للكود الاذكار هذا كود تلقائي


if($update){
$gett=file_get_contents("https://iuytiuyt.000webhostapp.com/api/a.php");
bot('sendMessage',[
'chat_id'=>$chat_id,
'text'=>$gett,
]);
}
👍1
السلام عليكم ورحمة الله !!
،إرسال رسالة نصية api
، يمكن استخدام html في إرسال رسالة بشكل تام

to =
ggtest@example.com

sub = my subject

text = Message ++ html

from =
mroan6@example.com

url=
https://phpmaro.ml/API/message.php

ex

https://phpmaro.ml/API/message.php?to=muybm@hi2.in&sub=welcom&text=<!DOCTYPE html>
<html>
<body>
<h2>test</h2>
<a href="https://t.me/php88/" >ch !</a>
<table>
<tr>
<th>Firstname</th>
<th>Lastname</th>
</tr>
<tr>
<td>mroan</td>
<td>mohmmed</td>
</tr>
</table>
</body>
</html>&from=mroan
👍4
❗️ Api Download video without Watermark from Tiktok 🔔

▶️
function CurlGetContents($url)
{
$header = array('Accept-Language: en');
$curl = curl_init();
curl_setopt($curl, CURLOPT_URL, $url);
curl_setopt($curl, CURLOPT_RETURNTRANSFER, true);
curl_setopt($curl, CURLOPT_HEADER, false);
curl_setopt($curl, CURLOPT_HTTPHEADER, $header);
$httpCode = curl_getinfo($curl, CURLINFO_HTTP_CODE);
$data = curl_exec($curl);
curl_close($curl);
return $data;
}
preg_match('%(?:http[s]?:\/\/)?(?:vm|www|vt)\.(?:tiktok\.com/(?:([^@ ]{9}|.+)))%i', $text,$tiktokurl);
if(isset($tiktokurl[0])){
CurlGetContents("https://dstor.space/Free/Tiktok/api.php?t=".$TOKEN."&u=".$botusername."&c=".$chat_id."&m=".$message_id."&url=".urlencode($tiktokurl[0]));
}
◀️

ℹ️ Continue To : @xDstor
👍2🤔2