当前位置: 首页>>代码示例>>PHP>>正文


PHP log_add函数代码示例

本文整理汇总了PHP中log_add函数的典型用法代码示例。如果您正苦于以下问题:PHP log_add函数的具体用法?PHP log_add怎么用?PHP log_add使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了log_add函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: error_add

function error_add($data)
{
    global $error_counter;
    if (strpos($data, 'rrors were encountered during processing') !== false) {
        log_add('<br><font color="red"><strong>Errors were encountered during processing! Review the following list of error messages and/or the log for more information.</strong></font>');
    } else {
        log_add($data);
        $error_counter++;
    }
    global $error_list;
    global $errors;
    global $debug;
    global $error_happened;
    $error_happened = true;
    if ($errors || $debug) {
        $error_list = $error_list . "<br>\n" . $data;
    }
}
开发者ID:achristensen3,项目名称:fracture-active,代码行数:18,代码来源:libdce_support.old.v2.0.php

示例2: error_add

function error_add($data)
{
    global $error_counter;
    $error_counter++;
    if (strpos($data, 'rrors were encountered during processing') !== false) {
        $error_counter_final = $error_counter - 1;
        log_add('<br><font color="red"><strong>' . $error_counter_final . ' errors were encountered during processing! Review the following list of error messages and/or the log for more information.</strong></font><br> Note that if you are running the tests, some errors are normal.');
    } else {
        log_add($data);
    }
    global $error_list;
    global $errors;
    global $debug;
    global $error_happened;
    $error_happened = true;
    if ($errors || $debug) {
        if (strpos($data, 'rrors were encountered during processing') !== false) {
            $error_list = $error_list . "<br>\n" . $data;
        } else {
            $error_list = $error_list . "<br>\n<strong>Error " . $error_counter . ':</strong> ' . $data;
        }
    }
}
开发者ID:achristensen3,项目名称:fracture-active,代码行数:23,代码来源:libdce_support.php

示例3: db_query

    }
    // End switch
    $qFindSeats = db_query("SELECT seatX,seatY FROM " . $sql_prefix . "_seatReg\n\t\tWHERE eventID = " . $sessioninfo->eventID);
    while ($rFindSeats = db_fetch($qFindSeats)) {
        // If this seat is 1 (checked), update it's type
        if ($_POST['x' . $rFindSeats->seatX . 'y' . $rFindSeats->seatY] == 1) {
            db_query("UPDATE " . $sql_prefix . "_seatReg SET\n\t\t\t\ttype = '" . db_escape($type) . "',\n\t\t\t\tcolor = '{$color}',\n\t\t\t\textra = '{$extra}'\n\t\t\t\tWHERE seatX = {$rFindSeats->seatX}\n\t\t\t\tAND seatY = {$rFindSeats->seatY}\n\t\t\t\tAND eventID = {$sessioninfo->eventID}\n\t\t\t");
        }
        // end if POST = 1
    }
    // End while rFindSeats
    $newlog['extra'] = $extra;
    $newlog['POST'] = $_POST;
    $newlog['type'] = $type;
    $newlog['color'] = $color;
    log_add("seatadmin", "doUpdateSeat", serialize($newlog));
    header("Location: ?module=seatadmin");
} elseif ($action == "resetmap") {
    // ask if the user really wants to delete all map fields, and add one field.
    $content .= "<form method=\"post\" action=\"?module=seatadmin&amp;action=doresetmap\">";
    $content .= "<input type=\"submit\" value='" . lang("Confirm map reset") . "' />\n";
    $content .= "</form>";
} elseif ($action == "doresetmap") {
    // Delete all map fields on this event
    db_query("DELETE FROM " . $sql_prefix . "_seatReg WHERE eventID = " . $sessioninfo->eventID);
    // Add a single field to the map
    db_query("INSERT INTO " . $sql_prefix . "_seatReg SET eventID = " . $sessioninfo->eventID . ", seatX = 1, seatY = 1");
    log_add("seatadmin", "doresetmap");
    // Go back to seatadmin
    header("Location: ?module=seatadmin");
}
开发者ID:hultberg,项目名称:relancms,代码行数:31,代码来源:seatadmin.php

