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


PHP okinfo函数代码示例

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


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

示例1: upload

function upload($form, $met_file_format)
{
    global $lang_js22, $lang_js23, $lang_fileOK, $lang_fileError1, $lang_fileError2, $lang_fileError3, $lang_fileError4;
    if (is_array($form)) {
        $filear = $form;
    } else {
        $filear = $_FILES[$form];
    }
    if (!is_writable('../upload/file/')) {
        okinfo('javascript:history.go(-1);', $lang_js22);
    }
    //Get extension
    $ext = explode(".", $filear["name"]);
    $extnum = count($ext) - 1;
    $ext = $ext[$extnum];
    //Save the settings file name
    $name = met_rand(32) . "." . $ext;
    if (strtolower($ext) == 'php' || strtolower($ext) == 'aspx' || strtolower($ext) == 'asp' || strtolower($ext) == 'jsp' || strtolower($ext) == 'js' || strtolower($ext) == 'asa') {
        okinfo('javascript:history.go(-1);', $lang_js23);
    }
    if ($met_file_format != "" && !in_array(strtolower($ext), explode("|", strtolower($met_file_format)))) {
        okinfo('javascript:history.go(-1);', $lang_js23);
    }
    if (!copy($filear["tmp_name"], "../upload/file/" . $name)) {
        $errors = array(0 => "{$lang_fileOK}", 1 => "{$lang_fileError1} ", 2 => "{$lang_fileError2} ", 3 => "{$lang_fileError3} ", 4 => "{$lang_fileError4} ");
    } else {
        @unlink($filear["tmp_name"]);
        //Delete temporary files
    }
    return "../upload/file/" . $name;
}
开发者ID:nanfs,项目名称:lt,代码行数:31,代码来源:uploadfile_save.php

示例2: __construct

 public function __construct()
 {
     global $_M;
     if (!$_M['config']['met_weibo_open']) {
         okinfo($_M['url']['login'], '微信登录功能已关闭');
     }
     $this->appid = $_M['config']['met_weibo_appkey'];
     $this->appkey = $_M['config']['met_weibo_appsecret'];
     $this->table = $_M['table']['user_other'];
     $this->type = 'weibo';
 }
开发者ID:nanfs,项目名称:lt,代码行数:11,代码来源:weibo.class.php

示例3: __construct

 public function __construct()
 {
     global $_M;
     if (!$_M['config']['met_weixin_open']) {
         okinfo($_M['url']['login'], '微信登录功能已关闭');
     }
     if (is_weixin_client()) {
         $this->appid = $_M['config']['met_weixin_gz_appid'];
         $this->appkey = $_M['config']['met_weixin_gz_appsecret'];
     } else {
         $this->appid = $_M['config']['met_weixin_appid'];
         $this->appkey = $_M['config']['met_weixin_appsecret'];
     }
     $this->table = $_M['table']['user_other'];
     $this->type = 'weixin';
 }
开发者ID:nanfs,项目名称:lt,代码行数:16,代码来源:weixin.class.php

示例4: daddslashes

if ($met_member_login == 2 && isset($username) && isset($code)) {
    $username = daddslashes($username);
    $admin_list = $db->get_one("SELECT * FROM {$met_admin_table} WHERE admin_id='{$username}'");
    if (!$admin_list) {
        okinfo($member_index_url, $lang_js4);
        exit;
    }
    $array = explode("-", $admin_list['admin_register_date']);
    $year = $array[0];
    $month = $array[1];
    $array = explode(":", $array[2]);
    $minute = $array[1];
    $second = $array[2];
    $array = explode(" ", $array[0]);
    $day = $array[0];
    $hour = $array[1];
    $timestamp = mktime($hour, $minute, $second, $month, $day, $year);
    if (md5($timestamp) == $code) {
        $query = "update {$met_admin_table} SET checkid=1 where admin_id='{$username}'";
        $db->query($query);
        okinfo($member_index_url, $lang_js5);
        exit;
    }
    okinfo($member_index_url, $lang_js4);
    exit;
}
$mfname = 'register';
include template('member');
footermember();
# This program is an open source system, commercial use, please consciously to purchase commercial license.
# Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
开发者ID:Jesuslagliva12,项目名称:OpenAPI,代码行数:31,代码来源:register_include.php

