<?php defined('WERUA') or (include '../../../bad.php'); if (isset($_REQUEST['empty'])) { $fbu = new wra_fbu(); $fbu->load($_REQUEST['id']); $fbu->points = 0; $fbu->update(); $this->rows[0]['points'] = '0'; } ?> <a href="admin?mod=fbuedit&id=50213&empty=<?php WRA::e($this->rows[0]['id']); ?> ">Обнулить литры</a>
static function save($saveid = -1, $pid = -1, $adminedit = '') { //сохранение изменного (или добавляемого класса) для админки switch ($adminedit) { default: $savepc = new wra_fbu(); if ($saveid != -1) { $savepc->load($saveid); } $savepc->userid = wra_admintable::getpost('fielduserid'); $savepc->fbuserid = wra_admintable::getpost('fieldfbuserid'); $savepc->display_name = wra_admintable::getpost('fielddisplay_name'); $savepc->regdate = wra_admintable::getpost('fieldregdate'); $savepc->username = wra_admintable::getpost('fieldusername'); $savepc->usersurname = wra_admintable::getpost('fieldusersurname'); $savepc->link = wra_admintable::getpost('fieldlink'); $savepc->gender = wra_admintable::getpost('fieldgender'); $savepc->photo = wra_admintable::getpost('fieldphoto'); $savepc->points = wra_admintable::getpost('fieldpoints'); $savepc->access_token = wra_admintable::getpost('fieldaccess_token'); $savepc->email = wra_admintable::getpost('fieldemail'); $savepc->phone = wra_admintable::getpost('fieldphone'); $savepc->adres = wra_admintable::getpost('fieldadres'); if ($saveid != -1) { $savepc->update(); } else { $savepc->add(); } return $savepc->id; } return $saveid; }