Exemplo n.º 1
0
    echo foot();
} elseif ($job == 'cache_refresh') {
    $file = $gpc->get('file', str);
    echo head();
    $cache = new CacheItem($file);
    $data = $cache->delete();
    ok('admin.php?action=misc&job=cache', 'The cache-file was deleted. Therefore, this file will not be listed in the overview for the time being. If it is necessary the next time the cache will be rebuild and listed automatically into the overview.');
} elseif ($job == 'cache_refresh_all') {
    echo head();
    $dir = 'cache';
    if ($dh = @opendir($dir)) {
        while (($file = readdir($dh)) !== false) {
            if (strpos($file, '.inc.php') !== false) {
                $file = str_replace('.inc.php', '', $file);
                $cache = new CacheItem($file);
                $data = $cache->delete();
            }
        }
        closedir($dh);
    }
    ok('admin.php?action=misc&job=cache', 'The cache-files were deleted. Therefore, this file will not be listed in the overview for the time being. If it is necessary the next time the cache will be rebuild and listed automatically into the overview.');
} elseif ($job == 'onlinestatus') {
    echo head();
    $b = file_get_contents('data/imservers.php');
    ?>
<form name="form" method="post" action="admin.php?action=misc&job=onlinestatus2">
 <table class="border" border="0" cellspacing="0" cellpadding="4" align="center">
  <tr> 
   <td class="obox" colspan="2"><b>Online-Status Server</b></td>
  </tr>
  <tr>
Exemplo n.º 2
0
	}
	else if ($left > 60) {
		 $left = round($left/60, 1).$lang->phrase('admin_member_hours');
	}
	else {
		$left = ceil($left).$lang->phrase('admin_member_minutes');
	}

	if ($steps > $page) {
		$percent = (100/$all)*(($page)*$data['batch']);
		$url = 'admin.php?action=members&amp;job=newsletter3&amp;id='.$id.'&amp;page='.$page2;
	}
	else {
		$percent = 100;
		$url = 'admin.php?action=members&amp;job=newsletter_view&amp;id='.$id;
		$cache->delete();
	}

	$htmlhead .= '<meta http-equiv="refresh" content="'.$sec.'; url='.$url.'">';
	echo head();
	?>
	 <table class="border" border="0" cellspacing="0" cellpadding="4" align="center">
	  <tr>
	   <td class="obox"><?php echo $lang->phrase('admin_member_sending_nl'); ?></td>
	  </tr>
	  <tr>
	   <td class="mbox">
	   	<div style="width: 600px; border: 1px solid black; background-color: white;"><div style="width: <?php echo ceil($percent)*6; ?>px; background-color: steelblue;">&nbsp;</div></div>
	   <?php echo $lang->phrase('admin_member_progress').round($percent, 1); ?>%<br />
	   <?php echo $lang->phrase('admin_member_time_left'); ?><?php echo $left; ?>
	   </td>
Exemplo n.º 3
0
</a></td>
		  </tr>
		 </table>
		<?php 
        echo foot();
    } else {
        error('admin.php?action=db&job=backup', $lang->phrase('admin_db_backup_missing_permissions'));
        $filesystem->unlink($tfile);
        $x->delete();
    }
} elseif ($job == 'backup4') {
    $name = $gpc->get('name', none);
    $x = new CacheItem('backup_' . $name);
    $x->import();
    $temp = $x->get();
    $x->delete();
    // Speichern der Backup-Datei
    $tfile = "admin/backup/{$name}.sql.tmp";
    $file = "admin/backup/{$name}.sql";
    $filesystem->rename($tfile, $file);
    $ok = $lang->phrase('admin_db_backup_successfully_created');
    if (!empty($temp['zip'])) {
        $zipfile = "admin/backup/{$name}.zip";
        require_once 'classes/class.zip.php';
        $archive = new PclZip($zipfile);
        $v_list = $archive->create($file, PCLZIP_OPT_REMOVE_PATH, dirname($file));
        if ($v_list == 0) {
            $ok = $lang->phrase('admin_db_zip_error_saved_txt') . '<br />' . $lang->phrase('admin_db_error') . ' ' . $archive->errorInfo(true);
        } else {
            $filesystem->unlink($file);
            $file = $zipfile;