本文整理汇总了PHP中sys_popedom函数的典型用法代码示例。如果您正苦于以下问题:PHP sys_popedom函数的具体用法?PHP sys_popedom怎么用?PHP sys_popedom使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了sys_popedom函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。
示例1: setok_f
function setok_f()
{
sys_popedom($this->module_sign . ":setting", "tpl");
$rs = array();
if ($_POST && is_array($_POST) && count($_POST) > 0) {
foreach ($_POST as $key => $value) {
$rs[$key] = $this->trans_lib->safe($key);
}
}
$file = ROOT_DATA . "system_" . $_SESSION["sys_lang_id"] . ".php";
$_sys = array();
if (file_exists($file)) {
include $file;
}
//判断邮件密码及FTP密码
if ($rs["smtp_pass"] && strlen($rs["smtp_pass"]) == strlen($_sys["smtp_pass"]) && substr($rs["smtp_pass"], 0, 1) == substr($_sys["smtp_pass"], 0, 1) && substr($rs["smtp_pass"], -1) == substr($_sys["smtp_pass"], -1)) {
$rs["smtp_pass"] = $_sys["smtp_pass"];
}
if ($rs["ftp_pass"] && strlen($rs["ftp_pass"]) == strlen($_sys["ftp_pass"]) && substr($rs["ftp_pass"], 0, 1) == substr($_sys["ftp_pass"], 0, 1) && substr($rs["ftp_pass"], -1) == substr($_sys["ftp_pass"], -1)) {
$rs["ftp_pass"] = $_sys["ftp_pass"];
}
//判断FTP复选框
$rs["ftp_pasv"] = $this->trans_lib->checkbox("ftp_pasv");
$this->file_lib->vi($rs, ROOT_DATA . "system_" . $_SESSION["sys_lang_id"] . ".php", "_sys");
error("数据更新成功!", site_url("setting"));
}
开发者ID:norain2050,项目名称:hkgbf,代码行数:26,代码来源:setting.php
示例2: index_f
function index_f()
{
//设置是否有权限执行此操作
sys_popedom("html:list", "tpl");
$this->auto_load();
$this->cate_m->langid($_SESSION["sys_lang_id"]);
$this->cate_m->get_all();
$this->cate_m->format_list(0, 0);
$catelist = $this->cate_m->flist();
if (!$catelist) {
$catelist = array();
}
foreach ($catelist as $key => $value) {
$value["space"] = "";
for ($i = 0; $i < $value["level"]; $i++) {
$value["space"] .= " ";
}
$catelist[$key] = $value;
}
$module_list = $this->module_m->all_module();
//取得模块列表
$cate_html = "<select name='typeid' id='typeid'>";
$cate_html .= "<option value='0:0'>全部,不限制…</option>";
$cate_html .= "<optgroup label='选择模块'>";
$new_mlist = array();
foreach ($module_list as $key => $value) {
if ($value["ctrl_init"] == "list" && ($value["if_list"] || $value["if_msg"])) {
$new_mlist[] = $value;
$cate_html .= "<option value='" . $value["id"] . ":0'";
if ($typeid == $value["id"] . ":0") {
$cate_html .= " selected";
}
$cate_html .= ">" . $value["title"];
if (!$value["status"]) {
$cate_html .= "(已停用)";
}
$cate_html .= "</option>";
}
}
$cate_html .= "</optgroup>";
$cate_html .= "<optgroup label='选择分类'>";
foreach ($catelist as $key => $value) {
$cate_html .= "<option value='" . $value["module_id"] . ":" . $value["id"] . "'";
if ($typeid == $value["module_id"] . ":" . $value["id"]) {
$cate_html .= " selected";
}
$cate_html .= ">【" . $value["title"] . "】" . $value["space"] . $value["cate_name"];
if (!$value["status"]) {
$cate_html .= "(已停用)";
}
$cate_html .= "</option>";
}
$cate_html .= "</optgroup>";
$cate_html .= "</select>";
$this->tpl->assign("cate_html", $cate_html);
$this->tpl->display("create_html/list.html");
}
开发者ID:norain2050,项目名称:hkgbf,代码行数:57,代码来源:html.php
示例3: del_f
function del_f()
{
$id = $this->trans_lib->int("id");
if (!$id) {
exit("对不起,你的操作有错误!");
}
sys_popedom("subscribers:delete", "ajax");
$this->subscribers_m->del($id);
exit("ok");
}
开发者ID:ahmatjan,项目名称:yida,代码行数:10,代码来源:subscribers.php
示例4: del_f
function del_f()
{
$id = $this->trans_lib->safe("id");
if (!$id) {
exit("Error:操作非法,没有指定ID");
}
sys_popedom("hotlink:delete", "ajax");
$this->hotlink_m->del($id);
exit("ok");
}
开发者ID:ahmatjan,项目名称:yida,代码行数:10,代码来源:hotlink.php
示例5: index_f
function index_f()
{
sys_popedom("excel:list", "tpl");
$condition = "ctrl_init='list'";
$mlist = $this->module_m->all_module(0, $condition);
$this->tpl->assign("mlist", $mlist);
//取得附件信息
$filelist = $this->file_list();
$this->tpl->assign("filelist", $filelist);
//读取excel文件
$this->tpl->display("excel/list.html");
}
开发者ID:norain2050,项目名称:hkgbf,代码行数:12,代码来源:excel.php
示例6: setok_f
function setok_f()
{
sys_popedom($this->module_sign . ":setting", "tpl");
$rs = array();
if ($_POST && is_array($_POST) && count($_POST) > 0) {
foreach ($_POST as $key => $value) {
$rs[$key] = $this->trans_lib->safe($key);
}
}
$this->file_lib->vi($rs, ROOT_DATA . "system_" . $_SESSION["sys_lang_id"] . ".php", "_sys");
error("数据更新成功!", site_url("setting"));
}
开发者ID:helloyuanyuan,项目名称:ReferralBonus,代码行数:12,代码来源:setting.php
示例7: index_f
function index_f()
{
sys_popedom("excel_user:list", "tpl");
$DB_Server = $this->db->host;
$DB_Username = $this->db->user;
$DB_Password = $this->db->pass;
$DB_DBName = $this->db->data;
$savename = date("YmjHis");
$Connect = @mysql_connect($DB_Server, $DB_Username, $DB_Password) or die("Couldn't connect.");
mysql_query("Set Names gb2312");
$file_type = "vnd.ms-excel";
$file_ending = "xls";
header("Content-Type: application/{$file_type};charset=utf-8");
header("Content-Disposition: attachment; filename=" . $savename . ".{$file_ending}");
//header("Pragma: no-cache");
$now_date = date("Y-m-j H:i:s");
$sql = "Select id,username,phone,regdate,status,fxstatus,job,company,bankAccount,cardCode,bankName from " . $this->db->prefix . "user ";
$ALT_Db = @mysql_select_db($DB_DBName, $Connect) or die("Couldn't select database");
$result = @mysql_query($sql, $Connect) or die(mysql_error());
$sep = "\t";
for ($i = 0; $i < mysql_num_fields($result); $i++) {
echo mysql_field_name($result, $i) . "\t";
}
print "\n";
$i = 0;
while ($row = mysql_fetch_row($result)) {
$schema_insert = "";
for ($j = 0; $j < mysql_num_fields($result); $j++) {
if (!isset($row[$j])) {
$schema_insert .= "NULL" . $sep;
} elseif ($row[$j] != "") {
if ($j == "3") {
$postdate = date('Y-m-d h:m:s', $row[$j]);
$schema_insert .= "{$postdate}" . $sep;
} else {
$schema_insert .= "{$row[$j]}" . $sep;
}
} else {
$schema_insert .= "" . $sep;
}
}
$schema_insert = str_replace($sep . "\$", "", $schema_insert);
$schema_insert .= "\t";
print trim($schema_insert);
print "\n";
$i++;
}
return true;
$this->tpl->display("home.html");
}
开发者ID:helloyuanyuan,项目名称:ReferralBonus,代码行数:50,代码来源:excel_user.php
示例8: ajax_del_f
function ajax_del_f()
{
$id = $this->trans_lib->int("id");
if (!$id) {
exit("error:没有指定ID");
}
sys_popedom($this->module_sign . ":delete", "ajax");
$rs = $this->tpl_m->get_one($id);
if ($rs["ifsystem"]) {
exit("error: 对不起,系统模板不允许删除");
}
if ($rs["ifdefault"]) {
exit("error: 对不起,默认模板不允许删除");
}
$this->tpl_m->del($id);
exit("ok");
}
开发者ID:helloyuanyuan,项目名称:ReferralBonus,代码行数:17,代码来源:tpl.php
示例9: ajax_del_f
function ajax_del_f()
{
$id = $this->trans_lib->int("id");
if (!$id) {
exit("error:没有指定ID");
}
sys_popedom("usergroup:delete", "ajax");
$rs = $this->usergroup_m->get_one($id);
if ($rs["ifdefault"]) {
exit("默认组不允许删除!");
}
if ($rs["ifsystem"]) {
exit("系统组不允许删除!");
}
$this->usergroup_m->del($id);
exit("ok");
}
开发者ID:helloyuanyuan,项目名称:ReferralBonus,代码行数:17,代码来源:usergroup.php
示例10: ajax_del_f
function ajax_del_f()
{
$id = $this->trans_lib->int("id");
if (!$id) {
exit("error:没有指定ID");
}
sys_popedom("user:delete", "ajax");
load_plugin("user:del:prev");
$this->user_m->del($id);
load_plugin("user:del:next");
exit("ok");
}
开发者ID:ahmatjan,项目名称:yida,代码行数:12,代码来源:user.php
示例11: ajax_del_f
function ajax_del_f()
{
$id = $this->trans_lib->int("id");
if (!$id) {
exit("error:没有指定ID");
}
sys_popedom($this->module_sign . ":delete", "ajax");
$this->phpok_m->del($id);
exit("ok");
}
开发者ID:ahmatjan,项目名称:yida,代码行数:10,代码来源:phpok.php
示例12: index_f
function index_f()
{
sys_popedom($this->module_sign . ":list", "tpl");
if (file_exists(ROOT_DATA . "system_" . $_SESSION["sys_lang_id"] . ".php")) {
include ROOT_DATA . "system_" . $_SESSION["sys_lang_id"] . ".php";
$siteurl = $_sys["siteurl"];
}
if (!$siteurl) {
$siteurl = $this->trans_lib->get_url();
}
if (substr($siteurl, -1) != "/") {
$siteurl .= "/";
}
$this->tpl->assign("siteurl", $siteurl);
$this->cate_m->langid($_SESSION["sys_lang_id"]);
$this->cate_m->get_all();
$this->cate_m->format_list(0, 0);
$catelist = $this->cate_m->flist();
if (!$catelist) {
$catelist = array();
}
foreach ($catelist as $key => $value) {
$value["space"] = "";
for ($i = 0; $i < $value["level"]; $i++) {
$value["space"] .= " ";
}
$catelist[$key] = $value;
}
$module_list = $this->module_m->all_module();
//取得模块列表
$cate_html = "<select name='typeid' id='typeid'>";
$cate_html .= "<option value='0:0'>全部,不限制…</option>";
$cate_html .= "<optgroup label='选择模块'>";
$new_mlist = array();
foreach ($module_list as $key => $value) {
if ($value["ctrl_init"] == "list" && ($value["if_list"] || $value["if_msg"])) {
$new_mlist[] = $value;
$cate_html .= "<option value='" . $value["id"] . ":0'";
if ($typeid == $value["id"] . ":0") {
$cate_html .= " selected";
}
$cate_html .= ">" . $value["title"];
if (!$value["status"]) {
$cate_html .= "(已停用)";
}
$cate_html .= "</option>";
}
}
$cate_html .= "</optgroup>";
$cate_html .= "<optgroup label='选择分类'>";
foreach ($catelist as $key => $value) {
$cate_html .= "<option value='" . $value["module_id"] . ":" . $value["id"] . "'";
if ($typeid == $value["module_id"] . ":" . $value["id"]) {
$cate_html .= " selected";
}
$cate_html .= ">【" . $value["title"] . "】" . $value["space"] . $value["cate_name"];
if (!$value["status"]) {
$cate_html .= "(已停用)";
}
$cate_html .= "</option>";
}
$cate_html .= "</optgroup>";
$cate_html .= "</select>";
$this->tpl->assign("cate_html", $cate_html);
$this->tpl->display("create_html/list.html");
}
开发者ID:ahmatjan,项目名称:yida,代码行数:66,代码来源:html.php
示例13: fields_del_f
function fields_del_f()
{
$id = $this->trans_lib->int("id");
if (!$id) {
exit("error: 操作非法,没有指定ID");
}
sys_popedom($this->module_sign . ":delete", "tpl");
//删除模块操作
$this->module_m->fields_del($id);
exit("ok");
}
开发者ID:norain2050,项目名称:hkgbf,代码行数:11,代码来源:ctrl.php
示例14: ajax_del_f
function ajax_del_f()
{
$id = $this->trans_lib->safe("id");
if (!$id) {
exit("error:没有指定ID");
}
$array = sys_id_list($id);
if (!$array[0]) {
exit("error:错误");
}
$rs = $this->list_m->get_one($array[0]);
$module_id = $rs["module_id"];
sys_popedom($module_id . ":delete", "ajax");
$this->list_m->del($id);
exit("ok");
}
开发者ID:helloyuanyuan,项目名称:ReferralBonus,代码行数:16,代码来源:list.php
示例15: groupdel_f
function groupdel_f()
{
$id = $this->trans_lib->int("id");
if (!$id) {
error("没有指定组ID", $this->url("datalink"));
}
sys_popedom($this->module_sign . ":group", "tpl");
$this->datalink_m->del_group($id);
error("组信息删除成功", $this->url("datalink"));
}
开发者ID:ahmatjan,项目名称:yida,代码行数:10,代码来源:datalink.php
示例16: del_gd_f
function del_gd_f()
{
$id = $this->trans_lib->int("id");
if (!$id) {
exit("Error:操作非法,没有指定ID");
}
sys_popedom("gd:delete", "ajax");
$rs = $this->gd_m->get_one($id);
$sign = $rs["pictype"];
//获取数据
$rslist = $this->gd_m->gd_list($sign);
if ($rslist && count($rslist) > 0 && is_array($rslist)) {
foreach ($rslist as $key => $value) {
if ($value["filename"] && file_exists(ROOT . $value["filename"]) && is_file(ROOT . $value["filename"])) {
$this->file_lib->rm(ROOT . $value["filename"]);
}
}
}
$this->gd_m->gd_del($sign);
$this->gd_m->del($id);
exit("ok");
}
开发者ID:ahmatjan,项目名称:yida,代码行数:22,代码来源:gd.php
示例17: fields_del_f
function fields_del_f()
{
$id = $this->trans_lib->int("id");
if (!$id) {
exit("Error:操作非法,没有指定ID");
}
sys_popedom("payment:delete", "ajax");
$this->payment_m->fields_del($id);
exit("ok");
}
开发者ID:ahmatjan,项目名称:yida,代码行数:10,代码来源:payment.php
示例18: ajax_status_f
function ajax_status_f()
{
$id = $this->trans_lib->int("id");
if (!$id) {
exit("对不起,你的操作有错误!");
}
sys_popedom("plugin:check", "ajax");
$rs = $this->plugin_m->get_one($id);
$status = $rs["status"] ? 0 : 1;
$this->plugin_m->set_status($id, $status);
//更新配置文件信息
$rs["status"] = $status;
$this->_config($id);
exit("ok");
}
开发者ID:norain2050,项目名称:hkgbf,代码行数:15,代码来源:plugin.php
示例19: ajax_del_f
function ajax_del_f()
{
$id = $this->trans_lib->int("id");
if (!$id) {
exit("error:没有指定ID");
}
$module_id = $this->trans_lib->int("module_id");
if (!$module_id) {
exit("error: 无法读取模块ID");
}
if ($id == $_SESSION["admin_id"]) {
exit("error: 管理员不能删除自己!");
}
sys_popedom($this->module_sign . ":delete", "ajax");
$this->admin_m->del($id);
exit("ok");
}
开发者ID:ahmatjan,项目名称:yida,代码行数:17,代码来源:admin.php
示例20: fields_del_f
function fields_del_f()
{
$id = $this->trans_lib->int("id");
if (!$id) {
exit("error: 操作非法,没有指定ID");
}
sys_popedom("usergroup:delete", "tpl");
//删除模块操作
$this->usergroup_m->fields_del($id);
exit("ok");
}
开发者ID:ahmatjan,项目名称:yida,代码行数:11,代码来源:usergroup.php
注:本文中的sys_popedom函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论