Location: PHPKode > scripts > phpPuszAdmin > phppuszadmin/phpPuszAdmin/renametable.php
<? session_start(); ?>
<? if($dane!="ok") {echo "<h4>You dont heave premision to see this page</h4></body></html>"; exit;}  ?>
<? 
include "conf.php"; 
include "addpuszbaza.php";

if(eregi(" ", $newname)) {echo "Table name can't contain spaces. Please return and choose other name"; exit(); }
if($newname=="") {echo "Table name can't be empty. Please return and choose other name"; exit(); }

$file = $url.$nzw; 
$newnamefull= $newname.".pbf";
rename ($file, $url.$newnamefull);
header("Location: showtable.php?nzw=$newnamefull&na=$newname");
?>
Return current item: phpPuszAdmin