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


PHP statistics函数代码示例

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


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

示例1: __construct

 public function __construct()
 {
     parent::__construct();
     $this->db->where('remember_me', FALSE)->where('UNIX_TIMESTAMP(last_activity) <', time() - strtoseconds($this->config->nf_cookie_expire))->delete('nf_sessions');
     $this->_ip_address = isset($_SERVER['HTTP_X_REAL_IP']) ? $_SERVER['HTTP_X_REAL_IP'] : $_SERVER['REMOTE_ADDR'];
     $this->_host_name = utf8_string(gethostbyaddr($this->_ip_address));
     if (isset($_COOKIE[$this->config->nf_cookie_name]) && $this->_check_cookie($cookie = $_COOKIE[$this->config->nf_cookie_name], $last_activity)) {
         if (strtotime($this->config->nf_cookie_expire, $last_activity) < time()) {
             $this->_session_id();
         } else {
             $this->_session_id = $cookie;
         }
         $this->db->where('session_id', $cookie)->update('nf_sessions', array('session_id' => $this->_session_id, 'ip_address' => $this->_ip_address, 'host_name' => $this->_host_name, 'last_activity' => now()));
         if (!is_null($time_zone = $this('session', 'time_zone'))) {
             set_time_zone($time_zone);
             $this->db->update_time_zone();
         }
     } else {
         if (!is_asset() && !$this->config->ajax_url && !$this->config->ajax_header && $_SERVER['REQUEST_METHOD'] != 'OPTIONS') {
             $this->_session_id();
             $crawler = is_crawler();
             if ($crawler !== FALSE) {
                 $this->db->insert('nf_crawlers', array('name' => $crawler, 'path' => $this->config->request_url));
             }
             $this->db->insert('nf_sessions', array('session_id' => $this->_session_id, 'ip_address' => $this->_ip_address, 'host_name' => $this->_host_name, 'is_crawler' => $crawler !== FALSE));
             $this->_user_data['session']['date'] = time();
             $this->_user_data['session']['javascript'] = FALSE;
             $this->_user_data['session']['referer'] = isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '';
             $this->_user_data['session']['user_agent'] = $_SERVER['HTTP_USER_AGENT'];
         }
     }
     statistics('nf_sessions_max_simultaneous', $this->_sessions = $this->db->select('COUNT(DISTINCT IFNULL(user_id, session_id))')->from('nf_sessions')->where('last_activity > DATE_SUB(NOW(), INTERVAL 5 MINUTE)')->where('is_crawler', FALSE)->row(), function ($a, $b) {
         return $a > $b;
     });
 }
开发者ID:agreements,项目名称:neofrag-cms,代码行数:35,代码来源:session.php

