ShopMod 2.6.0 <Username Change Die Message>

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   ShopMod 2.6.0 <Username Change Die Message>
MrFraud
CZ Newbie
MrFraud has been a member for over 18 year's 18 Year Member
philippines.gif
Gender: Male
Status: Offline
Joined: Oct 21, 2005
0.00 posts per day
Posts: 5
Points: 704
   
      if (($type == cusername) && ($shopstatarray[26] == on)) {
         $sql = "select * from " . USERS_TABLE . " where username='$newname'";
         if ( !($result = $db->sql_query($sql)) ) { message_die(GENERAL_MESSAGE, 'Fatal Error Checking Username!'); }
         if (mysql_num_rows($result) > 0) { message_die(GENERAL_MESSAGE, 'That name is already in use, go back and pick another one!'); }
         elseif ((!preg_match("/^[a-zA-Z0-9 ]*$/", $newname)) || (strlen($newname) < 2)) { message_die(GENERAL_MESSAGE, 'Invalid name, Characters must be A-Z & a-z. If you wish a different type of name change contact an admin.'); }
         else { $specialcost = $shopstatarray[27]; }
      }


this is the original codes in shop mod 2.6.0..i am wondering if these lines are correct and valid, because at my ShopMod installation, i have tested most features at the "effects store" but this username change always return a die message. Please let me know what causes this die message since i likewise follow the instructions and input a well valid usernames.


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