AKB Forums

Go Back   AKB Forums > Technical sections > Languages, Compilers and Interpreters > Web Development
Home Register Blogs FAQ Members List Calendar Downloads Arcade Mark Forums Read

Web Development Java/PHP/Perl/ASP and more

Troubles when posting message? Click here! :: Проблемы с отправлением сообщения? Нажмите сюда!

Reply
 
LinkBack Thread Tools Display Modes
Old Aug 19, 2005, 13:54   #1
Школьник
 
TanTaL's Avatar
 
Join Date: Aug 2002
Location: Yerevan,Armenia
Posts: 201
Rep Power: 7
Reputation: 25
Send a message via ICQ to TanTaL
Unhappy what do !?

PHP Code:
$src = array(
        
'a',
        
'11',
        
'{i',
        
'0;i',
        
'72;i',
        
'1;i',
        
'101;i',
        
'2;i',
        
'108;i',
        
'3;i',
        
'108;i',
        
'4;i',
        
'111;i',
        
'5;i',
        
'32;i',
        
'6;i',
        
'119;i',
        
'7;i',
        
'111;i',
        
'8;i',
        
'114;i',
        
'9;i',
        
'108;i',
        
'10;i',
        
'100;}');

// ************************************************************************************************************
// ************************************************************************************************************


class hash_string{
    
    var 
$src = Array();
    var 
$err = Array();

function 
check_sorce($src){
        
    if (!
is_array($src)){ 
        
$this->err[] = 10;
        return 
false;
    }
    foreach (
$src as $element){
        if (!
preg_match("/[0-9;i]*/i",$element)){
            break;
            
$this->err[] = 1;
            return 
false;
        }
    }
}

function 
hash_string(){
    
    
$try $GLOBALS['src'];

    if (
is_null($try)){
        
$this->err[] = 10;
        return 
false;
    }
    
    
$this->src $try;

}

function 
precheck_done(){
    
    global 
$ERROR;
    
    
$err $this->err;

    if (!
sizeof($err)) 
        return 
true;
    else {
        
$ERROR $this->err;
        exit();
    }
}    

function 
merge_hashes(){

    
$src $this->src;
    
    
$this->check_sorce($src);
    
    
$this->precheck_done();
    
    return 
implode(":",$src);
    
}        

function 
load_errors(){

    
$_err[10] = "Invalid source type !\n";
    
$_err[1]  = "Bad element in hash !\n";

    print 
'<pre>';
    
    foreach ( 
$this->err as $one )
        print 
$_err[$one];
        
}


__________________
negative photography studio
TanTaL is offline   Reply With Quote Quote selected
Old Aug 19, 2005, 14:01   #2
Школьник
 
TanTaL's Avatar
 
Join Date: Aug 2002
Location: Yerevan,Armenia
Posts: 201
Rep Power: 7
Reputation: 25
Send a message via ICQ to TanTaL
mnac kiast chy toghum post anmem
__________________
negative photography studio
TanTaL is offline   Reply With Quote Quote selected
Old Aug 19, 2005, 14:18   #3
Школьник
 
TanTaL's Avatar
 
Join Date: Aug 2002
Location: Yerevan,Armenia
Posts: 201
Rep Power: 7
Reputation: 25
Send a message via ICQ to TanTaL
inch vor symploner kan ha erevy vor sagh scripts chem karum post anmem?!
__________________
negative photography studio
TanTaL is offline   Reply With Quote Quote selected
Old Aug 19, 2005, 15:32   #4
ЙЦУКЕН
 
Join Date: Jul 2002
Location: 0x68,0x69,0x72, 0x69,0x6e,0x67, 0x20,0x6e,0x6f, 0x77
Posts: 3,114
Rep Power: 7
Reputation: 10
Send a message via ICQ to nm
ну и ща за это фигня?
nm is offline   Reply With Quote Quote selected
Old Aug 19, 2005, 16:06   #5
панаехавший
 
Obelix's Avatar
 
Join Date: Jun 2003
Location: форпост
Posts: 4,005
Rep Power: 6
Reputation: 10
Send a message via ICQ to Obelix
кто-то это вручную набирал?
__________________
Իսկ ԴՈՒ արդեն վաճառե՞լ ես Հայրենիքդ ռուսներին:

My Exchange Rate Monitor | Իմ Արտարժույթի Մոնիտորը

Obelix is offline   Reply With Quote Quote selected
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 12:06.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
This board was founded on September 29, 2001
Powered by Viper Internet

Affordable Web Hosting | ParevNet

Buy text link