Esempio n. 1
0
<?php

require_once '../admin/configuration.php';
require_once '../admin/authentication.php';
require_once 'common.php';
// Delete old temporary files in the temp dir
cleanup_files();
?>
<html>
<head>
<title>webpad: locations</title>
<style type="text/css">
BODY {
	padding: 0;
	margin: 0;
	border: 0;
	background: #265997;
}

IMG {
	margin: 0;
	padding: 0;
	border: 0;
}

A.option {
	display: block;
	width: 75px;
	height: 65px;
	margin: 0;
	padding: 3px;
Esempio n. 2
0
 if (!isset($_POST['do-cleanup'])) {
     echo "\n\n\t" . '<form action="_upgrade.php?step=4" method="post">';
     echo "\n\n\t" . '<p class="actions">' . plog_tr('Plogger has found the following files/folders that are no longer needed') . ':</p>';
     echo "\n\n\t\t" . '<ul class="info">';
     foreach ($cleanup_list['files'] as $value) {
         echo "\n\t\t\t" . '<li class="margin-5">' . $value . '</li>';
     }
     foreach ($cleanup_list['folders'] as $value) {
         echo "\n\t\t\t" . '<li class="margin-5">' . $value . '</li>';
     }
     echo "\n\t\t" . '</ul>';
     echo "\n\n\t" . '<p>' . sprintf(plog_tr('You can have Plogger attempt to %s for you, or you can delete them manually via FTP and go to the next step.'), '<input class="submit-inline" type="submit" name="delete" value="' . plog_tr('delete the files') . '..." />') . '';
     echo "\n\t" . '<input type="hidden" id="do-cleanup" name="do-cleanup" value="1" /></p>';
     echo "\n\n\t" . '</form>';
 } else {
     $return = cleanup_files($cleanup_list['files'], $cleanup_list['folders']);
     if (!empty($return['errors'])) {
         echo "\n\n\t" . '<p class="errors">' . plog_tr('Plogger could not delete the following files/folders. Please check your permissions or delete them manually.') . '</p>';
         echo "\n\n\t\t" . '<ul class="info">';
         foreach ($return['errors'] as $value) {
             echo "\n\t\t\t" . '<li class="margin-5">' . $value . '</li>';
         }
         echo "\n\t\t" . '</ul>';
     }
     if (!empty($return['output'])) {
         echo "\n\n\t" . '<p class="actions">' . plog_tr('Plogger was able to delete the following files/folders') . ':</p>';
         echo "\n\n\t\t" . '<ul class="info">';
         foreach ($return['output'] as $value) {
             echo "\n\t\t\t" . '<li class="margin-5">' . $value . '</li>';
         }
         echo "\n\t\t" . '</ul>';