404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.15.197.159: ~ $
<?php
//echo "hi";
ini_set('error_reporting',8191);
ini_set('display_errors',1);
//$content = file_get_contents ( "php://input" );
//$update = json_decode ( $content, true );
// $testMessage = var_export ( $update, true );
// file_put_contents ( "testpage1.html", $testMessage, FILE_APPEND | LOCK_EX );
// exit();
try {
include "./test_loader.php";
$debug=false;
$BOT_USER= '@Test_TranslateGerman_bot';
$BOT_TOKEN= '939470232:AAGYDga2cQRQFcS-j3RpWO9kTZ7X1yqVRoQ';
//$WEBHOOK_URL= 'https://www.musicerian.tk/autopost/bots/translategerman2.php';
$uriParts = explode("?",$_SERVER['REQUEST_URI']);
$actual_link = "https://$_SERVER[HTTP_HOST]".$uriParts[0];
//$WEBHOOK_URL= 'https://vpsapi.tk/loghatnameh/autoPost/bots/translategerman2.php';
$WEBHOOK_URL= $actual_link;
$SIGN ="پوشش خبری شهر های آلمان ".PHP_EOL."@TranslateService";
$translate_bot = new TranslateService($BOT_USER,$BOT_TOKEN,$WEBHOOK_URL, $SIGN);
//$translate_bot = new MessageProcessor($BOT_USER,$BOT_TOKEN,$WEBHOOK_URL, $SIGN);



if (isset($_GET ['do']) && $_GET ['do'] == 'setWebhook') {
	echo "setting webhook...\n";
        echo "</br>webhook : $WEBHOOK_URL</br>";
	// if run from console, set or delete webhook
	$translate_bot->setWebhook();
	exit ();
}
if (isset($_GET ['do']) && $_GET ['do'] == 'debug') {
	$debug = true;
	ini_set('error_reporting',8191);
  ini_set('display_errors',1);	
}

$content = file_get_contents ( "php://input" );
$update = json_decode ( $content, true );
  if ($_SERVER['SERVER_NAME'] == "localhost" || $debug) {
    $translate_bot->debug = true;
    $debugUserID = 44903244;
    $debugUserID = 467170469;
    $debugUserID = 531889508;
    $debugUserID = 264271258;
    $debugUserID = 911228571;

    $update = $translate_bot->getDebugsManager()->getUpdateForTestPerson($debugUserID);
  }
if (! $update) {
	exit ();
}
if (isset ( $update ["update_id"] )) {
        $supportMsg = "امروز ربات لغتنامه کمی مشکل داشت، مشکل برطرف شد، کمی طول می کشه تا سرعت درست شه، ببخشید عزیزم";
      $now = microtime(true);
      
      $translate_bot->process ( $update );
      $last = microtime(true);
      $tookTime = $last-$now;
      
      if($translate_bot->isAdmin() || rand(1, 95) > 145){
        $translate_bot->getAdsManager()->fetchActiveAds();
        // $damnooshAd = new DamnooshAds("dam6000abcdefgeh");
        // $damnooshAd->setMessageID(45478365)->setFromChatID(44903244);
        // $translate_bot->getAdsManager()->activeAds [] = $damnooshAd;
        $translate_bot->getAdsManager()->advertise($translate_bot->getUser());
      }
      
}

} catch ( Exception $e ) {
	echo 'Exception abgefangen: ', $e->getMessage (), "\n";
}

?>

Filemanager

Name Type Size Permission Actions
igoogle.php File 1.59 KB 0755
test_trgerman.php File 2.7 KB 0755
trgerman1.php File 3.35 KB 0755
trgerman2.php File 5.15 KB 0755
trgerman3.php File 4.57 KB 0755