示例2: index

 public function index()
 {
     $users = $this->title($this('dashboard'))->js('jquery.knob')->js_load('$(\'.knob\').knob();')->load->library('table')->add_columns(array(array('content' => function ($data) {
         return '<a href="mailto:' . $data['email'] . '" data-toggle="tooltip" title="' . $data['email'] . '">' . icon('fa-envelope') . '</a>';
     }), array('content' => function ($data) {
         return NeoFrag::loader()->user->link($data['user_id'], $data['username']);
     }), array('content' => function ($data, $loader) {
         return '<span data-toggle="tooltip" title="' . timetostr($loader->lang('date_time_long'), $data['registration_date']) . '">' . time_span($data['registration_date']) . '</span>';
     }, 'class' => 'text-right')))->data($this->db->from('nf_users')->where('deleted', FALSE)->order_by('user_id DESC')->limit(5)->get())->display();
     return array(new Row(new Col(new Panel_box(array('label' => $this('news', $count = $this->db->select('COUNT(*)')->from('nf_news')->where('published', TRUE)->row()), 'icon' => 'fa-newspaper-o', 'color' => 'bg-aqua', 'count' => $count, 'url' => 'admin/news.html', 'footer' => $this('manage_news') . ' ' . icon('fa-arrow-circle-right'), 'size' => 'col-md-4 col-lg-2'))), new Col(new Panel_box(array('label' => $this('members', $count = $this->db->select('COUNT(*)')->from('nf_users')->where('deleted', FALSE)->row()), 'icon' => 'fa-users', 'color' => 'bg-green', 'count' => $count, 'url' => 'admin/members.html', 'footer' => $this('manage_members') . ' ' . icon('fa-arrow-circle-right'), 'size' => 'col-md-4 col-lg-2'))), new Col(new Panel_box(array('label' => $this('events', $count = 0, $count), 'icon' => 'fa-calendar', 'color' => 'bg-blue', 'count' => $count, 'url' => 'admin/events.html', 'footer' => $this('manage_events') . ' ' . icon('fa-arrow-circle-right'), 'size' => 'col-md-4 col-lg-2'))), new Col(new Panel_box(array('label' => $this('teams', $count = $this->db->select('COUNT(*)')->from('nf_teams')->row(), $count), 'icon' => 'fa-gamepad', 'color' => 'bg-red', 'count' => $count, 'url' => 'admin/teams.html', 'footer' => $this('manage_teams') . ' ' . icon('fa-arrow-circle-right'), 'size' => 'col-md-4 col-lg-2'))), new Col(new Panel_box(array('label' => $this('messages', $count = $this->db->select('COUNT(*)')->from('nf_forum_messages')->row()), 'icon' => 'fa-comments', 'color' => 'bg-teal', 'count' => $count, 'url' => 'admin/forum.html', 'footer' => $this('manage_forum') . ' ' . icon('fa-arrow-circle-right'), 'size' => 'col-md-4 col-lg-2'))), new Col(new Panel_box(array('label' => $this('comments', $count = $this->db->select('COUNT(*)')->from('nf_comments')->row()), 'icon' => 'fa-comments-o', 'color' => 'bg-maroon', 'count' => $count, 'url' => 'admin/comments.html', 'footer' => $this('manage_comments') . ' ' . icon('fa-arrow-circle-right'), 'size' => 'col-md-4 col-lg-2')))), new Row(new Col(new Widget_view(array('widget_id' => 1)), new Panel(array('title' => '<a href="//www.neofrag.com">' . $this('nf_news') . '</a>', 'icon' => 'fa-newspaper-o', 'content' => $this->load->view('nf_news'), 'size' => 'col-md-8'))), new Col(new Panel(array('title' => $this('connected_users'), 'icon' => 'fa-globe', 'content' => $this->load->view('users_online', array('currently' => $this->db->select('COUNT(*)')->from('nf_sessions')->where('last_activity > DATE_SUB(NOW(), INTERVAL 5 MINUTE)')->where('is_crawler', FALSE)->row(), 'max' => statistics('nf_sessions_max_simultaneous'))), 'footer' => '<a href="' . url('admin/members/sessions.html') . '">' . $this('view_all_sessions') . '</a>', 'size' => 'col-md-4')), new Panel(array('title' => $this('last_registrations'), 'icon' => 'fa-users', 'content' => $users, 'size' => 'col-md-4')))));
 }
开发者ID:nsystem1,项目名称:neofrag-cms,代码行数:11,代码来源:admin.php