示例5: authtemp

function authtemp($code)
{
    global $au_site, $met_weburl;
    if (function_exists(authcode)) {
        run_strtext(authcode($code, DECODE, md5("metinfo")));
    }
    $au_site = explode("|", $au_site);
    foreach ($au_site as $val) {
        if (stristr($met_weburl, $val)) {
            return;
        }
    }
    var_export("-->");
    okinfo("http://www.metinfo.cn", "{$met_weburl}未授权使用此模板或已经过期! Powered by MetInfo");
    exit;
}
开发者ID:Jesuslagliva12,项目名称:OpenAPI,代码行数:16,代码来源:global.func.php

示例6: dovalid

 public function dovalid()
 {
     global $_M;
     $auth = load::sys_class('auth', 'new');
     $email = $auth->decode($_M['form']['p']);
     if ($email) {
         if ($_M['form']['password']) {
             $user = $this->userclass->get_user_by_email($email);
             if ($user) {
                 if ($this->userclass->editor_uesr_password($user['id'], $_M['form']['password'])) {
                     okinfo($_M['url']['login'], $_M['word']['modifypasswordsuc']);
                 } else {
                     okinfo($_M['url']['login'], $_M['word']['opfail']);
                 }
             } else {
                 okinfo($_M['url']['login'], $_M['word']['nouser']);
             }
         }
         require_once $this->template('tem/getpassword_mailset');
     } else {
         okinfo($_M['url']['register'], $_M['word']['emailvildtips2']);
     }
 }
开发者ID:nanfs,项目名称:lt,代码行数:23,代码来源:getpassword.class.php

示例7: okinfo

<?php

$index = "wap";
require_once '../include/common.inc.php';
if (!$met_wap) {
    okinfo('../index.php?lang=' . $lang, $lang_metwapok);
}
require_once 'wap.php';
if (!$met_wap_logo) {
    $met_wap_logo = $met_logo;
}
if (!$wap_description) {
    $wap_description = $met_description;
}
include waptemplate($temp);
wapfooter();
?>
 
开发者ID:nanfs,项目名称:lt,代码行数:17,代码来源:index.php

示例8: explode

                $body = $body . '<tr><td class="l">' . $val[name] . '</td><td class="r">' . $para . '</td>' . $bt . '</tr>' . "\n";
            } else {
                if ($met_cv_image != $val[id]) {
                    $para = explode('../', $para);
                    $para = $para[1] != "" ? "<a href=" . $met_weburl . $para[1] . " trage='_blank' style='color:#f00;' >" . $lang_Download . "</a>" : $lang_Emptyno;
                    $body = $body . '<tr><td class="l">' . $val[name] . '</td><td class="r">' . $para . '</td>' . $bt . '</tr>' . "\n";
                }
            }
        }
        $body .= '<tr><td class="footer" colspan="3">Powered by <a target="_blank" href="http://www.metinfo.cn">MetInfo ' . $metcms_v . '</a> &copy;2008-2011 &nbsp;<a target="_blank" href="http://www.metinfo.cn">MetInfo Inc.</a></td></tr>';
        $body .= '</table>';
        if ($met_cv_back == 1) {
            jmailsend($from, $fromname, $cvto, $met_cv_title, $met_cv_content, $usename, $usepassword, $smtp);
        }
        jmailsend($from, $fromname, $to, $title, $body, $usename, $usepassword, $smtp);
    }
    /*短信提醒*/
    if ($met_nurse_job) {
        require_once ROOTPATH . 'include/export.func.php';
        if (maxnurse() < $met_nurse_max) {
            $domain = strdomain($met_weburl);
            $message = "您网站[{$domain}]收到了新的简历[{$job_list[position]}],请尽快登录网站后台查看";
            sendsms($met_nurse_job_tel, $message, 4);
        }
    }
    /**/
    $backurl = $metinfo_member_name == "" ? '../index.php?lang=' . $lang : '../member/' . $member_index_url;
    okinfo($backurl, $lang_js21);
}
# This program is an open source system, commercial use, please consciously to purchase commercial license.
# Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
开发者ID:Jesuslagliva12,项目名称:OpenAPI,代码行数:31,代码来源:save.php

