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


PHP info_page函数代码示例

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


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

示例1: logout

 function logout()
 {
     foreach ($_SESSION as $k => $v) {
         unset($_SESSION[$k]);
     }
     return info_page('Logout');
 }
开发者ID:oxmcvusd,项目名称:nowboard,代码行数:7,代码来源:weibo.class.php

示例2: test_info_page

 function test_info_page()
 {
     ob_start();
     info_page('hello kitty');
     $out1 = ob_get_contents();
     ob_end_clean();
     $this->assertTrue(strpos($out1, '系统消息'));
     $this->assertTrue(strpos($out1, 'hello kitty'));
 }
开发者ID:jfojfo,项目名称:LazyPHP,代码行数:9,代码来源:core.test.php

示例3: index

 function index()
 {
     if (!is_login()) {
         info_page("<a href='/?c=weibo&a=login'>请用已授权的微博帐号登入</a>");
         exit;
     }
     $data['title'] = $data['top_title'] = '首页';
     $data['url'] = get_channel_url();
     render($data, 'web', 'ban');
 }
开发者ID:oxmcvusd,项目名称:nowboard,代码行数:10,代码来源:default.class.php

示例4: index

 function index()
 {
     if (is_installed()) {
         return info_page(__('INSTALL_FINISHED'));
     } elseif (intval(v('do')) == 1) {
         db_init();
     } else {
         $data['title'] = $data['top_title'] = __('INSTALL_PAGE_TITLE');
         return render($data, 'web', 'fullwidth');
     }
 }
开发者ID:wangkf,项目名称:TeamToy,代码行数:11,代码来源:install.class.php

示例5: index

 function index()
 {
     if (is_installed()) {
         return info_page('API Server 已初始化完成,<a href="?c=guest">请使用管理账号登入</a>');
     } elseif (intval(v('do')) == 1) {
         db_init();
     } else {
         $data['title'] = $data['top_title'] = 'TeamToy安装页面';
         return render($data, 'web', 'fullwidth');
     }
 }
开发者ID:ramo01,项目名称:1kapp,代码行数:11,代码来源:install.class.php

示例6: plugin_mycss_save

function plugin_mycss_save()
{
    $css = z(t(v('css')));
    $sql = "REPLACE INTO `css` ( `uid` , `css` ) VALUES ( '" . intval(uid()) . "' , '" . s($css) . "' )";
    run_sql($sql);
    $location = '?c=plugin&a=mycss';
    if (db_errno() != 0) {
        return info_page('数据保存失败,请稍后重试。<a href="' . $location . '">点击返回</a>');
    } else {
        header("Location:" . $location);
    }
}
开发者ID:ramo01,项目名称:1kapp,代码行数:12,代码来源:app.php

示例7: plugin_mycss_save

function plugin_mycss_save()
{
    $css = z(t(v('css')));
    $sql = "REPLACE INTO `css` ( `uid` , `css` ) VALUES ( '" . intval(uid()) . "' , '" . s($css) . "' )";
    run_sql($sql);
    $location = '?c=plugin&a=mycss';
    if (db_errno() != 0) {
        return info_page(__('PL_CSS_MODIFIER_DATE_UPDATE_ERROR', $location));
    } else {
        header("Location:" . $location);
    }
}
开发者ID:xianliflc,项目名称:teamirr,代码行数:12,代码来源:app.php

示例8: check_login

 function check_login()
 {
     $not_check = array();
     $not_check = apply_filter('CTRL_PLUGIN_LOGIN_FILTER', $not_check);
     if (strtolower(g('c')) == 'plugin' && in_array(g('a'), $not_check)) {
         // for some plugin no need to login
         // not check
     } else {
         if (!is_login()) {
             return info_page(__('NEED_LOGIN'));
         }
     }
 }
开发者ID:wangkf,项目名称:TeamToy,代码行数:13,代码来源:app.class.php

示例9: check_login

 function check_login()
 {
     $not_check = array();
     $not_check = apply_filter('CTRL_PLUGIN_LOGIN_FILTER', $not_check);
     if (strtolower(g('c')) == 'plugin' && in_array(g('a'), $not_check)) {
         // for some plugin no need to login
         // not check
     } else {
         if (!is_login()) {
             return info_page('您访问的页面需要先<a href="?c=guest">登入</a>');
         }
     }
 }
开发者ID:ramo01,项目名称:1kapp,代码行数:13,代码来源:app.class.php