示例3: do_register

 public function do_register()
 {
     //查询用户是否存在
     $aqj_id = trim($_POST['reg_aqjid']);
     $aqj_mobile = trim($_POST['reg_m']);
     $xlc_user = $GLOBALS['db']->getRow("select id,mobile,user_pwd from " . DB_PREFIX . "user where mobile='" . $aqj_mobile . "'");
     if ($xlc_user) {
         $aqj_user = $GLOBALS['db']->getRow("select * from " . DB_PREFIX . "ap_partner_user where user_id=" . $xlc_user['id']);
         if (!$aqj_user) {
             $user_ap_partner = array();
             $user_ap_partner['user_id'] = $xlc_user['id'];
             $user_ap_partner['partner_id'] = 2;
             $user_ap_partner['partner_user_id'] = $aqj_id;
             $user_ap_partner['create_time'] = time();
             $GLOBALS['db']->autoExecute(DB_PREFIX . "ap_partner_user", $user_ap_partner);
         } else {
             $GLOBALS['db']->query("update " . DB_PREFIX . "ap_partner_user set partner_user_id = '" . $aqj_id . "' where user_id = " . $xlc_user['id']);
         }
         require_once APP_ROOT_PATH . "system/libs/user.php";
         auto_do_login_user($xlc_user['mobile'], $xlc_user['user_pwd']);
         app_redirect(url("aps"));
     } else {
         require_once APP_ROOT_PATH . "system/libs/user.php";
         $user_data = array();
         $user_data['user_name'] = $aqj_mobile;
         $user_data['mobile'] = $aqj_mobile;
         $user_data['user_pwd'] = rand(100000, 999999);
         //开启邮箱验证
         if (app_conf("USER_VERIFY") == 0 || app_conf("USER_VERIFY") == 2) {
             $user_data['is_effect'] = 1;
         } else {
             $user_data['is_effect'] = 0;
         }
         $res = save_user($user_data);
         statistics('register');
         $user_ap_partner = array();
         $user_ap_partner['user_id'] = $res['data'];
         $user_ap_partner['partner_id'] = 2;
         $user_ap_partner['partner_user_id'] = $aqj_id;
         $user_ap_partner['create_time'] = time();
         $GLOBALS['db']->autoExecute(DB_PREFIX . "ap_partner_user", $user_ap_partner);
         $result = do_login_user($user_data['mobile'], $user_data['user_pwd']);
         send_auto_register_pwd($aqj_mobile, $user_data['user_pwd']);
         app_redirect(url("aps"));
     }
 }
开发者ID:xinlechou,项目名称:app,代码行数:46,代码来源:aqjloginModule.class.php

