require './init.php'; //require('../includes/lib_time.php'); $timestamp = gmtime(); check_method(); $error_log = array(); if (isset($set_modules)) { $set_modules = false; unset($set_modules); } $crondb = get_cron_info(); // 获得需要执行的计划任务数据 foreach ($crondb as $key => $cron_val) { if (file_exists(ROOT_PATH . 'includes/modules/cron/' . $cron_val['cron_code'] . '.php')) { if (!empty($cron_val['allow_ip'])) { $allow_ip = explode(',', $cron_val['allow_ip']); $server_ip = real_server_ip(); if (!in_array($server_ip, $allow_ip)) { continue; } } if (!empty($cron_val['minute'])) { $m = explode(',', $cron_val['minute']); $m_now = intval(local_date('i', $timestamp)); if (!in_array($m_now, $m)) { continue; } } if (!empty($cron_val['alow_files'])) { $f_info = parse_url($_SERVER['HTTP_REFERER']); $f_now = basename($f_info['path']); $f = explode(' ', $cron_val['alow_files']);
echo isset($edit_host) ? ' disabled' : ''; ?> " value="<?php echo $_POST['domain']; ?> " <?php echo isset($edit_host) ? 'disabled=""' : ''; ?> /></td> <td><p> <font class="red">*</font> 用于唯一标识的主域名 </p> <p> 不需填写http:// 格式例如: <a href="http://www.c3crm.com" target="_blank">demo.c3crm.com</a></p> </td> </tr> <tr><td>域名绑定ip</td> <td><input type="text" id="domainip" name="domainip" class="input_text" value="<?php echo real_server_ip(); ?> " <?php echo isset($edit_host) ? 'disabled=""' : ''; ?> /></td> <td><p> 用于绑定域名的ip,一般是当前服务器的ip,域名和IP会自动通过dnspod接口绑定,默认支持crm123.cn的二级域名,如果需要修改其他域名,需要修改Model/hosts.php中的host_insert_ssh函数中dnspod集成的相关参数。</p> </td> </tr> <tr><td>FTP帐户名<br />数据库用户名<br />数据库名</td> <td><input type="text" id="username" name="username" class="input_text" value="<?php echo $_POST['username']; ?> " </td> <td><p> 由1-15位的字母,数字,下划线组成,不能重复</p>