示例9: okinfo

                $paravalues[] = $list1;
            }
            $i = 1;
            $infos = "";
            for ($j = 0; $j < count($paravalues); $j++) {
                $paras4_name = "para" . $val[id] . "_" . $i;
                $para_name = ${$paras4_name};
                if ($infos) {
                    if ($para_name) {
                        $infos = $infos . "、" . $para_name;
                    }
                } else {
                    if ($para_name) {
                        $infos = $para_name;
                    }
                }
                $i = $i + 1;
            }
            if ($db->get_one("SELECT * FROM {$met_plist} WHERE listid='{$uses_id['id']}' and paraid='{$val['id']}' and module='10' and lang='{$lang}'")) {
                $query = "update {$met_plist} SET\tinfo='{$infos}' where listid='{$uses_id['id']}' and paraid='{$val['id']}' and module='10' and lang='{$lang}'";
                $db->query($query);
            } else {
                $query = "INSERT INTO {$met_plist} SET info='{$infos}',listid='{$uses_id['id']}',paraid='{$val['id']},module='10',lang='{$lang}'";
                $db->query($query);
            }
        }
    }
    okinfo('basic.php?lang=' . $lang, $lang_js21);
}
# This program is an open source system, commercial use, please consciously to purchase commercial license.
# Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
开发者ID:Jesuslagliva12,项目名称:OpenAPI,代码行数:31,代码来源:save.php

示例10: substr

                $para2 = ${$para1};
                $para = $para2 != "" ? $para . $para2 . "-" : $para;
            }
            $para = substr($para, 0, -1);
        }
        $para = htmlspecialchars($para);
        $query = "update {$met_flist} SET\n\t\t\t\t\t  paraid   ='{$val['id']}',\n\t\t\t\t\t  info     ='{$para}'\n\t\t\t\t\t  where listid='{$id}' and paraid={$val['id']}";
        if ($val[type] == 5 and $para == '') {
            $query = '';
        }
        $db->query($query);
    }
    okinfo('feedback.php?lang=' . $lang, $lang_js21);
} else {
    if ($feedback_list[readok] == 1 || $feedback_list[useinfo] != '') {
        okinfo('feedback.php?lang=' . $lang, $lang_js24);
    }
    $query = "SELECT * FROM {$met_parameter} where lang='{$lang}' and module=8  order by no_order";
    if ($met_member_use) {
        $query = "SELECT * FROM {$met_parameter} where lang='{$lang}' and  module=8  and access<='{$metinfo_member_type}' order by no_order";
    }
    $result = $db->query($query);
    while ($list = $db->fetch_array($result)) {
        if ($list[type] == 2 or $list[type] == 4 or $list[type] == 6) {
            $query1 = "select * from {$met_list} where lang='{$lang}' and bigid='" . $list[id] . "' order by no_order";
            $result1 = $db->query($query1);
            while ($list1 = $db->fetch_array($result1)) {
                $paravalue[$list[id]][] = $list1;
            }
        }
        $value_list = $db->get_one("select * from {$met_flist} where paraid={$list['id']} and listid={$id} ");
开发者ID:Jesuslagliva12,项目名称:OpenAPI,代码行数:31,代码来源:fdeditor.php

示例11: check

 /**
  * 检测是否登陆
  * 有权限则程序向后运行,无权限则提示物权限
  */
 protected function check()
 {
     global $_M;
     $current_url = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
     if (strstr($current_url, $_M['url']['site_admin'] . "index.php")) {
         $admin_index = 1;
     } else {
         $admin_index = '';
     }
     $met_adminfile = $_M['config']['met_adminfile'];
     $met_admin_table = $_M['table']['admin_table'];
     $metinfo_admin_name = get_met_cookie('metinfo_admin_name');
     $metinfo_admin_pass = get_met_cookie('metinfo_admin_pass');
     if (!$metinfo_admin_name || !$metinfo_admin_pass) {
         if ($admin_index) {
             met_cooike_unset();
             met_setcookie("re_url", $re_url, time() - 3600);
             Header("Location: " . $_M['url']['site_admin'] . "login/login.php");
         } else {
             if (!$re_url) {
                 $re_url = $_SERVER[HTTP_REFERER];
                 $HTTP_REFERERs = explode('?', $_SERVER[HTTP_REFERER]);
                 $admin_file_len1 = strlen("/{$met_adminfile}/");
                 $admin_file_len2 = strlen("/{$met_adminfile}/index.php");
                 if (strrev(substr(strrev($HTTP_REFERERs[0]), 0, $admin_file_len1)) == "/{$met_adminfile}/" || strrev(substr(strrev($HTTP_REFERERs[0]), 0, $admin_file_len2)) == "/{$met_adminfile}/index.php" || !$HTTP_REFERERs[0]) {
                     $re_url = "http://{$_SERVER[SERVER_NAME]}{$_SERVER[REQUEST_URI]}";
                 }
             }
             if (!$_COOKIE[re_url] && !strstr($re_url, "return.php")) {
                 met_setcookie("re_url", $re_url, time() + 3600);
             }
             met_cooike_unset();
             Header("Location: " . $_M['url']['site_admin'] . "login/login.php");
         }
         exit;
     } else {
         $query = "SELECT * FROM {$_M['table']['admin_table']} WHERE admin_id = '{$metinfo_admin_name}' AND admin_pass = '{$metinfo_admin_pass}' AND usertype = '3'";
         $admincp_ok = DB::get_one($query);
         if (!$admincp_ok) {
             if ($admin_index) {
                 met_cooike_unset();
                 met_setcookie("re_url", $re_url, time() - 3600);
                 Header("Location: " . $_M['url']['site_admin'] . "login/login.php");
             } else {
                 if (!$re_url) {
                     $re_url = $_SERVER[HTTP_REFERER];
                     $HTTP_REFERERs = explode('?', $_SERVER[HTTP_REFERER]);
                     $admin_file_len1 = strlen("/{$met_adminfile}/");
                     $admin_file_len2 = strlen("/{$met_adminfile}/index.php");
                     if (strrev(substr(strrev($HTTP_REFERERs[0]), 0, $admin_file_len1)) == "/{$met_adminfile}/" || strrev(substr(strrev($HTTP_REFERERs[0]), 0, $admin_file_len2)) == "/{$met_adminfile}/index.php" || !$HTTP_REFERERs[0]) {
                         $re_url = "http://{$_SERVER[SERVER_NAME]}{$_SERVER[REQUEST_URI]}";
                     }
                 }
                 if (!strstr($re_url, "return.php")) {
                     if (!$_COOKIE['re_url']) {
                         met_setcookie("re_url", $re_url, time() + 3600);
                     }
                 }
                 met_cooike_unset();
                 Header("Location: " . $_M['url']['site_admin'] . "login/login.php");
             }
             exit;
         }
     }
     $query = "SELECT * FROM {$_M['table']['admin_table']} WHERE admin_id='{$metinfo_admin_name}' AND admin_pass='{$metinfo_admin_pass}'";
     $membercp_ok = DB::get_one($query);
     if (!strstr($membercp_ok['admin_op'], "metinfo")) {
         if (isset($_SERVER['HTTP_X_REQUESTED_WITH']) && $_SERVER['HTTP_X_REQUESTED_WITH'] == 'XMLHttpRequest') {
             $return_url = "";
         } else {
             $return_url = "javascript:window.history.back();";
         }
         if (stristr(M_ACTION, 'add')) {
             if (!strstr($membercp_ok['admin_op'], "add")) {
                 okinfo($return_url, $_M['word']['loginadd']);
             }
         }
         if (stristr(M_ACTION, 'editor')) {
             if (!strstr($membercp_ok['admin_op'], "editor")) {
                 okinfo($return_url, $_M['word']['loginedit']);
             }
         }
         if (stristr(M_ACTION, 'del')) {
             if (!strstr($membercp_ok['admin_op'], "del")) {
                 okinfo($return_url, $_M['word']['logindelete']);
             }
         }
         if (stristr(M_ACTION, 'all')) {
             if (!strstr($membercp_ok['admin_op'], "metinfo")) {
                 okinfo($return_url, $_M['word']['loginall']);
             }
         }
         if (stristr(M_ACTION, 'table')) {
             if (stristr($_M['form']['submit_type'], 'save')) {
                 if ($_M['form']['allid']) {
                     $power_ids = explode(',', $_M['form']['allid']);
//.........这里部分代码省略.........
开发者ID:nanfs,项目名称:lt,代码行数:101,代码来源:admin.class.php

示例12: okinfo

    okinfo('message.php?lang=' . $lang, $lang_js1);
}
if ($metinfo_member_name != $message_list[customerid]) {
    okinfo('javascript:history.back();', $lang_js1);
}
if ($action == "editor") {
    //code
    if ($met_memberlogin_code == 1) {
        require_once 'captcha.class.php';
        $Captcha = new Captcha();
        if (!$Captcha->CheckCode($code)) {
            echo "<script type='text/javascript'> alert('{$lang_membercode}');window.history.back();</script>";
            exit;
        }
    }
    $query = "update {$met_message} SET\n                      name               = '{$messagename}',\n\t\t\t\t\t  tel            \t = '{$tel}',\n\t\t\t\t\t  email              = '{$email}',\n\t\t\t\t\t  contact\t\t\t = '{$contact}',\n\t\t\t\t\t  info  \t\t\t = '{$info}'\n\t\t\t\t\t  where id='{$id}'";
    $db->query($query);
    okinfo('message.php?lang=' . $lang, $lang_js21);
} else {
    if ($message_list[readok] == 1 || $message_list[useinfo] != '') {
        okinfo('message.php?lang=' . $lang, $lang_js24);
    }
    if (!$message_list) {
        okinfo('message.php?lang=' . $lang, $lang_js1);
    }
    $mfname = 'message_editor';
    include template('member');
    footermember();
}
# This program is an open source system, commercial use, please consciously to purchase commercial license.
# Copyright (C) MetInfo Co., Ltd. (http://www.metinfo.cn). All rights reserved.
开发者ID:Jesuslagliva12,项目名称:OpenAPI,代码行数:31,代码来源:messageeditor.php

示例13: Copyright

<?php

# MetInfo Enterprise Content Management System
# Copyright (C) MetInfo Co.,Ltd (http://www.metinfo.cn). All rights reserved.
require_once '../include/common.inc.php';
$classaccess = $db->get_one("SELECT * FROM {$met_column} WHERE module='6' and lang='{$lang}'");
$metaccess = $classaccess[access];
$class1 = $classaccess[id];
require_once '../include/head.php';
$guanlian = $class_list[$class1][releclass];
$class1_info = $class_list[$class1][releclass] ? $class_list[$class_list[$class1][releclass]] : $class_list[$class1];
$class2_info = $class_list[$class1][releclass] ? $class_list[$class1] : $class_list[$class2];
if (!class1_info) {
    okinfo('../', $lang_error);
}
$serch_sql = " where lang='{$lang}' {$mobilesql} and displaytype='1' and ((TO_DAYS(NOW())-TO_DAYS(`addtime`)< useful_life) OR useful_life=0) ";
if ($met_member_use == 2) {
    $serch_sql .= " and access<={$metinfo_member_type}";
}
$order_sql = "order by no_order desc,addtime desc";
$total_count = $db->counter($met_job, "{$serch_sql}", "*");
$totaltop_count = $db->counter($met_job, "{$serch_sql} and top_ok='1'", "*");
require_once '../include/pager.class.php';
$page = (int) $page;
if ($page_input) {
    $page = $page_input;
}
$list_num = $met_job_list;
$rowset = new Pager($total_count, $list_num, $page);
$from_record = $rowset->_offset();
$page = $page ? $page : 1;
开发者ID:Jesuslagliva12,项目名称:OpenAPI,代码行数:31,代码来源:job.php

示例14: okinfo

<?php

$depth = '../';
require_once $depth . '../login/login_check.php';
if ($action == "linkopen") {
    $met_addlinkopen = $met_addlinkopen;
    $langp = $lang;
    $metcms[$langp]['met_addlinkopen'] = $met_addlinkopen;
    require_once $depth . '../include/config.php';
    okinfo('../link/index.php?lang=' . $lang);
} else {
    $serch_sql = " where lang='{$lang}' ";
    if ($link_type != "") {
        $serch_sql .= " and link_type={$link_type} ";
    }
    if ($com_ok != "") {
        $serch_sql .= " and com_ok={$com_ok} ";
    }
    if ($show_ok != "") {
        $serch_sql .= " and show_ok={$show_ok} ";
    }
    if ($link_lang != "") {
        $serch_sql .= " and link_lang={$link_lang} ";
    }
    $order_sql = " order by orderno desc";
    if ($search == "detail_search") {
        if ($webname) {
            $serch_sql .= " and webname like '%{$webname}%' ";
        }
        $total_count = $db->counter($met_link, "{$serch_sql}", "*");
    } else {
开发者ID:nanfs,项目名称:lt,代码行数:31,代码来源:index.php

示例15: while

    }
    if ($met_fd_email == 1) {
        $fromurl = $_SERVER['HTTP_REFERER'];
        $query1 = "select * from {$met_mlist} where lang='{$lang}' and module='7' and listid={$use_id['id']} order by id";
        $result1 = $db->query($query1);
        while ($list1 = $db->fetch_array($result1)) {
            $email_list[] = $list1;
        }
        $body = '';
        foreach ($email_list as $val) {
            $body .= "<b>{$val['imgname']}</b>:{$val['info']}<br />";
        }
        $title = $pname . "{$lang_MessageInfo1}";
        jmailsend($from, $fromname, $to, $title, $body, $usename, $usepassword, $smtp, $email);
    }
    okinfo($returnurl, "{$lang_MessageInfo2}");
} else {
    $class2 = $class_list[$class1][releclass] ? $class1 : $class2;
    $class1 = $class_list[$class1][releclass] ? $class_list[$class1][releclass] : $class1;
    $class_info = $class2 ? $class2_info : $class1_info;
    if ($class2 != "") {
        $class_info[name] = $class2_info[name] . "--" . $class1_info[name];
    }
    $show[description] = $class_info[description] ? $class_info[description] : $met_description;
    $show[keywords] = $class_info[keywords] ? $class_info[keywords] : $met_keywords;
    $met_title = $met_title ? $navtitle . '-' . $met_title : $navtitle;
    $message[listurl] = $met_pseudo ? 'index-' . $lang . '.html' : ($met_webhtm == 2 ? ($met_htmlistname ? "message_list_1" : "index_list_1") . $met_htmtype : "index.php?lang=" . $lang);
    if (count($nav_list2[$message_column[id]])) {
        $k = count($nav_list2[$class1]);
        $nav_list2[$class1][$k] = $class1_info;
        $nav_list2[$class1][$k][name] = $lang_messageview;
开发者ID:nanfs,项目名称:lt,代码行数:31,代码来源:message.php


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