示例4: show_error

        }
    } else {
        show_error('Ошибка! Неверный идентификатор сессии, повторите действие!');
    }
    ############################################################################################
    ##                                    Добавление от гостей                                ##
    ############################################################################################
} elseif ($config['bookadds'] == 1) {
    $provkod = (int) $_POST['provkod'];
    if ($uid == $_SESSION['token']) {
        if (utf_strlen(trim($msg)) >= 5 && utf_strlen($msg) < 1000) {
            if ($provkod == $_SESSION['protect']) {
                $_SESSION['protect'] = "";
                unset($_SESSION['protect']);
                antiflood("Location: index.php?isset=antiflood&" . SID);
                statistics(0);
                $msg = no_br($msg, '<br />');
                $msg = antimat($msg);
                $msg = smiles($msg);
                $text = no_br($msg . '|' . $config['guestsuser'] . '||' . SITETIME . '|' . $brow . '|' . $ip . '|||');
                write_files(DATADIR . "book.dat", "{$text}\r\n");
                $countstr = counter_string(DATADIR . "book.dat");
                if ($countstr >= $config['maxpostbook']) {
                    delete_lines(DATADIR . "book.dat", array(0, 1));
                }
                $_SESSION['note'] = 'Сообщение успешно добавлено!';
                header("Location: index.php?" . SID);
                exit;
            } else {
                show_error('Ошибка! Проверочное число не совпало с данными на картинке!');
            }
开发者ID:sirkadirov,项目名称:wap-motor,代码行数:31,代码来源:add.php

示例5: switch

}
if (!function_exists('sefRelToAbs')) {
    @(include_once $GLOBALS['mosConfig_absolute_path'] . '/includes/sef.php');
}
switch ($action) {
    case 'list':
        lists($action, $task, $listId, $listType);
        break;
    case 'subscribers':
        subscribers($action, $task, $userid, $listId, $cid);
        break;
    case 'mailing':
        mailing($action, $task, $listId, $listType, $mailingId, $message);
        break;
    case 'statistics':
        statistics($listId, $listType, $mailingId, $message, $task, $action);
        break;
    case 'configuration':
        if ($GLOBALS[ACA . 'integration'] == '0' or $GLOBALS[ACA . 'cb_integration'] == '0') {
            $xf = new xonfig();
            if (acajoom::checkCB()) {
                $xf->loadConfig();
            }
        }
        configuration($action, $task);
        break;
    case 'update':
        update($action, $task);
        break;
    case 'about':
        about($message, $task, $action);
开发者ID:reeleis,项目名称:ohiocitycycles,代码行数:31,代码来源:admin.acajoom.php

示例6: elseif

     } elseif ($p == "about") {
         include "about.php";
         $embedcode = about($wavephoto, $wavephoto2);
     } elseif ($p == "learnmore") {
         include "learnmore.php";
         $embedcode = learnmore($wavephoto);
     } elseif ($p == "signup") {
         header("Location: signup.php");
     } elseif ($p == "signin") {
         header("Location: signin.php");
     } elseif ($p == "forgotpassword") {
         include "forgotpassword.php";
         $embedcode = forgotpassword($wavephoto);
     } elseif ($p == "statistics") {
         include "statistics.php";
         $embedcode = statistics($wavephoto);
     } elseif ($p == "faq") {
         include "faq.php";
         $embedcode = faq($wavephoto);
     } elseif ($p == "invite") {
         include "invite.php";
         $embedcode = invite($wavephoto, $myid);
     } elseif ($p == "random") {
         include "random.php";
         $p = randomsite();
         $pagetype = "project";
         include "autoembed.php";
         $embedcode = autoembed($p);
     }
 } elseif ($pagetype == "profile") {
     include "profile.php";
开发者ID:jamesbmayr,项目名称:sharewaves,代码行数:31,代码来源:browse.php

示例7: PageMain


//.........这里部分代码省略.........
                } else {
                    $TMPL['gbp_currency'] = 'selected="selected"';
                }
                if ($settings['tracksizetotal'] == '104857600') {
                    $TMPL['atotal'] = 'selected="selected"';
                } elseif ($settings['tracksizetotal'] == '209715200') {
                    $TMPL['btotal'] = 'selected="selected"';
                } elseif ($settings['tracksizetotal'] == '314572800') {
                    $TMPL['ctotal'] = 'selected="selected"';
                } elseif ($settings['tracksizetotal'] == '524288000') {
                    $TMPL['dtotal'] = 'selected="selected"';
                } else {
                    $TMPL['etotal'] = 'selected="selected"';
                }
                if (!empty($_POST)) {
                    $updateSettings = new updateSettings();
                    $updateSettings->db = $db;
                    $updated = $updateSettings->query_array('settings', $_POST);
                    if ($updated == 1) {
                        header("Location: " . $CONF['url'] . "/index.php?a=admin&b=pro&m=s");
                    } else {
                        header("Location: " . $CONF['url'] . "/index.php?a=admin&b=pro&m=i");
                    }
                }
                if ($_GET['m'] == 's') {
                    $TMPL['message'] .= notificationBox('success', $LNG['settings_saved']);
                } elseif ($_GET['m'] == 'i') {
                    $TMPL['message'] .= notificationBox('info', $LNG['nothing_changed']);
                }
            } elseif ($_GET['b'] == 'stats') {
                // Security Admin Tab
                $skin = new skin('admin/stats');
                $page = '';
                list($TMPL['tracks_total'], $TMPL['tracks_public'], $TMPL['tracks_private'], $TMPL['comments_total'], $TMPL['users_today'], $TMPL['users_this_month'], $TMPL['users_last_30'], $TMPL['users_total'], $TMPL['total_reports'], $TMPL['pending_reports'], $TMPL['safe_reports'], $TMPL['deleted_reports'], $TMPL['total_tracks_reports'], $TMPL['pending_track_reports'], $TMPL['safe_track_reports'], $TMPL['deleted_track_reports'], $TMPL['total_comment_reports'], $TMPL['pending_comment_reports'], $TMPL['safe_comment_reports'], $TMPL['deleted_comment_reports'], $TMPL['total_likes'], $TMPL['likes_today'], $TMPL['likes_this_month'], $TMPL['likes_last_30'], $TMPL['total_plays'], $TMPL['plays_today'], $TMPL['plays_this_month'], $TMPL['plays_last_30'], $TMPL['total_downloads'], $TMPL['downloads_today'], $TMPL['downloads_this_month'], $TMPL['downloads_last_30'], $TMPL['total_playlists'], $TMPL['playlists_today'], $TMPL['playlists_this_month'], $TMPL['playlists_last_30'], $TMPL['total_payments'], $TMPL['payments_today'], $TMPL['payments_this_month'], $TMPL['payments_last_30'], $TMPL['total_earnings'], $TMPL['earnings_today'], $TMPL['earnings_this_month'], $TMPL['earnings_last_30']) = statistics($db, $settings['currency']);
                $TMPL['currency'] = $settings['currency'];
            } elseif ($_GET['b'] == 'themes') {
                $skin = new skin('admin/themes');
                $page = '';
                $updateSettings = new updateSettings();
                $updateSettings->db = $db;
                $themes = $updateSettings->getThemes();
                $TMPL['themes_list'] = $themes[0];
                if (isset($_GET['theme'])) {
                    // If theme is in array
                    if (in_array($_GET['theme'], $themes[1])) {
                        $updated = $updateSettings->query_array('settings', array('theme' => $_GET['theme']));
                        if ($updated == 1) {
                            header("Location: " . $CONF['url'] . "/index.php?a=admin&b=themes&m=s");
                        } else {
                            header("Location: " . $CONF['url'] . "/index.php?a=admin&b=themes&m=i");
                        }
                    }
                }
                if ($_GET['m'] == 's') {
                    $TMPL['message'] = notificationBox('success', $LNG['theme_changed']);
                } elseif ($_GET['m'] == 'i') {
                    $TMPL['message'] = notificationBox('error', $LNG['nothing_changed']);
                }
            } elseif ($_GET['b'] == 'reports') {
                $manageReports = new manageReports();
                $manageReports->db = $db;
                $manageReports->url = $CONF['url'];
                $manageReports->title = $settings['title'];
                $manageReports->per_page = $settings['rperpage'];
                if (ctype_digit($_GET['id'])) {
                    if (isset($_GET['type'])) {
开发者ID:aminesig,项目名称:QSWebApp,代码行数:67,代码来源:admin.php

示例8: followUp

     followUp($myPdo);
     break;
 case 'processing':
     processing($myPdo);
     break;
 case 'statAdvanced':
     statAdvanced($myPdo);
     break;
 case 'statBasic':
     statBasic($myPdo);
     break;
 case 'home':
     home($myPdo);
     break;
 case 'statistics':
     statistics($myPdo);
     break;
 case 'performanceAttitude':
     performanceAttitude($myPdo);
     break;
 case 'performancePE':
     performancePE($myPdo);
     break;
 case 'performanceSales':
     performanceSales($myPdo);
     break;
 case 'statssource':
     statssource($myPdo);
     break;
 case 'statsculture':
     statsculture($myPdo);
开发者ID:xuezheng17,项目名称:pozvfs,代码行数:31,代码来源:mysqlcustom.php

示例9: app_redirect

        app_redirect($wx_url);
    }
}
if ($m_config['wx_appid'] && $m_config['wx_secrit']) {
    require_once APP_ROOT_PATH . "system/utils/jssdk.php";
    $jssdk = new JSSDK($m_config['wx_appid'], $m_config['wx_secrit']);
    $signPackage = $jssdk->GetSignPackage();
    $GLOBALS['tmpl']->assign("signPackage", $signPackage);
    $weixin_1 = new weixin($m_config['wx_appid'], $m_config['wx_secrit'], get_domain() . $_SERVER["REQUEST_URI"]);
    //$weixin_1->redirect_url=get_domain().$_SERVER["REQUEST_URI"];
    $wx_url = $weixin_1->scope_get_code();
    $GLOBALS['tmpl']->assign("wx_desc", "新乐筹众筹平台 - 新乐筹");
    $GLOBALS['tmpl']->assign("wx_image", "http://www.xinlechou.cn/public/attachment/201507/17/17/55a8c54dec3a1.png");
    $GLOBALS['tmpl']->assign("wx_url", $wx_url);
}
statistics();
//监测
//if(!empty($_GET['code'])&&$_GET['state']=='STATE'&&$_GET['id']>0){
//	 $class='cart';
//	 $act2='wx_jspay';
// }
//公共初始化
if (file_exists("./lib/" . $class . ".action.php")) {
    require_once "./lib/" . $class . ".action.php";
    //if($class=='index'){
    $class = $class . 'Module';
    //}
    if (class_exists($class)) {
        $obj = new $class();
        if (method_exists($obj, $act2)) {
            $obj->{$act2}();
开发者ID:xinlechou,项目名称:wap,代码行数:31,代码来源:index.php

示例10: check

                echo '<img src="../images/img/error.gif" alt="image" /> <b>Ошибка! Неверный идентификатор сессии, повторите действие!</b><br />';
            }
        } else {
            echo '<img src="../images/img/error.gif" alt="image" /> <b>Ошибка! Очищать гостевую могут только суперадмины!</b><br />';
        }
        echo '<br /><img src="../images/img/back.gif" alt="image" /> <a href="book.php?start=' . $start . '&amp;' . SID . '">Вернуться</a>';
    }
    ############################################################################################
    ##                                  Пересчет гостевой                                     ##
    ############################################################################################
    if ($action == "restatement") {
        $uid = check($_GET['uid']);
        if (is_admin(array(101))) {
            if ($uid == $_SESSION['token']) {
                $count = counter_string(DATADIR . "book.dat");
                statistics(0, $count);
                header("Location: book.php?isset=mp_bookrestatement&" . SID);
                exit;
            } else {
                echo '<b>Ошибка! Неверный идентификатор сессии, повторите действие!</b><br />';
            }
        } else {
            echo '<b>Ошибка! Пересчитывать сообщения могут только суперадмины!</b><br />';
        }
        echo '<br /><img src="../images/img/back.gif" alt="image" /> <a href="book.php?' . SID . '">Вернуться</a>';
    }
    echo '<br /><img src="../images/img/panel.gif" alt="image" /> <a href="index.php?' . SID . '">В админку</a><br />';
    echo '<img src="../images/img/homepage.gif" alt="image" /> <a href="../index.php?' . SID . '">На главную</a>';
} else {
    header("Location: ../index.php?isset=404&" . SID);
    exit;
开发者ID:sirkadirov,项目名称:wap-motor,代码行数:31,代码来源:book.php

示例11: statisticsFE

 public static function statisticsFE($action, $task, $listId, $listType = '', $mailingId, $message, $Itemid)
 {
     $my = JFactory::getUser();
     if (empty($my->id)) {
         return true;
     }
     $linkForm = 'option=' . JNEWS_OPTION;
     $linkForm = jNews_Tools::completeLink($linkForm, false);
     $mainLink = JRoute::_('index.php?option=' . JNEWS_OPTION);
     $forms['main'] = "<form action='{$mainLink}' method='post' name='adminForm' enctype='multipart/form-data' onsubmit='submitbutton();return false;' id=\"adminForm\">";
     // menu cpanel
     $menuCpanel = new stdClass();
     $menuCpanel->popup = new stdClass();
     $menuCpanel->popup->isPop = false;
     $menuCpanel->popup->isPop = false;
     $menuCpanel->link = $linkForm;
     $menuCpanel->action = 'cpanel';
     $menuCpanel->onclick = new stdClass();
     $menuCpanel->onclick->custom = true;
     $menuCpanel->onclick->js = "javascript: submitbutton('cpanel')";
     $menuCpanel->title = _JNEWS_MENU_CPANEL;
     $menuGenerate = new stdClass();
     $menuGenerate->popup = new stdClass();
     $menuGenerate->popup->isPop = false;
     $menuGenerate->link = '#';
     $menuGenerate->action = 'generate';
     $menuGenerate->onclick = new stdClass();
     $menuGenerate->onclick->custom = true;
     $menuGenerate->onclick->js = "javascript: submitbutton('generate')";
     $menuGenerate->title = _JNEWS_BUTTON_GENERATE;
     $menuRefresh = new stdClass();
     $menuRefresh->popup = new stdClass();
     $menuRefresh->popup->isPop = false;
     $menuRefresh->link = '#';
     $menuRefresh->action = 'refresh';
     $menuRefresh->onclick = new stdClass();
     $menuRefresh->onclick->custom = true;
     $menuRefresh->onclick->js = "javascript: submitbutton('refresh')";
     $menuRefresh->title = _JNEWS_BUTTON_REFRESH;
     $menuA = array();
     $menuA['refresh'] = $menuRefresh;
     $menuA['generate'] = $menuGenerate;
     $menuA['cpanel'] = $menuCpanel;
     frontHTML::formStart(_JNEWS_MENU_STATS_REPORTS, 0, '', $menuA);
     $go[] = jnews::makeObj('list_id', $listId);
     $go[] = jnews::makeObj('act', $action);
     $go[] = jnews::makeObj('task', '');
     //save
     frontHTML::FEmenu();
     require_once JNEWSPATH_ADMIN . 'controllers' . DS . 'statistics.jnews.php';
     statistics($listId, '', $mailingId, $message, $task, $action);
     frontHTML::formEndFN(null, $go);
     return true;
 }
开发者ID:naka211,项目名称:kkvn,代码行数:54,代码来源:frontend.php

示例12: tabs

		echo "alert('". $tpl->javascript_parse_text("{ERROR_NO_PRIVS}")."');";
		die();exit();
	}	
	if(isset($_POST["StreamCacheBindHTTP"])){save_parameters();exit;}
	if(isset($_GET["status"])){status();exit;}
	if(isset($_GET["services-videocache-status"])){status_videocache();exit;}
	if(isset($_GET["videocache-graph1"])){status_videocache_graph1();exit;}
	if(isset($_GET["videocache-graph2"])){status_videocache_graph2();exit;}
	if(isset($_GET["videocache-graph3"])){status_videocache_graph3();exit;}
	if(isset($_GET["websites"])){websites();exit;}
	if(isset($_POST["reinstall"])){reinstall();exit;}
	
	
	if(isset($_POST["EnableStreamCache"])){EnableStreamCache();exit;}
	if(isset($_GET["parameters"])){parameters();exit;}
	if(isset($_GET["stats"])){statistics();exit;}
	if(isset($_GET["reinstall-js"])){reinstall_js();exit;}
	
	tabs();
	
