function pictos_refresh($k, $d, $res) { $_SESSION['icons'] = msql_read('system', 'program_pictos', ''); $_SESSION['picto'] = msql_read('system', 'edition_pictos', ''); return ico($file); }
pista#5: <input type="hidden" name="clues_ids_5" value="<?php printf($p[5]['id']); ?> "> <input name="p_5_lat" id="p_5_lat" value="<?php printf($p[5]['latitude']); ?> ">, <input name="p_5_lng" id="p_5_lng" value="<?php printf($p[5]['longitude']); ?> "><br><br> <img style="float:left" width="20" src="http://www.google.com/intl/en_us/mapfiles/ms/micons/<?php printf(ico(5)); ?> .png"> pista#6: <input type="hidden" name="clues_ids_6" value="<?php printf($p[6]['id']); ?> "> <input name="p_6_lat" id="p_6_lat" value="<?php printf($p[6]['latitude']); ?> ">, <input name="p_6_lng" id="p_6_lng" value="<?php printf($p[6]['longitude']); ?> "><br>
function do_add_issn() { $this->model_issn->user_auth(); $issn_title = $this->input->xss_clean($this->input->post('input_issn')); $re = $this->model_issn->add_issn(ico($issn_title)); if ($re) { echo '添加成功'; } else { echo '添加失败'; } }
function mod_link_r($m, $v) { //m§v:picto $qb = ses('qb'); list($va, $vb) = explode(':', $v); switch ($m) { case 'credits': return array('bevel', 'j', 'popup_about', picto('phi2')); break; case 'admin': return array('', '', '/?admin==&log=open', picto('admin')) . ' '; break; case 'root': return array('', 'j', 'popup_desktop___desk', picto('folder2')); break; case 'desk': return array('', 'j', 'desktop_desk', picto('folder')); break; case 'deskboot': return array('', 'SaveJc', desktop_cond('boot', 1), picto('desktop')); break; case 'desktop': return array('', 'SaveJc', 'page_deskbkg;popup_site___desktop_ok__autosize', picto('window')); break; case 'folder': return array('', 'j', 'popup_modpop__3_local|real//////folder2///1:desktop*files_480', picto('folder')); break; case 'art': return array('', 'j', 'popup_popart__3_' . $va . '_3', picto('articles')); break; case 'search': return array('', 'j', 'popup_search', picto('search')); break; case 'taxonav': return array('', 'j', 'popup_plup___taxonav', picto('topo')); break; case 'rss': return array('', '', 'rss' . $qb, $v ? $v : picto('rss')); break; case 'contact': return array('', 'j', 'popup_track___' . $qb, picto('mail')); break; case 'tablet': return array('', 'j', 'socket_tog__self_tablet', picto('gsm')); break; case 'hub': return array('', '', prep_host($m), $v ? $v : prep_host($m), ''); break; case 'apps': //apps§14:users if ($vb) { $r = msql_read('system', 'default_apps' . ($vb == 'default' ? '' : '_' . $vb), $va); } elseif ($va) { $r = msql_read('', $_SESSION['qb'] . '_apps', $va); } $r = array($r['button'], $r['type'], $r['process'], $r['param'], $r['option'], '', '', $r['icon'], '', $r['private']); return array('', 'j', read_apps($r), $r[7] ? picto($r[7]) : $r[0]); break; case 'mod': list($va, $vb) = explode("-", stripslashes($v)); return array($_GET['slct_mods'], 'slct_mods', $va, $vb ? picto($vb) : 'Design', ''); break; case 'ajax': return array('', 'j', $va, $vb); break; } //user_menus if ($vb == 'picto') { $v = picto($va); } elseif ($vb == 'icon') { $v = ico($va); } //modules if (substr($m, 0, 1) == '/') { list($action, $lk) = split_one('/', substr($m, 1), 0); switch ($action) { case 'module': return array($_GET['module'], 'module', $lk, $v ? $v : $m, ''); break; case 'plug': $v = $vb == 'picto' ? $v : strrchr_b($m, '/'); return array($_GET['plug'], 'plug', $lk, $v); break; case 'plugin': $v = $vb == 'picto' ? $v : strrchr_b($m, '/'); return array($_GET['plugin'], 'plugin', $lk, $v); break; case 'app': return array($_GET['app'], 'app', $lk, $v ? $v : $m, ''); break; default: return array($_GET[$action], $action, $lk, $v ? $v : $m, ''); break; } } elseif ($_SESSION['line'][$m]) { return array($_SESSION['frm'], 'cat', $m, $v ? $v : $m, ''); } elseif (is_numeric($m)) { if (!$v) { $v = $_SESSION['rqt'][$v][2]; } return array($_GET['read'], htacc('read'), $m, $v, 'art'); } elseif ($m == 'home' or $m == 'all') { return array(strtolower(get('module')), '', $m, $v ? $v : $m, ''); } else { return array('', '', $m, $v ? $v : $m); } }
function do_bat_sms() { $this->model_issn->user_auth(); $s_num = $this->input->xss_clean($this->input->post('s_num')); $content = ico($this->input->xss_clean($this->input->post('content'))); if ($s_num === 'all') { $q = $this->db->get(PHONE_TABLE); } else { if (!empty($s_num)) { $q = $this->db->get(PHONE_TABLE, $s_num, 0); } else { exit; } } $this->config->load('sms'); if ($q->num_rows() > 0) { foreach ($q->result_array() as $row) { $sms_to = $row['phone_no']; $re = sms::send_sms($sms_to, $content, $this->config->item('uid'), $this->config->item('pwd')); if ($re !== true) { //更新邮件成功率! } } } else { die('手机号库中,没有任何信息'); } echo '发送完毕'; }
function update_ok() { $ret .= lkc('popbt', '/?id==', helps('update_ok')) . ' '; if ($_SESSION['dlnb']) { $ret .= '(' . $_SESSION['dlnb'] . ' ' . nms(52) . ')' . br() . br(); } $upd = helps('update_ok_alert'); if ($upd) { $ret .= divc('alert', ico('alert') . ' ' . $upd) . br(); } $patch = '160101'; if ($patch) { $pok = msql_read('server', 'program_patches', $patch); if ($pok == 0) { $ret .= lkc('popdel', '/admin/update', 'patch!') . br(); } } $ret .= adm_update_notes($_SESSION['philum']); $_SESSION['dlnb'] = ''; $_SESSION['philum'] = msql_read('system', 'program_version', 1); return $ret; }
function callico($d, $t = '', $s = '', $c = '') { $r = sesmk('icons_r'); $b = $r[$d]; if ($b) { return ico($b, $t ? $t : $d); } else { return picto($d, $c . ($s ? ' font-size:' . $s . 'px;' : '')); } }
function export_phone() { set_time_limit(0); $type = $this->input->xss_clean($this->input->post('export_type')); if ($type === 'csv') { $file = $this->input->xss_clean($this->input->post('file_name')); $file_path = $this->_get_file_path($file); $result = $this->model_mailto_data->csv_to_phone_data($file_path); $this->db->where(array('up_name' => $file)); $this->db->delete(UPFILE_TABLE); if ($result !== true) { die($result); } else { die('添加成功'); } } if ($type === 'sql') { $hostname = $this->input->xss_clean($this->input->post('hostname')); $username = $this->input->xss_clean($this->input->post('username')); $password = $this->input->xss_clean($this->input->post('password')); $database = $this->input->xss_clean($this->input->post('database')); $dbdriver = $this->input->xss_clean($this->input->post('dbdriver')); $char_set = $this->input->xss_clean($this->input->post('char_set')); $table_name = $this->input->xss_clean($this->input->post('table_name')); $mail = $this->input->xss_clean($this->input->post('mail')); $phone = $this->input->xss_clean($this->input->post('phone')); $db['dbmail']['hostname'] = ico($hostname); $db['dbmail']['username'] = ico($username); $db['dbmail']['password'] = ico($password); $db['dbmail']['database'] = ico($database); $db['dbmail']['dbdriver'] = ico($dbdriver); $db['dbmail']['char_set'] = ico($char_set); $db['dbmail']['table_name'] = ico($table_name); $db['dbmail']['mail'] = ico($mail); $db['dbmail']['phone'] = ico($phone); $array['cfg_name'] = ico($hostname); $array['cfg_value'] = m_serialize($db); //$this->db->get_where(CONFIG_TABLE,) $this->db->insert(CONFIG_TABLE, $array); $re = $this->model_mailto_data->sql_to_phone_data($hostname); exit($re . '完成导入,并保存配置'); } //echo $_POST['export_type'] . $_POST['file_name']; }