Jump to content
MakeWebGames

Squa11

Members
  • Posts

    2
  • Joined

  • Last visited

    Never

Everything posted by Squa11

  1. Here is an open source database/file backup script that I use and works quite well ive seen others requesting in other posts Info about the script Welcome to phpMyBackupPro Here on the offcial homepage you will find all informations about phpMyBackupPro (pMBP). phpMyBackup Pro is a very easy to use, free, web-based MySQL backup application, licensed under the GNU GPL. You can create scheduled backups, manage and restore them, download or email them and a lot more!     Major features: - backup of one or several databases with or without data, table structure, ... - three types of compression (no compression, gzip or zip) - scheduled backups (by a small PHP script which must be included in an existing PHP script) - interface for managment of the backups (viewing, restoring, downloading, deleting) - backup directly onto FTP server and sending of backups by email - platform independent - only webserver and PHP needed to run e.g. on MS Windows, Linux or Mac - shell mode (to use manually or by cron script) - backup of whole file directories (on a FTP server). - backup databases from different accounts on several MySQL servers - one installation can be used for all MySQL users of one MySQL server (used by webhosters) - highest security through two alternative login methods (HTTP or HTML authentication) - easy to use interface and very easy to install - several language packages available - online help (included in pMBP) and FAQ on this website   Get from their website which is http://www.phpmybackuppro.net/
  2. replace with the following and edit your hyperlinks to staff.php instead of mine with is staff_special.php as appropriate and the "/home/ganja360/public_html/ipbans/ bits as mine obviously differ This code will log which admin banned aswell as the ip and time in staff logs This code will log which admin unbanned aswell as the ip and time in staff logs Hope this helps old post with no replys if you ever get it function ipban() { ?><h3>Ban an IP</h3> <form action='staff_special.php?action=ipbancon' method='post'> <input type="text" name="ip" /> <input type='submit' value='BAN!' /></form> <hr width="50%" /> <a href="staff_special.php?action=ipbanview">[b]Click to view current IP bans[/b] [url="staff.php"][b]Back To Staff Pannel[/b][/url] <? } function ipbancon() { $filename='/home/tenterfi/public_html/testing/ipbans/'.$_POST['ip']; $file=fopen($filename,w) or die("Error Creating File"); fclose($file); ?>IP added to banlist [url="staff_special.php?action=ipbanview"][b]Back[/b][/url]<? stafflog_add("Banned IP {$_POST['ip']}"); } function ipbanview() { $dir = "/home/tenterfi/public_html/testing/ipbans/"; ?> <h3>Viewing banned IP's</h3> <table border="1"> <tr> <th> IP </th> <th> Delete? </th> </tr><? if (is_dir($dir)) { if ($dh = opendir($dir)) { while (($file = readdir($dh)) !== false) { if (strlen($file)>4) { ?> <tr> <td> <? echo $file; ?> </td> <td> [url="staff_special.php?action=ipbanremove&ip=<? echo $file; ?>"][b]Delete[/b][/url] </td> </tr> <? } } closedir($dh); } } ?></table> [url="staff_special.php?action=ipban"][b]Back To Ban IP[/b][/url] [url="staff.php"][b]Back To Staff Panel[/b][/url] <? } function ipbanremove() { $file=$_GET['ip']; $filepath = "/home/tenterfi/public_html/testing/ipbans/".$file; if (! unlink ($filepath)) { echo "Couldn't delete file"; } else { echo "IP $file removed from banlist"; stafflog_add("Unbanned IP $file"); } ?> [url="staff_special.php?action=ipbanview"][b]Back[/b][/url]<? }
×
×
  • Create New...