View Single Post
  #13  
Old 06-19-2013, 08:43 AM
Gunderak Gunderak is offline
Coder
Gunderak's Avatar
Join Date: Jun 2011
Location: Australia
Posts: 795
Gunderak is on a distinguished road
Failed completely :/
PHP Code:
public function NewRC(acc){
  
//Let NC messages send first..
  
sleep(5);
  
temp.comment = this.GetComments(acc);
  if(
md5(comment) != this.(@acc)){
    
acc.sendtorc("Your comments have changed since you last logged on.");
  }
  
this.(@acc) = md5(comment);
}
function 
GetComments(ac){
  
temp.st = temp.ac.substring(0, 2);
  
temp.path = format("accounts/%s/%s.txt", st, ac);
  
temp.file.loadstring(temp.path);
  
temp.file = temp.file.tokenize("\r\n");
  
temp.comments;
  for(
temp.line : temp.file){
    if(
line.starts("COMMENTS")){
      return 
line.substring(9);
    }
  }
  return 
"none";
} 
__________________

Gund for president.

Remote PM {P*}x (Graal813044) from eraiphone -> Stefan: I hav 1 qustion
*Gunderak: he hav 1
*Gunderak: qustion
Reply With Quote