Little addon for Emisands Admin Panel 'Auto Backup database'

Page 1 of 3 123 LastLast
Results 1 to 15 of 41
  1. #1
    Status: Pooping eele is offline
    MemberRank
    Jul 2008 Join Date
    The NetherlandsLocation
    915Posts

    Little addon for Emisands Admin Panel 'Auto Backup database'

    Tutorial
    Typ your db name and a path to where the .BAK must be located and press the button:)

    Tutorial how to install it

    Replace the panel.php that is located under this line with the original or replace the code in panel.php with the code right below the link.

    Link updated 9-6-2010
    http://www.mediafire.com/?j2dzmjzwqzy

    PHP Code:
    <?php
        
    if( !ereg("index.php"$_SERVER['PHP_SELF']) )
        {
            
    header("Location: index.php");
            die();
        }
    ?>

    <p align="left"><b><font face="Arial" size="4"><?php echo $_STR[Home0]; ?></font></b></p>
    <p align="left"><font face="Arial"><?php echo $_STR[Home1]; ?> <a href="http://forum.ragezone.com/f245/emisands-gunz-admin-panel-v3-481443/">http://forum.ragezone.com/f245/emisands-gunz-admin-panel-v3-481443/</a></font></p>
    <table border="0" width="80%" id="table1" cellspacing="1" style="border-collapse: collapse">
        <tr>
            <td style="border-style: solid; border-width: 2px; padding-left: 4px; padding-right: 4px" bordercolor="#FF9933">
            <p align="left"><font face="Arial"><em><strong><?php echo $_STR[Home2]; ?></strong></em></font></td>
        </tr>
        <tr>
            <td style="border-style: solid; border-width: 2px; padding-left: 4px; padding-right: 4px" bordercolor="#FF9933">
            <p align="left"><font face="Arial" style="font-size: 11pt"><?php echo $_STR[Home3]; ?><strong>
        <?php
        $query 
    odbc_exec($connection"SELECT COUNT(*) FROM {$_CONFIG[AccountTable]}(nolock)");
        
    odbc_fetch_row($query);
        echo 
    odbc_result($query1);
        
    ?>
        </strong><?php echo $_STR[Home4]; ?><strong>
        <?php
        $query 
    odbc_exec($connection"SELECT COUNT(*) FROM {$_CONFIG[CharTable]}(nolock)");
        
    odbc_fetch_row($query);
        echo 
    odbc_result($query1);
        
    ?>
        </strong><?php echo $_STR[Home5]; ?><strong>
        <?php
        $query 
    odbc_exec($connection"SELECT CurrPlayer FROM ServerStatus(nolock) WHERE Opened != 0");
        
    $count 0;
        while( 
    odbc_fetch_row($query) )
        {
            
    $count $count odbc_result($query1);
        }
        echo 
    $count;
        
    ?>
        </strong></font></font></p>
        <p align="left"><font face="Arial" style="font-size: 11pt"><strong><?php echo $_STR[Home6]; ?><br />
        
        <?php
        $query 
    odbc_exec($connection"SELECT * FROM ServerStatus(nolock) WHERE Opened != 0");
        while( 
    $data odbc_fetch_object($query) )
        {
            
    $ip $data->IP;
            
    $port $data->Port;
            
    $name $data->ServerName;
            
    $fp = @fsockopen($ip$port$errno$errstr1);

            if (!
    $fp)
            {
                echo 
    "{$_STR[Home7]}$name - <font style='color: #FF3300'><B>Offline</B></font><br />";
            }
            else
            {
                echo 
    "{$_STR[Home7]}$name - <font style='color: #009933'><B>Online</B></font><br />";
                
    fclose($fp);
            }
        }
        
    ?>
        </strong></font></font></p>
        <hr /><div align="center"><form action="<?=$_SERVER['PHP_SELF'];?>" method="post">
        Insert Database name default is GunzDB <input type="text" name="db" value="GunzDB" /><br />
        Create a realistic path <input type="text" name="path" value="C:\nlgunz" /><br />
        <input type="submit" name="bak" value="Create Back-up now" />
        </form>
        <?php
    $query 
    "DECLARE @name VARCHAR(50) -- database name 
    DECLARE @path VARCHAR(256) -- path for backup files 
    DECLARE @fileName VARCHAR(256) -- filename for backup 
    DECLARE @fileDate VARCHAR(20) -- used for file name

    SET @path = '
    {$_POST['path']}'

    SELECT @fileDate = CONVERT(VARCHAR(20),GETDATE(),112)

    DECLARE db_cursor CURSOR FOR 
    SELECT name 
    FROM master.dbo.sysdatabases 
    WHERE name = '
    {$_POST['db']}'

    OPEN db_cursor  
    FETCH NEXT FROM db_cursor INTO @name  

    WHILE @@FETCH_STATUS = 0  
    BEGIN  
           SET @fileName = @path + 'GunZ' + '_' + @fileDate + '.BAK' 
           BACKUP DATABASE @name TO DISK = @fileName 

           FETCH NEXT FROM db_cursor INTO @name  
    END  

    CLOSE db_cursor  
    DEALLOCATE db_cursor"
    ;
        if(isset(
    $_POST['bak'])){
        if(!
    file_exists($_POST['path'])){
        echo 
    "The path you have given isn't correct..";
        }else{
        
    $insert odbc_prepare($connection,$query);
        if(!@
    odbc_execute($insert)){
        echo 
    'Something went wrong O.o A good solution for fixing this problem: Throw your computer out of your window:)';
        }else{
        echo 
    'Database has been saved to '.$_POST['path'].' on the hosting pc.';
        }
        }
    }
    #dbautobackup by Eele Ā© 2009, yea I wanted some credits for this shitty google'ed query lal.
    ?>
        </div>
        </td>
        </tr>
    </table>
    Ok and here is a little screen
    Attached Thumbnails Attached Thumbnails backupscreen.jpg  
    Last edited by eele; 09-06-10 at 06:34 PM.


  2. #2
    Apprentice LegendaryMapper is offline
    MemberRank
    Jul 2009 Join Date
    13Posts

    Re: Little addon for Emisands Admin Panel 'Auto Backup database'

    nice if it works.

  3. #3
    Faraday Das Neves Jizeth is offline
    MemberRank
    Sep 2008 Join Date
    VenezuelaLocation
    392Posts

    Re: Little addon for Emisands Admin Panel 'Auto Backup database'

    wow!... nice release! thnx!

  4. #4
    Intelligent DoucheBag jur13n is offline
    MemberRank
    Jan 2008 Join Date
    Zwolle,Location
    1,946Posts

    Re: Little addon for Emisands Admin Panel 'Auto Backup database'

    pro

    /10char

  5. #5
    Apprentice [K]nightMare is offline
    MemberRank
    Oct 2009 Join Date
    In Your Dreams!Location
    19Posts

    Re: Little addon for Emisands Admin Panel 'Auto Backup database'

    Aye thnx <3

  6. #6
    Doggie And Rice. Military is offline
    MemberRank
    Jun 2009 Join Date
    Here and AboutLocation
    3,301Posts

    Re: Little addon for Emisands Admin Panel 'Auto Backup database'

    there's one that X-Weaver edited can u do that for me? i am using his web

  7. #7
    Status: Pooping eele is offline
    MemberRank
    Jul 2008 Join Date
    The NetherlandsLocation
    915Posts

    Re: Little addon for Emisands Admin Panel 'Auto Backup database'

    Quote Originally Posted by LegendaryMapper View Post
    nice if it works.
    Ofcourse it works:)

    And thanks for the good reactions:)

    ---------- Post added at 11:02 PM ---------- Previous post was at 11:00 PM ----------

    Quote Originally Posted by Military View Post
    there's one that X-Weaver edited can u do that for me? i am using his web
    Lol, didn't saw your reply on time:$ What has X-Weaver edited on it?

  8. #8
    Animu Addicted Number12 is offline
    MemberRank
    Apr 2008 Join Date
    Old Sunny CALocation
    1,264Posts

    Re: Little addon for Emisands Admin Panel 'Auto Backup database'

    O nice man. Do backup from web is great idea ^.^ 10/10

  9. #9
    Doggie And Rice. Military is offline
    MemberRank
    Jun 2009 Join Date
    Here and AboutLocation
    3,301Posts

    Re: Little addon for Emisands Admin Panel 'Auto Backup database'

    Quote Originally Posted by eele View Post
    Ofcourse it works:)

    And thanks for the good reactions:)

    ---------- Post added at 11:02 PM ---------- Previous post was at 11:00 PM ----------



    Lol, didn't saw your reply on time:$ What has X-Weaver edited on it?

    Home
    Gift Event Coins
    Account List
    View Player's Character's
    Add News
    Login Account list
    Gift Coins
    Ban a User
    Admin Chat
    Add EventShop
    Add ItemShop
    ASCII Table
    Account List

    Search
    Manage Accounts
    Manage Characters
    Manage Clans
    Logout

    that's every thing

  10. #10
    Status: Pooping eele is offline
    MemberRank
    Jul 2008 Join Date
    The NetherlandsLocation
    915Posts

    Re: Little addon for Emisands Admin Panel 'Auto Backup database'

    Quote Originally Posted by Military View Post
    Home
    Gift Event Coins
    Account List
    View Player's Character's
    Add News
    Login Account list
    Gift Coins
    Ban a User
    Admin Chat
    Add EventShop
    Add ItemShop
    ASCII Table
    Account List

    Search
    Manage Accounts
    Manage Characters
    Manage Clans
    Logout

    that's every thing
    Mke, but is the home the same as the home in the original? Because I only edited panel.php (that's home) So I don't think I don't need to edit something for you:P

  11. #11
    Doggie And Rice. Military is offline
    MemberRank
    Jun 2009 Join Date
    Here and AboutLocation
    3,301Posts

    Re: Little addon for Emisands Admin Panel 'Auto Backup database'

    yea lol imma download it nice release anyway

  12. #12
    Sharing is caring KillerStefan is offline
    MemberRank
    Feb 2007 Join Date
    NetherlandsLocation
    2,554Posts

    Re: Little addon for Emisands Admin Panel 'Auto Backup database'

    Nice eele.

  13. #13
    Account Upgraded | Title Enabled! xgemini is offline
    MemberRank
    Jun 2009 Join Date
    CanadaLocation
    218Posts

    Re: Little addon for Emisands Admin Panel 'Auto Backup database'

    Holy ****

    THANKS!@!@!

  14. #14
    Gunz Developer / Support _System32_ is offline
    MemberRank
    Feb 2008 Join Date
    VenezuelaLocation
    583Posts

    Re: Little addon for Emisands Admin Panel 'Auto Backup database'

    Nice Addon!

  15. #15
    Proficient Member Zinoxity is offline
    MemberRank
    Dec 2009 Join Date
    198Posts

    Re: Little addon for Emisands Admin Panel 'Auto Backup database'

    Thank goodness for people using web based scripts to backup databases, It's better than all those programs that just annoy the hell out of you and create lag. Good job.



Page 1 of 3 123 LastLast

Advertisement