Esempio n. 1
0
 function show()
 {
     if (isset($_GET['sum'])) {
         $id = $this->query('liqpay');
         $liqpay = new wra_liqpay();
         $liqpay->result_url = WRA_CONF::$wwwpath . '';
         $liqpay->server_url = WRA_CONF::$wwwpath . '';
         $liqpay->order_id = 'RB-' . $id;
         $liqpay->amount = round(intval($_GET['sum']), 2);
         if ($liqpay->amount >= 1) {
             $liqpay->currency = 'USD';
             $liqpay->description = 'Payment ' . 'Liveuamap-' . $id;
             $liqpay->phone = '';
             $liqpay->pay_way = 'card';
             $liqpay->goods_id = $id;
             $liqpay->dateadd = time();
             $liqpay->ipadd = WRA::getip();
             $liqpay->cartid = $result->id;
             $liqpay->statusid = 0;
             $liqpay->exp_time = 24;
             $liqpay->pays_count = 0;
             $liqpay->add();
             $liqpay->flushform();
         }
     } else {
     }
 }
Esempio n. 2
0
 static function get_currentsession($user_id)
 {
     $ws = new wra_sessions($user_id);
     $ws->load(session_id());
     if (empty($ws->id)) {
         $ws->begintime = time();
         $ws->ip = WRA::getip();
         $ws->sessionid = session_id();
         $ws->browser = $_SERVER['HTTP_USER_AGENT'];
         $ws->add();
     }
     return $ws;
 }
 static function message($header, $message)
 {
     $newnotice = new wra_adminnotices();
     $newnotice->dateadd = time();
     $newnotice->ip = WRA::getip();
     $newnotice->status = 0;
     $newnotice->message = $message;
     $newnotice->header = $header;
     $newnotice->add();
     // $admins=  wra_adminemails::getlist();
     // foreach($admins as $email){
     // wra_email::sendemail($email, $header, $message);
     // }
 }
Esempio n. 4
0
 function query($request)
 {
     $wd = new wra_db();
     $ip = WRA::getip();
     $time = time();
     $wd->query = 'INSERT INTO `' . WRA_CONF::$db_prefix . "requests` (\n             `request`,\n             `ip`,\n             `time`\n             )VALUES(\n             '{$request}',\n             '{$ip}',\n             '{$time}'\n             )";
     $wd->execute();
     $wd->close();
     // $this->currentobjid = wra_objects::addnewobject('wra_fbu', $this->id, $this->objectadres);
     unset($wd);
 }