Raised This Month: $ Target: $400
 0% 

New fvault custom function


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
GXLZPGX
Veteran Member
Join Date: Sep 2009
Old 01-01-2011 , 17:04   Re: New fvault custom function
Reply With Quote #2

Quote:
Originally Posted by .MMYTH. View Post
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);

?
Suggestion: Test it
__________________
Currently accepting payment US DOLLARS ONLY for custom plugins, contact me through PM.
GXLZPGX is offline
 



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