File=newsletter Hooks=standalone Order=10 Tags= [END_SED_EXTPLUGIN] ==================== */ if (!defined('SED_CODE')) { die("Wrong URL."); } $a = sed_import('a', 'P', 'TXT'); $m = sed_import('m', 'G', 'TXT'); $nletter_email = sed_import('nletter_email', 'P', 'TXT'); $activate = sed_import('activate', 'G', 'ALP'); $cancel = sed_import('cancel', 'G', 'ALP'); $email = sed_import('email', 'G', 'TXT'); $plugin_title = "<a href=\"plug.php?e=newsletter\">" . $L['plu_title'] . "</a>"; //clean the inactive registrations (after the time specified in the config panel) $clean_date = $sys['now_offset'] - $cfg['plugin']['newsletter']['cleandelay'] * 86400; $sql = sed_sql_query("DELETE FROM sed_newsletter WHERE nletter_date < '" . $clean_date . "' AND nletter_active = '0'"); // if ($activate != "") { $sql = sed_sql_query("UPDATE sed_newsletter SET nletter_active = '1' WHERE nletter_activation = '" . $activate . "' AND nletter_email = '" . $email . "'"); $plugin_body = "<p style=\"text-align:center;\">" . $L['plu_email_activated'] . "</p>"; } if ($cancel != "") { $sql = sed_sql_query("DELETE FROM sed_newsletter WHERE nletter_activation = '" . $cancel . "' AND nletter_email = '" . $email . "'"); $plugin_body = "<p style=\"text-align:center;\">" . $L['plu_deleted'] . "</p>"; } if ($a == $L['plu_join']) { $nletter_email = strtolower($nletter_email);
$ryear = sed_import('ryear', 'P', 'INT'); $rmonth = sed_import('rmonth', 'P', 'INT'); $rday = sed_import('rday', 'P', 'INT'); $rhour = sed_import('rhour', 'P', 'INT'); $rminute = sed_import('rminute', 'P', 'INT'); $ryear_beg = sed_import('ryear_beg', 'P', 'INT'); $rmonth_beg = sed_import('rmonth_beg', 'P', 'INT'); $rday_beg = sed_import('rday_beg', 'P', 'INT'); $rhour_beg = sed_import('rhour_beg', 'P', 'INT'); $rminute_beg = sed_import('rminute_beg', 'P', 'INT'); $ryear_exp = sed_import('ryear_exp', 'P', 'INT'); $rmonth_exp = sed_import('rmonth_exp', 'P', 'INT'); $rday_exp = sed_import('rday_exp', 'P', 'INT'); $rhour_exp = sed_import('rhour_exp', 'P', 'INT'); $rminute_exp = sed_import('rminute_exp', 'P', 'INT'); $rpagedelete = sed_import('rpagedelete', 'P', 'BOL'); $error_string .= empty($rpagecat) ? $L['pag_catmissing'] . "<br />" : ''; $error_string .= strlen($rpagetitle) < 2 ? $L['pag_titletooshort'] . "<br />" : ''; if (empty($error_string) || $rpagedelete) { if ($rpagedelete) { $id2 = "p" . $id; $sql = sed_sql_query("DELETE FROM {$db_pages} WHERE page_id='{$id}'"); $sql = sed_sql_query("DELETE FROM {$db_ratings} WHERE rating_code='{$id2}'"); $sql = sed_sql_query("DELETE FROM {$db_rated} WHERE rated_code='{$id2}'"); $sql = sed_sql_query("DELETE FROM {$db_com} WHERE com_code='{$id2}'"); sed_log("Deleted page #" . $id, 'adm'); } else { $rpagedate = $rpagedatenow ? $sys['now_offset'] : sed_mktime($rhour, $rminute, 0, $rmonth, $rday, $ryear) - $usr['timezone'] * 3600; $rpagebegin = sed_mktime($rhour_beg, $rminute_beg, 0, $rmonth_beg, $rday_beg, $ryear_beg) - $usr['timezone'] * 3600; $rpageexpire = sed_mktime($rhour_exp, $rminute_exp, 0, $rmonth_exp, $rday_exp, $ryear_exp) - $usr['timezone'] * 3600; $rpageexpire = $rpageexpire <= $rpagebegin ? $rpagebegin + 31536000 : $rpageexpire;
/* ==================== Seditio - Website engine Copyright Neocrome http://www.neocrome.net [BEGIN_SED] File=plugins/captcha/captcha.validate.php Version=100 Updated=2006-apr-21 Type=Plugin Author=riptide Description=Plugin to protect the registration process with a CAPTCHA. [END_SED] [BEGIN_SED_EXTPLUGIN] Code=captcha Part=validation File=captcha.validate Hooks=users.register.add.first Tags= Order=10 [END_SED_EXTPLUGIN] ==================== */ $rverify = sed_import('rverify', 'P', 'TXT'); require "inc/php-captcha.inc.php"; require 'lang/captcha.' . $usr['lang'] . '.lang.php'; if (!PhpCaptcha::Validate($rverify)) { $error_string .= $L['plu_verification_failed'] . "<br />"; }
if (!defined('SED_CODE') or !defined('SED_PLUG')) { die("Wrong URL."); } $db_guestbook = "sed_guestbook"; require_once "plugins/guestbook/inc/guestbook.functions.inc.php"; require_once "plugins/guestbook/inc/php-captcha.inc.php"; //Import the variables $a = sed_import('a', 'G', 'TXT'); $id = sed_import('id', 'G', 'TXT'); $d = sed_import('d', 'G', 'TXT'); $rtext = sed_import('rtext', 'P', 'TXT'); $ruser = sed_import('ruser', 'P', 'TXT'); $remail = sed_import('remail', 'P', 'TXT'); $rwebsite = sed_import('rwebsite', 'P', 'TXT'); $rverify = sed_import('rverify', 'P', 'TXT'); $del = sed_import('del', 'P', 'STX'); //Check the rights $admin = sed_auth('plug', 'guestbook', 'A'); $read = sed_auth('plug', 'guestbook', 'R'); $write = sed_auth('plug', 'guestbook', 'W'); $t->assign(array("GUESTBOOK_TITLE" => $L['plu_title'])); $t->parse("MAIN.GUESTBOOK_TITLE"); if ($a == "send") { if ($cfg['plugin']['guestbook']['verify'] == 'Yes' && $usr['id'] == '0') { if (!PhpCaptcha::Validate($rverify)) { $error_string .= $L['plu_notverified'] . "<br>"; } } if ($ruser == "") { $error_string .= $L['plu_noname'] . "<br>"; }
File=newsletter.admin Hooks=tools Tags= Order=10 [END_SED_EXTPLUGIN] ==================== */ if (!defined('SED_CODE')) { die('Wrong URL.'); } $plugin_title = $L['plu_title']; $a = sed_import('a', 'G', 'ALP'); $b = sed_import('b', 'P', 'TXT'); $nletter_email = sed_import('nletter_email', 'P', 'TXT'); $nltitle = sed_import('nltitle', 'P', 'HTM'); $nlmessage = sed_import('nlmessage', 'P', 'HTM'); //Check the rights $admin = sed_auth('plug', 'newsletter', 'A'); $read = sed_auth('plug', 'newsletter', 'R'); $write = sed_auth('plug', 'newsletter', 'W'); // require "plugins/newsletter/lang/newsletter." . $usr['lang'] . ".lang.php"; if ($a == "send" && $write == TRUE) { $sql = sed_sql_query("SELECT * FROM sed_newsletter WHERE nletter_active='1'"); while ($row = sed_sql_fetcharray($sql)) { $nletter_email = $row['nletter_email']; $nletter_activation = $row['nletter_activation']; $nletter_cancellink = $cfg['mainurl'] . "/plug.php?e=newsletter&email=" . $nletter_email . "&cancel=" . $row['nletter_activation']; $nlmessage2 = $nlmessage . "" . sprintf($L['plu_newsletter_body'], $nletter_cancellink); sed_mail($nletter_email, $nltitle, $nlmessage2); unset($nlmessage2);
function hfp_tool_action_set_to_display($id) { global $db_pages, $cfg, $sys, $usr, $db_structure; sed_check_xg(); $id = (int) $id; $state = sed_import('state', 'G', 'INT', 1); if ($id > 0) { $sql = sed_sql_query("SELECT page_cat FROM {$db_pages} WHERE page_id='" . $id . "'"); if ($result = sed_sql_fetchassoc($sql)) { $pageexpire = hfp_tool_get_yearstillexpire(); sed_sql_query("UPDATE {$db_pages} SET page_begin='" . (int) $sys['now_offset'] . "', page_expire='" . $pageexpire . "', page_state='0' WHERE page_id='{$id}'"); sed_sql_query("UPDATE {$db_structure} SET structure_pagecount=structure_pagecount+1 WHERE structure_code='" . sed_sql_prep($result['page_cat']) . "'"); } } sed_redirect(sed_url('admin', 'm=tools&p=hidefuturepages&state=' . $state, NULL, TRUE)); }
[BEGIN_SED_EXTPLUGIN] Code=bf2s Part=plugin File=bf2s Hooks=standalone Order=10 Tags= [END_SED_EXTPLUGIN] ==================== */ if (!defined('SED_CODE') || !defined('SED_PLUG')) { die("Wrong URL."); } require 'inc/bf2s-mlb.php'; $sort = sed_import('sort', 'G', 'TXT'); $way = sed_import('way', 'G', 'TXT'); $sort = $sort == "" ? "score" : $sort; $way = $way == "" ? "desc" : $way; function bf2s_sec2log($seconds) { $h = floor($seconds / 3600); $m = floor($seconds % 3600 / 60); $s = floor($seconds % 3600 % 60); $h = sprintf("%02d", $h); $m = sprintf("%02d", $m); $s = sprintf("%02d", $s); return "{$h}:{$m}:{$s}"; } function bf2s_rankdesc($rank) { $ranks = array("0" => "Private", "1" => "Private First Class", "2" => "Lance Corporal", "3" => "Corporal", "4" => "Sergeant", "5" => "Staff Sergeant", "6" => "Gunnery Sergeant", "7" => "Master Sergeant", "8" => "First Sergeant", "9" => "Master Gunnery Sergeant", "10" => "Sergeant Major", "11" => "Sergeant Major of the Corps", "12" => "2nd Lieutenant", "13" => "1st Lieutenant", "14" => "Captain", "15" => "Major", "16" => "Lieutenant Colonel", "17" => "Colonel", "18" => "Brigadier General", "19" => "Major General", "20" => "Lieutenant General", "21" => "General");
[BEGIN_SED_EXTPLUGIN] Code=hidefuturepages Part=tool File=hidefuturepages.tool Hooks=tools Tags= Order=1 [END_SED_EXTPLUGIN] ==================== */ defined('SED_CODE') or die('Wrong URL'); $action = sed_import('action', 'G', 'SLU'); $action = !empty($action) ? $action : ''; require_once $cfg['plugins_dir'] . "/hidefuturepages/inc/hidefuturepages.tool.inc.php"; $t = new XTemplate($cfg['plugins_dir'] . "/hidefuturepages/tpl/hidefuturepages.tool.main.tpl"); $tool_path = $cfg['plugins_dir'] . "/hidefuturepages"; switch ($action) { default: hfp_tool_action_showall(); break; case 'add_to_queue': $id = sed_import('id', 'G', 'INT'); hfp_tool_action_add_to_queue($id); break; case 'set_to_display': $id = sed_import('id', 'G', 'INT'); hfp_tool_action_set_to_display($id); break; } $t->assign(array("HFP_TOOL_PATH" => $tool_path, "HFP_TOOL_STYLESHEET_HREF" => $cfg['plugins_dir'] . "/hidefuturepages/inc/hidefuturepages.tool.css")); $t->parse("MAIN"); $plugin_body .= $t->text("MAIN");