Премного благодарен!!!
Версия системы: SLAED CMS 2.6 Lite
Версия PHP: PHP 5
В ноябре 30 дней...
function add() { global $prefix, $db, $conf, $confn, $confu, $pagetitle, $stop; $pagetitle = "".$conf['defis']." "._NEWS." ".$conf['defis']." "._ADD.""; if ((is_user() && $confn['add'] == 1) || (!is_user() && $confn['addquest'] == 1)) { if (is_user()) { $userinfo = getusrinfo(); $postname = (isset($_POST['postname'])) ? $_POST['postname'] : $userinfo['user_name']; } else { $postname = (isset($_POST['postname'])) ? $_POST['postname'] : $confu['anonym']; } head(); menu(""._ADD.""); if ($stop) warning($stop, "", "", 1); $field = fields_save($_POST['field']); if ($_POST['hometext']) preview($_POST['subject'], $_POST['hometext'], $_POST['bodytext'], $field, $conf['name']); warning(""._SUBMIT."", "", "", 2); OpenTable(); echo "<form name=\"post\" action=\"index.php?name=".$conf['name']."\" method=\"post\">" ."<div class=\"left\">"._YOURNAME.":</div><div class=\"center\"><input type=\"text\" name=\"postname\" value=\"".$postname."\" size=\"65\" class=\"".$conf['style']."\"></div>" ."<div class=\"left\">"._TITLE.":</div><div class=\"center\"><input type=\"text\" name=\"subject\" value=\"".$_POST['subject']."\" maxlength=\"80\" size=\"65\" class=\"".$conf['style']."\"></div>" ."<div class=\"left\">"._CATEGORY.":</div><div class=\"center\"><select name=\"catid\" class=\"".$conf['style']."\">".getcat("News", $_POST['catid'])."</select></div>" ."<div class=\"left\">"._TEXT.":</div><div class=\"center\">".textarea("1", "hometext", "", $conf['name'], "5")."</div>" ."<div class=\"left\">"._ENDTEXT.":</div><div class=\"center\">".textarea("2", "bodytext", "", $conf['name'], "15")."</div>" ."".fields_in($field, $conf['name'])."" .div_captcha_random() ."<div class=\"button\"><select name=\"posttype\">" ."<option value=\"preview\">"._PREVIEW."</option>" ."<option value=\"save\">"._SEND."</option></select>" ."<input type=\"hidden\" name=\"op\" value=\"send\">" ." <input type=\"submit\" value=\""._OK."\"></div></form>"; CloseTable(); foot(); } else { Header("Location: index.php?name=".$conf['name'].""); } }
if ($go==0 && text_filter($op)=='calendar') {showcalendar(1);die();}
var f = "ajax.php?op=calendar&cajax="+mod+"&cal_date="+year+"-"+month;
var f = "index.php?op=calendar&cajax="+mod+"&cal_date="+year+"-"+month;
var f = "index.php?op=calendar&cajax="+mod+"&cal_date="+year+"-"+month;
Форум
Контакты