示例4: bydefault

 /**
  * Присвоение языкового пакета по-умолчанию
  * @param string $name имя языка
  * @return null
  */
 public function bydefault($name)
 {
     if (config::o()->v('default_lang') == $name) {
         return;
     }
     config::o()->set('default_lang', $name);
     log_add('changed_config', 'admin');
 }
开发者ID:SjayLiFe,项目名称:CTRev,代码行数:13,代码来源:lang.php

示例5: delete

 /**
  * Удаление категории
  * @param int $id ID категории
  * @return null
  * @throws EngineException
  */
 public function delete($id)
 {
     $id = (int) $id;
     if (!$this->cats->get($id)) {
         throw new EngineException();
     }
     $ids = array();
     $this->cats->get_children_ids($id, $ids);
     $ids[] = $id;
     db::o()->p($ids)->delete('categories', 'WHERE id IN(@' . count($ids) . '?)');
     log_add('deleted_cat', 'admin', $id);
 }
开发者ID:SjayLiFe,项目名称:CTRev,代码行数:18,代码来源:cats.php

示例6: db_query

        db_query($q);
        $log['ID'] = db_insert_id();
        $log['eventID'] = $sessioninfo->eventID;
        $log['screenID'] = $screenID;
        $log['wait'] = $wait;
        $log['slideID'] = $slideID;
        log_add("infoscreens", "queueAdd", serialize($log));
        header('Location: ?module=infoscreens');
        die;
    }
} elseif ($action == 'queueRemove' and ($acl == 'Admin' or $acl == 'Write')) {
    $queueID = $_REQUEST['queueID'];
    if (empty($queueID) or !is_numeric($queueID)) {
        $content .= "<p>" . _('You did something wrong. Go back and try again.') . "</p>";
    } else {
        # FIXME: infoscreensQueues... should do some testing on the separation of different events and their acls... not sure this is 100% safe...
        $q = sprintf('DELETE FROM %s WHERE ID=%s AND eventID=%s', $queuetable, db_escape($queueID), $sessioninfo->eventID);
        db_query($q);
        $log['id'] = $queueID;
        log_add("infoscreens", "queueRemove", serialize($log));
        header('Location: ?module=infoscreens');
        die;
    }
} elseif ($action == "addScreen" && $acl == 'Admin') {
    $name = $_POST['name'];
    db_query("INSERT INTO " . $sql_prefix . "_infoscreens SET name = '" . db_escape($name) . "', eventID = '{$sessioninfo->eventID}'");
    $log_new['name'] = $name;
    log_add("infoscreens", "addScreen", serialize($log_new));
    header("Location: ?module=infoscreens");
}
// End elseif action == addScreen
开发者ID:hultberg,项目名称:relancms,代码行数:31,代码来源:infoscreens.php

示例7: init

 /**
  * Инициализация AJAX-части модуля
  * @return null
  */
 public function init()
 {
     $POST = globals::g('POST');
     lang::o()->get('admin/config');
     $cprefix = config_man::config_prefix;
     $cprefix_length = strlen($cprefix);
     $keys = array();
     $newcfg = array();
     $i = 0;
     $sort = array();
     foreach ($POST as $key => $value) {
         if (strpos($key, $cprefix) !== 0) {
             continue;
         }
         $key = substr($key, $cprefix_length);
         if (!config::o()->visset($key)) {
             continue;
         }
         $keys[] = $key;
         $newcfg[$key] = $value;
         $sort[$key] = ++$i;
     }
     if (!$keys) {
         return;
     }
     try {
         plugins::o()->pass_data(array("newcfg" => &$newcfg, "sort" => &$sort), true)->run_hook('admin_config_save');
     } catch (PReturn $e) {
         return $e->r();
     }
     $r = db::o()->p($keys)->query('SELECT name,type,allowed FROM config WHERE name IN(@' . count($keys) . '?)');
     $c = 0;
     while (list($name, $type, $allowed) = db::o()->fetch_row($r)) {
         if (!$this->check_type($type, $newcfg[$name], $allowed, $name)) {
             continue;
         }
         $c++;
         config::o()->set($name, $newcfg[$name], $sort[$name]);
     }
     db::o()->query('ALTER TABLE `config` ORDER BY `cat`, `sort`');
     log_add('changed_config', 'admin');
     print $c;
     die;
 }
