• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP info_page函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



在下文中一共展示了info_page函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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('数据库初始化成功,请使用【[email protected]】和【' . $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


示例16: dirname

include_once dirname(__FILE__) . '/function.php';
if (!is_login()) {
    info_page('请登录后查看');
}
$uid = format_uid();
$folder = z(array_shift($args));
$cid = intval(array_shift($args));
$mid = app_config('mid', $folder);
$bind = app_config('bind', $folder);
if (!isset($mid)) {
    info_page('没有此表!');
}
if ($bind['price'] == '' || $bind['price'] <= '0') {
    info_page('价格错误!');
}
foreach ($bind as $k => $v) {
    $selected[] = " `{$v}` as {$k} ";
}
$com = lazy_get_line("SELECT  " . join(',', $selected) . " FROM `app_content_{$mid}` WHERE `id` = '" . intval($cid) . "'");
$cnum = get_count();
if ($cnum == '0') {
    info_page('没有此件物品!');
}
$num = lazy_get_var("SELECT COUNT(*) FROM `app_shopcart` WHERE `cid` = '" . intval($cid) . "' AND `uid` = '" . intval($uid) . "'");
if ($num != '0') {
    lazy_run_sql("UPDATE `app_shopcart` SET `num` = `num`+1 WHERE `cid` = '" . intval($cid) . "' AND `uid` = '" . intval($uid) . "'");
} else {
    lazy_run_sql("INSERT INTO `app_shopcart` ( `uid`, `cid`, `name`, `desp`, `num`, `money`, `date`, `folder` ) VALUES ( '" . intval($uid) . "' , '" . intval($cid) . "' , " . s($com['title']) . " , " . s($com['desp']) . " , '1' , " . s($com['price']) . " , '" . date('Y-m-d H:i:s') . "' , " . s($folder) . " )");
}
header('Location: /app/native/' . $GLOBALS['app']);
开发者ID:yunsite,项目名称:easysns,代码行数:30,代码来源:insert.php


示例17: dirname

include_once dirname(__FILE__) . '/function.php';
$data['ci_top_title'] = '添加Feed';
if (!is_login()) {
    info_page('请登录后查看');
}
if (!is_admin()) {
    info_page('你没有权限进行操作!');
}
$feed_id = intval(array_shift($args));
if ($feed_id != '0') {
    $feed = lazy_get_var("SELECT `feed` FROM `app_feed_recommend` WHERE `id` = '" . $feed_id . "' LIMIT 1");
} else {
    $feed = v('fblog');
    if (!$feed || $feed == 'http://') {
        info_page('你提交的博客地址错误');
    }
    if (strpos($feed, 'http://') === false) {
        $feed = 'http://' . $feed;
    }
}
$CI =& get_instance();
$CI->load->library('simplepie');
MakeDir(ROOT . 'static/data/cache');
$CI->simplepie->set_cache_location(ROOT . 'static/data/cache');
$CI->simplepie->set_feed_url($feed);
$CI->simplepie->init();
$data['ftitle'] = $CI->simplepie->get_title();
//标题
$flink = $CI->simplepie->get_link();
//连接地址
开发者ID:yunsite,项目名称:easysns,代码行数:30,代码来源:feed_add.php


示例18: cate_do_action

 function cate_do_action($action, $cid, $name = NULL)
 {
     if ($action == '1') {
         $this->db->select('*')->from('u2_cate')->where('id', $cid);
         $cinfo = lazy_get_line();
         $this->db->select('count(*)')->from('u2_cate')->where('u2_cate_num <', $cinfo['u2_cate_num'] . '9999')->where('u2_cate_num >', $cinfo['u2_cate_num'] . '0000');
         $count = lazy_get_var();
         if ($count) {
             info_page(_text('admin_data_cate_del_error'));
             die;
         }
         $this->db->where('u2_cate', $cid);
         $this->db->delete('u2_content');
         $this->db->where('u2_cate_id', $cid);
         $this->db->delete('u2_meta_field');
         $this->db->where('id', $cid);
         $this->db->delete('u2_cate');
     } elseif ($action == '2') {
         $this->db->where('id', $cid);
         $data['u2_cate_desc'] = $name;
         $this->db->update('u2_cate', $data);
     } elseif ($action == '0') {
         if ($cid != '0') {
             $this->db->select('*')->from('u2_cate')->where('id', $cid);
             $cinfo = lazy_get_line();
             $father_num = $cinfo['u2_cate_num'];
         } else {
             $father_num = NULL;
         }
         $this->db->select('*')->from('u2_cate')->where('u2_cate_num <', $father_num . '9999')->where('u2_cate_num >', $father_num . '0000')->orderby('u2_cate_num', 'DESC')->limit(1);
         $now = lazy_get_line();
         if (!isset($now['u2_cate_num']) || strlen($now['u2_cate_num']) == strlen($father_num)) {
             $data['u2_cate_num'] = $father_num . '0001';
         } else {
             $temp = substr($now['u2_cate_num'], -4) + 1;
             //$temp = str_replace( $father_num , '' ,$now['u2_cate_num']) + 1;
             $data['u2_cate_num'] = $father_num . str_pad($temp, 4, "0", STR_PAD_LEFT);
         }
         $data['u2_cate_desc'] = $name;
         $this->db->insert('u2_cate', $data);
     }
 }
开发者ID:yunsite,项目名称:easysns,代码行数:42,代码来源:admin_model.php


示例19: uploaded

 function uploaded()
 {
     if (!is_admin()) {
         return info_page(__('ADMIN_ONLY_LOGIN'));
     }
     if ($_FILES['pfile']['error'] != 0) {
         return info_page(__('PLUGIN_UPLOAD_FILE_ERROR_RETRY'));
     }
     $tmp_name = $_FILES['pfile']['tmp_name'];
     $tname = uid() . '-' . time();
     $plug_path = c('plugin_path') . DS . $tname;
     if (@mkdir($plug_path)) {
         include_once AROOT . 'lib' . DS . 'dUnzip2.inc.php';
         $zip = new dUnzip2($tmp_name);
         $zip->debug = false;
         $zip->unzipAll($plug_path);
         @chmod($plug_path, 0755);
         $info_file = $plug_path . DS . 'app.php';
         if (file_exists($info_file)) {
             if ($info = get_plugin_info(file_get_contents($info_file))) {
                 if (isset($info['folder_name'])) {
                     $folder_name = $info['folder_name'];
                 }
                 if (strlen($folder_name) < 1) {
                     $folder_name = reset(explode('.', basename($_FILES['pfile']['name'])));
                 }
                 if (strlen($folder_name) > 0) {
                     if (file_exists(c('plugin_path') . DS . $folder_name)) {
                         @rename(c('plugin_path') . DS . $folder_name . DS . 'app.php', c('plugin_path') . DS . $folder_name . DS . 'app.bak.php');
                         @rename(c('plugin_path') . DS . $folder_name, c('plugin_path') . DS . $folder_name . '_' . uid() . '_' . time());
                     }
                     rename($plug_path, c('plugin_path') . DS . $folder_name);
                     header("Location: ?c=pluglist");
                     return true;
                 } else {
                     return info_page(__('PLUGIN_GET_NAME_ERROR_RETRY', $tname));
                 }
             }
         } else {
             // clear dir
         }
         return info_page(__('PLUGIN_PACKAGE_FORMAT_ERROR'));
     } else {
         return info_page(__('PLUGIN_CREATE_FOLDER_ERROR'));
     }
 }
开发者ID:xianliflc,项目名称:teamirr,代码行数:46,代码来源:pluglist.class.php


示例20: dirname

<?php

include_once dirname(__FILE__) . '/function.php';
$data['ci_top_title'] = '添加分类';
if (!is_login()) {
    info_page('请登录后查看');
}
if (!is_admin()) {
    info_page('你没有权限进行操作!');
}
$tname = trim(z(v('tname')));
if (empty($tname)) {
    info_page('分类名称不能为空!');
}
$config_data['titles'] = app_config('titles');
$config_data['titles'][] = $tname;
save_app_config($config_data);
info_page('添加成功!', '/app/native/' . $GLOBALS['app'] . '/feed', '点击这里返回!');
开发者ID:yunsite,项目名称:easysns,代码行数:18,代码来源:type_save.php



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP info_progression_etape函数代码示例发布时间:2022-05-15
下一篇:
PHP info_etape函数代码示例发布时间:2022-05-15
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap