You can subscribe to this list here.
| 2005 |
Jan
|
Feb
|
Mar
(95) |
Apr
(270) |
May
(111) |
Jun
|
Jul
|
Aug
(64) |
Sep
(130) |
Oct
(319) |
Nov
(17) |
Dec
(191) |
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 2006 |
Jan
(53) |
Feb
|
Mar
|
Apr
|
May
(6) |
Jun
(387) |
Jul
(102) |
Aug
(247) |
Sep
(120) |
Oct
(1) |
Nov
(8) |
Dec
(21) |
| 2007 |
Jan
(38) |
Feb
(36) |
Mar
|
Apr
(32) |
May
(135) |
Jun
(523) |
Jul
(192) |
Aug
(103) |
Sep
(533) |
Oct
(77) |
Nov
(23) |
Dec
(203) |
| 2008 |
Jan
(312) |
Feb
(1193) |
Mar
(404) |
Apr
(67) |
May
(62) |
Jun
(497) |
Jul
(297) |
Aug
(110) |
Sep
(335) |
Oct
(256) |
Nov
(50) |
Dec
(118) |
| 2009 |
Jan
(67) |
Feb
(10) |
Mar
(1) |
Apr
(1) |
May
|
Jun
(10) |
Jul
(61) |
Aug
|
Sep
(16) |
Oct
(45) |
Nov
(12) |
Dec
(14) |
| 2010 |
Jan
(30) |
Feb
|
Mar
|
Apr
(4) |
May
|
Jun
|
Jul
(7) |
Aug
(7) |
Sep
(5) |
Oct
(5) |
Nov
|
Dec
|
| 2011 |
Jan
(7) |
Feb
(3) |
Mar
(89) |
Apr
(11) |
May
(5) |
Jun
|
Jul
(8) |
Aug
(1) |
Sep
(2) |
Oct
|
Nov
(2) |
Dec
(89) |
| 2012 |
Jan
(7) |
Feb
(1) |
Mar
(1) |
Apr
|
May
|
Jun
|
Jul
|
Aug
(4) |
Sep
(3) |
Oct
(42) |
Nov
(1) |
Dec
|
| 2013 |
Jan
|
Feb
|
Mar
(19) |
Apr
(90) |
May
(38) |
Jun
(235) |
Jul
(38) |
Aug
(10) |
Sep
|
Oct
(29) |
Nov
|
Dec
|
| 2014 |
Jan
|
Feb
|
Mar
|
Apr
(6) |
May
(52) |
Jun
|
Jul
(7) |
Aug
|
Sep
(17) |
Oct
|
Nov
|
Dec
|
Update of /cvsroot/mxbb/core/modules/mx_navmenu/templates/_core In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv10064/modules/mx_navmenu/templates/_core Removed Files: mx_menu_advanced_CSS_hor.tpl mx_menu_advanced_CSS_ver.tpl mx_menu_advanced_hor.tpl mx_menu_advanced_ver.tpl mx_menu_classic_hor.tpl mx_menu_classic_ver.tpl mx_menu_nav.tpl mx_menu_nav_horizontal.tpl mx_menu_overall_advanced.tpl mx_menu_overall_standard.tpl mx_menu_simple_CSS_hor.tpl mx_menu_simple_CSS_ver.tpl mx_menu_simple_x_hor.tpl mx_menu_simple_x_ver.tpl Log Message: removed, will be put in a /contrib folder --- mx_menu_advanced_hor.tpl DELETED --- --- mx_menu_overall_advanced.tpl DELETED --- --- mx_menu_overall_standard.tpl DELETED --- --- mx_menu_nav_horizontal.tpl DELETED --- --- mx_menu_advanced_ver.tpl DELETED --- --- mx_menu_nav.tpl DELETED --- --- mx_menu_simple_CSS_hor.tpl DELETED --- --- mx_menu_classic_hor.tpl DELETED --- --- mx_menu_simple_CSS_ver.tpl DELETED --- --- mx_menu_simple_x_hor.tpl DELETED --- --- mx_menu_advanced_CSS_ver.tpl DELETED --- --- mx_menu_simple_x_ver.tpl DELETED --- --- mx_menu_advanced_CSS_hor.tpl DELETED --- --- mx_menu_classic_ver.tpl DELETED --- |
|
From: Jon O. <jon...@us...> - 2008-01-31 21:43:37
|
Update of /cvsroot/mxbb/core In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv1748 Modified Files: Tag: core28x config.php Log Message: ooops, sorry Index: config.php =================================================================== RCS file: /cvsroot/mxbb/core/config.php,v retrieving revision 1.10 retrieving revision 1.10.4.1 diff -C2 -d -r1.10 -r1.10.4.1 *** config.php 8 Jan 2006 23:17:58 -0000 1.10 --- config.php 31 Jan 2008 21:43:32 -0000 1.10.4.1 *************** *** 1,9 **** <?php ! // mxBB Portal auto-generated config file // Do not change anything in this file! ! // This file must be put into the mxBB Portal directory, not into the phpBB directory. ! --- 1,8 ---- <?php ! // mxBB-Portal auto-generated config file // Do not change anything in this file! ! // This file must be put into the mxBB-Portal directory. |
|
From: OryNider <ory...@us...> - 2008-01-31 10:23:14
|
Update of /cvsroot/mxbb/mx_counter/templates/subSilver/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv22835/admin Modified Files: Tag: core28x counter_config_body.tpl Log Message: upgrade for 2.8.1 Index: counter_config_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_counter/templates/subSilver/admin/counter_config_body.tpl,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** counter_config_body.tpl 6 Jun 2007 23:52:09 -0000 1.1 --- counter_config_body.tpl 31 Jan 2008 10:23:10 -0000 1.1.2.1 *************** *** 8,19 **** </tr> <tr> ! <td class="row1"><p><b>{L_DIGITS}:</b><br></p></td> <td class="row2"><input type="text" maxlength="2" size="4" name="digits" value="{DIGITS}" /></td> </tr> <tr> ! <td class="row1"><p><b>{L_DIGITPATH}:</b><br></p></td> <!-- <td class="row2"><input type="text" maxlength="255" size="8" name="digitpath" value="{DIGITPATH}" /></td> --> <td class="row2" width="50%"> ! <select name="digitpath" multiple size="8"> <!-- BEGIN digitpagelist --> {digitpagelist.DIGITPATH} --- 8,22 ---- </tr> <tr> ! <td class="row1"><span class="genmed" style="font-weight : bold;">{L_DIGITS}:</span></td> <td class="row2"><input type="text" maxlength="2" size="4" name="digits" value="{DIGITS}" /></td> </tr> <tr> ! <td class="row1"> ! <span class="genmed" style="font-weight : bold;">{L_DIGITPATH}:</span><br /> ! <span class="gensmall">{L_DIGITPATH_EXPLAIN}</span><br /> ! </td> <!-- <td class="row2"><input type="text" maxlength="255" size="8" name="digitpath" value="{DIGITPATH}" /></td> --> <td class="row2" width="50%"> ! <select name="digitpath" size="8"> <!-- BEGIN digitpagelist --> {digitpagelist.DIGITPATH} *************** *** 30,38 **** </tr> </table> - - <br> </form> ! <br> <table width="40%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center"> <tr><th class="thHead" colspan="7">{L_DIGITPREVIEW}</th></tr> --- 33,39 ---- </tr> </table> </form> ! <br /> <table width="40%" cellpadding="4" cellspacing="1" border="0" class="forumline" align="center"> <tr><th class="thHead" colspan="7">{L_DIGITPREVIEW}</th></tr> |
|
From: OryNider <ory...@us...> - 2008-01-31 10:23:00
|
Update of /cvsroot/mxbb/mx_counter/language/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv22804 Modified Files: Tag: core28x lang_admin.php lang_main.php Log Message: upgrade for 2.8.1 Index: lang_main.php =================================================================== RCS file: /cvsroot/mxbb/mx_counter/language/lang_english/lang_main.php,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** lang_main.php 6 Jun 2007 23:50:27 -0000 1.1 --- lang_main.php 31 Jan 2008 10:22:55 -0000 1.1.2.1 *************** *** 1,15 **** <?php ! // ! // The format of this file is: ! // ! // ---> $lang["message"] = "text"; ! // ! // Specify your language character encoding... [optional] ! // ! // setlocale(LC_ALL, "en"); ! ! // Module ! $lang['portal_counter'] = 'Site Counter:'; --- 1,14 ---- <?php + /** + * + * @package phpBB2 Mod - Counter + * @version $Id$ + * @copyright (c) 2002-2007 [ory...@rd..., OryNider] mxBB Development Team + * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 + * + */ ! // Mod ! $lang['board_counter'] = 'Site Counter'; Index: lang_admin.php =================================================================== RCS file: /cvsroot/mxbb/mx_counter/language/lang_english/lang_admin.php,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** lang_admin.php 6 Jun 2007 23:50:26 -0000 1.1 --- lang_admin.php 31 Jan 2008 10:22:55 -0000 1.1.2.1 *************** *** 1,18 **** <?php ! ! // ! // The format of this file is: ! // ! // ---> $lang["message"] = "text"; ! // ! // Specify your language character encoding... [optional] ! // ! // setlocale(LC_ALL, "en"); ! ! $lang['Counter_Settings'] = "Counter Module Settings"; ! $lang['Counter_Settings_explain'] = "<b>Note: </b>Digit Path is relative to the <i>numbers</i> directory."; ! $lang['digits'] = "Digits"; ! $lang['digitpath'] = "Digit Path"; $lang['digitpreview'] = "Digit Preview"; --- 1,17 ---- <?php + /** + * + * @package phpBB2 Mod - Counter + * @version $Id$ + * @copyright (c) 2002-2007 [ory...@rd..., OryNider] mxBB Development Team + * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 + * + */ ! $lang['Counter_Settings'] = "Counter Mod Settings"; ! $lang['Counter_Settings_explain'] = "<b>Note: </b>Digit Path is relative to the <i>numbers</i> directory."; ! $lang['digits'] = "Digits"; ! $lang['digitpath'] = "Digit Path"; ! $lang['digitpath_explain'] = "</b>Digit Path/Set is relative to the <i>numbers</i> directory. Once you selected a set from the select box, you need to press <i><b>Submit</b></i>, once to change the set, and once more to refresh the page and preview the selected set."; $lang['digitpreview'] = "Digit Preview"; |
|
From: OryNider <ory...@us...> - 2008-01-31 10:22:43
|
Update of /cvsroot/mxbb/mx_counter/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv22757/includes Modified Files: Tag: core28x counter_common.php counter_constants.php Log Message: upgrade for 2.8.1 Index: counter_common.php =================================================================== RCS file: /cvsroot/mxbb/mx_counter/includes/counter_common.php,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** counter_common.php 6 Jun 2007 23:49:13 -0000 1.1 --- counter_common.php 31 Jan 2008 10:22:35 -0000 1.1.2.1 *************** *** 20,24 **** // Load language files. // - if( file_exists($module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx) ) { --- 20,23 ---- *************** *** 45,65 **** // ! $counter_config = array(); ! $sql = "SELECT * FROM ".COUNTER_CONFIG_TABLE; ! $result = $db->sql_query($sql); ! if( !($result = $db->sql_query($sql)) ) ! { ! mx_message_die(GENERAL_ERROR, "Couldn't query counter config table", "", __LINE__, __FILE__, $sql); ! } ! else { ! while( $row = $db->sql_fetchrow($result) ) ! { ! $counter_config[$row['config_name']] = $row['config_value']; ! } } --- 44,67 ---- // ! $counter_config = array(); ! $sql = "SELECT * FROM ".COUNTER_CONFIG_TABLE; ! $result = $db->sql_query($sql); ! /* ! if( !($result = $db->sql_query($sql)) ) ! { ! message_die(GENERAL_ERROR, "Couldn't query counter config table", "", __LINE__, __FILE__, $sql); ! } ! */ ! ! if( ($result = $db->sql_query($sql)) ) ! { ! while( $row = $db->sql_fetchrow($result) ) { ! $counter_config[$row['config_name']] = $row['config_value']; } + } *************** *** 72,79 **** function update_count($newcount) { ! global $counter_config, $board_config, $db, $lang; ! $sql = "UPDATE ". COUNTER_SESSION_TABLE ." ! SET currentcount = '$newcount' WHERE count_id = 1"; --- 74,81 ---- function update_count($newcount) { ! global $db; ! $sql = 'UPDATE ' . COUNTER_SESSION_TABLE . " ! SET currentcount = " . intval($newcount) . " WHERE count_id = 1"; Index: counter_constants.php =================================================================== RCS file: /cvsroot/mxbb/mx_counter/includes/counter_constants.php,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** counter_constants.php 6 Jun 2007 23:49:14 -0000 1.1 --- counter_constants.php 31 Jan 2008 10:22:35 -0000 1.1.2.1 *************** *** 15,23 **** // ! // Define table names. // ! !defined('COUNTER_CONFIG_TABLE') ? define('COUNTER_CONFIG_TABLE', $mx_table_prefix.'counter_config') : false; ! !defined('COUNTER_SESSION_TABLE') ? define('COUNTER_SESSION_TABLE', $mx_table_prefix.'counter_session') : false; ! ?> --- 15,22 ---- // ! // If they are not defined in constants.php, define table names. // ! @define('COUNTER_CONFIG_TABLE', $mx_table_prefix.'counter_config'); ! @define('COUNTER_SESSION_TABLE', $mx_table_prefix.'counter_session'); ?> |
|
From: OryNider <ory...@us...> - 2008-01-31 10:22:43
|
Update of /cvsroot/mxbb/mx_counter/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv22757/admin Modified Files: Tag: core28x admin_counter_cfg.php Log Message: upgrade for 2.8.1 Index: admin_counter_cfg.php =================================================================== RCS file: /cvsroot/mxbb/mx_counter/admin/admin_counter_cfg.php,v retrieving revision 1.1 retrieving revision 1.1.2.1 diff -C2 -d -r1.1 -r1.1.2.1 *** admin_counter_cfg.php 6 Jun 2007 23:49:07 -0000 1.1 --- admin_counter_cfg.php 31 Jan 2008 10:22:34 -0000 1.1.2.1 *************** *** 16,19 **** --- 16,22 ---- + //Move this to the board lang_admin.php file if you need traslation. + $lang['Portal_Counter'] = !empty($lang['Portal_Counter']) ? $lang['Portal_Counter'] : 'Portal Counter'; + // // Add our entry to the Administration Control Panel... *************** *** 44,47 **** --- 47,54 ---- require($module_root_path . 'includes/counter_common.'.$phpEx); + // ====================================================== + // [ ADMINCP COMMON INITIALIZATION ] + // ====================================================== + // ********************************************************************** // Read language definition *************** *** 56,65 **** } - // - // Send page header... - // - include_once($mx_root_path . 'admin/page_header_admin.'.$phpEx); - - // ====================================================== // [ MAIN PROCESS ] --- 63,66 ---- *************** *** 80,97 **** $default_config[$config_name] = $config_value; ! $new[$config_name] = ( isset($HTTP_POST_VARS[$config_name]) ) ? $HTTP_POST_VARS[$config_name] : $default_config[$config_name]; if( isset($HTTP_POST_VARS['submit'])) { $sql = "UPDATE ".COUNTER_CONFIG_TABLE. " SET config_value = '" . str_replace("\'", "''", $new[$config_name]) . "'" . ! " WHERE config_name = '$config_name'"; if( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Failed to update counter configuration for $config_name", "", __LINE__, __FILE__, $sql); } } } $digitpath = $default_config['digitpath']; $template->set_filenames(array( --- 81,101 ---- $default_config[$config_name] = $config_value; ! $new[$config_name] = ( isset($HTTP_POST_VARS[$config_name]) ) ? htmlspecialchars($HTTP_POST_VARS[$config_name]) : $default_config[$config_name]; if( isset($HTTP_POST_VARS['submit'])) { $sql = "UPDATE ".COUNTER_CONFIG_TABLE. " SET config_value = '" . str_replace("\'", "''", $new[$config_name]) . "'" . ! " WHERE config_name = '" . str_replace("\'", "''", $config_name) . "'"; if( !$db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, "Failed to update counter configuration for $config_name", "", __LINE__, __FILE__, $sql); } + // Behave as per HTTP/1.1 spec for others + echo '"<meta http-equiv="refresh" content="1;url="$file">"'; } } $digitpath = $default_config['digitpath']; + $digits = intval($default_config['digits']); $template->set_filenames(array( *************** *** 99,105 **** ); ! for($i=0;$i<=$default_config['digits'];$i++) { ! $digit_image = '<img src=' . $module_root_path . 'numbers/' . $digitpath . '/' . $i . '.gif>'; $template->assign_block_vars('digitpreview', array('DIGIT_IMAGE' => $digit_image)); --- 103,109 ---- ); ! for($i=0;$i<$digits;$i++) { ! $digit_image = '<img alt="' . $i . '" src="' . $module_root_path . 'numbers/' . $digitpath . '/' . $i . '.gif" />'; $template->assign_block_vars('digitpreview', array('DIGIT_IMAGE' => $digit_image)); *************** *** 110,147 **** $direct = opendir($dir); ! $file = readdir($direct); ! ! while ($file) { ! $file = readdir($direct); ! $filetype = filetype($dir . $file); ! ! if ($file == ".." OR $file == "." OR $file == "") ! { ! $pagelist_digitpath = ""; ! } ! elseif ($filetype == "dir") ! { ! $pagelist_digitpath = "<OPTION value=\"$file\" > $file \n"; ! } ! ! $array = "$array;$file"; ! $template->assign_block_vars('digitpagelist', array('DIGITPATH' => $pagelist_digitpath)); ! ! } $s_hidden_fields = '<input type="hidden" name="config_name" value="' . htmlspecialchars($new[$config_name]) . '" />'; - - $template->assign_vars(array( ! 'S_ACTION' => append_sid("admin_counter_cfg.$phpEx"), 'S_HIDDEN_FIELDS' => $s_hidden_fields, 'L_COUNTER_SETTINGS' => $lang['Counter_Settings'], ! 'L_COUNTER_SETTINGS_EXPLAIN' => $lang['Counter_Settings_explain'], 'L_SUBMIT' => $lang['Submit'], 'L_RESET' => $lang['Reset'], 'L_DIGITS' => $lang['digits'], 'L_DIGITPATH' => $lang['digitpath'], 'L_DIGITPREVIEW' => $lang['digitpreview'], --- 114,140 ---- $direct = opendir($dir); ! while (false !== ($file = readdir($direct))) ! { ! if (!is_dir($dir . $file) || $file == '..' || $file == '.' || $file == '') { ! continue; ! } ! ! $template->assign_block_vars('digitpagelist', array('DIGITPATH' => "<option value=\"$file\">$file</option>\n")); ! } ! closedir($direct); $s_hidden_fields = '<input type="hidden" name="config_name" value="' . htmlspecialchars($new[$config_name]) . '" />'; $template->assign_vars(array( ! 'S_ACTION' => mx_append_sid("admin_counter_cfg.$phpEx"), 'S_HIDDEN_FIELDS' => $s_hidden_fields, 'L_COUNTER_SETTINGS' => $lang['Counter_Settings'], ! 'L_COUNTER_SETTINGS_EXPLAIN' => $lang['Counter_Settings_explain'], 'L_SUBMIT' => $lang['Submit'], 'L_RESET' => $lang['Reset'], 'L_DIGITS' => $lang['digits'], 'L_DIGITPATH' => $lang['digitpath'], + 'L_DIGITPATH_EXPLAIN' => $lang['digitpath_explain'], 'L_DIGITPREVIEW' => $lang['digitpreview'], *************** *** 152,156 **** $template->pparse("body"); ! include_once($mx_root_path . 'admin/page_footer_admin.' . $phpEx); ?> --- 145,149 ---- $template->pparse("body"); ! include_once($phpbb_root_path . 'admin/page_footer_admin.' . $phpEx); ?> |
|
From: OryNider <ory...@us...> - 2008-01-31 10:22:39
|
Update of /cvsroot/mxbb/mx_counter In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv22757 Modified Files: Tag: core28x db_install.php db_uninstall.php mx_counter.php readme.txt Log Message: upgrade for 2.8.1 Index: mx_counter.php =================================================================== RCS file: /cvsroot/mxbb/mx_counter/mx_counter.php,v retrieving revision 1.2 retrieving revision 1.2.2.1 diff -C2 -d -r1.2 -r1.2.2.1 *** mx_counter.php 11 Jun 2007 03:17:42 -0000 1.2 --- mx_counter.php 31 Jan 2008 10:22:35 -0000 1.2.2.1 *************** *** 10,14 **** - if( !defined('IN_PORTAL') || !is_object($mx_block)) { --- 10,13 ---- *************** *** 33,79 **** //Set a cookie for the counter so we know we have been here before ! setcookie($board_config['cookie_name'] . '_pubOry_counter',"set",time() + 31536000,$board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']); //check cookie global $HTTP_COOKIE_VARS; ! if($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_pubOry_counter']) { ! $bInc=false; } else { ! $bInc=true; ! } ! ! ! $digitpath = $counter_config['digitpath']; ! $digits = $counter_config['digits']; ! ! if (empty($digitpath)) ! { ! $digitpath = 'set1'; } ! if (empty($digits)) ! { ! $digits = '5'; ! } //read old counter data $imagedirectory = $module_root_path . 'numbers/' . $digitpath . '/'; ! $sql2 = "SELECT * FROM ".COUNTER_SESSION_TABLE." WHERE count_id = 1"; ! $result2 = $db->sql_query($sql2); ! if( !($result2 = $db->sql_query($sql2)) ) { ! mx_message_die(GENERAL_ERROR, "Couldn't query counter session table", "", __LINE__, __FILE__, $sql2); } ! else { ! while( $currentcount = $db->sql_fetchrow($result2) ) { --- 32,70 ---- //Set a cookie for the counter so we know we have been here before ! setcookie($board_config['cookie_name'] . '_mx_counter',"set",time() + 31536000,$board_config['cookie_path'], $board_config['cookie_domain'], $board_config['cookie_secure']); //check cookie global $HTTP_COOKIE_VARS; ! if($HTTP_COOKIE_VARS[$board_config['cookie_name'] . '_mx_counter']) { ! $binc=false; } else { ! $binc=true; } ! $digitpath = ($counter_config['digitpath']) ? $counter_config['digitpath'] : 'set1'; ! $digits = ($counter_config['digits']) ? intval($counter_config['digits']) : 5; //read old counter data $imagedirectory = $module_root_path . 'numbers/' . $digitpath . '/'; ! $sql = "SELECT * FROM ".COUNTER_SESSION_TABLE." WHERE count_id = 1"; ! $result = $db->sql_query($sql); ! /* ! if( !($result = $db->sql_query($sql)) ) { ! message_die(GENERAL_ERROR, "Couldn't query counter session table", "", __LINE__, __FILE__, $sql2); } ! */ ! ! if( ($result = $db->sql_query($sql)) ) { ! while( $currentcount = $db->sql_fetchrow($result) ) { *************** *** 81,85 **** //check if we are incrementing counter ! if($bInc) { $newcount = $currentcount + 1; --- 72,76 ---- //check if we are incrementing counter ! if($binc) { $newcount = $currentcount + 1; *************** *** 95,100 **** for ($a=0;$a<$digits;$a++) { ! $img[$a] = "$imagedirectory"; ! $img[$a] .= "0.gif"; } --- 86,90 ---- for ($a=0;$a<$digits;$a++) { ! $img[$a] = $imagedirectory . "0.gif"; } *************** *** 104,109 **** { $showdig = substr($newcount, $a, 1); ! $img[$digits - $actdigits + $a] = "$imagedirectory"; ! $img[$digits - $actdigits + $a] .= "$showdig.gif"; } --- 94,98 ---- { $showdig = substr($newcount, $a, 1); ! $img[$digits - $actdigits + $a] = $imagedirectory . $showdig . ".gif"; } *************** *** 111,131 **** if($numdigits > $digits) { ! $bOver=true; for ($a=0;$a<$digits;$a++) { ! $img[$a] = "$imagedirectory"; ! $img[$a] .= "9.gif"; } } //this is what we are ouputing ! $displayblock = ""; for ($a=0;$a<$digits;$a++) { ! $displayblock .= "<img src=$img[$a]>"; } //if we incremented, write this value ! if($bInc) { update_count($newcount); --- 100,119 ---- if($numdigits > $digits) { ! $bover=true; for ($a=0;$a<$digits;$a++) { ! $img[$a] = $imagedirectory . "9.gif"; } } //this is what we are ouputing ! $displayblock = ''; for ($a=0;$a<$digits;$a++) { ! $displayblock .= '<img alt="' . $img[$a] . '" src="' . $img[$a] . '" />'; } //if we incremented, write this value ! if($binc) { update_count($newcount); *************** *** 140,147 **** //$counter_data is the variable that holds the stuff to output ! $counter_data.=$displayblock; ! if($bOver == true)$counter_data.='+'; - // // Start output of page // --- 128,138 ---- //$counter_data is the variable that holds the stuff to output ! $counter_data .= $displayblock; ! ! if($bover == true) ! { ! $counter_data .= '+'; ! } // Start output of page // |
|
From: OryNider <ory...@us...> - 2008-01-31 08:52:46
|
Update of /cvsroot/mxbb/mx_act/games/pacman_gel In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv13328/pacman_gel Added Files: Tag: core28x pacman_gel.gif pacman_gel.swf size.txt Log Message: my_act/root/newscore.php should be copyed @ the mxBB root and the score will be saved ... --- NEW FILE: pacman_gel.swf --- (This appears to be a binary file; contents omitted.) --- NEW FILE: pacman_gel.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: size.txt --- 450x440 |
|
From: OryNider <ory...@us...> - 2008-01-31 08:52:46
|
Update of /cvsroot/mxbb/mx_act/games/m_memory In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv13328/m_memory Added Files: Tag: core28x m_memory.gif m_memory.swf size.txt Log Message: my_act/root/newscore.php should be copyed @ the mxBB root and the score will be saved ... --- NEW FILE: m_memory.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: m_memory.swf --- (This appears to be a binary file; contents omitted.) --- NEW FILE: size.txt --- 650x480 |
|
From: OryNider <ory...@us...> - 2008-01-31 08:52:46
|
Update of /cvsroot/mxbb/mx_act/games/hexxagon In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv13328/hexxagon Added Files: Tag: core28x hexxagon.gif hexxagon.swf size.txt Log Message: my_act/root/newscore.php should be copyed @ the mxBB root and the score will be saved ... --- NEW FILE: hexxagon.gif --- (This appears to be a binary file; contents omitted.) --- NEW FILE: hexxagon.swf --- (This appears to be a binary file; contents omitted.) --- NEW FILE: size.txt --- 380x300 |
|
From: OryNider <ory...@us...> - 2008-01-31 08:52:46
|
Update of /cvsroot/mxbb/mx_act/games/ice-cream-blowout In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv13328/ice-cream-blowout Added Files: Tag: core28x ice-cream-blowout.gif ice-cream-blowout.swf size.txt Log Message: my_act/root/newscore.php should be copyed @ the mxBB root and the score will be saved ... --- NEW FILE: ice-cream-blowout.swf --- (This appears to be a binary file; contents omitted.) --- NEW FILE: size.txt --- 500x310 --- NEW FILE: ice-cream-blowout.gif --- (This appears to be a binary file; contents omitted.) |
|
From: OryNider <ory...@us...> - 2008-01-31 08:52:13
|
Update of /cvsroot/mxbb/mx_act/templates/subSilver In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv12385 Modified Files: Tag: core28x saved_body.tpl Log Message: my_act/root/newscore.php should be copyed @ the mxBB root and the score will be saved ... Index: saved_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_act/templates/subSilver/saved_body.tpl,v retrieving revision 1.4 retrieving revision 1.4.2.1 diff -C2 -d -r1.4 -r1.4.2.1 *** saved_body.tpl 5 Apr 2006 21:10:46 -0000 1.4 --- saved_body.tpl 31 Jan 2008 08:51:50 -0000 1.4.2.1 *************** *** 1,3 **** ! <table class="forumline" width="100%" cellpadding="4" cellspacing="1" border="0" style="border-top:none;"> <tr> <th class="thHead" height="25"><b> {GAME_NAME}</b></th> --- 1,3 ---- ! <table class="forumline" width="100%" cellpadding="4" cellspacing="1" border="0"> <tr> <th class="thHead" height="25"><b> {GAME_NAME}</b></th> |
|
From: OryNider <ory...@us...> - 2008-01-31 08:52:13
|
Update of /cvsroot/mxbb/mx_act/templates/subSilver/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv12385/admin Modified Files: Tag: core28x activity_config_body.tpl Log Message: my_act/root/newscore.php should be copyed @ the mxBB root and the score will be saved ... Index: activity_config_body.tpl =================================================================== RCS file: /cvsroot/mxbb/mx_act/templates/subSilver/admin/activity_config_body.tpl,v retrieving revision 1.3 retrieving revision 1.3.2.1 diff -C2 -d -r1.3 -r1.3.2.1 *** activity_config_body.tpl 5 Apr 2006 21:10:46 -0000 1.3 --- activity_config_body.tpl 31 Jan 2008 08:51:48 -0000 1.3.2.1 *************** *** 143,146 **** --- 143,147 ---- <!-- END display_gamelib_menu --> + <tr> <td class="row1">{L_GAMES_PER_PAGE} |
|
From: OryNider <ory...@us...> - 2008-01-31 08:51:58
|
Update of /cvsroot/mxbb/mx_act/language/lang_english In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv11838 Modified Files: Tag: core28x lang_main.php Log Message: my_act/root/newscore.php should be copyed @ the mxBB root and the score will be saved ... Index: lang_main.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/language/lang_english/lang_main.php,v retrieving revision 1.3 retrieving revision 1.3.2.1 diff -C2 -d -r1.3 -r1.3.2.1 *** lang_main.php 5 Apr 2006 22:03:55 -0000 1.3 --- lang_main.php 31 Jan 2008 08:51:30 -0000 1.3.2.1 *************** *** 42,45 **** --- 42,46 ---- $lang['admin_games_per_info'] = "-:- This is how many games you want listed before a new page is needed.<br /><br />-:- <b>NOTE</b> : Leaving this blank or <b>0</b> will return errors."; $lang['admin_page'] = "Pages"; + $lang['games_page'] = "Act Games Page"; $lang['admin_path'] = "Path"; $lang['admin_adar_config'] = "Adarian Shop Options"; |
Update of /cvsroot/mxbb/mx_act/admin In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv8846/admin Modified Files: Tag: core28x admin_activity.php admin_ina_ban.php admin_ina_category.php admin_ina_disable.php admin_ina_scores_edit.php admin_ina_xtras.php Log Message: my_act/root/newscore.php should be copyed @ the mxBB root and the score will be saved ... Index: admin_ina_disable.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/admin/admin_ina_disable.php,v retrieving revision 1.6 retrieving revision 1.6.2.1 diff -C2 -d -r1.6 -r1.6.2.1 *** admin_ina_disable.php 2 May 2006 23:25:45 -0000 1.6 --- admin_ina_disable.php 31 Jan 2008 08:50:23 -0000 1.6.2.1 *************** *** 24,45 **** require( $module_root_path . 'includes/act_constants.' . $phpEx ); ! include( $module_root_path . 'includes/act_functions.' . $phpEx ); ! ! /* ! define('IN_PHPBB', 1); ! if( !empty($setmodules) ) { ! $file = basename(__FILE__); ! $module['Activities']['Hide/Show Games'] = "$file"; ! return; } ! $phpbb_root_path = "./../"; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! ! require('./pagestart.' . $phpEx); ! include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx); - */ if ( isset( $HTTP_POST_VARS['mode'] ) || isset( $HTTP_GET_VARS['mode'] ) ) --- 24,41 ---- require( $module_root_path . 'includes/act_constants.' . $phpEx ); ! // ********************************************************************** ! // Read language definition ! // ********************************************************************** ! if ( file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ) ) { ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ); ! } ! else if ( file_exists( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ) ) ! { ! include( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ); } ! include( $module_root_path . 'includes/act_functions.' . $phpEx ); if ( isset( $HTTP_POST_VARS['mode'] ) || isset( $HTTP_GET_VARS['mode'] ) ) Index: admin_activity.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/admin/admin_activity.php,v retrieving revision 1.8 retrieving revision 1.8.2.1 diff -C2 -d -r1.8 -r1.8.2.1 *** admin_activity.php 2 May 2006 23:25:45 -0000 1.8 --- admin_activity.php 31 Jan 2008 08:50:15 -0000 1.8.2.1 *************** *** 26,49 **** require( $module_root_path . 'includes/act_constants.' . $phpEx ); ! include( $module_root_path . 'includes/act_functions.' . $phpEx ); ! // include_once($phpbb_root_path . 'includes/functions_search.'.$phpEx); ! // include_once($mx_root_path . 'admin/page_header_admin.' . $phpEx); ! /* ! define('IN_PHPBB', 1); ! ! if( !empty($setmodules) ) { ! $file = basename(__FILE__); ! $module['Activities']['.:Configuration:.'] = $file; ! $module['Activities']['Add_Game'] = append_sid("admin_activity.$phpEx?mode=add_game"); ! $module['Activities']['Edit_Games'] = append_sid("admin_activity.$phpEx?mode=edit_games"); ! return; } ! $phpbb_root_path = '../'; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! require('pagestart.' . $phpEx); ! include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx); ! */ $sql = "SELECT * FROM " . iNA; --- 26,43 ---- require( $module_root_path . 'includes/act_constants.' . $phpEx ); ! // ********************************************************************** ! // Read language definition ! // ********************************************************************** ! if ( file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ) ) { ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ); ! } ! else if ( file_exists( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ) ) ! { ! include( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ); } ! include( $module_root_path . 'includes/act_functions.' . $phpEx ); ! $sql = "SELECT * FROM " . iNA; *************** *** 291,294 **** --- 285,289 ---- "NAME" => $game_info['game_name'], "PATH" => $game_info['game_path'], + "PAGE" => $game_info['ina_page'], "DESC" => $game_info['game_desc'], "CHARGE" => $game_info['game_charge'], *************** *** 438,441 **** --- 433,437 ---- $game_name = ( isset( $HTTP_POST_VARS['game_name'] ) ) ? trim( $HTTP_POST_VARS['game_name'] ) : ""; $game_path = ( isset( $HTTP_POST_VARS['game_path'] ) ) ? trim( $HTTP_POST_VARS['game_path'] ) : ""; + $game_page = ( isset( $HTTP_POST_VARS['ina_page'] ) ) ? trim( $HTTP_POST_VARS['ina_page'] ) : 0; $game_desc = ( isset( $HTTP_POST_VARS['game_desc'] ) ) ? trim( $HTTP_POST_VARS['game_desc'] ) : ""; $game_charge = ( isset( $HTTP_POST_VARS['game_charge'] ) ) ? intval( $HTTP_POST_VARS['game_charge'] ) : 0; *************** *** 486,489 **** --- 482,498 ---- } + if ( $game_page ) + { + $sql = "UPDATE " . iNA_CONFIG . " + SET config_value = '$game_page' + WHERE config_name = 'ina_page'"; + if ( !$result = $db->sql_query( $sql ) ) + { + mx_message_die( GENERAL_ERROR, 'Can\'t upgrade the games portal page.', "", __LINE__, __FILE__, $sql ); + } + } + mx_message_die( GENERAL_ERROR, 'Can\'t upgrade the games portal page.', "", __LINE__, __FILE__, $sql ); + + if ( $game_category ) { *************** *** 567,570 **** --- 576,580 ---- $game_desc = $game_rows[$i]['game_desc']; $game_path = $game_rows[$i]['game_path']; + $game_page = $game_rows[$i]['ina_page']; if ( $game_rows[$i]['game_use_gl'] ) *************** *** 604,607 **** --- 614,618 ---- "NAME" => $game_name, "PATH" => $game_path, + "PAGE" => $game_page, "GAMELIB" => $game_gl, "FLASH" => $game_flash, *************** *** 702,705 **** --- 713,718 ---- $gamelib_path = $new['gamelib_path']; + $games_page = $new['ina_page']; + $games_per_page = $new['games_per_page']; *************** *** 759,762 **** --- 772,776 ---- "L_ADAR_SHOP" => $lang['admin_adar_shop'], "L_ADAR_INFO" => $lang['admin_no_adar_info'], + 'L_GAMES_PAGE' => $lang['games_page'], "L_PAGE" => $lang['admin_page'], *************** *** 782,785 **** --- 796,800 ---- "S_USE_REWARDS_NO" => $use_rewards_no, + 'S_GAMES_PAGE' => $games_page, "S_GAMES_PATH" => $games_path, "S_GAMELIB_PATH" => $gamelib_path, Index: admin_ina_xtras.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/admin/admin_ina_xtras.php,v retrieving revision 1.6 retrieving revision 1.6.2.1 diff -C2 -d -r1.6 -r1.6.2.1 *** admin_ina_xtras.php 2 May 2006 23:25:45 -0000 1.6 --- admin_ina_xtras.php 31 Jan 2008 08:50:30 -0000 1.6.2.1 *************** *** 24,43 **** require( $module_root_path . 'includes/act_constants.' . $phpEx ); ! include( $module_root_path . 'includes/act_functions.' . $phpEx ); ! ! /* ! define('IN_PHPBB', 1); ! if( !empty($setmodules) ) { ! $file = basename(__FILE__); ! $module['Activities']['Xtras'] = "$file"; ! return; } ! $phpbb_root_path = "./../"; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); - require('./pagestart.' . $phpEx); - */ if ( isset( $HTTP_POST_VARS['mode'] ) || isset( $HTTP_GET_VARS['mode'] ) ) --- 24,41 ---- require( $module_root_path . 'includes/act_constants.' . $phpEx ); ! // ********************************************************************** ! // Read language definition ! // ********************************************************************** ! if ( file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ) ) { ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ); ! } ! else if ( file_exists( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ) ) ! { ! include( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ); } ! include( $module_root_path . 'includes/act_functions.' . $phpEx ); if ( isset( $HTTP_POST_VARS['mode'] ) || isset( $HTTP_GET_VARS['mode'] ) ) *************** *** 208,211 **** --- 206,219 ---- echo " <td align='left' valign='top' width='50%' class='row2'>"; echo " <span class='genmed'>"; + echo " mxBB Games Page"; + echo " </span>"; + echo " </td>"; + echo " <td align='center' valign='top' width='50%' class='row2'>"; + echo " <input type='text' name='games_page' value='" . $act_config['ina_page'] . "'>"; + echo " </td>"; + echo " </tr>"; + echo " <tr>"; + echo " <td align='left' valign='top' width='50%' class='row2'>"; + echo " <span class='genmed'>"; echo " Default Max Game Charge"; echo " </span>"; *************** *** 746,749 **** --- 754,758 ---- if ( $mode == "sconfig" ) { + $gpg = $_POST['games_page']; $nmc = $_POST['max_charge']; $ni = $_POST['increment']; *************** *** 911,915 **** $r = $db->sql_query( $q ); } ! if ( $nmc ) { --- 920,930 ---- $r = $db->sql_query( $q ); } ! if ( $gpg ) ! { ! $q = "UPDATE " . iNA_CONFIG . " ! SET config_value = '$gpg' ! WHERE config_name = 'ina_page'"; ! $r = $db->sql_query( $q ); ! } if ( $nmc ) { Index: admin_ina_category.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/admin/admin_ina_category.php,v retrieving revision 1.6 retrieving revision 1.6.2.1 diff -C2 -d -r1.6 -r1.6.2.1 *** admin_ina_category.php 2 May 2006 23:25:45 -0000 1.6 --- admin_ina_category.php 31 Jan 2008 08:50:21 -0000 1.6.2.1 *************** *** 24,45 **** require( $module_root_path . 'includes/act_constants.' . $phpEx ); ! include( $module_root_path . 'includes/act_functions.' . $phpEx ); ! ! /* ! define('IN_PHPBB', 1); ! if( !empty($setmodules) ) { ! $file = basename(__FILE__); ! $module['Activities']['Category'] = 'modules/mx_act/admin/' . "$file"; ! return; } ! $phpbb_root_path = "./../"; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! ! require('./pagestart.' . $phpEx); ! include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx); - */ if ( isset( $HTTP_POST_VARS['mode'] ) || isset( $HTTP_GET_VARS['mode'] ) ) --- 24,41 ---- require( $module_root_path . 'includes/act_constants.' . $phpEx ); ! // ********************************************************************** ! // Read language definition ! // ********************************************************************** ! if ( file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ) ) { ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ); ! } ! else if ( file_exists( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ) ) ! { ! include( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ); } ! include( $module_root_path . 'includes/act_functions.' . $phpEx ); if ( isset( $HTTP_POST_VARS['mode'] ) || isset( $HTTP_GET_VARS['mode'] ) ) Index: admin_ina_scores_edit.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/admin/admin_ina_scores_edit.php,v retrieving revision 1.6 retrieving revision 1.6.2.1 diff -C2 -d -r1.6 -r1.6.2.1 *** admin_ina_scores_edit.php 2 May 2006 23:25:45 -0000 1.6 --- admin_ina_scores_edit.php 31 Jan 2008 08:50:27 -0000 1.6.2.1 *************** *** 24,45 **** require( $module_root_path . 'includes/act_constants.' . $phpEx ); ! include( $module_root_path . 'includes/act_functions.' . $phpEx ); ! ! /* ! define('IN_PHPBB', 1); ! if( !empty($setmodules) ) { ! $file = basename(__FILE__); ! $module['Activities']['Scores Editor'] = "$file"; ! return; } ! $phpbb_root_path = "./../"; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); - require('./pagestart.' . $phpEx); - include($phpbb_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx); - */ if ( isset( $HTTP_POST_VARS['mode'] ) || isset( $HTTP_GET_VARS['mode'] ) ) { --- 24,42 ---- require( $module_root_path . 'includes/act_constants.' . $phpEx ); ! // ********************************************************************** ! // Read language definition ! // ********************************************************************** ! if ( file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ) ) { ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ); ! } ! else if ( file_exists( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ) ) ! { ! include( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ); } ! include( $module_root_path . 'includes/act_functions.' . $phpEx ); if ( isset( $HTTP_POST_VARS['mode'] ) || isset( $HTTP_GET_VARS['mode'] ) ) { Index: admin_ina_ban.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/admin/admin_ina_ban.php,v retrieving revision 1.6 retrieving revision 1.6.2.1 diff -C2 -d -r1.6 -r1.6.2.1 *** admin_ina_ban.php 2 May 2006 23:25:45 -0000 1.6 --- admin_ina_ban.php 31 Jan 2008 08:50:18 -0000 1.6.2.1 *************** *** 24,43 **** require( $module_root_path . 'includes/act_constants.' . $phpEx ); ! include( $module_root_path . 'includes/act_functions.' . $phpEx ); ! ! /* ! define('IN_PHPBB', 1); ! if( !empty($setmodules) ) { ! $file = basename(__FILE__); ! $module['Activities']['User Ban'] = "$file"; ! return; } ! $phpbb_root_path = "./../"; ! $phpEx = substr(strrchr(__FILE__, '.'), 1); ! ! require('./pagestart.' . $phpEx); ! */ if ( isset( $HTTP_POST_VARS['mode'] ) || isset( $HTTP_GET_VARS['mode'] ) ) --- 24,40 ---- require( $module_root_path . 'includes/act_constants.' . $phpEx ); ! // ********************************************************************** ! // Read language definition ! // ********************************************************************** ! if ( file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ) ) { ! include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ); ! } ! else if ( file_exists( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ) ) ! { ! include( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ); } ! include( $module_root_path . 'includes/act_functions.' . $phpEx ); if ( isset( $HTTP_POST_VARS['mode'] ) || isset( $HTTP_GET_VARS['mode'] ) ) |
|
From: OryNider <ory...@us...> - 2008-01-31 08:51:39
|
Update of /cvsroot/mxbb/mx_act In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv8846 Modified Files: Tag: core28x db_install.php db_upgrade.php newscore.php Log Message: my_act/root/newscore.php should be copyed @ the mxBB root and the score will be saved ... Index: newscore.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/newscore.php,v retrieving revision 1.10 retrieving revision 1.10.2.1 diff -C2 -d -r1.10 -r1.10.2.1 *** newscore.php 2 May 2006 23:25:45 -0000 1.10 --- newscore.php 31 Jan 2008 08:50:36 -0000 1.10.2.1 *************** *** 13,16 **** --- 13,17 ---- define( 'IN_PORTAL', true ); $mx_root_path = '../../'; + $module_root_path = $mx_root_path . 'modules/mx_act/'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include_once( $mx_root_path . 'common.' . $phpEx ); *************** *** 47,50 **** --- 48,63 ---- } + // ********************************************************************** + // Read language definition + // ********************************************************************** + if ( file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ) ) + { + include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ); + } + else if ( file_exists( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ) ) + { + include( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ); + } + // Need to find Page id if ( empty( $page_id ) ) Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/db_install.php,v retrieving revision 1.14 retrieving revision 1.14.2.1 diff -C2 -d -r1.14 -r1.14.2.1 *** db_install.php 30 Jan 2007 16:26:08 -0000 1.14 --- db_install.php 31 Jan 2008 08:50:33 -0000 1.14.2.1 *************** *** 211,214 **** --- 211,215 ---- "INSERT INTO " . iNA_CONFIG . " VALUES ('ina_show_view_profile', '1');", "INSERT INTO " . iNA_CONFIG . " VALUES ('ina_show_view_topic', '1');", + "INSERT INTO " . iNA_CONFIG . " VALUES ('ina_page', 0);", "ALTER TABLE " . iNA_GAMES . " ADD disabled INT( 1 ) DEFAULT '1' NOT NULL;", Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/db_upgrade.php,v retrieving revision 1.15 retrieving revision 1.15.2.1 diff -C2 -d -r1.15 -r1.15.2.1 *** db_upgrade.php 22 Jul 2007 21:02:16 -0000 1.15 --- db_upgrade.php 31 Jan 2008 08:50:35 -0000 1.15.2.1 *************** *** 108,111 **** --- 108,112 ---- "INSERT INTO " . iNA_CONFIG . " VALUES ('ina_show_view_profile', '1');", "INSERT INTO " . iNA_CONFIG . " VALUES ('ina_show_view_topic', '1');", + "INSERT INTO " . iNA_CONFIG . " VALUES ('ina_page', 0);", "ALTER TABLE " . iNA_GAMES . " ADD disabled INT( 1 ) DEFAULT '1' NOT NULL;", |
|
From: OryNider <ory...@us...> - 2008-01-31 08:51:39
|
Update of /cvsroot/mxbb/mx_act/includes In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv8846/includes Modified Files: Tag: core28x act_functions.php act_games.php Log Message: my_act/root/newscore.php should be copyed @ the mxBB root and the score will be saved ... Index: act_functions.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/includes/act_functions.php,v retrieving revision 1.7 retrieving revision 1.7.2.1 diff -C2 -d -r1.7 -r1.7.2.1 *** act_functions.php 17 Jun 2006 20:10:12 -0000 1.7 --- act_functions.php 31 Jan 2008 08:50:37 -0000 1.7.2.1 *************** *** 233,239 **** function this_act_mxurl( $args = '', $force_standalone_mode = false ) { ! global $mx_root_path, $module_root_path, $page_id, $phpEx, $is_block; ! if ( $force_standalone_mode || !$is_block ) { $mxurl = PORTAL_URL . 'modules/mx_act/activity.' . $phpEx . ( $args == '' ? '' : '?' . $args ); --- 233,239 ---- function this_act_mxurl( $args = '', $force_standalone_mode = false ) { ! global $mx_root_path, $module_root_path, $page_id, $phpEx, $is_block, $act_config; ! if ( $force_standalone_mode ) { $mxurl = PORTAL_URL . 'modules/mx_act/activity.' . $phpEx . ( $args == '' ? '' : '?' . $args ); *************** *** 248,252 **** else { ! $mxurl .= ( $args == '' ? '' : '?' . $args ); } } --- 248,252 ---- else { ! $mxurl .= '?page=' . $act_config['ina_page'] . ( $args == '' ? '' : '&' . $args ); } } Index: act_games.php =================================================================== RCS file: /cvsroot/mxbb/mx_act/includes/act_games.php,v retrieving revision 1.7 retrieving revision 1.7.2.1 diff -C2 -d -r1.7 -r1.7.2.1 *** act_games.php 17 Jun 2006 20:10:12 -0000 1.7 --- act_games.php 31 Jan 2008 08:50:38 -0000 1.7.2.1 *************** *** 296,300 **** 'BASE_PATH' => $base_path, 'GAMELIB' => $module_root_path . $act_config['games_path'] . "/" . $act_config['gamelib_path'] . "/", ! 'S_GAME_ACTION' => append_sid( $base_path . 'newscore.' . $phpEx . '?mode=check_score&game_name=' . $game_name ) ) ); } --- 296,300 ---- 'BASE_PATH' => $base_path, 'GAMELIB' => $module_root_path . $act_config['games_path'] . "/" . $act_config['gamelib_path'] . "/", ! 'S_GAME_ACTION' => append_sid( $module_root_path . 'newscore.' . $phpEx . '?mode=check_score&game_name=' . $game_name ) ) ); } |
|
From: OryNider <ory...@us...> - 2008-01-31 08:50:54
|
Update of /cvsroot/mxbb/mx_act/root In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv8846/root Added Files: Tag: core28x newscore.php Log Message: my_act/root/newscore.php should be copyed @ the mxBB root and the score will be saved ... --- NEW FILE: newscore.php --- <?php /** * * @package mxBB Portal Module - mx_act * @version $Id: newscore.php,v 1.1.2.1 2008/01/31 08:50:41 orynider Exp $ * @copyright (c) 2002-2006 [Napoleon/aUsTiN-Inc, Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * */ // // ERROR HANDLING // error_reporting( E_ALL ); @ini_set( 'display_errors', '1' ); define( 'IN_PORTAL', true ); $mx_root_path = './'; $module_root_path = $mx_root_path . 'modules/mx_act/'; $phpEx = substr(strrchr(__FILE__, '.'), 1); include_once( $mx_root_path . 'common.' . $phpEx ); $is_block = FALSE; // // Start session management // $mx_user->init($user_ip, PAGE_INDEX); // // End session management // // ********************************************************************** // Read language definition // ********************************************************************** if ( file_exists( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ) ) { include( $module_root_path . 'language/lang_' . $board_config['default_lang'] . '/lang_main.' . $phpEx ); } else if ( file_exists( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ) ) { include( $module_root_path . 'language/lang_english/lang_main.' . $phpEx ); } $page_title = $mx_block->block_info['block_title']; $block_size = ( isset($block_size) && !empty($block_size) ? $block_size : '100%' ); global $images; include( $module_root_path . 'includes/act_constants.' . $phpEx ); include($module_root_path. 'includes/act_functions.'.$phpEx); if($act_config['use_rewards_mod']) { if($act_config['use_point_system']) { include($phpbb_root_path . 'includes/functions_points.'.$phpEx); } if($act_config['use_cash_system'] || $act_config['use_allowance_system']) { include($module_root_path . 'includes/rewards_api.'.$phpEx); } if(($act_config['use_point_system']) && (file_exists($phpbb_root_path .'includes/functions_points.'. $phpEx) == 0)) { function get_user_points($user_id) { global $db; $sql = "SELECT user_points FROM " . USERS_TABLE . " WHERE user_id = $user_id"; if (!$result = $db->sql_query($sql)) { message_die(GENERAL_ERROR, "Could not get user_points from $user_id.", '', __LINE__, __FILE__, $sql); } $points = $db->sql_fetchrow($result); return $points['user_points']; } function get_username_from_id($user_id) { global $db; $sql = "SELECT username FROM " . USERS_TABLE . " WHERE user_id = $user_id AND user_id != " . ANONYMOUS; if (!$result = $db->sql_query($sql)) { message_die(GENERAL_ERROR, "Could not get username from $user_id.", '', __LINE__, __FILE__, $sql); } $username = $db->sql_fetchrow($result); return $username['username']; } function get_userid_from_name($username) { global $db; $username = str_replace("\'", "''", trim($username)); $sql = "SELECT user_id FROM " . USERS_TABLE . " WHERE username = '$username' AND user_id != " . ANONYMOUS; if (!$result = $db->sql_query($sql)) { message_die(GENERAL_ERROR, "Could not get user_id from $username.", '', __LINE__, __FILE__, $sql); } $user_id = $db->sql_fetchrow($result); return $user_id['user_id']; } function add_points($user_id, $amount) { global $db; $sql = "UPDATE " . USERS_TABLE . " SET user_points = user_points + $amount WHERE user_id = $user_id"; if (!$db->sql_query($sql)) { message_die(GENERAL_ERROR, "Could not update user's points", '', __LINE__, __FILE__, $sql); } return; } function subtract_points($user_id, $amount) { global $db; $sql = "UPDATE " . USERS_TABLE . " SET user_points = user_points - $amount WHERE user_id = $user_id"; if (!$db->sql_query($sql)) { message_die(GENERAL_ERROR, "Could not update user's points", '', __LINE__, __FILE__, $sql); } return; } } } if (isset($HTTP_GET_VARS['mode']) || isset($HTTP_POST_VARS['mode'])) { $mode = (isset($HTTP_GET_VARS['mode'])) ? $HTTP_GET_VARS['mode'] : $HTTP_POST_VARS['mode']; } /* Start Restriction Checks */ /* Start Ban Check */ $q = "SELECT id FROM ". INA_BAN ." WHERE id = '". $userdata['user_id'] ."'"; $r = $db -> sql_query($q); $row = $db -> sql_fetchrow($r); $ban_1 = $row['id']; if($ban_1) { mx_message_die(GENERAL_ERROR, $lang['ban'], $lang['ban_error']); } $q = "SELECT * FROM ". INA_BAN ." WHERE username = '". $userdata['username'] ."'"; $r = $db -> sql_query($q); $row = $db -> sql_fetchrow($r); $ban_2 = $row['username']; if($ban_2) { mx_message_die(GENERAL_ERROR, $lang['ban'], $lang['ban_error']); } /* End Ban Check */ /* Start Post Count Check */ if($act_config['ina_post_block'] == "1") { if($userdata['user_posts'] < $act_config['ina_post_block_count']) { mx_message_die(GENERAL_ERROR, "Sorry, The Admin Requires ". $act_config['ina_post_block_count'] ." Posts Before Playing These Games.", $lang['ban_error']); } } /* End Post Count Check */ /* Start Registration Date Check */ if($act_config['ina_join_block'] == "1") { $days_block = $act_config['ina_join_block_count']; $length_check = time() - $userdata['user_regdate']; $length_block = $length_check / 86400; $rounded = round($length_block); if($rounded < $days_block) { mx_message_die(GENERAL_ERROR, "Sorry, The Admin Requires Being A Member For ". $act_config['ina_join_block_count'] ." Day(s) Before Playing These Games.", $lang['ban_error']); } } /* End Registration Date Check */ /* End Restriction Checks */ if($_GET['mode'] == "highscore") { mx_redirect(this_act_mxurl("mode=act_scores"), true); } $mode = "check_score"; if(!$mode) { mx_redirect(this_act_mxurl(), true); } $template->set_filenames(array('body' => 'saved_body.tpl')); // ------------------------------------------------------------------------------------------------------------ if($_GET['mode'] == "check_score" || $_POST['mode'] == "check_score") { $cheat_name = $userdata['username']; $game_name = (!empty($HTTP_POST_VARS['game_name'])) ? $HTTP_POST_VARS['game_name'] : $HTTP_GET_VARS['game_name']; /* Start Cheat Fix For Old newscore.php By aUsTiN */ if($act_config['ina_disable_cheat'] == "1") { /* Start Pulling The Data Entered Into The Database When They Clicked The Game */ $q = "SELECT i.*, u.ina_cheat_fix FROM ". INA_CHEAT ." i, ". USERS_TABLE ." u WHERE i.player = '$cheat_name' AND u.username = '$cheat_name'"; $r = $db -> sql_query($q); $row = $db -> sql_fetchrow($r); $players_there = $row['player']; $players_game = $row['game_id']; $players_game_num1 = $row['game_count']; $players_game_num2 = $row['ina_cheat_fix']; $q = "SELECT game_id FROM ". iNA_GAMES ." WHERE game_name = '$game_name'"; $r = $db -> sql_query($q); $row = $db -> sql_fetchrow($r); $game_id_match = $row['game_id']; /* Start Make Sure The Game Numbers Are The Same */ if($players_game_num1 <> $players_game_num2) { mx_message_die(GENERAL_ERROR, $lang['not_nice_to_cheat'] . $cheat_name . $lang['period'], $lang['cheat_warning']); } /* End Make Sure The Game Numbers Are The Same */ /* Start Make Sure The Game Id They Clicked, Is The One Being Submitted */ if($players_game <> $game_id_match) { /* Start Delete Their Record So They Can Play Again */ $q = "DELETE FROM ". INA_CHEAT ." WHERE player = '$cheat_name'"; $r = $db -> sql_query($q); /* End Delete Their Record So They Can Play Again */ mx_message_die(GENERAL_ERROR, $lang['not_nice_to_cheat']. $cheat_name . $lang['period'], $lang['cheat_warning']); } /* End Make Sure The Game Id They Clicked, Is The One Being Submitted */ if(($players_there) && ($players_game)) { /* Start Delete Their Record So They Can Play Again */ $q = "DELETE FROM ". INA_CHEAT ." WHERE player = '$cheat_name'"; $r = $db -> sql_query($q); /* End Delete Their Record So They Can Play Again */ } /* End Pulling The Data Entered Into The Database When They Clicked The Game */ } } /* End Cheat Fix For Old newscore.php By aUsTiN */ $spidy = $_POST['game_name']; if(!$spidy) { $spidy = $_GET['game_name']; } // ----------------------------------------------------------------------------------------------------- // ---------------------------------------------------------------- if(($mode == "check_score") && (file_exists($module_root_path . $act_config['ina_default_g_path'] ."/". $spidy ."/". $spidy .".". $phpEx))) { $game_name = (!empty($HTTP_POST_VARS['game_name'])) ? $HTTP_POST_VARS['game_name'] : $HTTP_GET_VARS['game_name']; $score = (!empty($HTTP_POST_VARS['score'])) ? $HTTP_POST_VARS['score'] : $HTTP_GET_VARS['score']; $name = $userdata['username']; $gen_simple_header = TRUE; if($score > "0") { $sql = "SELECT * FROM ". iNA_GAMES ." WHERE game_name = '". $game_name ."'"; if(!$result = $db -> sql_query($sql)) { mx_message_die(GENERAL_ERROR, $lang['no_game_data'], "", __LINE__, __FILE__, $sql); } $game_info = $db->sql_fetchrow($result); $sql = "SELECT * FROM ". iNA_SCORES ." WHERE game_name = '". $game_name ."' ORDER BY score DESC"; if(!$result = $db->sql_query($sql)) { mx_message_die(GENERAL_ERROR, $lang['no_score_data'], "", __LINE__, __FILE__, $sql); } $score_info = $db->sql_fetchrow($result); /* Start Trophies */ $q = "SELECT * FROM ". INA_TROPHY ." WHERE game_name = '$game_name'"; $r = $db -> sql_query($q) or die("Error Selecting Top Score."); $row = $db -> sql_fetchrow($r); $old_score = $row['score']; $t_holder = $row['player']; if(($game_info['reverse_list'] == "1") && ($score < $old_score)) { $q = "SELECT user_id FROM ". USERS_TABLE ." WHERE username = '$name'"; $r = $db -> sql_query($q) or die("Error Selecting Top Score."); $row = $db -> sql_fetchrow($r); $name_id = $row['user_id']; $q1 = "UPDATE ". INA_TROPHY ." SET player = '$name_id', score = '$score', date = '". time() ."' WHERE game_name = '$game_name'"; $r1 = $db -> sql_query($q1) or die("Error Updating Top Score."); $trophy_won = $lang['trophy_won_notice']; $message_sent = $act_config['ina_pm_trophy_msg']; $message_sent = str_replace("%n%", $userdata['username'], $message_sent); $message_sent = str_replace("%g%", $game_name, $message_sent); if(($act_config['ina_pm_trophy'] == "1") && ($t_holder != "-1") && ($t_holder != $userdata['user_id'])) { send_challenge_pm($t_holder, $act_config['ina_pm_trophy_sub'], $message_sent); } $template->assign_block_vars("comment", array( "COMMENT_LINK" => "<br><a href='".this_act_mxurl("mode=act_trophy_comments&comments_mode=leave_comment&game=". $game_name ."&user=". $name_id ."&sid=". $userdata['session_id']) ."'>". $lang['trophy_comment_notice'] ."</a>") ); } if(($game_info['reverse_list'] == "0") && ($score > $old_score)) { $q = "SELECT user_id FROM ". USERS_TABLE ." WHERE username = '$name'"; $r = $db -> sql_query($q) or die("Error Selecting Top Score."); $row = $db -> sql_fetchrow($r); $name_id = $row['user_id']; $q1 = "UPDATE ". INA_TROPHY ." SET player = '$name_id', score = '$score', date = '". time() ."' WHERE game_name = '$game_name'"; $r1 = $db -> sql_query($q1) or die("Error Updating Top Score."); $trophy_won = $lang['trophy_won_notice']; $message_sent = $act_config['ina_pm_trophy_msg']; $message_sent = str_replace("%n%", $userdata['username'], $message_sent); $message_sent = str_replace("%g%", $game_name, $message_sent); if(($act_config['ina_pm_trophy'] == "1") && ($t_holder != "-1") && ($t_holder != $userdata['user_id'])) { send_challenge_pm($t_holder, $act_config['ina_pm_trophy_sub'], $message_sent); } $template->assign_block_vars("comment", array( "COMMENT_LINK" => "<br><a href='".this_act_mxurl("mode=act_trophy_comments&comments_mode=leave_comment&game=". $game_name ."&user=". $name_id ."&sid=". $userdata['session_id']) ."'>". $lang['trophy_comment_notice'] ."</a>") ); } /* End Trophies */ $bonus = 0; if ($score > $score_info['score']) { $bonus = $game_info['game_bonus']; } $q = "SELECT player, score FROM ". iNA_SCORES ." WHERE player = '". $userdata['username'] ."' AND game_name = '$game_name'"; $r = $db -> sql_query($q); $row = $db -> sql_fetchrow($r); $exist = $row['player']; $e_score = $row['score']; /* See if we have a score already & if its a higher score for this game */ if(($exist) && ($game_info['reverse_list'] == "1") && ($score < $e_score)) { $sql = "UPDATE " . iNA_SCORES . " SET score = '$score', date = '" . time() . "' WHERE player = '". $userdata['username'] ."' AND game_name = '$game_name'"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, $lang['no_score_insert'], "", __LINE__, __FILE__, $sql); } $msg = $lang['game_score_saved']; } elseif(($exist) && ($game_info['reverse_list'] == "0") && ($score > $e_score)) { $sql = "UPDATE " . iNA_SCORES . " SET score = '$score', date = '" . time() . "' WHERE player = '". $userdata['username'] ."' AND game_name = '$game_name'"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, $lang['no_score_insert'], "", __LINE__, __FILE__, $sql); } $msg = $lang['game_score_saved']; } /* See if we dont have a score for this game */ elseif((!$exist) && (!$e_score)) { $sql = "INSERT INTO " . iNA_SCORES . " (game_name, player, score, date) VALUES ('$game_name', '$name', '$score', '" . time() . "')"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, $lang['no_score_insert'], "", __LINE__, __FILE__, $sql); } $msg = $lang['game_score_saved']; } else { $msg = $lang['no_score_saved']; } $user_id = $userdata['user_id']; if($act_config['use_point_system'] && $act_config['use_rewards_mod'] && ($game_info['game_reward'] > 0)) { $reward = (intval($score) / intval($game_info['game_reward']) + $bonus); add_points($user_id,$reward); } if(($act_config['use_cash_system'] || $act_config['use_allowance_system']) && $act_config['use_rewards_mod'] && ($game_info['game_reward'] > 0)) { $reward = (intval($score) / intval($game_info['game_reward']) + $bonus); add_reward($user_id,$reward); } if ( $trophy_won != '' ) { $template->assign_block_vars("trophy_won", array()); } $template->assign_vars(array( 'GAME_NAME' => $game_name, 'MSG' => $msg, 'T_WON' => $trophy_won, 'U_RETURN' => this_act_mxurl("sid=". $userdata['session_id'] ), 'U_CLOSE' => "javascript:parent.window.close();", 'L_RETURN' => $lang['go_back_to_games'], 'L_CLOSE' => $lang['game_score_close']) ); } else { if ( $trophy_won != '' ) { $template->assign_block_vars("trophy_won", array()); } $template->assign_vars(array( 'GAME_NAME' => $game_name, 'MSG' => $msg, 'T_WON' => $trophy_won, 'U_RETURN' => this_act_mxurl("sid=". $userdata['session_id'] ), 'U_CLOSE' => "javascript:parent.window.close();", 'L_RETURN' => $lang['go_back_to_games'], 'L_CLOSE' => $lang['game_score_close']) ); } // This may have been set by game.php so if it is, then we'll // put it back the way it was. if ($userdata['user_session_page'] == PAGE_PLAYING_GAMES) { $sql = "UPDATE ". USERS_TABLE ." SET user_session_page = '". PAGE_ACTIVITY ."' WHERE user_id = ". $userdata['user_id']; if (!$db->sql_query($sql)) { mx_message_die(GENERAL_ERROR, $lang['no_user_update'], '', __LINE__, __FILE__, $sql); } } } else { // ----------------------------------------------------------------------------------------------------- // ----------------------------------------------------------------------------------------------------- if(($mode == "check_score") && ($_POST['game_name']) && ($_POST['score']) && (!file_exists($module_root_path . $act_config['ina_default_g_path'] ."/". $spidy ."/". $spidy .".". $phpEx))) { $game_name = (!empty($HTTP_POST_VARS['game_name'])) ? $HTTP_POST_VARS['game_name'] : $HTTP_POST_VARS['game_name']; $score = (!empty($HTTP_POST_VARS['score'])) ? $HTTP_POST_VARS['score'] : $HTTP_POST_VARS['score']; $name = $userdata['username']; $gen_simple_header = TRUE; if($score > "0") { $sql = "SELECT * FROM ". iNA_GAMES ." WHERE game_name = '". $game_name ."'"; if(!$result = $db->sql_query($sql)) { mx_message_die(GENERAL_ERROR, $lang['no_game_data'], "", __LINE__, __FILE__, $sql); } $game_info = $db->sql_fetchrow($result); $sql = "SELECT * FROM ". iNA_SCORES ." WHERE game_name = '". $game_name ."' ORDER BY score DESC"; if(!$result = $db->sql_query($sql)) { mx_message_die(GENERAL_ERROR, $lang['no_score_data'], "", __LINE__, __FILE__, $sql); } $score_info = $db->sql_fetchrow($result); /* Start Trophies */ $q = "SELECT * FROM ". INA_TROPHY ." WHERE game_name = '$game_name'"; $r = $db -> sql_query($q) or die("Error Selecting Top Score."); $row = $db -> sql_fetchrow($r); $old_score = $row['score']; $t_holder = $row['player']; if(($game_info['reverse_list'] == "1") && ($score < $old_score)) { $q = "SELECT user_id FROM ". USERS_TABLE ." WHERE username = '$name'"; $r = $db -> sql_query($q) or die("Error Selecting Top Score."); $row = $db -> sql_fetchrow($r); $name_id = $row['user_id']; $q1 = "UPDATE ". INA_TROPHY ." SET player = '$name_id', score = '$score', date = '". time() ."' WHERE game_name = '$game_name'"; $r1 = $db -> sql_query($q1) or die("Error Updating Top Score."); $trophy_won = $lang['trophy_won_notice']; $message_sent = $act_config['ina_pm_trophy_msg']; $message_sent = str_replace("%n%", $userdata['username'], $message_sent); $message_sent = str_replace("%g%", $game_name, $message_sent); if(($act_config['ina_pm_trophy'] == "1") && ($t_holder != "-1") && ($t_holder != $userdata['user_id'])) { send_challenge_pm($t_holder, $act_config['ina_pm_trophy_sub'], $message_sent); } $template->assign_block_vars("comment", array( "COMMENT_LINK" => "<br><a href='".this_act_mxurl("mode=act_trophy_comments&comments_mode=leave_comment&game=". $game_name ."&user=". $name_id ."&sid=". $userdata['session_id'] )."'>". $lang['trophy_comment_notice'] ."</a>") ); } if(($game_info['reverse_list'] == "0") && ($score > $old_score)) { $q = "SELECT user_id FROM ". USERS_TABLE ." WHERE username = '$name'"; $r = $db -> sql_query($q) or die("Error Selecting Top Score."); $row = $db -> sql_fetchrow($r); $name_id = $row['user_id']; $q1 = "UPDATE ". INA_TROPHY ." SET player = '$name_id', score = '$score', date = '". time() ."' WHERE game_name = '$game_name'"; $r1 = $db -> sql_query($q1) or die("Error Updating Top Score."); $trophy_won = $lang['trophy_won_notice']; $message_sent = $act_config['ina_pm_trophy_msg']; $message_sent = str_replace("%n%", $userdata['username'], $message_sent); $message_sent = str_replace("%g%", $game_name, $message_sent); if(($act_config['ina_pm_trophy'] == "1") && ($t_holder != "-1") && ($t_holder != $userdata['user_id'])) { send_challenge_pm($t_holder, $act_config['ina_pm_trophy_sub'], $message_sent); } $template->assign_block_vars("comment", array( "COMMENT_LINK" => "<br><a href='".this_act_mxurl("mode=act_trophy_comments&comments_mode=leave_comment&game=". $game_name ."&user=". $name_id ."&sid=". $userdata['session_id']) ."'>". $lang['trophy_comment_notice'] ."</a>") ); } /* End Trophies */ $bonus = 0; if ($score > $score_info['score']) { $bonus = $game_info['game_bonus']; } $q = "SELECT player, score FROM ". iNA_SCORES ." WHERE player = '". $userdata['username'] ."' AND game_name = '$game_name'"; $r = $db -> sql_query($q); $row = $db -> sql_fetchrow($r); $exist = $row['player']; $e_score = $row['score']; /* See if we have a score already & if its a higher score for this game */ if(($exist) && ($game_info['reverse_list'] == "1") && ($score < $e_score)) { $sql = "UPDATE " . iNA_SCORES . " SET score = '$score', date = '" . time() . "' WHERE player = '". $userdata['username'] ."' AND game_name = '$game_name'"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, $lang['no_score_insert'], "", __LINE__, __FILE__, $sql); } $msg = $lang['game_score_saved']; } elseif(($exist) && ($game_info['reverse_list'] == "0") && ($score > $e_score)) { $sql = "UPDATE " . iNA_SCORES . " SET score = '$score', date = '" . time() . "' WHERE player = '". $userdata['username'] ."' AND game_name = '$game_name'"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, $lang['no_score_insert'], "", __LINE__, __FILE__, $sql); } $msg = $lang['game_score_saved']; } /* See if we dont have a score for this game */ elseif((!$exist) && (!$e_score)) { $sql = "INSERT INTO " . iNA_SCORES . " (game_name, player, score, date) VALUES ('$game_name', '$name', '$score', '" . time() . "')"; if( !$result = $db->sql_query($sql) ) { mx_message_die(GENERAL_ERROR, $lang['no_score_insert'], "", __LINE__, __FILE__, $sql); } $msg = $lang['game_score_saved']; } else { $msg = $lang['no_score_saved']; } //Update Users Money $user_id = $userdata['user_id']; if($act_config['use_point_system'] && $act_config['use_rewards_mod'] && ($game_info['game_reward'] > 0)) { $reward = (intval($score) / intval($game_info['game_reward']) + $bonus); add_points($user_id,$reward); } if(($act_config['use_cash_system'] || $act_config['use_allowance_system']) && $act_config['use_rewards_mod'] && ($game_info['game_reward'] > 0)) { $reward = (intval($score) / intval($game_info['game_reward']) + $bonus); add_reward($user_id,$reward); } if ( $trophy_won != '' ) { $template->assign_block_vars("trophy_won", array()); } $template->assign_vars(array( 'GAME_NAME' => $game_name, 'MSG' => $msg, 'T_WON' => $trophy_won, 'U_RETURN' => this_act_mxurl("sid=". $userdata['session_id'] ), 'U_CLOSE' => "javascript:parent.window.close();", 'L_RETURN' => $lang['go_back_to_games'], 'L_CLOSE' => $lang['game_score_close']) ); } else { if ( $trophy_won != '' ) { $template->assign_block_vars("trophy_won", array()); } $template->assign_vars(array( 'GAME_NAME' => $game_name, 'MSG' => $msg, 'T_WON' => $trophy_won, 'U_RETURN' => this_act_mxurl("sid=". $userdata['session_id'] ), 'U_CLOSE' => "javascript:parent.window.close();", 'L_RETURN' => $lang['go_back_to_games'], 'L_CLOSE' => $lang['game_score_close']) ); } // This may have been set by game.php so if it is, then we'll // put it back the way it was. if ($userdata['user_session_page'] == PAGE_PLAYING_GAMES) { $sql = "UPDATE ". USERS_TABLE ." SET user_session_page = '". PAGE_ACTIVITY ."' WHERE user_id = " . $userdata['user_id']; if (!$db->sql_query($sql)) { mx_message_die(GENERAL_ERROR, $lang['no_user_update'], '', __LINE__, __FILE__, $sql); } } } $template->assign_vars(array( 'GAME_NAME' => $game_name, 'MSG' => $msg, 'T_WON' => $trophy_won, 'U_RETURN' => this_act_mxurl("sid=". $userdata['session_id'] ), 'U_CLOSE' => "javascript:parent.window.close();", 'L_RETURN' => $lang['go_back_to_games'], 'L_CLOSE' => $lang['game_score_close']) ); } // Generate page include($mx_root_path . 'includes/page_header.'.$phpEx); $template->pparse('body'); include($mx_root_path . 'includes/page_tail.'.$phpEx); ?> |
|
From: OryNider <ory...@us...> - 2008-01-31 08:47:44
|
Update of /cvsroot/mxbb/mx_act/games/ice-cream-blowout In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv5957/ice-cream-blowout Log Message: Directory /cvsroot/mxbb/mx_act/games/ice-cream-blowout added to the repository --> Using per-directory sticky tag `core28x' |
|
From: OryNider <ory...@us...> - 2008-01-31 08:47:44
|
Update of /cvsroot/mxbb/mx_act/games/hexxagon In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv5957/hexxagon Log Message: Directory /cvsroot/mxbb/mx_act/games/hexxagon added to the repository --> Using per-directory sticky tag `core28x' |
|
From: OryNider <ory...@us...> - 2008-01-31 08:47:44
|
Update of /cvsroot/mxbb/mx_act/games/pacman_gel In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv5957/pacman_gel Log Message: Directory /cvsroot/mxbb/mx_act/games/pacman_gel added to the repository --> Using per-directory sticky tag `core28x' |
|
From: OryNider <ory...@us...> - 2008-01-31 08:47:27
|
Update of /cvsroot/mxbb/mx_act/games/m_memory In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv5957/m_memory Log Message: Directory /cvsroot/mxbb/mx_act/games/m_memory added to the repository --> Using per-directory sticky tag `core28x' |
|
From: OryNider <ory...@us...> - 2008-01-31 08:47:24
|
Update of /cvsroot/mxbb/mx_act/root In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv5930/root Log Message: Directory /cvsroot/mxbb/mx_act/root added to the repository --> Using per-directory sticky tag `core28x' |
|
From: OryNider <ory...@us...> - 2008-01-31 05:47:55
|
Update of /cvsroot/mxbb/core/modules/mx_coreblocks/templates/subsilver2 In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv12150/templates/subsilver2 Added Files: mx_online.html Log Message: mx_online changes for phpBB2 backend, pls don't drop this again... --- NEW FILE: mx_online.html --- <table width="100%" cellpadding="4" cellspacing="1" border="0" class="forumline" style="border-top:none;"> <tr> <td class="row1" align="center" valign="middle" rowspan="2"> <a href="{U_VIEWONLINE}" class="cattitle"><img src="{ONLINE_IMG}" alt="{L_WHO_IS_ONLINE}" border="0" /></a> </td> <td class="row1" align="left" width="100%"> <span class="gensmall">{TOTAL_POSTS}<br />{TOTAL_USERS}<br />{NEWEST_USER}</span> </td> </tr> <tr> <td class="row1" align="left"> <span class="gensmall">{TOTAL_USERS_ONLINE} <br /> {L_ONLINE_LEGEND}: {ONLINE_LEGEND} <br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}</span> </td> </tr> </table> |
|
From: OryNider <ory...@us...> - 2008-01-31 05:47:55
|
Update of /cvsroot/mxbb/core/modules/mx_coreblocks/templates/prosilver In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv12150/templates/prosilver Modified Files: mx_online.html Log Message: mx_online changes for phpBB2 backend, pls don't drop this again... Index: mx_online.html =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_coreblocks/templates/prosilver/mx_online.html,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** mx_online.html 14 Dec 2007 02:23:18 -0000 1.1 --- mx_online.html 31 Jan 2008 05:47:48 -0000 1.2 *************** *** 4,8 **** </div> <div class="inner bg2 post" style="margin-top:0x;"> ! {TOTAL_USERS_ONLINE} [ {L_WHOSONLINE_ADMIN} ] [ {L_WHOSONLINE_MOD} ]<br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST} </div> <span class="corners-bottom"><span></span></span> --- 4,9 ---- </div> <div class="inner bg2 post" style="margin-top:0x;"> ! {TOTAL_USERS_ONLINE} <br />{RECORD_USERS}<br />{LOGGED_IN_USER_LIST}<br /> ! <em>{L_ONLINE_LEGEND}: {ONLINE_LEGEND}</em> </div> <span class="corners-bottom"><span></span></span> |