Raised This Month: $ Target: $400
 0% 

New fvault custom function


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
.MMYTH.
BANNED
Join Date: Sep 2010
Location: Brasil - RS
Old 01-01-2011 , 16:47   New fvault custom function
Reply With Quote #1

I make a new function to add to my custom fvault and i want know if is correct:

PHP Code:
stock fvault_remove_data(const vaultname[], const key[], const data[])
{
    new 
filename[128];
    
_FormatVaultName(vaultnamefilenamesizeof(filename) - 1);
    
    if( !
file_exists(filename) )
    {
        return;
    }
    
    new 
file fopen(_temp_vault"wt");
    
    new 
vault fopen(filename"rt");
    
    new 
_data[512], _other[3];
    
    while( !
feof(vault) )
    {
        
fgets(vault_datasizeof(_data) - 1);
        
parse(_data_keysizeof(_key) - 1_othersizeof(_other) - 1);
        
        
replace(_datacharsmax(_data), data"")
        
trim(data)
    }
    
    
fclose(file);
    
fclose(vault);

?
.MMYTH. is offline
Send a message via MSN to .MMYTH.
 



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

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:09.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode