0.9.0 - the ZapV version updated to current php standards. Brave search used, while Bing and Google search api are deprecated
This commit is contained in:
parent
3d4298fe8b
commit
4ddaddda3d
31 changed files with 1778 additions and 1 deletions
28
cli_scripts/reset.php
Executable file
28
cli_scripts/reset.php
Executable file
|
|
@ -0,0 +1,28 @@
|
|||
<?php
|
||||
session_start();
|
||||
|
||||
unset($_SESSION['imgOriginal']);
|
||||
unset($_SESSION['words']);
|
||||
unset($_SESSION['folder']);
|
||||
unset($_SESSION['collages']);
|
||||
unset($_SESSION['width']);
|
||||
unset($_SESSION['height']);
|
||||
|
||||
echo '<p>session reset</p><p>';
|
||||
|
||||
if ($_GET['allcollages'] == 'clear') {
|
||||
$sessions = glob('./Sessions/*');
|
||||
foreach($sessions as $folder){
|
||||
$files = glob($folder.'/*');
|
||||
foreach($files as $fileToDelete){
|
||||
echo "$fileToDelete deleted<br />";
|
||||
unlink($fileToDelete);
|
||||
}
|
||||
echo "$folder deleted<br />";
|
||||
rmdir($folder);
|
||||
}
|
||||
}
|
||||
echo '</p>';
|
||||
|
||||
session_destroy();
|
||||
?>
|
||||
Loading…
Add table
Add a link
Reference in a new issue