diff --git a/common/scripts/clean_empty_dirs.php b/common/scripts/clean_empty_dirs.php new file mode 100644 index 000000000..faafdb135 --- /dev/null +++ b/common/scripts/clean_empty_dirs.php @@ -0,0 +1,58 @@ +old_date = date('YmdHis', time() - ($days * 86400)); +$output = executeQuery('ncenterlite.deleteNotifyAll', $args); +if ($output->toBool()) +{ + echo "Successfully deleted all notifications older than $days days.\n"; +} +else +{ + echo "Error while deleting notifications older than $days days.\n"; + echo $output->getMessage() . "\n"; + $exit_status = abs($output->getError()); +} + +// Set the exit status if there were any errors. +if ($exit_status != 0) +{ + exit($exit_status); +} diff --git a/common/scripts/clean_old_thumbnails.php b/common/scripts/clean_old_thumbnails.php new file mode 100644 index 000000000..b36868973 --- /dev/null +++ b/common/scripts/clean_old_thumbnails.php @@ -0,0 +1,41 @@ +