2006-04-26 12:28:53 +00:00
|
|
|
<?php
|
|
|
|
/*
|
|
|
|
$Id: sta2_list.php,v 1.3 2005/05/08 20:23:11 arnaud-lb Exp $
|
|
|
|
----------------------------------------------------------------------
|
|
|
|
AlternC - Web Hosting System
|
|
|
|
Copyright (C) 2002 by the AlternC Development Team.
|
|
|
|
http://alternc.org/
|
|
|
|
----------------------------------------------------------------------
|
|
|
|
Based on:
|
|
|
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
|
|
|
----------------------------------------------------------------------
|
|
|
|
LICENSE
|
|
|
|
|
|
|
|
This program is free software; you can redistribute it and/or
|
|
|
|
modify it under the terms of the GNU General Public License (GPL)
|
|
|
|
as published by the Free Software Foundation; either version 2
|
|
|
|
of the License, or (at your option) any later version.
|
|
|
|
|
|
|
|
This program is distributed in the hope that it will be useful,
|
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
GNU General Public License for more details.
|
|
|
|
|
|
|
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
|
|
|
----------------------------------------------------------------------
|
|
|
|
Original Author of file:
|
|
|
|
Purpose of file:
|
|
|
|
----------------------------------------------------------------------
|
|
|
|
*/
|
|
|
|
require_once("../class/config.php");
|
|
|
|
|
2009-09-08 05:29:38 +00:00
|
|
|
include_once("head.php");
|
|
|
|
|
2006-04-26 12:28:53 +00:00
|
|
|
?>
|
2010-06-02 21:39:26 +00:00
|
|
|
<h3><?php __("Raw Statistics List"); ?></h3>
|
|
|
|
<hr id="topbar"/>
|
|
|
|
<br />
|
2006-04-26 12:28:53 +00:00
|
|
|
<?php
|
|
|
|
if ($quota->cancreate("sta2")) { ?>
|
|
|
|
<p>
|
2010-04-06 20:29:08 +00:00
|
|
|
<span class="ina"><a href="sta2_add_raw.php"><?php __("Create new Raw Statistics (apache)"); ?></a></span>
|
2006-04-26 12:28:53 +00:00
|
|
|
</p>
|
|
|
|
<?php }
|
|
|
|
|
2012-06-25 07:59:29 +00:00
|
|
|
if (isset($error) && $error) {
|
2006-04-26 12:28:53 +00:00
|
|
|
echo "<p class=\"error\">$error</p>";
|
|
|
|
}
|
|
|
|
|
|
|
|
if (!$r=$sta2->get_list_raw()) {
|
|
|
|
$error=$err->errstr();
|
|
|
|
echo "<p class=\"error\">$error</p>";
|
|
|
|
} else {
|
|
|
|
|
|
|
|
?>
|
|
|
|
|
|
|
|
<form method="post" action="sta2_del_raw.php">
|
2010-04-06 20:29:08 +00:00
|
|
|
<table class="tlist">
|
2011-02-09 08:37:23 +00:00
|
|
|
<tr><th colspan="2"> </th><th><?php __("Domain name"); ?></th><th><?php __("Folder"); ?></th><th><?php __("View"); ?></th></tr>
|
2006-04-26 12:28:53 +00:00
|
|
|
<?php
|
|
|
|
reset($r);
|
|
|
|
$col=1;
|
|
|
|
while (list($key,$val)=each($r))
|
|
|
|
{
|
|
|
|
$col=3-$col;
|
|
|
|
?>
|
|
|
|
<tr class="lst<?php echo $col; ?>">
|
|
|
|
<td><input type="checkbox" class="inc" name="del_<?php echo $val["id"]; ?>" value="<?php echo $val["id"]; ?>" /></td>
|
2010-04-06 20:29:08 +00:00
|
|
|
<td><div class="ina"><a href="sta2_edit_raw.php?id=<?php echo $val["id"] ?>"><img src="images/edit.png" alt="<?php __("Edit"); ?>" alt="<?php __("Edit"); ?>" /><?php __("Edit"); ?></a></div></td>
|
2006-04-26 12:28:53 +00:00
|
|
|
<td><?php echo $val["hostname"] ?></td>
|
|
|
|
<td><code>/<?php echo $val["folder"] ?></code></td>
|
|
|
|
<td><?php
|
|
|
|
if ($uv=$bro->viewurl($val["folder"], $val["hostname"].'.log')) echo "<a href=\"$uv\">"._("View")."</a>";
|
|
|
|
?> </td>
|
|
|
|
</tr>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
|
|
|
<tr><td colspan="5"><input type="submit" class="inb" name="submit" value="<?php __("Delete the checked Raw Statistics (apache)"); ?>" /></td></tr>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
|
2009-09-08 05:29:38 +00:00
|
|
|
<?php } ?>
|
2010-06-02 21:39:26 +00:00
|
|
|
<?php include_once("foot.php"); ?>
|