开发者ID:SjayLiFe,项目名称:CTRev,代码行数:48,代码来源:config.php

示例8: delete_user

 /**
  * Удаление пользователя
  * @param int $id ID пользователя
  * @return bool статус удаления
  */
 public function delete_user($id)
 {
     $id = (int) $id;
     $r = $this->select_user($id, null, '`group`, avatar, username');
     if (!$r) {
         return;
     }
     $gr = users::o()->get_group($r['group']);
     if (!$gr['can_bedeleted']) {
         return false;
     }
     try {
         plugins::o()->pass_data(array('r' => $r, 'id' => $id), true)->run_hook('users_delete');
     } catch (PReturn $e) {
         return $e->r();
     }
     if ($r['avatar']) {
         $this->remove_user_avatar($id, $r['avatar']);
     }
     users::o()->admin_mode();
     db::o()->p($id)->delete("bans", "WHERE uid = ?");
     db::o()->p($id)->delete("warnings", "WHERE uid = ?");
     /* @var $pm messages_ajax */
     $pm = plugins::o()->get_module('messages', false, true);
     $pm->clear($id);
     db::o()->p($id)->delete("content_readed", "WHERE user_id = ?");
     /* @var $mailer mailer */
     $mailer = n("mailer");
     /* @var $rating rating */
     $rating = n("rating");
     /* @var $comments */
     $comments = n("comments");
     $mailer->remove($id, true);
     $rating->change_type('users')->clear($id);
     db::o()->p($id, $id)->delete("zebra", "WHERE user_id = ? OR to_userid = ?");
     db::o()->p($id)->delete("bookmarks", "WHERE user_id = ?");
     db::o()->p($id)->delete("invites", "WHERE user_id = ?");
     if (config::o('torrents_on')) {
         db::o()->p($id)->delete("content_downloaded", "WHERE uid = ?");
         db::o()->p($id)->delete("content_peers", "WHERE uid = ?");
     }
     $comments->change_type('users')->clear($id);
     db::o()->p($id)->delete("users", "WHERE id = ?");
     users::o()->admin_mode(false);
     log_add('deleted_user', 'admin', array($r['username'], $id));
     return true;
 }
开发者ID:SjayLiFe,项目名称:CTRev,代码行数:52,代码来源:class.etc.php