示例10: add

 function add()
 {
     $number = intval(v('number'));
     if ($number < 1) {
         info_page(_text('system_input_right_no'));
     }
     if (intval($this->invite->get_invite_limit()) && intval($this->invite->get_invite_limit()) < $number) {
         info_page(_text('invite_buy_over_limit'));
     }
     if ($this->invite->buy($number)) {
         info_page(_text('invite_buy_success'), '/invite/myinvite');
     } else {
         info_page(_text('invite_buy_money_limit'));
     }
 }
开发者ID:yunsite,项目名称:easysns,代码行数:15,代码来源:invite.php

示例11: db_init

function db_init()
{
    $password = substr(md5(time() . rand(1, 9999)), rand(1, 20), 12);
    $sql_contents = preg_replace("/(#.+[\r|\n]*)/", '', file_get_contents(AROOT . 'misc' . DS . 'install.sql'));
    // 更换变量
    $sql_contents = str_replace('{password}', md5($password), $sql_contents);
    $sqls = split_sql_file($sql_contents);
    foreach ($sqls as $sql) {
        run_sql($sql);
    }
    if (db_errno() == 0) {
        info_page(__('DATABASE_INIT_FINISHED', $password));
        exit;
    } else {
        info_page(db_error());
        exit;
    }
}
开发者ID:xianliflc,项目名称:teamirr,代码行数:18,代码来源:app.function.php

示例12: update

 function update()
 {
     $fid = intval(v('fid'));
     if ($fid < 1) {
         info_page('错误的form参数');
     }
     $uid = format_uid();
     $data = array();
     $data['name'] = z(v('name'));
     $data['title'] = z(v('title'));
     $data['subtitle'] = z(v('subtitle'));
     $data['item_name'] = z(v('item_name'));
     $data['is_main_app'] = z(v('is_main_app'));
     $this->db->where('id', $fid);
     $this->db->where('uid', $uid);
     $this->db->update('w2_form', $data);
     header('Location: /design/build/' . $fid);
 }
开发者ID:yunsite,项目名称:easysns,代码行数:18,代码来源:form_model.php

示例13: db_init

function db_init()
{
    $password = substr(md5(time() . rand(1, 9999)), rand(1, 20), 12);
    $sql_contents = preg_replace("/(#.+[\r|\n]*)/", '', file_get_contents(AROOT . 'misc' . DS . 'install.sql'));
    // 更换变量
    $sql_contents = str_replace('{password}', md5($password), $sql_contents);
    $sqls = split_sql_file($sql_contents);
    foreach ($sqls as $sql) {
        run_sql($sql);
    }
    if (db_errno() == 0) {
        info_page('数据库初始化成功,请使用【member@teamtoy.net】和【' . $password . '】<a href="/" target="new">登入并添加用户</a>');
        exit;
    } else {
        info_page(db_error());
        exit;
    }
}
开发者ID:ramo01,项目名称:1kapp,代码行数:18,代码来源:app.function.php

示例14: native

 function native()
 {
     //
     $args = func_get_args();
     $folder = array_shift($args);
     $GLOBALS['app'] = $folder;
     $action = array_shift($args);
     if ($action == '') {
         $action = 'index';
     }
     $GLOBALS['action'] = $action;
     $code_file = APPPATH . 'app/' . basename($folder) . '/controller/' . basename($action) . '.php';
     if (file_exists($code_file)) {
         //check_app( $folder );
         @(include_once $code_file);
     } else {
         info_page('您访问的应用尚不存在,请联系管理员');
     }
     //print_r( $args );
     //if()
 }
开发者ID:yunsite,项目名称:easysns,代码行数:21,代码来源:app.php

示例15: save

 function save()
 {
     check_login();
     $mail = z(v('email'));
     if (strpos(_sess('u2_email'), '@') !== false) {
         info_page('你使用是正确的email');
     }
     if (strpos($mail, '@') === false) {
         info_page('请填写正确的email');
     }
     $sql = "select count(*) from u2_user where LCASE(u2_email) = '" . strtolower($mail) . "' ";
     if (lazy_get_var($sql)) {
         info_page('该email已经有人使用了,请重新填写');
     }
     $this->load->database();
     $data['u2_email'] = $mail;
     $uid = format_uid();
     $this->db->where('id', $uid);
     $this->db->update('u2_user', $data);
     $this->load->library('session');
     $this->session->set_userdata('u2_email', $mail);
     info_page('补充E-mail信息成功,以后请用email登陆.', '/', '返回首页');
 }
开发者ID:yunsite,项目名称:easysns,代码行数:23,代码来源:extra.php


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