| along with this program; if not, write to the Free Software | | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.| +--------------------------------------------------------------------------+ */ /* +--------------------------------------------------------------------------+ | phpMyBackupPro Italian translation | +--------------------------------------------------------------------------+ | Italian translation 2.1 | | November 2007 by Leonardo Sarais, crazy4linux@gmail.com | +--------------------------------------------------------------------------+ */ chdir(".."); require_once "definitions.php"; echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\"\n \"http://www.w3.org/TR/html4/loose.dtd\">\n<html" . ARABIC_HTML . ">\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html;charset=" . BD_CHARSET_HTML . "\">\n<link rel=\"stylesheet\" href=\"./../" . PMBP_STYLESHEET_DIR . $CONF['stylesheet'] . ".css\" type=\"text/css\">\n<title>phpMyBackupPro - " . F_HELP . "</title>\n</head>\n<body>\n<table border=\"0\" cellspacing=\"2\" cellpadding=\"0\" width=\"100%\">\n\n<tr><th colspan=\"2\" class=\"active\">"; echo PMBP_image_tag("../" . PMBP_IMAGE_DIR . "logo.png", "phpMyBackupPro " . PMBP_WEBSITE, PMBP_WEBSITE); echo "</th></tr>\n"; // choose help text switch (preg_replace("'^.*/'", "", $_GET['script'])) { case 'index.php': $filename = F_START; $html = "In questa pagina puoi vedere le informazioni sul server dove phpMyBackupPro è in esecuzione.<br><br>\n " . PMBP_I_SERVER . ": Qui puoi vedere su quale tipo di server phpMyBackupPro è in esecuzione e l'orario del server<br><br>\n " . "PHP" . ": Qui puoi vedere la versione di PHP e le informazioni circa i diversi moduli e funzioni PHP.\n Puoi vedere se il PHP safe mode è attivato, il valore del PHP memory limit, se è possibile la compressione gzip,\n e se il server è in grado di inviare email e se è possibile trasferire file via FTP sul server.<br>\n " . "MySQL" . ": Qui puoi vedere la versione del tuo server e del tuo client MySQL.<br>\n " . F_BACKUP . ": Qui puoi vedere lo spazio disco occupato dai backup, \n quando è stato eseguito l'ultimo backup manuale e quando è stato eseguito l'ultimo backup schedulato.<br>\n " . LI_LOGIN . ": Qui puoi vedere quando ti sei loggato a phpMyBackupPro l'ultima volta e da quale indirizzo IP."; break; case 'config.php': $filename = F_CONFIG; $html = "Ci sono due livelli di configurazione: opzioni di configurazione base o avanzate. Editare le configurazioni avanzate è opzionale.\n Il segno * indica che il valore non può essere nullo.<br><br>\n Configurazione base:<br>\n " . C_SITENAME . ": Dai al tuo sistema un nome, per esempio 'server di produzione'.<br>\n\t" . C_LANG . ": Cambia il linguaggio di phpMyBackupPro. Puoi scaricare diversi pacchetti delle lingue dal sito di phpMyBackupPro.<br>\n\t" . C_SQL_HOST . ": Inserisci il tuo host MySQL, per esempio 'localhost'.<br>\n\t" . C_SQL_USER . ": Inserisci il tuo username MySQL.<br>\n\t" . C_SQL_PASSWD . ": Inserisci la tua password MySQL.<br>\n\t" . C_SQL_DB . ": Soltanto se vuoi usare un solo database sul server inseriscine il nome qui.<br>\n\t" . C_FTP_USE . ": Seleziona questo soltanto se vuoi usare le funzioni FTP per fare l'upload FTP in automatico su un server FTP.<br>\n\t" . C_FTP_BACKUP . ": Seleziona questo soltanto se tu vuoi abilitare la directory di backup sul server FTP.<br>\n\t" . C_FTP_REC . ": Seleziona questo se vuoi effettuare il backup di directory e includere le sottodirectory.<br>\n\t" . C_FTP_SERVER . ": Inserisci l'IP o l'URL del tuo server FTP.<br>\n\t" . C_FTP_USER . ": Inserisci il tuo username FTP.<br>\n\t" . C_FTP_PASSWD . ": Inserisci la tua password FTP.<br>\n\t" . C_FTP_PATH . ": Inserisci un percorso di una directory del server FTP dove salvare i backup.<br>\n\t" . C_FTP_PASV . ": Seleziona questo se usi l'FTP passivo.<br>\n\t" . C_FTP_PORT . ": Inserisci la porta del server FTP. Quella di default è la 21.<br>\n\t" . C_FTP_DEL . ": Seleziona questo soltanto se vuoi che i file di backup sul server FTP vengano cancellati quando li cancelli localmente.<br>\n\t" . C_EMAIL_USE . ": Seleziona questo soltanto se vuoi inviare i backup automaticamente via email.<br>\n\t" . C_EMAIL . ": Inserisci l'indirizzo email del destinatario dei backup.<br><br>\n\tConfigurazione Avanzata:<br>\n\t" . C_STYLESHEET . ": Seleziona un foglio di sile per phpMyBackupPro. Puoi scaricare o inviare fogli di stile sul sito di phpMyBackupPro.<br>\n\t" . C_DATE . ": Seleziona il tuo formato data preferito.<br>\n\t" . C_LOGIN . ": Qui puoi impostare il metodo di autenticazione HTTP se lo vuoi.<br>\n\t" . C_DEL_TIME . ": Specifica il numero di giorni dopo i quali i file di backup vengono automaticamente cancellati. Usa 0 per disabilitare questa funzione.<br>\n\t" . C_DEL_NUMBER . ": Specifica un numero di massimo di file di backup per ogni database.<br>\n\t" . C_TIMELIMIT . ": Aumenta il PHP time limit se hai problemi di importazione o esecuzione dei backup. Questa impostazione non ha effetto se il PHP safe mode è attivato.<br>\n\t" . C_CONFIRM . ": Scegli quale azione di importazione deve essere confermata.<br>\n\t" . C_IMPORT_ERROR . ": Seleziona questo per ricevere una lista di errori di importazione, nel caso ce ne siano.<br>\n\t" . C_DIR_BACKUP . ": Seleziona questo per abilitare i backup su directory. Dati FTP validi devono essere inseriti per usare questa funzione.<br>\n\t" . C_DIR_REC . ": Seleziona questo per effettuare il backup in modo ricorsivo.<br>\n\t" . C_NO_LOGIN . ": Seleziona questo per disabilitare la funzione di login. Questo non è raccomandato visto che chiunque protrà fare accesso al tuo database!<br><br>\n\tVariabili di sistema:<br>\n\tQui puoi cambiare il valore delle variabili di sistema di phpMyBackupPro. Fallo soltanto se sei sicuro di ciò che stai facendo.\n\tPotrai trovare più aiuto guardando il file 'SYSTEM_VARIABLES.txt' che si trova nella documentazione."; break; case 'import.php': $filename = F_IMPORT; $html = "Qui puoi vedere tutti i file di backup locali.<br>\n Puoi avere più informazioni cliccando '" . B_INFO . "'.<br>\n Per scaricare il file di backup clicca '" . B_DOWNLOAD . "'.<br>\n Clicca '" . B_IMPORT . "' per reimportare il file nel database. Prima di fare ciò puoi svuotare il database cliccando '" . B_EMPTY_DB . "'.<br>\n Puoi importare bakcup di grandi dimensioni usando l'importazione '" . B_IMPORT_FRAG . "'. Questo importerà il backup bit a bit.<br>\n Per cancellare un file di backup clicca '" . B_DELETE . "'. Puoi cancelalre tutti i backup di un database cliccando '" . B_DELETE_ALL . "'.<br><br>\n Clicca '" . B_EMPTY_ALL . "' per svuotare tutti i database, clicca '" . B_IMPORT_ALL . "' per importare l'ultimo backup di ogni database,\n clicca '" . B_DELETE_ALL_2 . "' per cancellare tutti i file di backup disponibili."; break;
| GNU General Public License for more details. | | | | You should have received a copy of the GNU General Public License | | along with this program; if not, write to the Free Software | | Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307,USA.| +--------------------------------------------------------------------------+ */ // This code is derived from BigDump ver. 0.21b from 2005-02-08 // Author: Alexey Ozerov (alexey at ozerov dot de) // More Infos: http://www.ozerov.de/bigdump // License: GNU General Public License 2 require_once "login.php"; @session_start(); // print html header echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\"\n \"http://www.w3.org/TR/html4/loose.dtd\">\n<html" . ARABIC_HTML . ">\n<head>\n<meta http-equiv=\"Content-Type\" content=\"text/html;charset=utf-8\">\n<link rel=\"stylesheet\" href=\"" . PMBP_STYLESHEET_DIR . $CONF['stylesheet'] . ".css\" type=\"text/css\">\n<title>Lugrawibe Backup - " . INF_INFO . "</title>\n</head>\n<body>\n<table border=\"0\" cellspacing=\"2\" cellpadding=\"0\" width=\"100%\">\n\n<tr><th colspan=\"2\" class=\"active\">\n"; echo PMBP_image_tag("logo.png", "Lugrawibe Backup PMBP_WEBSITE", PMBP_WEBSITE); echo "\n</th></tr>\n"; @set_time_limit($CONF['timelimit']); // set parameters $linespersession = 10000; // set some basic values on start up $error = false; if (!isset($_GET['sn'])) { $_GET['sn'] = 0; } else { $_GET['sn']++; } if (!isset($_GET['totalqueries'])) { $_GET['totalqueries'] = 0; } if (!isset($_GET['dbn'])) {
function PMBP_print_header($scriptname) { global $CONF; global $_POST; global $PMBP_SYS_VAR; global $PMBP_MU_CONF; if (!isset($CONF['stylesheet'])) { $CONF['stylesheet'] = "standard"; } echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01\nTransitional//EN\" \"http://www.w3.org/TR/html4/loose.dtd\">\n<html" . ARABIC_HTML . ">\n<head>\n<title>phpMyBackupPro " . PMBP_VERSION; // print mu mode info in browser title if ($_SESSION['multi_user_mode']) { echo " (Multi User Mode)"; } if (isset($_SESSION['sql_user']) && isset($_SESSION['sql_passwd'])) { if ($_SESSION['sql_user'] && $_SESSION['sql_user'] == $PMBP_MU_CONF['sql_user_admin'] && $_SESSION['sql_passwd'] == $PMBP_MU_CONF['sql_passwd_admin']) { echo " (Multi User Mode Administration)"; } } if (!file_exists(PMBP_STYLESHEET_DIR . $CONF['stylesheet'] . ".css")) { if (!file_exists(PMBP_STYLESHEET_DIR . ($CONF['stylesheet'] = "standard") . "css")) { echo "STYLESHEET IS MISSING!"; } } echo "</title>\n<meta http-equiv=\"Content-Type\" content=\"text/html;charset=" . BD_CHARSET_HTML . "\">\n<meta name=\"robots\" content=\"noindex\">\n<meta name=\"robots\" content=\"nofollow\">\n<link href=\"images/favicon.png\" type=\"image/png\" rel=\"icon\">\n<link rel=\"stylesheet\" href=\"" . PMBP_STYLESHEET_DIR . $CONF['stylesheet'] . ".css\" type=\"text/css\">\n"; readfile(PMBP_JAVASCRIPTS); // define menue $menu = array("index.php" => F_START, "config.php" => F_CONFIG, "import.php" => F_IMPORT, "backup.php" => F_BACKUP, "scheduled.php" => F_SCHEDULE, "db_info.php" => F_DB_INFO); // disable sql queries in mu mode if allow_sql_queries is false if ($_SESSION['multi_user_mode'] && $PMBP_MU_CONF['allow_sql_queries'] || !$_SESSION['multi_user_mode']) { $menu = array_merge($menu, array("sql_query.php" => F_SQL_QUERY)); } $accesskeys = array("index.php" => "m", "config.php" => "c", "import.php" => "i", "backup.php" => "b", "scheduled.php" => "s", "db_info.php" => "d", "sql_query.php" => "q", "logout" => "l", "help" => "h"); $simple_width = 130; $width = count($menu) * $simple_width; echo "</head>\n\n<body>\n<table width=\"" . $width . "\">\n <colgroup>\n <col span=\"" . count($menu) . "\" width=\"" . $simple_width . "\">\n </colgroup>\n <tr>\n <th colspan=\"" . count($menu) . "\" class=\"active\" id=\"menu\">\n"; // print titel echo "<div id=\"logo\">\n"; echo PMBP_image_tag("logo.png", "phpMyBackupPro", "phpMyBackupPro Homepage", PMBP_WEBSITE); echo " " . PMBP_VERSION . "\n"; echo "</div>\n<div id=\"help\">\n"; // generate popup link for proper help file if (!file_exists("./" . PMBP_LANGUAGE_DIR . $CONF['lang'] . "_help.php")) { echo PMBP_pop_up("./" . PMBP_LANGUAGE_DIR . "english_help.php?script=" . $scriptname, PMBP_image_tag("help.gif", "", "help") . F_HELP, "help", "help"); } else { echo PMBP_pop_up("./" . PMBP_LANGUAGE_DIR . $CONF['lang'] . "_help.php?script=" . $scriptname, PMBP_image_tag("help.gif", "", "help") . F_HELP, "help", "help"); } echo "\n</div>\n<div id=\"logout\">\n"; // print logout link if function is not disabled if (!($CONF['no_login'] == "1" && $CONF['login'] == "0")) { echo "<a href=\"login.php?logout=TRUE\" accesskey=\"l\" title=\"[access key = l]\">"; echo PMBP_image_tag("login.gif", "", "[access key = l]"); echo F_LOGOUT . "</a>\n"; } echo "\n</div>\n"; echo " </th>\n"; // print selection for several sql servers if (count($CONF['sql_passwd_s']) && basename($_SERVER['SCRIPT_NAME']) !== "config.php" && !isset($_POST['period'])) { echo " </tr>\n <tr>\n <th colspan=\"" . count($menu) . "\">\n <form action=\"" . basename($_SERVER['SCRIPT_NAME']) . "\" method=\"POST\">\n <span class=\"bold_left\">Select working SQL server:</span>\n <select name=\"mysql_host\" onchange=\"submit()\">\n"; if ($CONF['sql_host'] == $_SESSION['sql_host_org'] && $CONF['sql_user'] == $_SESSION['sql_user_org']) { echo "<option value=\"-1\" selected>" . $_SESSION['sql_host_org'] . " (" . $_SESSION['sql_user_org'] . ")</option>\n"; } else { echo "<option value=\"-1\">" . $_SESSION['sql_host_org'] . " (" . $_SESSION['sql_user_org'] . ")</option>\n"; } for ($i = 0; $i < count($CONF['sql_passwd_s']); $i++) { if (isset($CONF['sql_host_s'])) { if ($CONF['sql_host'] == $CONF['sql_host_s'][$i] && $CONF['sql_user'] == $CONF['sql_user_s'][$i]) { echo "<option value=\"" . $i . "\" selected>" . $CONF['sql_host_s'][$i] . " (" . $CONF['sql_user_s'][$i] . ")</option>\n"; } else { echo "<option value=\"" . $i . "\">" . $CONF['sql_host_s'][$i] . " (" . $CONF['sql_user_s'][$i] . ")</option>\n"; } } else { echo "<option value=\"" . $i . "\">" . $CONF['sql_host_s'][$i] . " (" . $CONF['sql_user_s'][$i] . ")</option>\n"; } } echo " </select></form>\n </th>\n"; } echo " </tr>\n <!-- MENU -->\n <tr>\n"; // generate menu foreach ($menu as $filename => $title) { // print active link if ($filename == $scriptname && $filename != "login.php?logout=TRUE" && $filename != "HELP") { echo " <th class=\"active\">\n <a href=\"" . $filename . "\" accesskey=\"" . $accesskeys[$filename] . "\" title=\"[access key = " . $accesskeys[$filename] . "]\">" . PMBP_image_tag(substr($filename, 0, strpos($filename, ".")) . ".gif", "", "[accesskey = " . $accesskeys[$filename] . "]") . $title . "</a>\n </th>\n"; // print lasting menu } elseif ($filename != "login.php?logout=TRUE" && $filename != "HELP") { echo " <th>\n <a href=\"" . $filename . "\" accesskey=\"" . $accesskeys[$filename] . "\" title=\"[access key = " . $accesskeys[$filename] . "]\">" . PMBP_image_tag(substr($filename, 0, strpos($filename, ".")) . ".gif", "", "[accesskey = " . $accesskeys[$filename] . "]") . $title . "</a>\n </th>\n"; } } echo " </tr>\n</table>\n<table width=\"" . $width . "\">\n <colgroup>\n <col width=\"20\">\n <col width=\"*\">\n <col width=\"20\">\n </colgroup>\n <tr>\n <td>\n \n </td>\n <td class=\"main\">\n<!-- HEADER END -->\n"; }
echo BD_CHARSET_HTML; ?> "> <link rel="stylesheet" href="<?php echo PMBP_STYLESHEET_DIR . $CONF['stylesheet']; ?> .css" type="text/css"> <title>phpMyBackupPro</title> </head> <body onLoad="document.login.username.focus()"> <form name="login" action="" method="POST"> <table width="400"> <tr> <th colspan="2" class="active"> <?php echo PMBP_image_tag("logo.png", "phpMyBackupPro", "http://www.phpMyBackupPro.net", "http://www.phpMyBackupPro.net"); ?> </th> </tr> <tr> <td colspan="2"><?php echo LI_MSG; ?> :</td> </tr> <tr> <td><?php echo LI_USER; ?> :</td> <td><input type="text" name="username"></td>
$table_names[] = $status['Name']; $table_rows[] = $status['Rows']; $size = PMBP_size_type($status['Data_length'] + $status['Index_length']); $table_size[] = $size['value'] . " " . $size['type']; } // get number of fields if (is_array($table_names)) { foreach ($table_names as $table) { mysql_query("show columns from `" . $table . "`"); $table_fields[] = mysql_affected_rows(); } } echo "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\"\n \"http://www.w3.org/TR/html4/loose.dtd\">\n<html" . ARABIC_HTML . ">\n<head>\n<title>phpMyBackupPro - " . F_DB_INFO . "</title>\n<meta http-equiv=\"Content-Type\" content=\"text/html;charset=" . BD_CHARSET_HTML . "\">\n<link rel=\"stylesheet\" href=\"./" . PMBP_STYLESHEET_DIR . $CONF['stylesheet'] . ".css\" type=\"text/css\">\n"; readfile(PMBP_JAVASCRIPTS); echo "</head>\n<body class=\"white\">\n<table border=\"0\" cellspacing=\"2\" cellpadding=\"0\" width=\"100%\">\n\n<tr><th colspan=\"4\" class=\"active\">\n"; echo PMBP_image_tag("logo.png", "phpMyBackupPro PMBP_WEBSITE", PMBP_WEBSITE); echo " " . PMBP_VERSION . "</th></tr>\n"; echo "<tr>\n<td colspan=\"4\"><br><div class=\"bold_left\">" . DB_TAB_TITLE . $_GET['table'] . ":</div><br></td>\n</tr>\n"; echo "<tr>\n<th class=\"active\">" . DB_TAB_NAME . "</th>\n<th class=\"active\">" . DB_TAB_COLS . "</th>\n<th class=\"active\">" . DB_NUM_ROWS . "</th>\n<th class=\"active\">" . DB_SIZE . "</th>\n</tr>\n"; for ($i = 0; $i < count($table_names); $i++) { echo "<tr " . PMBP_change_color("#FFFFFF", "#000000") . ">\n<th class=\"active\">" . $table_names[$i] . "</th>\n<td class=\"list\">" . $table_fields[$i] . "</td>"; echo "\n<td class=\"list\">" . $table_rows[$i] . "</td>\n<td class=\"list\">" . $table_size[$i] . "</td>\n</tr>\n"; } // show execution duration if (function_exists("microtime")) { $microtime = explode(" ", microtime()); $endtime = $microtime[0] + $microtime[1]; } else { $endtime = time(); } echo "<tr>\n<td colspan=\"4\">\n<br><div class=\"bold_left\">" . F_DURATION . ": " . number_format($endtime - $starttime, 3) . " " . F_SECONDS . "</div>\n</td>\n</tr>\n";