ERED_MITHRIN: obnovu taky udelam na par kliku, import do sql (jeden klik), prehrani dat na ftp zalohou (druhy klik) :)... priklad pro import do db, to neni nic tezkyho ne, pulka z toho je layout, rekni sam:
<?php
$mysqlDatabaseName ='';
$mysqlUserName ='';
$mysqlPassword ='';
$mysqlHostName ='';
$mysqlImportFilename ='neco.sql';
$command='mysql -h' .$mysqlHostName .' -u' .$mysqlUserName .' -p' .$mysqlPassword .' ' .$mysqlDatabaseName .' < ' .$mysqlImportFilename;
exec($command,$output=array(),$worked);
switch($worked){
case 0:
echo 'Import file <b>' .$mysqlImportFilename .'</b> successfully imported to database <b>' .$mysqlDatabaseName .'</b>';
break;
case 1:
echo 'error';
break;
}
?>