function tabs(){
	$tpl=new templates();
	$q=new mysql_squid_builder();
	$sock=new sockets();
	
	$status=trim($sock->getFrameWork("squid.php?videocache-streamsquidcache=yes"));
	
	if($status<>"TRUE"){
		echo $tpl->_ENGINE_parse_body(FATAL_WARNING_SHOW_128("{module_in_squid_not_installed}<hr>{EnableStreamCache_text}"));
		return;
	}
开发者ID:brucewu16899,项目名称:1.6.x,代码行数:31,代码来源:squid.videocache.php

示例13: switch

    if (isset($_POST['project']) && isset($_POST['language'])) {
        if (in_array($_POST['project'], array('wikipedia', 'wikinews', 'wikibooks', 'wiktionary', 'wikiquote', 'wikivoyage', 'wikidata', 'wikimedia', 'wikiversity', 'wikisource', 'mediawiki'))) {
            $settings['wikiroot'] = "http://" . $_POST['language'] . "." . $_POST['project'] . ".org/";
        }
    }
    switch ($_POST['type']) {
        case 'rc':
            $limit = isset($_POST['limit']) ? $_POST['limit'] : '';
            $from = isset($_POST['from']) ? $_POST['from'] : '';
            $to = isset($_POST['to']) ? $_POST['to'] : '';
            $rc = recent_changes($limit, $from, $to);
            echo json_encode($rc['query']['recentchanges']);
            break;
        case 'log':
            // None yet
            throw new Exception("Feature not implemented");
            break;
        case 'user':
            $user_list = user_list($_POST['group']);
            $user_list = $user_list['query']['allusers'];
            echo json_encode($user_list);
            break;
        case 'stat':
            $statistics = statistics();
            $statistics = $statistics['query']['statistics'];
            echo json_encode($statistics);
            break;
    }
} catch (Exception $e) {
    die("FAILED: " . $e->getMessage());
}
开发者ID:halfak,项目名称:Raun,代码行数:31,代码来源:api-polling.php