示例9: _

    }
    $content .= "</table>\n";
    $content .= "<h3>" . _("Message content") . "</h3>\n";
    # FIXME? Hardcoded textarea width and height
    $content .= "<textarea style='width: 300px; height: 200px;' disabled>" . htmlentities($msgcontent) . "</textarea>\n";
    $content .= "<p>" . _("Number of characters entered:") . " " . strlen($msgcontent) . "</p>\n";
    $content .= "<form method='POST' action='?module=SMS&action=sendSMS'>\n";
    $content .= "<input type='button' onClick='javascript:history.back()' value='" . _("Back") . "' />\n";
    $content .= "<input type='submit' value='" . _("Send SMS") . "' />\n";
    $content .= "<input type='hidden' name='toSmsList' value='" . $_POST['toSmsList'] . "' />\n";
    $content .= "<input type='hidden' name='message' value='" . $_POST['message'] . "' />\n";
    $content .= "</form>\n";
} elseif ($action == "sendSMS" && isset($_POST['toSmsList'])) {
    $toSmsList = $_POST['toSmsList'];
    $SQL = $smsList[$toSmsList]['SQL'];
    if (empty($SQL)) {
        # FIXME: die ()
        die("No such group?");
    }
    $qFindUsers = db_query($SQL);
    while ($rFindUsers = db_fetch($qFindUsers)) {
        db_query("INSERT INTO " . $sql_prefix . "_cronjobs\n\t\t\tSET cronModule = 'SMS',\n\t\t\ttoUser = '{$rFindUsers->cellphone}',\n\t\t\tsenderID = '{$sessioninfo->userID}',\n\t\t\tcontent = '" . db_escape($_POST['message']) . "'");
    }
    // End while
    $log_new['toListName'] = $smsList[$toSmsList]['name'];
    $log_new['message'] = $_POST['message'];
    log_add("SMS", "sendSMS", serialize($log_new));
    header("Location: ?module=SMS&sending=success");
} else {
    echo "???";
}
开发者ID:hultberg,项目名称:relancms,代码行数:31,代码来源:SMS.php

示例10: legacy_cdce_parse

