Bank Cant Open an Account

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   Bank Cant Open an Account
trusttec
CZ Newbie
trusttec has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Sep 18, 2004
0.00 posts per day
Posts: 5
Points: 926
   
I installed the bank mod everything went fine (installiation wise) however i can not open an account? What do you think is wrong here is the code that has to deal with opening it.

if (!is_numeric($row['holding'])) { $bankcommands = '<tr><td class="row2"><span class="gensmall">'.$lang['no_account'].'!</span></td></tr><tr><td class="row2"><span class="gen"><a href="'.append_sid("bank.$phpEx?action=createaccount").'" title="Open an Account!">'.$lang['open_account'].'</a></span></td></tr>'; $title = $board_config['bankname'].'; '.$lang['open_account']; $tablerows = 1; }

also when i hover over the account i notice this is the link
[ Register or login to view links on this board. ]

and when i hover over the one at codezwiz
[ Register or login to view links on this board. ]



Back to top Reply with quote
#2   re: Bank Cant Open an Account
trusttec
CZ Newbie
trusttec has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Sep 18, 2004
0.00 posts per day
Posts: 5
Points: 926
   
perhaps a member of codezwiz could send me there bank.php file? that would be great if one of you could my email is [ Register or login to view links on this board. ] if you would i would be greatfull thanks icon_smile.gif



Back to top Reply with quote
#3   re: Bank Cant Open an Account
CurtisH
CZ Active Member
 Codezwiz Site Donator
CurtisH has been a member for over 20 year's 20 Year Member
usa.gif texas.gif
Gender: Male
Status: Offline
Joined: Jun 14, 2004
0.02 posts per day
Posts: 112
Points: 5,900
AIM Address Yahoo Messenger  
Deleted by author



Back to top Reply with quote
#4   re: Bank Cant Open an Account
trusttec
CZ Newbie
trusttec has been a member for over 20 year's 20 Year Member
Status: Offline
Joined: Sep 18, 2004
0.00 posts per day
Posts: 5
Points: 926
   
i am told if i remove this from my common.php file it will work is this a security threat?


if (!defined('IN_PHPBB')) {
   die("Hacking attempt");
}

function unset_vars(&$var) {
   while (list($var_name, $null) = @each($var)) {

if (!($var_name == 'phpbb_root_path' || $var_name == 'no_page_header' || $var_name == 'phpEx' || $var_name == 'admin' || $var_name == 'user' || $var_name == 'name')) {
   unset($GLOBALS[$var_name]);
  }
}
   return;
}
   error_reporting  (E_ERROR | E_WARNING | E_PARSE);
   set_magic_quotes_runtime(0);

   $ini_val = (@phpversion() >= '4.0.0') ? 'ini_get' : 'get_cfg_var';

   //Unset globally registered vars - PHP5 ... hhmmm
if (@$ini_val('register_globals') == '1' || strtolower(@$ini_val('register_globals')) == 'on') {
   $var_prefix = 'HTTP';
   $var_suffix = '_VARS';

   $test = array('_GET', '_POST', '_SERVER', '_COOKIE', '_ENV');

   foreach ($test as $var) {

if (is_array(${$var_prefix . $var . $var_suffix})) {
   unset_vars(${$var_prefix . $var . $var_suffix});
   @reset(${$var_prefix . $var . $var_suffix});
}

if (is_array(${$var})) {
   unset_vars(${$var});
   @reset(${$var});
  }
}

if (is_array(${'_FILES'})) {
   unset_vars(${'_FILES'});
   @reset(${'_FILES'});
}

if (is_array(${'HTTP_POST_FILES'})) {
   unset_vars(${'HTTP_POST_FILES'});
   @reset(${'HTTP_POST_FILES'});
  }
}

   //PHP5 with register_long_arrays off?
if (!isset($HTTP_POST_VARS) && isset($_POST)) {
   $HTTP_POST_VARS = $_POST;
   $HTTP_GET_VARS = $_GET;
   $HTTP_SERVER_VARS = $_SERVER;
   $HTTP_COOKIE_VARS = $_COOKIE;
   $HTTP_ENV_VARS = $_ENV;
   $HTTP_POST_FILES = $_FILES;
}




Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum