function ykmail($to, $from, $subject, $message) { $issmtp = getset('usesmtp'); $date = date('d/m/Y'); if ($issmtp == 0) { $headers = 'MIME-Version: 1.0' . "\r\n"; $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $headers .= 'From: YourKart <*****@*****.**>' . "\r\n"; $headers .= "Message-ID: <" . md5($date) . "@..................>" . "\r\n"; $headers .= "Reply-To: {$from}" . "\r\n"; $headers .= "Return-Path: admin@yourkart.com" . "\r\n"; $headers .= "X-Priority: 3\r\nX-MSMail-Priority: Normal" . "\r\n"; $headers .= "X-Mailer: PHP/" . phpversion() . "\r\n"; mail($to, $subject, $message, $headers); } else { $host = getset('smtphost'); $port = getset('smtpport'); $username = getset('smtpuname'); $password = getset('smtppass'); $headers = array('MIME-Version' => '1.0rn', 'Content-Type' => "text/html; charset=ISO-8859-1rn", 'From' => 'Yourkart.com <*****@*****.**>', 'To' => $to, 'Subject' => $subject); $smtp = Mail::factory('smtp', array('host' => $host, 'port' => $port, 'auth' => true, 'username' => $username, 'password' => $password)); $mail = $smtp->send($to, $headers, $message); } }
<div class="inputsubmit"><input type="hidden" name="action" value="save" /><input id="submitbtn" type="submit" class="subtn" value="提交" /></div> </form> <?php } else { echo $htmlmsg; } ?> </div> </div> <div class="clear"> </div> <?php include "admin.footer.php"; ?> </div> <script type="text/javascript"> $(function(){ $("input[name='html']").each(function(){ if($(this).val() == "<?php echo getset("urlrewrite")->value; ?> ") { $(this).attr("checked","checked"); } }); }); </script> </body> </html>
$tempauthor = $config->item(0)->getElementsByTagName('author')->item(0)->nodeValue; $tempcopyright = $config->item(0)->getElementsByTagName('copyright')->item(0)->nodeValue; $temppubdate = $config->item(0)->getElementsByTagName('pubdate')->item(0)->nodeValue; if ($tempname != '' && $tempauthor != '') { //判断模板是否存在 $sql = "select * from yiqi_templets where name = '{$tempname}' and directory = '{$dirinfo}' limit 1"; if ($yiqi_db->query(CheckSql($sql)) == 0) { //将不存在的模板添加到数据库 $sql = "insert into yiqi_templets(name,directory,thumb,author,copyright,adddate,status) values" . "('{$tempname}','{$dirinfo}','../templets/{$dirinfo}/preview.gif','{$tempauthor}','{$tempcopyright}','{$temppubdate}','ok')"; $yiqi_db->query(CheckSql($sql)); } } } } } $tid = getset("sitetemplets")->value; $sql = "select * from yiqi_templets where status = 'ok' order by tid"; $templetslist = $yiqi_db->get_results(CheckSql($sql)); $count = count($templetslist); $action = $_POST['action']; if ($action == "update") { $tempid = $_POST["tid"]; $tempid = isset($tempid) && is_numeric($tempid) ? $tempid : 0; if ($tempid == 0 || !is_numeric($tempid)) { exit; } require_once '../include/templets.class.php'; $tempinfo = new Templets(); $tempinfo->compile_dir = YIQIROOT . '/cache/compile/'; $tempinfo->clear_compiled_tpl(); upset("sitetemplets", $tempid);
<?php include 'fxns.php'; if (!getset('pass')) { Header("Location: index.php"); die; } $password = get('pass'); include '../../password.php'; if ($password != $mypass) { Header("Location: index.php"); die; } if (postset('confirm')) { echo '<div class="alert alert-success" role="alert"><b>successful field removal</b></div>'; } ?> <html> <head> <link rel='stylesheet' type='text/css' href='bootstrap/css/bootstrap.css'> <link rel='stylesheet' type='text/css' href='rows.css'> <script src='bootstrap/js/jquery-2.1.1.js'></script> </head> <body style="position:absolute;left:10px"> <h2>FRIENDS:</h2>
$adminpagetitle = "SEO设置"; include "admin.header.php"; ?> <div class="main_body"> <form id="sform" action="option-seo.php" method="post"> <table class="inputform" cellpadding="1" cellspacing="1"> <tr><td class="label">标题关键词</td><td class="input"><input name="titlekeywords" class="txt" type="text" value="<?php echo getset("titlekeywords")->value; ?> " /></td></tr> <tr><td class="label">META关键词</td><td class="input"><input name="metakeywords" class="txt" type="text" value="<?php echo getset("metakeywords")->value; ?> " /></td></tr> <tr><td class="label">META描述</td><td class="input"><textarea class="txt" name="metadescription" style="width:200px;height:110px;"><?php echo getset("metadescription")->value; ?> </textarea></td></tr> </table> <div class="clear"> </div> <div class="inputsubmit"><input type="hidden" name="action" value="save" /><input id="submitbtn" type="submit" class="subtn" value="提交" /></div> </form> </div> </div> <script type="text/javascript"> $(function(){ var formoptions = { beforeSubmit: function() { $("#submitbtn").val("正在处理..."); $("#submitbtn").attr("disabled","disabled");
<?php include 'fxns.php'; include 'sql.php'; if (!getset('return')) { header('Location: ' . $_SERVER['HTTP_REFERER']); } $didsomething = 0; if (getset('del')) { $didsomething = 1; $del = get('del'); for ($i = 0; $i < strlen($del); $i++) { $field1 = field($del, $i, ','); $i += strlen($field1) + 1; $field2 = field($del, $i, ','); $i += strlen($field2) + 1; $field3 = field($del, $i, ';'); $i += strlen($field3); sql($field1, 0, "delete from {$field2} where id={$field3}"); } } $returnLocation = get('return'); echo "<script>var returnlocation=\"{$returnLocation}\";</script>"; ?> <form style="display:none" id='form' method='post' action=<?php echo "'{$returnLocation}'"; ?> > <input name='confirm' value='1'/> </form>
$categoryfilename = date("YmdHis"); } $categoryfilename = str_replace(" ", "-", $categoryfilename); $existfilename = $categorydata->ExistFilename($categoryfilename); if ($existfilename == 1) { if ($categoryfilename != $catinfo->filename) { if (strpos($categoryfilename, "http://") !== 0) { exit("指定的文件名已经存在"); } } } $categorytemplets = str_replace("{style}/", "", $categorytemplets); $sql = "UPDATE yiqi_category SET name = '{$categoryname}',seotitle='{$categoryseotitle}',seokeywords='{$categoryseokeywords}',seodescription='{$categoryseodescription}',description='{$categorydescription}',filename = '{$categoryfilename}',templets = '{$categorytemplets}',takenumber = '{$categorytakenumber}' WHERE cid = '{$cid}'"; $result = $yiqi_db->query(CheckSql($sql)); if ($result == 1) { $genehtml = getset("urlrewrite")->value; if ($genehtml == "html") { $category = $categorydata->GetCategory($cid); if (!$tempinfo->template_exists($category->templets)) { exit("没有找到文章模板,请与管理员联系!"); } $curpage = 1; $source = getcategorysource($category, $curpage); $total = $source['totalpage']; $urlparam = array('name' => $category->filename, 'type' => 'category', 'generatehtml' => 1, 'page' => $curpage); $fileurl = formaturl($urlparam); $cachedata->WriteFileCache(YIQIROOT . '/' . $fileurl . 'index.html', $source['source'], true); while ($total > $curpage) { $curpage++; $source = getcategorysource($category, $curpage); $urlparam = array('name' => $category->filename, 'type' => 'category', 'generatehtml' => 1, 'page' => $curpage);
echo "<a href=\"navigate.php?p=1\">首页</a>" . " <a href=\"navigate.php?p=" . ($curpage - 1) . "\">上一页</a>"; } if ($curpage > 0 && $curpage < $totalpage) { echo " <a href=\"navigate.php?p=" . ($curpage + 1) . "\">下一页</a>" . " <a href=\"navigate.php?p={$totalpage}\">尾页</a>"; } ?> </div> </form> <div class="clear"> </div> <form id="sform" action="navigate.php" method="post"> <input id="action" type="hidden" name="action" value="updated" /> <h3>添加导航</h3> <table class="inputform" cellpadding="1" cellspacing="1"> <tr><td class="label">链接标题</td><td class="input"><input type="text" class="txt" name="navname" /></td></tr> <tr><td class="label">链接地址</td><td class="input"><input type="text" class="txt" name="navurl" value="{siteurl}/" /> 注:{siteurl}=网站地址=<?php echo getset("siteurl")->value; ?> </td></tr> <tr><td class="label">排序</td><td class="input"><input type="text" class="txt" name="navorder" /></td></tr> <tr><td class="label">所属分组</td><td class="input"><input type="text" class="txt" name="navgroup" /></td></tr> </table> <div class="clear"> </div> <div class="inputsubmit"><input id="submitbtn" type="submit" class="subtn" value="提交" onclick="$('#action').val('insert');" /></div> </form> </div> </div> <script type="text/javascript"> $(function(){ var formoptions = { beforeSubmit: function() {
/* ACTION: View log file. Must have debug and log to file enabled, and sufficient perms * Parms: [lines] */ if (!canEdit('System')) { logXmlErr("Insufficient permissions to view log file"); echo "Insufficient permissions to view log file"; exit; } if (!ZM_EYEZM_DEBUG || !ZM_EYEZM_LOG_TO_FILE) { echo "eyeZm Debug (EYEZM_DEBUG) or log-to-file (EYEZM_LOG_TO_FILE) not enabled. Please enable first"; exit; } if (!file_exists(ZM_EYEZM_LOG_FILE)) { echo "Log file " . ZM_EYEZM_LOG_FILE . " doesn't exist"; exit; } $lines = validInteger(getset('lines', ZM_EYEZM_LOG_LINES)); logXml("Returning last " . $lines . " lines of eyeZm Log from " . ZM_EYEZM_LOG_FILE); echo shell_exec("tail -n " . $lines . " " . ZM_EYEZM_LOG_FILE); echo "\n\n--- Showing last " . $lines . " lines ---\n"; echo "--- End of Log ---\n\n"; } } } } } } } } } } }
upset("companysummary", $companysummary); showMsg("公司资料修改成功"); } $adminpagetitle = "公司资料设置"; include "admin.header.php"; ?> <div class="main_body"> <form id="sform" action="company-option.php" method="post"> <table class="inputform" cellpadding="1" cellspacing="1"> <tr><td class="label">公司名称</td><td class="input"><input type="text" class="txt" name="companyname" value="<?php echo getset("companyname")->value; ?> " /></td></tr> <tr><td class="label">公司简介<span style="color:#ff0000;">(该简介是网站首页的公司简介,如果你想修改详细的公司简介资料,请到文章管理-文章列表里面修改。)</span></td><td class="input"> <textarea id="contentform" rows="1" cols="1" style="width:580px;height:360px;" name="companysummary"><?php echo getset("companysummary")->value; ?> </textarea> <!-- Load TinyMCE --> <?php require_once "editor.php"; editor('kindeditor', 'companysummary'); ?> <!-- /TinyMCE --> </td></tr> </table> <div class="clear"> </div> <div class="inputsubmit"><input type="hidden" name="action" value="save" /><input id="submitbtn" type="submit" class="subtn" value="提交" /></div> </form> </div>
echo "\n*** #SUDDEN MODE on!"; $sudden_mode = 1; $ticker["ticker_buy"] = $ticker["ticker_sell"]; } if ($manualstoploss == 1 and $wall == 1) { echo "\n*** Skipped automatic stoploss action"; } else { $infodata = get_infodataf($fake); $info = get_infodata($infodata, $fake); $estimate = get_btcbyusd($info["usd_balance"], $ticker["ticker_buy"]); $transa = bid($estimate["bruto"], $ticker["ticker_buy"], $last_order, $wall, $info["balancing"], $sudden_mode); } } } } if ($wall == 1 and $manualstoploss == 1 and getset('tweeted') != $last_order["price"]) { $line = file($nextmov); $line = $line[1]; if ($enable_tweet) { tweet($tmhOAuth, "Help? {$twitter_users} " . $line); } setset("tweeted", $last_order["price"]); } if ($transa != false and $transa["status"] != "cancelled") { var_dump($transa); $balancing = $info["balancing"]; if ($transa["prem"] == "profit") { cli_beep(); cli_beep(); cli_beep(); sleep(1);
?> " /></td></tr> <tr><td class="label">网站地址</td><td class="input"><input type="text" class="txt" name="siteurl" value="<?php echo getset("siteurl")->value; ?> " /></td></tr> <tr><td class="label">网站备案号</td><td class="input"><input type="text" class="txt" name="siteicp" value="<?php echo getset("siteicp")->value; ?> " /></td></tr> <tr><td class="label">统计代码</td><td class="input"><textarea class="txt" name="sitestat" style="width:200px;height:110px;"><?php echo getset("sitestat")->value; ?> </textarea></td></tr> <tr><td class="label">版权信息</td><td class="input"><textarea class="txt" name="sitecopy" style="width:200px;height:110px;"><?php echo getset("sitecopy")->value; ?> </textarea></td></tr> </table> <div class="clear"> </div> <div class="inputsubmit"><input type="hidden" name="action" value="save" /><input id="submitbtn" type="submit" class="subtn" value="提交" /></div> </form> </div> </div> <script type="text/javascript"> $(function(){ var formoptions = { beforeSubmit: function() { $("#submitbtn").val("正在处理..."); $("#submitbtn").attr("disabled","disabled");
?> " /></td></tr> <tr><td class="label">地址</td><td class="input"><input type="text" class="txt" name="companyaddr" value="<?php echo getset("companyaddr")->value; ?> " /></td></tr> <tr><td class="label">电子邮箱</td><td class="input"><input type="text" class="txt" name="companyemail" value="<?php echo getset("companyemail")->value; ?> " /></td></tr> <tr><td class="label">QQ</td><td class="input"><input type="text" class="txt" name="companyqq" value="<?php echo getset("companyqq")->value; ?> " /></td></tr> <tr><td class="label">MSN</td><td class="input"><input type="text" class="txt" name="companymsn" value="<?php echo getset("companymsn")->value; ?> " /></td></tr> </table> <div class="clear"> </div> <div class="inputsubmit"><input type="hidden" name="action" value="save" /><input id="submitbtn" type="submit" class="subtn" value="提交" /></div> </form> </div> </div> <script type="text/javascript"> $(function(){ var formoptions = { beforeSubmit: function() { $("#submitbtn").val("正在处理..."); $("#submitbtn").attr("disabled","disabled");