404

[ Avaa Bypassed ]




Upload:

Command:

botdev@3.139.60.67: ~ $
<?php
// ini_set('error_reporting',8191);
// ini_set('display_errors',1);

try {
include "./../loader.php";
include "./../../classes/translators/swedish/loaderswedish.php";

$debug=false;
$BOT_USER= '@TranslateSwedish3_bot';
$BOT_TOKEN= TOKEN_TRANSLATE_SWEDISH3;

$uriParts = explode("?",$_SERVER['REQUEST_URI']);
$actual_link = "https://$_SERVER[HTTP_HOST]".$uriParts[0];
$WEBHOOK_URL= $actual_link;

$translate_bot = new TranslateSwedish($BOT_USER,$BOT_TOKEN,$WEBHOOK_URL);
if (isset($_GET ['do']) && $_GET ['do'] == 'setWebhook') {
	echo "setting webhook...\n";
        echo "</br>webhook : $WEBHOOK_URL</br>";
	$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;
    $debugUserID = 590059263;
    $debugUserID = 974058313;

    $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->message ['text'] == "uni2cantest" || rand(1, 95) > 105){
        $translate_bot->getAdsManager()->fetchActiveAds();
        $translate_bot->getAdsManager()->advertise($translate_bot->getUser());
      }      
}

} catch ( Exception $e ) {
  echo 'Exception abgefangen: ',
  $e->getTraceAsString().PHP_EOL."</br>".
  $e->getLine().PHP_EOL."</br>".
  $e->getFile(),
   $e->getMessage (), "\n";
  $translate_bot->sendMessageLog(
          " error happend ".$e->getMessage ().PHP_EOL.
          $e->getTraceAsString().PHP_EOL.
          $e->getLine().PHP_EOL.
          $e->getFile());
}
catch (Error $e) {
  echo 'Exception abgefangen: ',
  $e->getTraceAsString().PHP_EOL."</br>".
  $e->getLine().PHP_EOL."</br>".
  $e->getFile(),
   $e->getMessage (), "\n";
  $translate_bot->sendMessageLog(
          " error happend ".$e->getMessage ().PHP_EOL.
          $e->getTraceAsString().PHP_EOL.
          $e->getLine().PHP_EOL.
          $e->getFile());
}
catch (Throwable $e)
  {
          echo 'Exception abgefangen: ',
          $e->getTraceAsString().PHP_EOL."</br>".
          $e->getLine().PHP_EOL."</br>".
          $e->getFile(),
           $e->getMessage (), "\n";
          $translate_bot->sendMessageLog(
                  " error happend ".$e->getMessage ().PHP_EOL.
                  $e->getTraceAsString().PHP_EOL.
                  $e->getLine().PHP_EOL.
                  $e->getFile()
          );
  }

Filemanager

Name Type Size Permission Actions
trswedish1.php File 3.05 KB 0755
trswedish3.php File 3.05 KB 0755