if (((frameset_active) || ($GLOBALS['module'] == "frametester") || ($header < 2)) && (empty($frame)))
{
// Add some non-frameset stuff
- OUTPUT_HTML ("<NOFRAMES>
+ OUTPUT_HTML("<NOFRAMES>
<BODY>");
}
if (((frameset_active) || ($GLOBALS['module'] == "frametester")) && ($FOOTER == "1"))
{
// Add the closing NOFRAMES tag
- OUTPUT_HTML ("</NOFRAMES>");
+ OUTPUT_HTML("</NOFRAMES>");
}
// And the last closing HTML tag
- OUTPUT_HTML ("</HTML>");
+ OUTPUT_HTML("</HTML>");
// Footer has been reached
$FOOTER = 1;
// Output HTML code
- OUTPUT_HTML ("");
+ OUTPUT_HTML("");
// Close link
if ($link) { SQL_CLOSE($link, __FILE__, __LINE__); } else { ADD_FATAL(NO_DB_LINK); }
$FOOTER = 1;
// Output CSS content
- OUTPUT_HTML ("");
+ OUTPUT_HTML("");
}
//
?>
<TD";
if (!empty($ALIGN)) $OUT .=" align=\"".$ALIGN."\"";
$OUT .= " class=\"".$CLASS."\">";
- OUTPUT_HTML ($OUT);
+ OUTPUT_HTML($OUT);
}
// Close a table (you may want to add some footer stuff here)
function CLOSE_TABLE($ADD="")
{
- OUTPUT_HTML (" </TD>
+ OUTPUT_HTML(" </TD>
</TR>");
- if (!empty($ADD)) OUTPUT_HTML ($ADD);
- OUTPUT_HTML ("</TABLE>");
+ if (!empty($ADD)) OUTPUT_HTML($ADD);
+ OUTPUT_HTML("</TABLE>");
}
// Output HTML code directly or "render" it. You addionally switch the new-line character off
-function OUTPUT_HTML ($HTML, $NEW_LINE = true) {
+function OUTPUT_HTML($HTML, $NEW_LINE = true) {
// Some global variables
global $OUTPUT, $FOOTER, $CSS;
else
{
// Output direct
- OUTPUT_HTML ($ret);
+ OUTPUT_HTML($ret);
}
}
elseif (DEBUG_MODE)
$URL = htmlentities(strip_tags($URL), ENT_QUOTES);
// Output new location link as anchor
- OUTPUT_HTML ("<A href=\"".$URL."\">".$URL."</A>\n");
+ OUTPUT_HTML("<A href=\"".$URL."\">".$URL."</A>\n");
} elseif (!headers_sent()) {
// Load URL when headers are not sent
@header ("Location: ".str_replace("&", "&", $URL));
} else {
// Output error message
include(PATH."inc/header.php");
- OUTPUT_HTML (LOAD_URL_ERROR_1.$URL.LOAD_URL_ERROR_2);
+ OUTPUT_HTML(LOAD_URL_ERROR_1.$URL.LOAD_URL_ERROR_2);
include(PATH."inc/footer.php");
}
exit();
$array = $dummy;
}
//
-function ADD_SELECTION($type, $DEFAULT, $PREFIX="", $id="0")
+function ADD_SELECTION($type, $DEFAULT, $prefix="", $id="0")
{
global $MONTH_DESCR; $OUT = "";
if ($type == "yn")
{
// This is a yes/no selection only!
- if ($id > 0) $PREFIX .= "[".$id."]";
- $OUT .= " <SELECT name=\"".$PREFIX."\" class=\"register_select\" size=\"1\">\n";
+ if ($id > 0) $prefix .= "[".$id."]";
+ $OUT .= " <SELECT name=\"".$prefix."\" class=\"register_select\" size=\"1\">\n";
}
else
{
// Begin with regular selection box here
- if (!empty($PREFIX)) $PREFIX .= "_";
+ if (!empty($prefix)) $prefix .= "_";
$type2 = $type;
if ($id > 0) $type2 .= "[".$id."]";
- $OUT .= " <SELECT name=\"".strtolower($PREFIX.$type2)."\" class=\"register_select\" size=\"1\">\n";
+ $OUT .= " <SELECT name=\"".strtolower($prefix.$type2)."\" class=\"register_select\" size=\"1\">\n";
}
switch ($type)
{
}
// Closing HEAD tag
- if ($CSS != "1") OUTPUT_HTML ("</HEAD>\n");
+ if ($CSS != "1") OUTPUT_HTML("</HEAD>\n");
$header = 1;
}
}
//
-function install_WriteData ($file, $COMMENT, $PREFIX, $SUFFIX, $DATA, $SNEAK=0)
+function install_WriteData ($file, $comment, $prefix, $suffix, $DATA, $SNEAK=0)
{
- $DONE = false; $SNEAK++;
+ $done = false; $SNEAK++;
if (file_exists($file))
{
- $search = "CFG: ".$COMMENT;
+ $search = "CFG: ".$comment;
$tmp = $file.".tmp";
- $fp = @fopen($file, 'r') or OUTPUT_HTML ("<STRONG>READ:</STRONG> ".$file."<BR>");
- if (is_resource($fp))
- {
- $fp_tmp = @fopen($tmp, 'w') or OUTPUT_HTML ("<STRONG>WRITE:</STRONG> ".$tmp."<BR>");
- if (is_resource($fp_tmp))
- {
- while (! feof($fp))
- {
+ $fp = @fopen($file, 'r') or OUTPUT_HTML("<STRONG>READ:</STRONG> ".$file."<BR>");
+ if (is_resource($fp)) {
+ $fp_tmp = @fopen($tmp, 'w') or OUTPUT_HTML("<STRONG>WRITE:</STRONG> ".$tmp."<BR>");
+ if (is_resource($fp_tmp)) {
+ while (!feof($fp)) {
$line = fgets ($fp, 10240);
if (strpos($line, $search) > -1) $next = 0;
- if ($next > -1)
- {
- if ($next == $SNEAK)
- {
+ if ($next > -1) {
+ if ($next == $SNEAK) {
$next = -1;
- $line = $PREFIX.$DATA.$SUFFIX."\n";
- }
- else
- {
+ $line = $prefix.$DATA.$suffix."\n";
+ } else {
$next++;
}
}
}
fclose($fp_tmp);
// Finished writing tmp file
- $DONE = true;
+ $done = true;
}
// Close source directory
fclose($fp);
- if (($DONE) && (is_writeable($file)))
- {
+ if (($done) && (is_writeable($file))) {
// Copy back tmp file and delete tmp :-)
@copy($tmp, $file);
@unlink($tmp);
- }
- else
- {
- OUTPUT_HTML ("<STRONG>TMP:</STRONG> UNDONE!");
+ } else {
+ OUTPUT_HTML("<STRONG>TMP:</STRONG> UNDONE!");
}
}
- }
- else
- {
- OUTPUT_HTML ("<STRONG>404:</STRONG> ".$file."<BR>");
+ } else {
+ OUTPUT_HTML("<STRONG>404:</STRONG> ".$file."<BR>");
}
}
if (empty($mysql['prefix'])) $mysql['prefix'] = "mxchange_";
if ((sizeof($FATAL) > 0) || (!empty($FATAL[0])))
{
- OUTPUT_HTML ("<SPAN class=\"install_fatal\">");
+ OUTPUT_HTML("<SPAN class=\"install_fatal\">");
foreach ($FATAL as $key=>$err)
{
- OUTPUT_HTML (" <STRONG>·</STRONG> ".FATAL_NO.($key + 1).": ".$err."<BR>\n");
+ OUTPUT_HTML(" <STRONG>·</STRONG> ".FATAL_NO.($key + 1).": ".$err."<BR>\n");
}
- OUTPUT_HTML ("</SPAN><BR>");
+ OUTPUT_HTML("</SPAN><BR>");
}
define('__MYSQL_HOST' , $mysql['host']);
define('__MYSQL_DBASE' , $mysql['dbase']);
define('__TITLE_VALUE' , $_POST['title']);
define('__SLOGAN_VALUE', $_POST['slogan']);
define('__EMAIL_VALUE' , $_POST['email']);
- OUTPUT_HTML ("<FORM action=\"".__BURL_ACTION."/install.php?page=finalize\" method=\"POST\" target=\"_self\">
+ OUTPUT_HTML("<FORM action=\"".__BURL_ACTION."/install.php?page=finalize\" method=\"POST\" target=\"_self\">
<TABLE border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"install_content\">
<TR>
<TD colspan=\"2\" align=\"center\">
<TD>
<SELECT name=\"omode\" size=\"1\" class=\"install_select\">
<OPTION value=\"render\"");
- if (OUTPUT_MODE == "render") OUTPUT_HTML (" selected=\"selected\"");
- OUTPUT_HTML (">".MODE_RENDER."</OPTION>
+ if (OUTPUT_MODE == "render") OUTPUT_HTML(" selected=\"selected\"");
+ OUTPUT_HTML(">".MODE_RENDER."</OPTION>
<OPTION value=\"direct\"");
- if (OUTPUT_MODE == "direct") OUTPUT_HTML (" selected=\"selected\"");
- OUTPUT_HTML (">".MODE_DIRECT."</OPTION>
+ if (OUTPUT_MODE == "direct") OUTPUT_HTML(" selected=\"selected\"");
+ OUTPUT_HTML(">".MODE_DIRECT."</OPTION>
</SELECT>
</TD>
</TR>
<TD>
<SELECT name=\"warn_no_pass\" size=\"1\" class=\"install_select\">
<OPTION value=\"true\"");
- if (warn_no_pass) OUTPUT_HTML (" selected=\"selected\"");
- OUTPUT_HTML (">".YES."</OPTION>
+ if (warn_no_pass) OUTPUT_HTML(" selected=\"selected\"");
+ OUTPUT_HTML(">".YES."</OPTION>
<OPTION value=\"false\"");
- if (!warn_no_pass) OUTPUT_HTML (" selected=\"selected\"");
- OUTPUT_HTML (">".NO."</OPTION>
+ if (!warn_no_pass) OUTPUT_HTML(" selected=\"selected\"");
+ OUTPUT_HTML(">".NO."</OPTION>
</SELECT>
</TD>
</TR>
<TD>
<SELECT name=\"wfooter\" size=\"1\" class=\"install_select\">
<OPTION value=\"true\"");
- if (WRITE_FOOTER) OUTPUT_HTML (" selected=\"selected\"");
- OUTPUT_HTML (">".YES."</OPTION>
+ if (WRITE_FOOTER) OUTPUT_HTML(" selected=\"selected\"");
+ OUTPUT_HTML(">".YES."</OPTION>
<OPTION value=\"false\"");
- if (!WRITE_FOOTER) OUTPUT_HTML (" selected=\"selected\"");
- OUTPUT_HTML (">".NO."</OPTION>
+ if (!WRITE_FOOTER) OUTPUT_HTML(" selected=\"selected\"");
+ OUTPUT_HTML(">".NO."</OPTION>
</SELECT>
</TD>
</TR>
<TD>
<SELECT name=\"frameset\" size=\"1\" class=\"install_select\">
<OPTION value=\"true\"");
- if (frameset_active) OUTPUT_HTML (" selected=\"selected\"");
- OUTPUT_HTML (">".YES."</OPTION>
+ if (frameset_active) OUTPUT_HTML(" selected=\"selected\"");
+ OUTPUT_HTML(">".YES."</OPTION>
<OPTION value=\"false\"");
- if (!frameset_active) OUTPUT_HTML (" selected=\"selected\"");
- OUTPUT_HTML (">".NO."</OPTION>
+ if (!frameset_active) OUTPUT_HTML(" selected=\"selected\"");
+ OUTPUT_HTML(">".NO."</OPTION>
</SELECT>
</TD>
</TR>
<TD>
<SELECT name=\"blink\" size=\"1\" class=\"install_select\">
<OPTION value=\"true\"");
- if (ENABLE_BACKLINK) OUTPUT_HTML (" selected=\"selected\"");
- OUTPUT_HTML (">".YES."</OPTION>
+ if (ENABLE_BACKLINK) OUTPUT_HTML(" selected=\"selected\"");
+ OUTPUT_HTML(">".YES."</OPTION>
<OPTION value=\"false\"");
- if (!ENABLE_BACKLINK) OUTPUT_HTML (" selected=\"selected\"");
- OUTPUT_HTML (">".NO."</OPTION>
+ if (!ENABLE_BACKLINK) OUTPUT_HTML(" selected=\"selected\"");
+ OUTPUT_HTML(">".NO."</OPTION>
</SELECT>
</TD>
</TR>
<TD colspan=\"2\" align=\"center\">");
foreach ($mysql as $key=>$value)
{
- OUTPUT_HTML (" <INPUT type=\"hidden\" name=\"mysql[".$key."]\" value=\"".$value."\">");
+ OUTPUT_HTML(" <INPUT type=\"hidden\" name=\"mysql[".$key."]\" value=\"".$value."\">");
}
- OUTPUT_HTML (" <INPUT type=\"hidden\" name=\"spath\" value=\"".__SPATH_VALUE."\">
+ OUTPUT_HTML(" <INPUT type=\"hidden\" name=\"spath\" value=\"".__SPATH_VALUE."\">
<INPUT type=\"hidden\" name=\"burl\" value=\"".__BURL_VALUE."\">
<INPUT type=\"hidden\" name=\"title\" value=\"".__TITLE_VALUE."\">
<INPUT type=\"hidden\" name=\"slogan\" value=\"".__SLOGAN_VALUE."\">
define('__BURL_VALUE' , $_POST['burl']);
define('__TITLE_VALUE', $_POST['title']);
- OUTPUT_HTML ("<FORM action=\"".__BURL_ACTION."/install.php?page=2\" method=\"POST\">
+ OUTPUT_HTML("<FORM action=\"".__BURL_ACTION."/install.php?page=2\" method=\"POST\">
<TABLE border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"install_content\">
<TR>
<TD align=\"center\">
elseif (mxchange_installed)
{
// Redirection after writing data... :-)
- OUTPUT_HTML ("<SPAN class=\"install_finished\">".INSTALL_FINISHED."</SPAN><BR>
+ OUTPUT_HTML("<SPAN class=\"install_finished\">".INSTALL_FINISHED."</SPAN><BR>
<BR>
<SPAN class=\"install_security\">".INSTALL_FIN_SECU."</SPAN><BR>
<BR>
break;
default:
- OUTPUT_HTML (" <STRONG class=\"install_error\">".WRONG_PAGE."</STRONG>");
+ OUTPUT_HTML(" <STRONG class=\"install_error\">".WRONG_PAGE."</STRONG>");
break;
}
}
ORDER BY type", array($POINTS), __FILE__, __LINE__);
if (SQL_NUMROWS($result) > 0)
{
- OUTPUT_HTML ("<BR><DIV align=\"center\">
+ OUTPUT_HTML("<BR><DIV align=\"center\">
<DIV align=\"center\"><STRONG>".PAYOUT_NOW.":</STRONG></DIV><BR>
<UL>");
// Now let's check
{
// Ok we found one
$P = $POINTS * $rate - 0.5;
- OUTPUT_HTML ("<LI>".PAYOUT_IN.": <STRONG><A href=\"".URL."/modules.php?module=login&what=payout&payout=".$id."\">".$type." (".PAYOUT_MAX." ".round($P)." ".$type.")</A></STRONG></LI>");
+ OUTPUT_HTML("<LI>".PAYOUT_IN.": <STRONG><A href=\"".URL."/modules.php?module=login&what=payout&payout=".$id."\">".$type." (".PAYOUT_MAX." ".round($P)." ".$type.")</A></STRONG></LI>");
}
}
// Free memory
SQL_FREERESULT($result);
- OUTPUT_HTML ("</UL></DIV>");
+ OUTPUT_HTML("</UL></DIV>");
}
else
{
// No payout types setup so far
- OUTPUT_HTML ("<P><FONT class=\"guest_failed\">".PAYOUT_NO_PAYOUT_TYPES."</FONT></P>");
+ OUTPUT_HTML("<P><FONT class=\"guest_failed\">".PAYOUT_NO_PAYOUT_TYPES."</FONT></P>");
}
}
else
{
// Points is empty
- OUTPUT_HTML ("<P><FONT class=\"guest_failed\">".PAYOUT_NO_POINTS_ENTERED."</FONT></P>");
+ OUTPUT_HTML("<P><FONT class=\"guest_failed\">".PAYOUT_NO_POINTS_ENTERED."</FONT></P>");
}
}
//
$array[$name] = "";
$eval = "\$OUT = REGISTER_".strtoupper($name)."_REQUIRED;";
eval($eval);
- OUTPUT_HTML ("<STRONG><SPAN class=\"register_failed\">".$OUT."</SPAN></STRONG><BR><BR>");
+ OUTPUT_HTML("<STRONG><SPAN class=\"register_failed\">".$OUT."</SPAN></STRONG><BR><BR>");
}
}
else
{
// Output directly (default)
- OUTPUT_HTML ($OUT);
+ OUTPUT_HTML($OUT);
}
}
//
else
{
// Output generated code
- OUTPUT_HTML ($OUT);
+ OUTPUT_HTML($OUT);
}
}
//
else
{
// Output code
- OUTPUT_HTML ($OUT);
+ OUTPUT_HTML($OUT);
}
}
//
else
{
// Output code
- OUTPUT_HTML ($OUT);
+ OUTPUT_HTML($OUT);
}
}
// Create email link to user's account
if (!empty($_GET['register']))
{
// Registration of first admin is done
- if ($_GET['register'] == "done") OUTPUT_HTML ("<STRONG class=\"admin\">".ADMIN_REGISTER_DONE."</STRONG>");
+ if ($_GET['register'] == "done") OUTPUT_HTML("<STRONG class=\"admin\">".ADMIN_REGISTER_DONE."</STRONG>");
}
// Check if the admin has submitted data or not
}
else
{
- OUTPUT_HTML ("<STRONG class=\"admin_fatal\">".ADMIN_LOGIN_FAILED."</STRONG>");
+ OUTPUT_HTML("<STRONG class=\"admin_fatal\">".ADMIN_LOGIN_FAILED."</STRONG>");
ADD_FATAL(CANNOT_REGISTER_SESS);
}
break;
else
{
// Something went wrong here...
- OUTPUT_HTML ("<STRONG class=\"admin_fatal\">".ADMIN_LOGOUT_FAILED."</STRONG>");
+ OUTPUT_HTML("<STRONG class=\"admin_fatal\">".ADMIN_LOGOUT_FAILED."</STRONG>");
// Add fatal message
ADD_FATAL(CANNOT_UNREG_SESS);
else
{
// Login failed (cookies enabled?)
- OUTPUT_HTML ("<STRONG class=\"admin_fatal\">".ADMIN_LOGIN_FAILED."</STRONG>");
+ OUTPUT_HTML("<STRONG class=\"admin_fatal\">".ADMIN_LOGIN_FAILED."</STRONG>");
ADD_FATAL(CANNOT_RE_REGISTER_SESS);
}
break;
return $ret;
}
//
-function admin_WriteData ($file, $COMMENT, $PREFIX, $SUFFIX, $DATA, $SEEK=0)
+function admin_WriteData ($file, $comment, $prefix, $suffix, $DATA, $seek=0)
{
- $DONE = false; $SEEK++; $found = false;
+ $done = false; $seek++; $found = false;
if (file_exists($file))
{
- $search = "CFG: ".$COMMENT;
+ $search = "CFG: ".$comment;
$tmp = $file.".tmp";
- $fp = fopen($file, 'r') or OUTPUT_HTML ("<STRONG>READ:</STRONG> ".$file."<BR>");
+ $fp = fopen($file, 'r') or OUTPUT_HTML("<STRONG>READ:</STRONG> ".$file."<BR>");
if ($fp)
{
- $fp_tmp = fopen($tmp, 'w') or OUTPUT_HTML ("<STRONG>WRITE:</STRONG> ".$tmp."<BR>");
+ $fp_tmp = fopen($tmp, 'w') or OUTPUT_HTML("<STRONG>WRITE:</STRONG> ".$tmp."<BR>");
if ($fp_tmp)
{
while (! feof($fp))
if (strpos($line, $search) > -1) { $next = 0; $found = true; }
if ($next > -1)
{
- if ($next == $SEEK)
+ if ($next == $seek)
{
$next = -1;
- $line = $PREFIX.$DATA.$SUFFIX."\n";
+ $line = $prefix . $DATA . $suffix."\n";
}
else
{
}
fclose($fp_tmp);
// Finished writing tmp file
- $DONE = true;
+ $done = true;
}
fclose($fp);
- if (($DONE) && ($found))
+ if (($done) && ($found))
{
// Copy back tmp file and delete tmp :-)
@copy($tmp, $file);
}
elseif (!$found)
{
- OUTPUT_HTML ("<STRONG>CHANGE:</STRONG> 404!");
+ OUTPUT_HTML("<STRONG>CHANGE:</STRONG> 404!");
define ('_FATAL', true);
}
else
{
- OUTPUT_HTML ("<STRONG>TMP:</STRONG> UNDONE!");
+ OUTPUT_HTML("<STRONG>TMP:</STRONG> UNDONE!");
define ('_FATAL', true);
}
}
}
else
{
- OUTPUT_HTML ("<STRONG>404:</STRONG> ".$file."<BR>");
+ OUTPUT_HTML("<STRONG>404:</STRONG> ".$file."<BR>");
}
}
//
function ADMIN_DO_ACTION($wht)
{
- global $menuDesription, $MTITLE, $CONFIG, $EXTENSIONS, $link, $DATA;
+ global $menuDesription, $menuTitle, $CONFIG, $EXTENSIONS, $link, $DATA;
//* DEBUG: */ echo __LINE__."*".$wht."/".$GLOBALS['module']."/".$GLOBALS['action']."/".$GLOBALS['what']."*<br />\n";
if (EXT_IS_ACTIVE("cache"))
{
//
function ADD_ADMIN_MENU($act, $wht,$return=false)
{
- global $_GET, $menuDesription, $MTITLE, $link;
+ global $_GET, $menuDesription, $menuTitle, $link;
$SUB = false;
// Menu descriptions
$menuDesription = array();
- $MTITLE = array();
+ $menuTitle = array();
// Build main menu
$result_main = SQL_QUERY("SELECT action, title, descr FROM "._MYSQL_PREFIX."_admin_menu WHERE what='' ORDER BY sort, id DESC", __FILE__, __LINE__);
if (!$SUB)
{
// Insert compiled menu title and description
- $MTITLE[$menu] = $title;
+ $menuTitle[$menu] = $title;
$menuDesription[$menu] = $descr;
}
$OUT .= "<TR>
if ((SQL_NUMROWS($result_what) > 0) && ($act == $menu))
{
$menuDesription = array();
- $MTITLE = array(); $SUB = true;
+ $menuTitle = array(); $SUB = true;
$OUT .= "<TR>
<TD width=\"10\" class=\"seperator\"> </TD>
<TD class=\"admin_menu\">
if ($ACL)
{
// Insert compiled title and description
- $MTITLE[$wht_sub] = $title_what;
+ $menuTitle[$wht_sub] = $title_what;
$menuDesription[$wht_sub] = $desc_what;
$OUT .= "<TR>
<TD class=\"admin_menu\" colspan=\"2\">
if ($return) {
return $OUT;
} else {
- OUTPUT_HTML ($OUT);
+ OUTPUT_HTML($OUT);
}
}
//
else
{
// User not found!
- OUTPUT_HTML ("<STRONG class=\"admin_failed\">".ADMIN_MEMBER_404_1.$_GET['u_id'].ADMIN_MEMBER_404_2."</STRONG>");
+ OUTPUT_HTML("<STRONG class=\"admin_failed\">".ADMIN_MEMBER_404_1.$_GET['u_id'].ADMIN_MEMBER_404_2."</STRONG>");
}
}
else
OPEN_TABLE("100%", "admin_content admin_content_align", "");
// List all menu points and make them editable
-OUTPUT_HTML ("<BR><BR></FONT>
+OUTPUT_HTML("<BR><BR></FONT>
<DIV align=\"center\">");
if ((isset($_POST['edit'])) && ($chk > 0) && (!IS_DEMO()))
{
LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_NO_MENUS_FOUND);
}
}
-OUTPUT_HTML ("</DIV>");
+OUTPUT_HTML("</DIV>");
CLOSE_TABLE();
//
?>
array($_POST['login'], generateHash($_POST['pass1']), $_POST['email']), __FILE__, __LINE__);
// Admin login saved
- LOAD_TEMPLATE ("admin_settings_saved", false, "<FONT class=\"admin_done\">".ADMIN_ADMINS_ADD_DONE."</FONT>");
+ LOAD_TEMPLATE("admin_settings_saved", false, "<FONT class=\"admin_done\">".ADMIN_ADMINS_ADD_DONE."</FONT>");
// Remove cache file
if (EXT_IS_ACTIVE("cache"))
{
// Save settings
ADMIN_SAVE_SETTINGS($_POST, "_config", "config='0'");
- OUTPUT_HTML ("<A href=\"".URL."/modules.php?module=admin&what=config_home&sub=settings\">".ADMIN_CONTINUE_TO_CONFIG."</A>");
+ OUTPUT_HTML("<A href=\"".URL."/modules.php?module=admin&what=config_home&sub=settings\">".ADMIN_CONTINUE_TO_CONFIG."</A>");
}
else
{
{
// Nothing selected
LOAD_TEMPLATE("admin_settings_saved", false, MODS_NOTHING_SELECTED);
- OUTPUT_HTML ("<BR>");
+ OUTPUT_HTML("<BR>");
// Remove maybe confusing data
unset($_POST['edit']);
// Entries updated
LOAD_TEMPLATE("admin_settings_saved", false, MODS_CHANGED);
- OUTPUT_HTML ("<BR>");
+ OUTPUT_HTML("<BR>");
}
if ($SEL == 0)
{
// Members has requested payouts
SQL_FREERESULT($result_mem);
- OUTPUT_HTML ("<P><A href=\"".URL."/modules.php?module=admin&what=list_payouts\">".ADMIN_PAYOUT_LIST_REQUESTS."</A></P>");
+ OUTPUT_HTML("<P><A href=\"".URL."/modules.php?module=admin&what=list_payouts\">".ADMIN_PAYOUT_LIST_REQUESTS."</A></P>");
}
elseif ($display)
{
// No member requests so far
- OUTPUT_HTML ("<P><STRONG>".ADMIN_PAYOUT_NO_MEMBER_REQUESTS."</STRONG></P>");
+ OUTPUT_HTML("<P><STRONG>".ADMIN_PAYOUT_NO_MEMBER_REQUESTS."</STRONG></P>");
}
// Add new paypout type
if ($display) LOAD_TEMPLATE("admin_payout_add_new");
$_POST['points'],
$_POST['info']
), __FILE__, __LINE__);
- LOAD_TEMPLATE ("admin_settings_saved", false, RALLYE_PRICE_LEVEL_SAVED);
+ LOAD_TEMPLATE("admin_settings_saved", false, RALLYE_PRICE_LEVEL_SAVED);
}
else
{
SQL_FREERESULT($result);
// Price level found!
- LOAD_TEMPLATE ("admin_settings_saved", false, RALLYE_PRICE_ALREADY_FOUND);
+ LOAD_TEMPLATE("admin_settings_saved", false, RALLYE_PRICE_ALREADY_FOUND);
}
}
}
}
// Output message
- LOAD_TEMPLATE ("admin_settings_saved", false, RALLYE_ENTRIES_DELETED);
+ LOAD_TEMPLATE("admin_settings_saved", false, RALLYE_ENTRIES_DELETED);
}
else
{
- LOAD_TEMPLATE ("admin_settings_saved", false, RALLYE_ENTRIES_NOT_DELETED);
+ LOAD_TEMPLATE("admin_settings_saved", false, RALLYE_ENTRIES_NOT_DELETED);
}
}
elseif (isset($_POST['change']))
}
// Output message
- LOAD_TEMPLATE ("admin_settings_saved", false, RALLYE_ENTRIES_CHANGED);
+ LOAD_TEMPLATE("admin_settings_saved", false, RALLYE_ENTRIES_CHANGED);
}
if (isset($_POST['edit']))
$result = SQL_QUERY_ESC("UPDATE "._MYSQL_PREFIX."_must_register SET field_required='%s' WHERE id=%d AND field_required != '%s' LIMIT 1",
array($value, bigintval($id), $value),__FILE__, __LINE__);
}
- LOAD_TEMPLATE ("admin_settings_saved", false, REGISTER_ADMIN_CHANGES_SAVED);
+ LOAD_TEMPLATE("admin_settings_saved", false, REGISTER_ADMIN_CHANGES_SAVED);
}
// List all register values
array(bigintval($stats_id)), __FILE__, __LINE__);
// Output link for manually removing stats entry
- LOAD_TEMPLATE ("admin_settings_saved", false, "<A href=\"".URL."/modules.php?module=admin&what=del_email&pid=".$_GET['mid']."\">".ADMIN_REMOVE_STATS_ENTRY."</A>");
+ LOAD_TEMPLATE("admin_settings_saved", false, "<A href=\"".URL."/modules.php?module=admin&what=del_email&pid=".$_GET['mid']."\">".ADMIN_REMOVE_STATS_ENTRY."</A>");
}
}
else
else
{
// No mail orders fond
- LOAD_TEMPLATE ("admin_settings_saved", false, ADMIN_WRONG_CALL);
+ LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_WRONG_CALL);
}
CLOSE_TABLE();
//
}
// Add description as navigation point
ADD_DESCR("admin", basename(__FILE__));
-OUTPUT_HTML ("</FONT><BR><BR>");
+OUTPUT_HTML("</FONT><BR><BR>");
//
?>
// Delete user account
DELETE_USER_ACCOUNT(bigintval($_GET['u_id']), $_POST['reason']);
- OUTPUT_HTML ("<STRONG class=\"admin_green\">".ADMIN_DEL_COMPLETED."</STRONG>");
+ OUTPUT_HTML("<STRONG class=\"admin_green\">".ADMIN_DEL_COMPLETED."</STRONG>");
}
else
{
// Account does not exists!
- OUTPUT_HTML ("<STRONG class=\"admin_failed\">".ADMIN_MEMBER_404_1.$_GET['u_id'].ADMIN_MEMBER_404_2."</STRONG>");
+ OUTPUT_HTML("<STRONG class=\"admin_failed\">".ADMIN_MEMBER_404_1.$_GET['u_id'].ADMIN_MEMBER_404_2."</STRONG>");
}
}
elseif (!empty($_POST['no']))
else
{
// Account does not exists!
- OUTPUT_HTML ("<STRONG class=\"admin_failed\">".ADMIN_MEMBER_404_1.$_GET['u_id'].ADMIN_MEMBER_404_2."</STRONG>");
+ OUTPUT_HTML("<STRONG class=\"admin_failed\">".ADMIN_MEMBER_404_1.$_GET['u_id'].ADMIN_MEMBER_404_2."</STRONG>");
}
}
CLOSE_TABLE();
else
{
// No mail orders left in pool
- OUTPUT_HTML ("<SPAN class=\"admin_failed\">".ADMIN_NO_MAILS_IN_POOL."</SPAN>");
+ OUTPUT_HTML("<SPAN class=\"admin_failed\">".ADMIN_NO_MAILS_IN_POOL."</SPAN>");
}
CLOSE_TABLE();
//
else
{
// Account does not exists!
- OUTPUT_HTML ("<STRONG class=\"admin_failed\">".ADMIN_MEMBER_404_1.$_GET['u_id'].ADMIN_MEMBER_404_2."</STRONG>");
+ OUTPUT_HTML("<STRONG class=\"admin_failed\">".ADMIN_MEMBER_404_1.$_GET['u_id'].ADMIN_MEMBER_404_2."</STRONG>");
}
CLOSE_TABLE();
//
else
{
// No mail orders fond
- OUTPUT_HTML ("<SPAN class=\"admin_failed\">".ADMIN_NO_MAILS_IN_POOL."</SPAN>");
+ OUTPUT_HTML("<SPAN class=\"admin_failed\">".ADMIN_NO_MAILS_IN_POOL."</SPAN>");
}
//
?>
if (SQL_NUMROWS($result_list) > 0)
{
// Mail orders are in pool so we can display them
- OUTPUT_HTML ("<DIV align=\"center\">
+ OUTPUT_HTML("<DIV align=\"center\">
<TABLE border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"admin_table dashed\" width=\"99%\">
<TR>
<TD colspan=\"3\" align=\"center\" height=\"25\" class=\"admin_title\">
}
// List mail
- OUTPUT_HTML ("<TR>
+ OUTPUT_HTML("<TR>
<TD class=\"bottom top2 right\" width=\"23%\" align=\"center\">
".EMAIL_SENDER.":<BR>
<STRONG class=\"admin_misc\">".ADMIN_USER_PROFILE_LINK($pool[1])."</STRONG>
if ($PAGES > 1) ADD_EMAIL_NAV($PAGES, $CONFIG['mails_page'], false, "3");
// Output footer
- OUTPUT_HTML ("</TABLE>
+ OUTPUT_HTML("</TABLE>
</DIV>");
$MAIL = true;
if ((EXT_IS_ACTIVE("bonus")) && ($WHO == _ALL))
{
// Check only if bonus extension is active
- if (SQL_NUMROWS($result_bonus) > 0) OUTPUT_HTML ("<BR><BR>");
+ if (SQL_NUMROWS($result_bonus) > 0) OUTPUT_HTML("<BR><BR>");
}
}
if (SQL_NUMROWS($result_bonus) > 0)
{
// Mail orders are in pool so we can display them
- OUTPUT_HTML ("<DIV align=\"center\">
+ OUTPUT_HTML("<DIV align=\"center\">
<TABLE border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"admin_table dashed\" width=\"99%\">
<TR>
<TD colspan=\"3\" align=\"center\" height=\"25\" class=\"admin_title\">
$unconfirmed = "<STRONG><A href=\"".URL."/modules.php?module=admin&what=list_unconfirmed&bid=".$bonus[0]."\">".$unconfirmed."</A></STRONG>";
}
- OUTPUT_HTML ("<TR>
+ OUTPUT_HTML("<TR>
<TD class=\"bottom top2 right\" colspan=\"2\" width=\"46%\" align=\"center\">
".EMAIL_SUBJECT.":<BR>
<STRONG class=\"admin_misc\">".$bonus[1]."</STRONG>
if ($PAGES > 1) ADD_EMAIL_NAV($PAGES, $CONFIG['mails_page'], false, "3");
// Output footer
- OUTPUT_HTML ("</TABLE>
+ OUTPUT_HTML("</TABLE>
</DIV>");
$MAIL = true;
}
if (!$MAIL)
{
// No mail orders fond
- OUTPUT_HTML ("<SPAN class=\"admin_failed\">".ADMIN_NO_MAILS_IN_POOL."</SPAN>");
+ OUTPUT_HTML("<SPAN class=\"admin_failed\">".ADMIN_NO_MAILS_IN_POOL."</SPAN>");
}
//
?>
}
// Add description as navigation point
ADD_DESCR("admin", basename(__FILE__));
-OUTPUT_HTML ("</FONT><BR>");
+OUTPUT_HTML("</FONT><BR>");
OPEN_TABLE("100%", "admin_content admin_content_align", "");
CLOSE_TABLE();
}
// Extensions changed
- OUTPUT_HTML ("<P align=\"center\">");
+ OUTPUT_HTML("<P align=\"center\">");
LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_EXT_CHANGED);
- OUTPUT_HTML ("</P>");
+ OUTPUT_HTML("</P>");
} else {
// Edit selected entries
$SW = "2"; $OUT = "";
LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_NO_EXTENSION_REGISTERED."</FONT>");
}
// Link for checking for new or updated extensions
- OUTPUT_HTML ("<BR><A href=\"".URL."/modules.php?module=admin&what=extensions&do=search\">".ADMIN_SEARCH_NEW_EXTENSIONS."</A>");
+ OUTPUT_HTML("<BR><A href=\"".URL."/modules.php?module=admin&what=extensions&do=search\">".ADMIN_SEARCH_NEW_EXTENSIONS."</A>");
break;
case "register": // Register new extension
}
// Add description as navigation point
ADD_DESCR("admin", basename(__FILE__));
-OUTPUT_HTML ("</FONT><BR>");
+OUTPUT_HTML("</FONT><BR>");
OPEN_TABLE("100%", "admin_content admin_content_align", "");
OPEN_TABLE("100%", "admin_content admin_content_align", "");
// List all menu points and make them editable
-OUTPUT_HTML ("<BR><BR></FONT>
+OUTPUT_HTML("<BR><BR></FONT>
<DIV align=\"center\">");
if ((isset($_POST['edit'])) && ($chk > 0) && (!IS_DEMO()))
{
LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_NO_MENUS_FOUND);
}
}
-OUTPUT_HTML ("</DIV>");
+OUTPUT_HTML("</DIV>");
CLOSE_TABLE();
//
?>
}
// Add description as navigation point
ADD_DESCR("admin", basename(__FILE__));
-OUTPUT_HTML ("</FONT><BR><BR>");
+OUTPUT_HTML("</FONT><BR><BR>");
//
?>
}
// Add description as navigation point
ADD_DESCR("admin", basename(__FILE__));
-OUTPUT_HTML ("</FONT><BR><BR>");
+OUTPUT_HTML("</FONT><BR><BR>");
//
?>
else
{
// Cannot load payout id
- OUTPUT_HTML ("<STRONG class=\"admin_failed\">".PAYOUT_FAILED_OBTAIN_PAYOUT_ID."</STRONG>");
+ OUTPUT_HTML("<STRONG class=\"admin_failed\">".PAYOUT_FAILED_OBTAIN_PAYOUT_ID."</STRONG>");
}
}
else
$result = SQL_QUERY_ESC("SELECT userid, sex, surname, family, email, status, joined FROM "._MYSQL_PREFIX."_user_data WHERE refid=%d ORDER BY userid",
array(bigintval($_GET['u_id'])), __FILE__, __LINE__);
- OUTPUT_HTML (ADMIN_TOTAL_REFS_1."".ADMIN_USER_PROFILE_LINK($_GET['u_id'])."".ADMIN_TOTAL_REFS_2.$menge.ADMIN_TOTAL_REFS_3.$menge_lck.ADMIN_TOTAL_REFS_4."<BR><BR>");
+ OUTPUT_HTML(ADMIN_TOTAL_REFS_1."".ADMIN_USER_PROFILE_LINK($_GET['u_id'])."".ADMIN_TOTAL_REFS_2.$menge.ADMIN_TOTAL_REFS_3.$menge_lck.ADMIN_TOTAL_REFS_4."<BR><BR>");
if ($result)
{
$rows = SQL_NUMROWS($result);
else
{
// Account does not exists!
- OUTPUT_HTML ("<STRONG class=\"admin_failed\">".ADMIN_MEMBER_404_1.$_GET['u_id'].ADMIN_MEMBER_404_2."</STRONG>");
+ OUTPUT_HTML("<STRONG class=\"admin_failed\">".ADMIN_MEMBER_404_1.$_GET['u_id'].ADMIN_MEMBER_404_2."</STRONG>");
}
}
if (!empty($URL))
else
{
// Account does not exists!
- OUTPUT_HTML ("<STRONG class=\"admin_failed\">".ADMIN_MEMBER_404_1.$_GET['u_id'].ADMIN_MEMBER_404_2."</STRONG>");
+ OUTPUT_HTML("<STRONG class=\"admin_failed\">".ADMIN_MEMBER_404_1.$_GET['u_id'].ADMIN_MEMBER_404_2."</STRONG>");
}
}
else
$dir = PATH.LOGS_BASE."/";
if (is_dir($dir)) {
// logs directory does exist
- OUTPUT_HTML ("<OL>");
+ OUTPUT_HTML("<OL>");
$handle = @opendir($dir) or mxchange_die("Cannot open directory ".LOGS_BASE."!");
while($file = @readdir($handle)) {
// We currenly only like files with "access" as prefix, should be more flexible!
if (substr($file, 0, 6) == "access") {
// Okay, let us print it out
- OUTPUT_HTML ("<LI><A href=\"".URL."/modules.php?module=admin&what=".$GLOBALS['what']."&access=".urlencode($file)."\">".$file."</A></LI>");
+ OUTPUT_HTML("<LI><A href=\"".URL."/modules.php?module=admin&what=".$GLOBALS['what']."&access=".urlencode($file)."\">".$file."</A></LI>");
}
}
@closedir($handle);
- OUTPUT_HTML ("</OL>");
+ OUTPUT_HTML("</OL>");
}
else
{
}
// Add desciption as navigation point
ADD_DESCR("admin", basename(__FILE__));
-OUTPUT_HTML ("</FONT><BR>");
+OUTPUT_HTML("</FONT><BR>");
OPEN_TABLE("100%", "admin_content admin_content_align", "");
OPEN_TABLE("100%", "admin_content admin_content_align", "");
// List all menu points and make them editable
-OUTPUT_HTML ("<BR><BR></FONT>
+OUTPUT_HTML("<BR><BR></FONT>
<DIV align=\"center\">");
if ((isset($_POST['edit'])) && ($chk > 0) && (!IS_DEMO()))
{
LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_NO_MENUS_FOUND);
}
}
-OUTPUT_HTML ("</DIV>");
+OUTPUT_HTML("</DIV>");
CLOSE_TABLE();
//
?>
{
// Prepare content
$content = array(
- 'title' => $MTITLE[$key],
+ 'title' => $menuTitle[$key],
'text' => $value
);
}
// Mail inserted into bonus pool
- LOAD_TEMPLATE ("admin_settings_saved", false, ADMIN_BONUS_SEND);
+ LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_BONUS_SEND);
}
else
{
// More entered than can be reached!
- LOAD_TEMPLATE ("admin_settings_saved", false, ADMIN_MORE_SELECTED);
+ LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_MORE_SELECTED);
}
if (!empty($URL))
{
else
{
// No cateogries are defined yet
- OUTPUT_HTML ("<STRONG><SPAN class=\"member_failed\">".MEMBER_NO_CATS."</SPAN></STRONG>");
+ OUTPUT_HTML("<STRONG><SPAN class=\"member_failed\">".MEMBER_NO_CATS."</SPAN></STRONG>");
}
}
else
{
// User not found!
- OUTPUT_HTML ("<STRONG class=\"admin_failed\">".ADMIN_MEMBER_404_1.$_GET['u_id'].ADMIN_MEMBER_404_2."</STRONG>");
+ OUTPUT_HTML("<STRONG class=\"admin_failed\">".ADMIN_MEMBER_404_1.$_GET['u_id'].ADMIN_MEMBER_404_2."</STRONG>");
}
}
else
// Output message
LOAD_TEMPLATE("admin_settings_saved", false, $msg);
- OUTPUT_HTML ("<BR>");
+ OUTPUT_HTML("<BR>");
}
// Initialize array
else
{
// Wrong call!
- LOAD_TEMPLATE ("admin_settings_saved", false, ADMIN_WRONG_CALL);
+ LOAD_TEMPLATE("admin_settings_saved", false, ADMIN_WRONG_CALL);
}
}
else
{
$content = substr(substr($content, 0, $body_end), $body_start);
$content = substr($content, strpos($content, ">") + 1);
- OUTPUT_HTML ("<DIV align=\"left\">
+ OUTPUT_HTML("<DIV align=\"left\">
".$content."
</DIV>");
}
// Add description as navigation point
ADD_DESCR("admin", basename(__FILE__));
-OUTPUT_HTML ("</FONT><BR><BR>");
+OUTPUT_HTML("</FONT><BR><BR>");
// Count guests, members and admins
$result_guests = SQL_QUERY("SELECT id FROM "._MYSQL_PREFIX."_online WHERE is_admin='N' AND is_member='N'", __FILE__, __LINE__);
// Is a guest
$uid = _IS_GUEST;
}
- OUTPUT_HTML ("<TR>
+ OUTPUT_HTML("<TR>
<TD align=\"center\" width=\"5%\" class=\"switch_sw".$SW." bottom right\">".$id."</TD>
<TD align=\"center\" width=\"15%\" class=\"switch_sw".$SW." bottom right\">");
if ($uid > 0)
{
- OUTPUT_HTML (ADMIN_USER_PROFILE_LINK($uid));
+ OUTPUT_HTML(ADMIN_USER_PROFILE_LINK($uid));
}
else
{
- OUTPUT_HTML ($uid);
+ OUTPUT_HTML($uid);
}
if ($ref > 0)
{
$ref = ADMIN_USER_PROFILE_LINK($ref);
}
- OUTPUT_HTML ("</TD>
+ OUTPUT_HTML("</TD>
<TD align=\"center\" width=\"10%\" class=\"switch_sw".$SW." bottom right\">".$ip."</TD>
<TD align=\"center\" width=\"5%\" class=\"switch_sw".$SW." bottom right\">".$ref."</TD>
<TD align=\"center\" width=\"10%\" class=\"switch_sw".$SW." bottom right\">".$mod."</TD>
OPEN_TABLE("500", "guest_login_header dashed", "center");
-OUTPUT_HTML ("<BR><STRONG>".VALIDATING_LOGIN."</STRONG><BR>");
+OUTPUT_HTML("<BR><STRONG>".VALIDATING_LOGIN."</STRONG><BR>");
if (!empty($GLOBALS['userid']) && !empty($_COOKIE['u_hash']) && !empty($_COOKIE['lifetime']))
{
break;
case "test_top":
- OUTPUT_HTML ("<STRONG class=\"guest_done\">".GUEST_FRAMETESTER_TOP."</SPAN>");
+ OUTPUT_HTML("<STRONG class=\"guest_done\">".GUEST_FRAMETESTER_TOP."</SPAN>");
break;
case "back": // Back buttom
ADD_DESCR ("guest", basename(__FILE__));
OPEN_TABLE("100%", "guest_content_align", "");
-LOAD_TEMPLATE (substr(basename(__FILE__), 5, -4));
+LOAD_TEMPLATE(substr(basename(__FILE__), 5, -4));
CLOSE_TABLE();
//
?>
// Add description as navigation point
ADD_DESCR("guest", basename(__FILE__));
-OUTPUT_HTML ("<DIV align=\"center\">");
+OUTPUT_HTML("<DIV align=\"center\">");
// Check for possible running rallyes
$ADMIN = " AND d.is_active='Y'";
LOAD_TEMPLATE("guest_no_rallyes");
}
//
-OUTPUT_HTML ("</DIV>");
+OUTPUT_HTML("</DIV>");
//
?>
{
if ($_POST['agree'] == "!")
{
- OUTPUT_HTML ("<STRONG><SPAN class=\"register_failed\">".HAVE_TO_AGREE."</SPAN></STRONG><BR><BR>");
+ OUTPUT_HTML("<STRONG><SPAN class=\"register_failed\">".HAVE_TO_AGREE."</SPAN></STRONG><BR><BR>");
}
if ($_POST['addy'] == "!")
{
- OUTPUT_HTML ("<STRONG><SPAN class=\"register_failed\">".ENTER_EMAIL."</SPAN></STRONG><BR><BR>");
+ OUTPUT_HTML("<STRONG><SPAN class=\"register_failed\">".ENTER_EMAIL."</SPAN></STRONG><BR><BR>");
$_POST['addy'] = "";
}
elseif ($_POST['addy'] == "?")
{
- OUTPUT_HTML ("<STRONG><SPAN class=\"register_failed\">".EMAIL_ALREADY_DB."</SPAN></STRONG><BR><BR>");
+ OUTPUT_HTML("<STRONG><SPAN class=\"register_failed\">".EMAIL_ALREADY_DB."</SPAN></STRONG><BR><BR>");
$_POST['addy'] = "";
}
if ($_POST['surname'] == "!")
{
- OUTPUT_HTML ("<STRONG><SPAN class=\"register_failed\">".ENTER_SURNAME."</SPAN></STRONG><BR><BR>");
+ OUTPUT_HTML("<STRONG><SPAN class=\"register_failed\">".ENTER_SURNAME."</SPAN></STRONG><BR><BR>");
$_POST['surname'] = "";
}
if ($_POST['family_name'] == "!")
{
- OUTPUT_HTML ("<STRONG><SPAN class=\"register_failed\">".ENTER_FAMILY."</SPAN></STRONG><BR><BR>");
+ OUTPUT_HTML("<STRONG><SPAN class=\"register_failed\">".ENTER_FAMILY."</SPAN></STRONG><BR><BR>");
$_POST['family_name'] = "";
}
if (($_POST['pass1'] == "!") && ($_POST['pass2'] == "!"))
{
- OUTPUT_HTML ("<STRONG><SPAN class=\"register_failed\">".ENTER_BOTH_PASSWORDS."</SPAN></STRONG><BR><BR>");
+ OUTPUT_HTML("<STRONG><SPAN class=\"register_failed\">".ENTER_BOTH_PASSWORDS."</SPAN></STRONG><BR><BR>");
}
elseif ($_POST['pass1'] == "!")
{
- OUTPUT_HTML ("<STRONG><SPAN class=\"register_failed\">".ENTER_PASS1."</SPAN></STRONG><BR><BR>");
+ OUTPUT_HTML("<STRONG><SPAN class=\"register_failed\">".ENTER_PASS1."</SPAN></STRONG><BR><BR>");
}
elseif ($_POST['pass2'] == "!")
{
- OUTPUT_HTML ("<STRONG><SPAN class=\"register_failed\">".ENTER_PASS2."</SPAN></STRONG><BR><BR>");
+ OUTPUT_HTML("<STRONG><SPAN class=\"register_failed\">".ENTER_PASS2."</SPAN></STRONG><BR><BR>");
}
if ($SHORT_PASS)
{
- OUTPUT_HTML ("<STRONG><SPAN class=\"register_failed\">".SHORT_PASS.": ".$CONFIG['pass_len']."</SPAN></STRONG><BR><BR>");
+ OUTPUT_HTML("<STRONG><SPAN class=\"register_failed\">".SHORT_PASS.": ".$CONFIG['pass_len']."</SPAN></STRONG><BR><BR>");
}
if ($IP_TIMEOUT)
{
- OUTPUT_HTML ("<STRONG><SPAN class=\"register_failed\">".REMOTE_ADDR_TIMEOUT."</SPAN></STRONG><BR><BR>");
+ OUTPUT_HTML("<STRONG><SPAN class=\"register_failed\">".REMOTE_ADDR_TIMEOUT."</SPAN></STRONG><BR><BR>");
}
if ((!empty($cats)) && ($cats < $CONFIG['least_cats']))
{
- OUTPUT_HTML ("<STRONG><SPAN class=\"register_failed\">".CATS_LEAST.": ".$CONFIG['least_cats']."</SPAN></STRONG><BR><BR>");
+ OUTPUT_HTML("<STRONG><SPAN class=\"register_failed\">".CATS_LEAST.": ".$CONFIG['least_cats']."</SPAN></STRONG><BR><BR>");
}
// Generate birthday selection
if ((SQL_NUMROWS($guest_t10) > 0) || (SQL_NUMROWS($mem_t10) > 0))
{
// Output header
- OUTPUT_HTML ("<TABLE border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"guest_table dashed\" width=\"310\">
+ OUTPUT_HTML("<TABLE border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"guest_table dashed\" width=\"310\">
<TR>
<TD align=\"center\" class=\"guest_stats_title bottom2\" colspan=\"2\"><STRONG>".GUEST_TOPTEN_STATS."</STRONG></TD>
</TR>");
if (SQL_NUMROWS($guest_t10) > 0)
{
// Guest clicks
- OUTPUT_HTML ("<TR>
+ OUTPUT_HTML("<TR>
<TD align=\"center\" class=\"guest_title2 bottom2\" colspan=\"2\">".GUEST_TOP_GUEST_STATS."</TD>
</TR>");
$SW = 2;
while (list($clicks, $title) = SQL_FETCHROW($guest_t10))
{
- OUTPUT_HTML ("<TR>
+ OUTPUT_HTML("<TR>
<TD class=\"switch_sw".$SW." bottom2 right2\" align=\"right\" width=\"250\">".$title." </TD>
<TD class=\"switch_sw".$SW." bottom2\" width=\"50\"> ".$clicks."</TD>
</TR>");
if (SQL_NUMROWS($guest_t10) > 0)
{
// Guest clicks
- OUTPUT_HTML ("<TR>
+ OUTPUT_HTML("<TR>
<TD align=\"center\" class=\"guest_title2 bottom2\" colspan=\"2\">".GUEST_TOP_MEMBER_STATS."</TD>
</TR>");
$SW = 2;
while (list($clicks, $title) = SQL_FETCHROW($mem_t10))
{
- OUTPUT_HTML ("<TR>
+ OUTPUT_HTML("<TR>
<TD class=\"switch_sw".$SW." bottom2 right2\" align=\"right\" width=\"250\">".$title." </TD>
<TD class=\"switch_sw".$SW." bottom2\" width=\"50\"> ".$clicks."</TD>
</TR>");
if ((SQL_NUMROWS($guest_t10) > 0) || (SQL_NUMROWS($mem_t10) > 0))
{
// Output footer
- OUTPUT_HTML ("<TR>
+ OUTPUT_HTML("<TR>
<TD align=\"center\" class=\"guest_stats_footer\" colspan=\"2\"><A href=\"".URL."/modules.php?module=index&what=stats&mode=".$lmode."\">".$ltitle."</A></TD>
</TR>
</TABLE>");
// Some advertising stuff?
LOAD_TEMPLATE("guest_advert2");
- OUTPUT_HTML (" </TD>
+ OUTPUT_HTML(" </TD>
</TR>");
// Goto TOP template
LOAD_TEMPLATE("member_header");
// Adding your title's template here...
-OUTPUT_HTML ("<TR>
+OUTPUT_HTML("<TR>
<TD class=\"member_menu\">");
// Adding the main content module here
ADD_MENU("member", GET_ACTION("member", $GLOBALS['what']), $GLOBALS['what']);
}
-OUTPUT_HTML (" </TD>
+OUTPUT_HTML(" </TD>
<TD valign=\"top\" align=\"center\" rowspan=\"3\" class=\"member_content\">");
$INC_ACTION = sprintf(PATH."inc/modules/member/action-%s.php", $act);
if (($CONFIG['member_menu'] == 'Y') || (!EXT_IS_ACTIVE("sql_patches", true)))
{
- OUTPUT_HTML (" <BR></TD>
+ OUTPUT_HTML(" <BR></TD>
</TR>
<TR>
<TD align=\"center\" valign=\"top\" class=\"member_advert\">");
LOAD_TEMPLATE("member_advert");
}
-OUTPUT_HTML (" </TD>
+OUTPUT_HTML(" </TD>
</TR>");
// Load same template for "Goto TOP"
// Add description as navigation point
ADD_DESCR("member", basename(__FILE__));
-OUTPUT_HTML ("</FONT><BR>");
+OUTPUT_HTML("</FONT><BR>");
// Autopurge installed?
$LAST = "%s"; $ONLINE = "";
// Add description as navigation point
ADD_DESCR("member", basename(__FILE__));
-OUTPUT_HTML ("</FONT><BR>");
+OUTPUT_HTML("</FONT><BR>");
if (GET_EXT_VERSION("bonus") >= "0.6.9")
{
// Do we have already submit the form?
if (!empty($_POST['nickname']))
{
- OUTPUT_HTML ("<STRONG class=\"member_failed\">".NICKNAME_IS_INVALID."</STRONG><P></P>");
+ OUTPUT_HTML("<STRONG class=\"member_failed\">".NICKNAME_IS_INVALID."</STRONG><P></P>");
}
// Load Template
else
{
// No mail types defined
- OUTPUT_HTML ("<STRONG><SPAN class=\"member_failed\">".MEMBER_NO_PAYMENTS."</SPAN></STRONG>");
+ OUTPUT_HTML("<STRONG><SPAN class=\"member_failed\">".MEMBER_NO_PAYMENTS."</SPAN></STRONG>");
}
}
else
{
// No points left!
- OUTPUT_HTML ("<STRONG><SPAN class=\"member_failed\">".MEMBER_NO_POINTS."</SPAN></STRONG>");
+ OUTPUT_HTML("<STRONG><SPAN class=\"member_failed\">".MEMBER_NO_POINTS."</SPAN></STRONG>");
}
}
else
{
// No cateogries are defined yet
- OUTPUT_HTML ("<STRONG><SPAN class=\"member_failed\">".MEMBER_NO_CATS."</SPAN></STRONG>");
+ OUTPUT_HTML("<STRONG><SPAN class=\"member_failed\">".MEMBER_NO_CATS."</SPAN></STRONG>");
}
}
elseif ($mmails == "0")
// Add description as navigation point
ADD_DESCR("member", basename(__FILE__));
-OUTPUT_HTML ("<DIV align=\"center\">");
+OUTPUT_HTML("<DIV align=\"center\">");
// Check for possible running rallyes
$ADMIN = " AND d.is_active='Y'";
LOAD_TEMPLATE("guest_no_rallyes");
}
//
-OUTPUT_HTML ("</DIV>");
+OUTPUT_HTML("</DIV>");
//
?>
list($c) = SQL_FETCHROW($result);
SQL_FREERESULT($result);
-OUTPUT_HTML ("<FONT class=\"tiny\">".YOUR_PERSONAL_REFLINK.":<BR>
+OUTPUT_HTML("<FONT class=\"tiny\">".YOUR_PERSONAL_REFLINK.":<BR>
<STRONG><A href=\"".URL."/ref.php?ref=".$GLOBALS['userid']."\" target=\"_blank\">".URL."/ref.php?ref=".$GLOBALS['userid']."</A></STRONG><BR>
<BR>");
if (!empty($nick))
{
// Display nickname link
- OUTPUT_HTML (NICKNAME_YOUR_REFLINK.":<BR>
+ OUTPUT_HTML(NICKNAME_YOUR_REFLINK.":<BR>
<STRONG><A href=\"".URL."/ref.php?ref=".$nick."\" target=\"_blank\">".URL."/ref.php?ref=".$nick."</A></STRONG><BR>
<BR>");
}
else
{
// Display link to nickname form
- OUTPUT_HTML ("<STRONG class=\"guest_note\">".NO_NICKNAME_SET."</STRONG><BR>
+ OUTPUT_HTML("<STRONG class=\"guest_note\">".NO_NICKNAME_SET."</STRONG><BR>
<A class=\"tiny\" href=\"".URL."/modules.php?module=login&what=nickname\">".PLEASE_CLICK_NICKNAME_FORM."</A>");
}
}
// Clicks on your reflink
-OUTPUT_HTML (YOUR_REFCLICKS.": <STRONG>".$c."</STRONG> ".CLICKS."</FONT><BR><BR>");
+OUTPUT_HTML(YOUR_REFCLICKS.": <STRONG>".$c."</STRONG> ".CLICKS."</FONT><BR><BR>");
$WHERE = " WHERE visible='Y'";
if (IS_ADMIN()) $WHERE = "";
$result = SQL_QUERY("SELECT id, url, alternate, counter, clicks FROM "._MYSQL_PREFIX."_refbanner", __FILE__, __LINE__);
}
// Transfer is completed
- OUTPUT_HTML ("<P>");
+ OUTPUT_HTML("<P>");
LOAD_TEMPLATE("admin_settings_saved", false, TRANSFER_COMPLETED."<BR><A href=\"".URL."/modules.php?module=login&what=transfer\">".TRANSFER_CONTINUE_OVERVIEW."</A>");
- OUTPUT_HTML ("</P>");
+ OUTPUT_HTML("</P>");
}
elseif (!$valid_code)
{
// Invalid Touring code!
- OUTPUT_HTML ("<P><STRONG class=\"member_note\">".TRANSFER_INVALID_CODE."</STRONG></P>");
+ OUTPUT_HTML("<P><STRONG class=\"member_note\">".TRANSFER_INVALID_CODE."</STRONG></P>");
unset($_POST['ok']);
}
elseif (!$valid_pass)
{
// Wrong password entered
- OUTPUT_HTML ("<P><STRONG class=\"member_note\">".TRANSFER_INVALID_PASSWORD."</STRONG></P>");
+ OUTPUT_HTML("<P><STRONG class=\"member_note\">".TRANSFER_INVALID_PASSWORD."</STRONG></P>");
unset($_POST['ok']);
}
elseif (!$valid_amount)
{
// Too much points entered
- OUTPUT_HTML ("<P><STRONG class=\"member_note\">".TRANSFER_INVALID_POINTS."</STRONG></P>");
+ OUTPUT_HTML("<P><STRONG class=\"member_note\">".TRANSFER_INVALID_POINTS."</STRONG></P>");
unset($_POST['ok']);
}
elseif (!$valid_reason)
{
// No transfer reason entered
- OUTPUT_HTML ("<P><STRONG class=\"member_note\">".TRANSFER_INVALID_REASON."</STRONG></P>");
+ OUTPUT_HTML("<P><STRONG class=\"member_note\">".TRANSFER_INVALID_REASON."</STRONG></P>");
unset($_POST['ok']);
}
elseif (!$valid_recipient)
{
// No recipient selected
- OUTPUT_HTML ("<P><STRONG class=\"member_note\">".TRANSFER_INVALID_RECIPIENT."</STRONG></P>");
+ OUTPUT_HTML("<P><STRONG class=\"member_note\">".TRANSFER_INVALID_RECIPIENT."</STRONG></P>");
unset($_POST['ok']);
}
elseif (!$valid_data)
{
// No recipient selected
- OUTPUT_HTML ("<P><STRONG class=\"member_note\">".TRANSFER_INVALID_DATA."</STRONG></P>");
+ OUTPUT_HTML("<P><STRONG class=\"member_note\">".TRANSFER_INVALID_DATA."</STRONG></P>");
unset($_POST['ok']);
}
}
$opt_in = $_POST['opt_in'];
// "Settings saved..."
- OUTPUT_HTML ("<P><STRONG class=\"member_done\">".SETTINGS_SAVED."</STRONG></P>");
+ OUTPUT_HTML("<P><STRONG class=\"member_done\">".SETTINGS_SAVED."</STRONG></P>");
}
switch ($opt_in)
{
// Add description as navigation point
ADD_DESCR ("member", basename(__FILE__));
-OUTPUT_HTML ("</FONT><BR>");
+OUTPUT_HTML("</FONT><BR>");
// Export data for template
define('_LAST_ONLINE_VALUE', MAKE_DATETIME($LAST['online']));
if ((!isset($DEPTH)) && (!$return))
{
$DEPTH = "0";
- $PREFIX = "<DIV class=\"you_are_here\">".YOU_ARE_HERE." <STRONG><A class=\"you_are_here\" href=\"".URL."/modules.php?module=".$GLOBALS['module'].$LINK_ADD."\">Home</A></STRONG>";
+ $prefix = "<DIV class=\"you_are_here\">".YOU_ARE_HERE." <STRONG><A class=\"you_are_here\" href=\"".URL."/modules.php?module=".$GLOBALS['module'].$LINK_ADD."\">Home</A></STRONG>";
}
else
{
if (!$return) $DEPTH++;
- $PREFIX = "";
+ $prefix = "";
}
- $PREFIX .= " -> ";
+ $prefix .= " -> ";
if (ereg(".php", $search))
{
$search = substr($search, 0, strpos($search, ".php"));
elseif (((GET_EXT_VERSION("sql_patches") >= "0.2.3") && ($CONFIG['youre_here'] == 'Y')) || ((IS_ADMIN()) && ($MOD_CHECK == "admin")))
{
// Output HTML code
- $OUT = $PREFIX."<STRONG><A class=\"you_are_here\" href=\"".URL."/modules.php?module=".$MOD_CHECK."&".$type."=".$search.$LINK_ADD."\">".$ret."</A></STRONG>\n";
+ $OUT = $prefix."<STRONG><A class=\"you_are_here\" href=\"".URL."/modules.php?module=".$MOD_CHECK."&".$type."=".$search.$LINK_ADD."\">".$ret."</A></STRONG>\n";
//* DEBUG: */ echo __LINE__."*".$type."/".$GLOBALS['what']."*<br />\n";
if (($type == "what") || (($type == "action") && (!isset($_GET['what'])) && ($GLOBALS['what'] != "welcome"))) {
//* DEBUG: */ echo __LINE__."+".$type."+<br />\n";
//* DEBUG: */ echo __LINE__."/".$main_cnt."/".$main_action."/".$sub_what.":".$GLOBALS['what']."*<br />\n";
if (SQL_NUMROWS($result_main) > 0)
{
- OUTPUT_HTML ("<TABLE border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"".$MODE."_menu\">");
+ OUTPUT_HTML("<TABLE border=\"0\" cellspacing=\"0\" cellpadding=\"0\" class=\"".$MODE."_menu\">");
// There are menus available, so we simply display them... :)
while (list($main_title, $main_action) = SQL_FETCHROW($result_main))
{
if ((file_exists($INC_BLOCK)) && (is_readable($INC_BLOCK)))
{
// Load include file
- if ((!EXT_IS_ACTIVE($main_action)) || ($main_action == "online")) OUTPUT_HTML ("<TR>
+ if ((!EXT_IS_ACTIVE($main_action)) || ($main_action == "online")) OUTPUT_HTML("<TR>
<TD class=\"".$MODE."_menu_whats\">");
//* DEBUG: */ echo __LINE__."/".$main_cnt."/".$main_action."/".$sub_what.":".$GLOBALS['what']."*<br />\n";
include ($INC_BLOCK);
//* DEBUG: */ echo __LINE__."/".$main_cnt."/".$main_action."/".$sub_what.":".$GLOBALS['what']."*<br />\n";
- if ((!EXT_IS_ACTIVE($main_action)) || ($main_action == "online")) OUTPUT_HTML (" </TD>
+ if ((!EXT_IS_ACTIVE($main_action)) || ($main_action == "online")) OUTPUT_HTML(" </TD>
</TR>");
}
//* DEBUG: */ echo __LINE__."/".$main_cnt."/".$main_action."/".$sub_what.":".$GLOBALS['what']."*<br />\n";
}
$main_cnt++;
//* DEBUG: */ echo __LINE__."/".$main_cnt."/".$main_action."/".$sub_what.":".$GLOBALS['what']."*<br />\n";
- if (SQL_NUMROWS($result_main) > $main_cnt) OUTPUT_HTML ("<TR><TD class=\"".$MODE."_menu_seperator\"></TD></TR>");
+ if (SQL_NUMROWS($result_main) > $main_cnt) OUTPUT_HTML("<TR><TD class=\"".$MODE."_menu_seperator\"></TD></TR>");
}
// Free memory
// Close table
//* DEBUG: */ echo __LINE__."/".$main_cnt."/".$main_action."/".$sub_what.":".$GLOBALS['what']."*<br />\n";
- OUTPUT_HTML ("</TABLE>");
+ OUTPUT_HTML("</TABLE>");
}
}
// This patched function will reduce many SELECT queries for the specified or current admin login
else
{
// Output directly (default)
- OUTPUT_HTML ($OUT);
+ OUTPUT_HTML($OUT);
}
}
//
// Exclude admin and member's area
$DESCR = MAIN_TITLE." ".trim($CONFIG['title_middle'])." ".ADD_DESCR("guest", "what-".$wht, true);
unset($DEPTH);
- OUTPUT_HTML ("<META name=\"description\" content=\"".$DESCR."\">\n");
+ OUTPUT_HTML("<META name=\"description\" content=\"".$DESCR."\">\n");
}
}
//
switch ($CONFIG['css_php'])
{
case "DIRECT":
- OUTPUT_HTML ("<LINK rel=\"stylesheet\" type=\"text/css\" href=\"".URL."/".$BASE."\">");
+ OUTPUT_HTML("<LINK rel=\"stylesheet\" type=\"text/css\" href=\"".URL."/".$BASE."\">");
break;
case "FILE":
$load = implode("", file($file));
- OUTPUT_HTML ($load);
+ OUTPUT_HTML($load);
break;
}
}
else
{
// Now we load all CSS files from css.php!
- OUTPUT_HTML ("<LINK rel=\"stylesheet\" type=\"text/css\" href=\"".URL."/css.php", false);
+ OUTPUT_HTML("<LINK rel=\"stylesheet\" type=\"text/css\" href=\"".URL."/css.php", false);
if (mxchange_installing)
{
// Default theme first
$NEW_THEME = "default";
if (!empty($_GET['theme'])) $NEW_THEME = $_GET['theme'];
if (!empty($_POST['theme'])) $NEW_THEME = $_POST['theme'];
- OUTPUT_HTML ("?theme=".$NEW_THEME."&installing=1", false);
+ OUTPUT_HTML("?theme=".$NEW_THEME."&installing=1", false);
}
- OUTPUT_HTML ("\">");
+ OUTPUT_HTML("\">");
}
//
break;
}
}
- else OUTPUT_HTML ("<STRONG class=\"member_failed\">".MAIL_ALREADY_CONFIRMED." (6)</STRONG>");
+ else OUTPUT_HTML("<STRONG class=\"member_failed\">".MAIL_ALREADY_CONFIRMED." (6)</STRONG>");
}
- else OUTPUT_HTML ("<STRONG class=\"member_failed\">".MAIL_ALREADY_CONFIRMED." (5)</STRONG>");
+ else OUTPUT_HTML("<STRONG class=\"member_failed\">".MAIL_ALREADY_CONFIRMED." (5)</STRONG>");
}
- else OUTPUT_HTML ("<STRONG class=\"member_failed\">".MAIL_ALREADY_CONFIRMED." (4)</STRONG>");
+ else OUTPUT_HTML("<STRONG class=\"member_failed\">".MAIL_ALREADY_CONFIRMED." (4)</STRONG>");
}
else
{
SQL_FREERESULT($result);
- OUTPUT_HTML ("<STRONG class=\"member_failed\">".MAIL_ALREADY_CONFIRMED." (3)</STRONG>");
+ OUTPUT_HTML("<STRONG class=\"member_failed\">".MAIL_ALREADY_CONFIRMED." (3)</STRONG>");
}
}
else
{
SQL_FREERESULT($result);
- OUTPUT_HTML ("<STRONG class=\"member_failed\">".MAIL_ALREADY_CONFIRMED." (2)</STRONG>");
+ OUTPUT_HTML("<STRONG class=\"member_failed\">".MAIL_ALREADY_CONFIRMED." (2)</STRONG>");
}
}
else
{
SQL_FREERESULT($result);
- OUTPUT_HTML ("<STRONG class=\"member_failed\">".MAIL_ALREADY_CONFIRMED." (1)</STRONG>");
+ OUTPUT_HTML("<STRONG class=\"member_failed\">".MAIL_ALREADY_CONFIRMED." (1)</STRONG>");
}
if ($mode != "img")
{