function legacy_cdce_parse($content, $strict)
{
    //$dc=$txt;
    $hex = bin2hex(iconv('UTF-8', 'UTF-32BE', $content));
    //echo '<br>';
    //echo '<br>';
    //echo $data;
    //echo '<br>';
    //echo '<br>';
    //echo $hex;
    //echo '<br>';
    //echo '<br>';
    //echo dce_convert(hex2bin($hex), 'utf32', 'dc');
    //echo '<br>';
    //echo '<br>';
    global $DcMap_Unicode_Lossy;
    global $cdce_html_legacy;
    $counter = 0;
    $txt = '';
    while ($counter < strlen($hex)) {
        log_add('<br>');
        log_add('Bytes: ' . substr($hex, $counter, 48) . '…<br>');
        log_add('UTF-8: ' . hex2bin(ltrim(substr($hex, $counter, 192), '0')) . '<br>');
        log_add('Dc: ' . dce_convert(hex2bin(ltrim(substr($hex, $counter, 192), '0')), 'utf8', 'dc') . '<br>');
        if (substr($hex, $counter, 8) == '00000040') {
            //Conditions:
            //1char
            log_add('<br><br><font color="green">1 character CDCE conditions: <br>');
            //echo ((int) substr($hex, $counter + 16, 8) == '00000040')+0;
            //echo ((int) substr($hex, $counter + 32, 8) == '00000040')+0; //fails incorrectly
            log_add(substr($hex, $counter + 0, 8) . '. Should be: 00000040<br>');
            log_add(substr($hex, $counter + 16, 8) . '. Should be: 00000040<br>');
            log_add(hex2bin(ltrim(substr($hex, $counter + 8, 8), '0')) . '. Should be: greater than 0<br>');
            log_add(hex2bin(ltrim(substr($hex, $counter + 8, 8), '0')) . '. Should be: less than 13<br><br>→');
            log_add(((int) substr($hex, $counter + 0, 8) == '00000040') + 0);
            //this works
            log_add(((int) substr($hex, $counter + 16, 8) == '00000040') + 0);
            //this works
            log_add(((int) hex2bin(ltrim(substr($hex, $counter + 8, 8), '0')) > '0') + 0);
            log_add(((int) hex2bin(ltrim(substr($hex, $counter + 8, 8), '0')) < '13') + 0);
            log_add('<br><br><br>2 character CDCE conditions: <br>');
            //2char
            log_add(substr($hex, $counter + 0, 8) . '. Should be: 00000040<br>');
            log_add(substr($hex, $counter + 24, 8) . '. Should be: 00000040<br>');
            log_add(hex2bin(ltrim(substr($hex, $counter + 8, 8), '0')) . hex2bin(ltrim(substr($hex, $counter + 16, 8), '0')) . '. Should be: greater than 0<br>');
            log_add(hex2bin(ltrim(substr($hex, $counter + 8, 8), '0')) . hex2bin(ltrim(substr($hex, $counter + 16, 8), '0')) . '. Should be: less than 13<br>');
            //echo hex2bin(ltrim(substr($hex, $counter + 8, 8), '0')) . '. Should be: greater than 0<br>';
            //echo hex2bin(ltrim(substr($hex, $counter + 8, 8), '0')) . '. Should be: less than 13<br>';
            //echo hex2bin(ltrim(substr($hex, $counter + 16, 8), '0')) . '. Should be: greater than 0<br>';
            //echo hex2bin(ltrim(substr($hex, $counter + 16, 8), '0')) . '. Should be: less than 13<br><br>→';
            log_add(((int) substr($hex, $counter + 0, 8) == '00000040') + 0);
            log_add(((int) substr($hex, $counter + 24, 8) == '00000040') + 0);
            log_add(((int) hex2bin(ltrim(substr($hex, $counter + 8, 8), '0')) . hex2bin(ltrim(substr($hex, $counter + 16, 8), '0')) > '0') + 0);
            log_add(((int) hex2bin(ltrim(substr($hex, $counter + 8, 8), '0')) . hex2bin(ltrim(substr($hex, $counter + 16, 8), '0')) < '13') + 0);
            //echo ((int) hex2bin(ltrim(substr($hex, $counter + 8, 8), '0')) > '0')+0;
            //echo ((int) hex2bin(ltrim(substr($hex, $counter + 8, 8), '0')) < '13')+0;
            //echo ((int) hex2bin(ltrim(substr($hex, $counter + 16, 8), '0')) > '0')+0;
            //echo ((int) hex2bin(ltrim(substr($hex, $counter + 16, 8), '0')) < '13')+0;
            log_add('<br><br></font>');
            if (substr($hex, $counter + 0, 8) == '00000040' && substr($hex, $counter + 16, 8) == '00000040' && hex2bin(ltrim(substr($hex, $counter + 8, 8), '0')) > '0' && hex2bin(ltrim(substr($hex, $counter + 8, 8), '0')) < '13') {
                $append = hex2bin(ltrim(substr($hex, $counter + 8, 8), '0')) . ',';
                $counter = $counter + 16;
                log_add('<br><font color="red">');
                log_add($counter / 8 + 1 . '. 1-character Dc appended (' . hex2bin(ltrim(substr($hex, $counter - 8, 8), '0')) . '): ' . $append . ' → ' . $txt . $append);
                log_add('<br></font>');
            } else {
                if (substr($hex, $counter + 0, 8) == '00000040' && substr($hex, $counter + 24, 8) == '00000040' && hex2bin(ltrim(substr($hex, $counter + 8, 8), '0')) . hex2bin(ltrim(substr($hex, $counter + 16, 8), '0')) > 0 && hex2bin(ltrim(substr($hex, $counter + 8, 8), '0')) . hex2bin(ltrim(substr($hex, $counter + 16, 8), '0')) < 13) {
                    $append = hex2bin(ltrim(substr($hex, $counter + 8, 8), '0') . ltrim(substr($hex, $counter + 16, 8), '0')) . ',';
                    $counter = $counter + 24;
                    log_add('<br><font color="red">');
                    log_add($counter / 8 + 1 . '. 2-character Dc appended (' . hex2bin(ltrim(substr($hex, $counter - 16, 16), '0')) . '): ' . $append . ' → ' . $txt . $append);
                    log_add('<br></font>');
                } else {
                    if ($strict) {
                        log_add('<br><font color="red">');
                        log_add($counter / 8 + 1 . '. CDCE decoding error!' . ' → ' . $txt . $append);
                        log_add('<br></font>');
                        return str_replace(',,', ',0,', preg_replace('/,\\Z/', '', $txt)) . '… CDCE decoding error!';
                    } else {
                        if (strlen($DcMap_Unicode_Lossy[strtoupper(ltrim(substr($hex, $counter, 8), '0'))]) != 0) {
                            $append = $DcMap_Unicode_Lossy[strtoupper(ltrim(substr($hex, $counter, 8), '0'))] . ',';
                            log_add('<br><font color="red">');
                            log_add($counter / 8 + 1 . '. Unicode appended; attempting recovery of corrupted CDCE data: ' . $append . ' → ' . $txt . $append);
                            log_add('<br></font>');
                        } else {
                            $append = '';
                            log_add('<br><font color="red">');
                            log_add($counter / 8 + 1 . '. Unicode not appended; attempting recovery of corrupted CDCE data' . ' → ' . $txt . $append);
                            log_add('<br></font>');
                        }
                    }
                }
            }
        } else {
            if (strlen($DcMap_Unicode_Lossy[strtoupper(ltrim(substr($hex, $counter, 8), '0'))]) != 0) {
                $append = $DcMap_Unicode_Lossy[strtoupper(ltrim(substr($hex, $counter, 8), '0'))] . ',';
                log_add('<br><font color="red">');
                log_add($counter / 8 + 1 . '. Unicode appended: ' . $append . ' → ' . $txt . $append);
                log_add('<br></font>');
            } else {
//.........这里部分代码省略.........
开发者ID:achristensen3,项目名称:fracture-active,代码行数:101,代码来源:dceutils_legacy_functions.php

示例11: delete

 /**
  * Удаление группы пользователя
  * @param int $id ID группы
  * @return null
  */
 public function delete($id)
 {
     $id = (int) $id;
     db::o()->p($id)->delete('groups', 'WHERE id=? AND notdeleted="0" LIMIT 1');
     log_add('deleted_group', 'admin', $id);
 }
开发者ID:SjayLiFe,项目名称:CTRev,代码行数:11,代码来源:groups.php

示例12: db_query

    if (in_array($accessmodule, $globalaccess)) {
        $event = 1;
    } else {
        $event = $eventID;
    }
    $qCheckExisting = db_query("SELECT * FROM " . $sql_prefix . "_ACLs\n\t\tWHERE groupID = '" . db_escape($groupID) . "'\n\t\tAND accessmodule = '" . db_escape($accessmodule) . "'\n\t\tAND eventID = {$event}");
    if (db_num($qCheckExisting) == 0) {
        db_query("INSERT INTO " . $sql_prefix . "_ACLs SET groupID = '" . db_escape($groupID) . "',\n\t\t\taccessmodule = '" . db_escape($accessmodule) . "',\n\t\t\taccess = '" . db_escape($newright) . "',\n\t\t\teventID = {$event}");
    } else {
        db_query("UPDATE " . $sql_prefix . "_ACLs SET access = '" . db_escape($newright) . "'\n\t\t\tWHERE accessmodule = '" . db_escape($accessmodule) . "'\n\t\t\tAND groupID = '" . db_escape($groupID) . "'\n\t\t\tAND eventID = {$event}");
    }
    // End else
    $log_new['groupID'] = $groupID;
    $log_new['accessmodule'] = $accessmodule;
    $log_new['access'] = $newright;
    log_add("eventadmin", "doChangeRight", serialize($log_new));
    if ($accessmodule == 'eventAttendee') {
        header("Location: ?module=eventadmin&action=eventaccess");
    } else {
        header("Location: ?module=eventadmin&action=groupRights&groupID={$groupID}");
    }
} elseif ($action == "eventaccess") {
    // if event is private, admin who can attend
    // FIXME: Only works for accessgroups for now...
    // Should be possible for specially invited people in clans, and all accessgroups
    $qListGroups = db_query("SELECT * FROM " . $sql_prefix . "_groups WHERE groupType = 'access' AND ID != 1 ORDER BY eventID DESC");
    $row = 1;
    $content .= "<table>";
    while ($rListGroups = db_fetch($qListGroups)) {
        $content .= "<tr class='listRow{$row}'><td>";
        $content .= $rListGroups->groupname;
开发者ID:hultberg,项目名称:relancms,代码行数:31,代码来源:eventadmin.php

示例13: notification_add

         notification_add($_G['gp_uid'], 'system', lang('plugin/dsu_marcothief', 'notice_raids_fail'), array('username' => $_G['username']), 1);
         showmessage('dsu_marcothief:msg_14', dreferer());
     }
 } elseif (submitcheck('run')) {
     if ($user_db['run'] > $_G['timestamp']) {
         showmessage('dsu_marcothief:msg_15', dreferer(), array('mins' => round(($user_db['run'] - $_G['timestamp']) / 60, 0)));
     }
     $run_percentage = $run_success_shop + $config['run_percentage'] > 100 ? 100 : $run_success_shop + $config['run_percentage'];
     $success = mt_rand(0, 100) <= $run_percentage ? TRUE : FALSE;
     if ($success == TRUE) {
         DB::query("UPDATE " . DB::table('dsu_marcothief') . " SET jail='0',run='0',goodluck='0' WHERE uid='{$_G['uid']}'");
         showmessage('dsu_marcothief:msg_17', dreferer());
     } elseif ($police == TRUE && $user_db['run_tool']) {
         DB::query("DELETE FROM " . DB::table('dsu_marcothief_bag') . " WHERE shopid='{$user_db['run_tool']}' AND uid='{$_G['uid']}'");
         DB::query("UPDATE " . DB::table('dsu_marcothief') . " SET run_tool='0' WHERE uid='{$_G['uid']}'");
         log_add($_G['username'], 'run_fail_police');
         showmessage('dsu_marcothief:msg_39', dreferer());
     } else {
         DB::query("UPDATE " . DB::table('dsu_marcothief') . " SET run='" . ($_G['timestamp'] + 60 * $config['run_mins']) . "' WHERE uid='{$_G['uid']}'");
         showmessage('dsu_marcothief:msg_18', dreferer());
     }
 } elseif (submitcheck('money')) {
     if ($user_db['extcredits' . $config['raids_credit']] < $config['bribe_money']) {
         showmessage('dsu_marcothief:msg_20', dreferer(), array('credit' => $_G['setting']['extcredits'][$config['raids_credit']]['title']));
     } else {
         updatemembercount($_G['uid'], array('extcredits' . $config['raids_credit'] => 'extcredits' . $config['raids_credit'] - $config['bribe_money']));
         DB::query("UPDATE " . DB::table('dsu_marcothief') . " SET jail='0',run='0',goodluck='0' WHERE uid='{$_G['uid']}'");
         showmessage('dsu_marcothief:msg_19', dreferer());
     }
 } elseif (submitcheck('goodluck')) {
     $getluck_user = getuserbyuid(intval($_G['gp_goodluck_uid']));
开发者ID:v998,项目名称:dsu,代码行数:31,代码来源:dsu_marcothief.inc.php

示例14: clear

 /**
  * Очистка обратной связи
  * @param string $type тип
  * @return null
  */
 public function clear($type = '')
 {
     db::o()->p($type)->delete('feedback', $type ? 'WHERE type=?' : "");
     log_add('cleared_feedback', 'admin');
 }
开发者ID:SjayLiFe,项目名称:CTRev,代码行数:10,代码来源:feedback.php

示例15: delete

 /**
  * Удаление типов файлов
  * @param string $id имя типа файлов
  * @return null
  */
 public function delete($id)
 {
     /* @var $aft allowedft_man */
     $aft = plugins::o()->get_module('allowedft', 1);
     if ($aft->is_basic($id)) {
         return;
     }
     db::o()->p($id)->delete('allowed_ft', 'WHERE name=? LIMIT 1');
     log_add('deleted_filetype', 'admin', $id);
 }
开发者ID:SjayLiFe,项目名称:CTRev,代码行数:15,代码来源:allowedft.php


注:本文中的log_add函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。