daily pastebin goal
3%
SHARE
TWEET

Untitled

a guest Jan 21st, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if($row['BACKUP_STATUS']==1){
  2.         $query='UPDATE backups SET BACKUP_FORCE="1", STRUN="1" WHERE ID = "'.$_POST['pos'].'"';
  3.         $resp=$db->exec($query);
  4.         shell_exec('touch /usr/local/cwp/.conf/sendcronbackup');
  5.         shell_exec('echo "'.trim($_POST['pos']).'" > /usr/local/cwp/.conf/sendcronbackup');
  6.         $pid=shell_exec('/usr/bin/nohup  /usr/local/cwp/php71/bin/php-cgi -d max_execution_time=10000000 -q /usr/local/cwpsrv/htdocs/resources/admin/include/cron_newbackup.php 2> /dev/null & echo $!');
  7.         $pid=str_replace("\n","",$pid);
  8.         //$row["STRUN"]=trim($pid);
  9.         $query='UPDATE backups SET STRUN="'.trim($pid).'" WHERE ID = "'.$_POST['pos'].'"';
  10.         $resp=$db->exec($query);
  11.         echo 1;
  12.     }else{
  13.         echo 0;
  14.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top