示例#1
0
文件: index.php 项目: nanfs/lt
         }
     }
 }
 /**/
 $fname = $db->get_one("SELECT * FROM {$met_column} WHERE module='8' and lang='{$lang}' and id='{$sid}'");
 $fedfilename = $fname['filename'] != '' ? $fname['filename'] : 'index';
 $met_ahtmtype = $fname['filename'] != '' ? $met_chtmtype : $met_htmtype;
 $returnurl = $met_pseudo ? 'index-' . $lang . '.html' : ($met_webhtm ? $fedfilename . $met_ahtmtype : 'index.php?lang=' . $lang . '&id=' . $sid);
 if ($fid_url) {
     $returnurl = $_SERVER[HTTP_REFERER];
 }
 /*短信提醒*/
 if ($met_nurse_feed) {
     require_once ROOTPATH . 'include/export.func.php';
     if (maxnurse() < $met_nurse_max) {
         $domain = strdomain($met_weburl);
         $message = "您网站[{$domain}]收到了新的反馈信息[{$title}],请尽快登录网站后台查看";
         sendsms($met_nurse_feed_tel, $message, 4);
     }
 }
 /*短信回复*/
 $tell = 'para' . $met_fd_sms_dell;
 $tel = ${$tell};
 if ($tel && $met_fd_sms_back) {
     require_once ROOTPATH . 'include/export.func.php';
     sendsms($tel, $met_fd_sms_content, 1);
 }
 /*邮件提醒*/
 if ($met_fd_type == 0 or $met_fd_type == 2) {
     foreach ($fd_para as $key => $val) {
         if ($val[type] != 4) {
示例#2
0
文件: addlink.php 项目: nanfs/lt
    }
    $time2 = strtotime($m_now_date);
    $timeok = (double) ($time2 - $time1);
    $timeok2 = (double) ($time2 - $_COOKIE['submit']);
    if ($timeok <= 120 && $timeok2 <= 120) {
        $fd_time = "{$lang_Feedback1} 120 {$lang_Feedback2}";
        okinfo('javascript:history.back();', $fd_time);
    }
    setcookie('submit', $time2);
    require_once '../include/jmail.php';
    /*短信提醒*/
    if ($met_nurse_link) {
        require_once ROOTPATH . 'include/export.func.php';
        if (maxnurse() < $met_nurse_max) {
            $domain = strdomain($met_weburl);
            $message = "您网站[{$domain}]收到了新的友情链接申请[" . strdomain($weburl) . "],请尽快登录网站后台查看";
            sendsms($met_nurse_link_tel, $message, 4);
        }
    }
    /**/
    $query = "INSERT INTO {$met_link} SET\n                      webname              = '{$webname}',\n\t\t\t\t\t  info                 = '{$info}',\n\t\t\t\t\t  link_type            = '{$link_type}',\n\t\t\t\t\t  weburl               = '{$weburl}',\n\t\t\t\t\t  weblogo              = '{$weblogo}',\n\t\t\t\t\t  contact              = '{$contact}',\n\t\t\t\t\t  orderno              = '{$orderno}',\n\t\t\t\t\t  lang                 = '{$lang}', \n\t\t\t\t\t  ip                   = '{$ip}', \n\t\t\t\t\t  addtime              = '{$m_now_date}'";
    $db->query($query);
    $returnurl = $module_listall[9][0][url];
    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];
    }