示例14: check

    echo '<br /><br /><img src="../images/img/back.gif" alt="image" /> <a href="index.php?' . SID . '">Вернуться</a>';
}
############################################################################################
##                                   Запись комментариев                                  ##
############################################################################################
if ($action == "addkomm") {
    $gid = check($_GET['gid']);
    $msg = check($_POST['msg']);
    show_title('partners.gif', 'Добавление комментария');
    if (is_user()) {
        if (preg_match('|^[a-z0-9_\\.\\-]+$|i', $gid)) {
            if (utf_strlen(trim($msg)) > 5 && utf_strlen($msg) < 1000) {
                if (file_exists(DATADIR . "datagallery/{$gid}")) {
                    antiflood("Location: index.php?action=komm&gid={$gid}&isset=antiflood&" . SID);
                    karantin($udata[6], "Location: index.php?action=komm&gid={$gid}&isset=karantin&" . SID);
                    statistics(7);
                    $msg = no_br($msg, '<br />');
                    $msg = antimat($msg);
                    $msg = smiles($msg);
                    $text = no_br($msg . '||' . SITETIME . '|' . $log . '|');
                    write_files(DATADIR . "datagallery/{$gid}.dat", "{$text}\r\n", 0, 0666);
                    //---------------------------------------------------------//
                    $countstr = counter_string(DATADIR . "datagallery/{$gid}.dat");
                    if ($countstr >= $config['maxpostgallery']) {
                        delete_lines(DATADIR . "datagallery/{$gid}.dat", array(0, 1));
                    }
                    change_profil($log, array(14 => $ip, 33 => $udata[33] + 1, 36 => $udata[36] + 1, 41 => $udata[41] + 1));
                    header("location: index.php?action=komm&gid={$gid}&isset=addkomm&" . SID);
                    exit;
                } else {
                    show_error('Ошибка, такой фотографии не существует!');
开发者ID:sirkadirov,项目名称:wap-motor,代码行数:31,代码来源:index.php

示例15: check

                echo '<b>Ошибка! Неверный идентификатор сессии, повторите действие!</b><br />';
            }
        } else {
            echo '<b>Ошибка! Очищать админ-чат могут только суперадмины!</b><br />';
        }
        echo '<br /><img src="../images/img/back.gif" alt="image" /> <a href="adminchat.php?' . SID . '">Вернуться</a>';
    }
    ############################################################################################
    ##                                  Пересчет мини-чата                                    ##
    ############################################################################################
    if ($action == "restatement") {
        $uid = check($_GET['uid']);
        if (is_admin(array(101))) {
            if ($uid == $_SESSION['token']) {
                $count = counter_string(DATADIR . "adminchat.dat");
                statistics(4, $count);
                header("Location: adminchat.php?isset=mp_adminrestatement&" . SID);
                exit;
            } else {
                echo '<b>Ошибка! Неверный идентификатор сессии, повторите действие!</b><br />';
            }
        } else {
            echo '<b>Ошибка! Пересчитывать сообщения могут только суперадмины!</b><br />';
        }
        echo '<br /><img src="../images/img/back.gif" alt="image" /> <a href="adminchat.php?' . SID . '">Вернуться</a>';
    }
    echo '<br /><img src="../images/img/panel.gif" alt="image" /> <a href="index.php?' . SID . '">В админку</a><br />';
    echo '<img src="../images/img/homepage.gif" alt="image" /> <a href="../index.php?' . SID . '">На главную</a><br />';
} else {
    header("Location: ../index.php?isset=404&" . SID);
    exit;
开发者ID:sirkadirov,项目名称:wap-motor,代码行数:31,代码来源:adminchat.php


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