[cosm] many cosmetic comment fixes, + ensure license and copyright everywhere
This commit is contained in:
parent
5b7622ce90
commit
9a6ea8b5bf
|
@ -1,13 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
$Id: mxlist.php,v 1.1 2004/06/02 13:23:45 anonymous 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
|
LICENSE
|
||||||
|
|
||||||
|
@ -23,10 +15,14 @@
|
||||||
|
|
||||||
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
Original Author of file: Benjamin Sonntag
|
|
||||||
Purpose of file: Returns the list of mx-hosted domains to a secondary mx
|
|
||||||
----------------------------------------------------------------------
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Returns the list of mx-hosted domains to a secondary mx
|
||||||
|
*
|
||||||
|
* @copyright AlternC-Team 2000-2017 https://alternc.com/
|
||||||
|
*/
|
||||||
|
|
||||||
require_once("../class/config_nochk.php");
|
require_once("../class/config_nochk.php");
|
||||||
|
|
||||||
$fields = array (
|
$fields = array (
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
----------------------------------------------------------------------
|
|
||||||
AlternC - Web Hosting System
|
|
||||||
Copyright (C) 2000-2012 by the AlternC Development Team.
|
|
||||||
https://alternc.org/
|
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
LICENSE
|
LICENSE
|
||||||
|
|
||||||
|
@ -19,8 +15,6 @@
|
||||||
|
|
||||||
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
Purpose of file: Show a message when there is no webmail configured
|
|
||||||
----------------------------------------------------------------------
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once("../class/config.php");
|
require_once("../class/config.php");
|
||||||
|
|
|
@ -1,13 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
$Id: piwik_addaccount.php,v 1.5 2006/01/12 01:10:48 anarcat 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
|
LICENSE
|
||||||
|
|
||||||
|
@ -23,10 +15,14 @@
|
||||||
|
|
||||||
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
Original Author of file: Benjamin Sonntag
|
|
||||||
Purpose of file: Ask the required values to add a ftp account
|
|
||||||
----------------------------------------------------------------------
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add a piwik account using piwik's API
|
||||||
|
*
|
||||||
|
* @copyright AlternC-Team 2000-2017 https://alternc.com/
|
||||||
|
*/
|
||||||
|
|
||||||
require_once("../class/config.php");
|
require_once("../class/config.php");
|
||||||
|
|
||||||
$userslist = $piwik->users_list();
|
$userslist = $piwik->users_list();
|
||||||
|
|
|
@ -1,13 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
$Id: piwik_addaccount.php,v 1.5 2006/01/12 01:10:48 anarcat 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
|
LICENSE
|
||||||
|
|
||||||
|
@ -23,10 +15,14 @@
|
||||||
|
|
||||||
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
Original Author of file: Benjamin Sonntag
|
|
||||||
Purpose of file: Ask the required values to add a ftp account
|
|
||||||
----------------------------------------------------------------------
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Add a piwik website using piwik's API
|
||||||
|
*
|
||||||
|
* @copyright AlternC-Team 2000-2017 https://alternc.com/
|
||||||
|
*/
|
||||||
|
|
||||||
require_once("../class/config.php");
|
require_once("../class/config.php");
|
||||||
include_once("head.php");
|
include_once("head.php");
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
$Id: piwik_site_dodel.php,v 1.2 2003/06/10 06:45:16 root 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
|
LICENSE
|
||||||
|
|
||||||
|
@ -23,10 +15,14 @@
|
||||||
|
|
||||||
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
Original Author of file: François Serman
|
|
||||||
Purpose of file: Delete piwik websites
|
|
||||||
----------------------------------------------------------------------
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Delete piwik websites
|
||||||
|
*
|
||||||
|
* @copyright AlternC-Team 2000-2017 https://alternc.com/
|
||||||
|
*/
|
||||||
|
|
||||||
require_once("../class/config.php");
|
require_once("../class/config.php");
|
||||||
|
|
||||||
$fields = array (
|
$fields = array (
|
||||||
|
|
|
@ -1,13 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
$Id: piwik_userlist.php, author: François Serman <fser>
|
|
||||||
----------------------------------------------------------------------
|
|
||||||
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
|
LICENSE
|
||||||
|
|
||||||
|
@ -23,10 +15,13 @@
|
||||||
|
|
||||||
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
Purpose of file: listing of piwik site, and manage associated credentials
|
|
||||||
----------------------------------------------------------------------
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Listing of piwik site, and manage associated credentials
|
||||||
|
* @copyright AlternC-Team 2000-2017 https://alternc.com/
|
||||||
|
*/
|
||||||
|
|
||||||
require_once("../class/config.php");
|
require_once("../class/config.php");
|
||||||
include_once("head.php");
|
include_once("head.php");
|
||||||
include_once("piwik_utils.php");
|
include_once("piwik_utils.php");
|
||||||
|
|
|
@ -1,13 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
$Id: piwik_user_dodel.php,v 1.2 2003/06/10 06:45:16 root 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
|
LICENSE
|
||||||
|
|
||||||
|
@ -23,10 +15,8 @@
|
||||||
|
|
||||||
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
Original Author of file: François Serman
|
|
||||||
Purpose of file: Delete piwik accounts
|
|
||||||
----------------------------------------------------------------------
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once("../class/config.php");
|
require_once("../class/config.php");
|
||||||
|
|
||||||
$fields = array (
|
$fields = array (
|
||||||
|
|
|
@ -1,13 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
$Id: piwik_userlist.php, author: François Serman <fser>
|
|
||||||
----------------------------------------------------------------------
|
|
||||||
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
|
LICENSE
|
||||||
|
|
||||||
|
@ -23,8 +15,6 @@
|
||||||
|
|
||||||
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
Purpose of file: Admin piwik users right for piwik sites
|
|
||||||
----------------------------------------------------------------------
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
require_once("../class/config.php");
|
require_once("../class/config.php");
|
||||||
|
|
|
@ -1,13 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
$Id: piwik_userlist.php, author: squidly
|
|
||||||
----------------------------------------------------------------------
|
|
||||||
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
|
LICENSE
|
||||||
|
|
||||||
|
@ -23,10 +15,14 @@
|
||||||
|
|
||||||
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
Purpose of file: listing of mail accounts
|
|
||||||
----------------------------------------------------------------------
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* List Piwik users
|
||||||
|
*
|
||||||
|
* @copyright AlternC-Team 2000-2017 https://alternc.com/
|
||||||
|
*/
|
||||||
|
|
||||||
require_once("../class/config.php");
|
require_once("../class/config.php");
|
||||||
include_once("head.php");
|
include_once("head.php");
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
$Id: quota_show.php,v 1.3 2003/08/13 23:52:24 root 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
|
LICENSE
|
||||||
|
|
||||||
|
@ -23,10 +15,14 @@
|
||||||
|
|
||||||
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
Original Author of file:
|
|
||||||
Purpose of file:
|
|
||||||
----------------------------------------------------------------------
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Show quotas for one user
|
||||||
|
*
|
||||||
|
* @copyright AlternC-Team 2000-2017 https://alternc.com/
|
||||||
|
*/
|
||||||
|
|
||||||
require_once("../class/config.php");
|
require_once("../class/config.php");
|
||||||
include_once("head.php");
|
include_once("head.php");
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,27 @@
|
||||||
<?php
|
<?php
|
||||||
|
/*
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
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
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Show quotas for one user
|
||||||
|
*
|
||||||
|
* @copyright AlternC-Team 2000-2017 https://alternc.com/
|
||||||
|
*/
|
||||||
|
|
||||||
require_once("../class/config.php");
|
require_once("../class/config.php");
|
||||||
if (!defined("QUOTASONE")) return;
|
if (!defined("QUOTASONE")) return;
|
||||||
|
@ -7,7 +30,7 @@ if (!defined("QUOTASONE")) return;
|
||||||
if (!isset($mode)) { // when included from adm_login, mode is not set
|
if (!isset($mode)) { // when included from adm_login, mode is not set
|
||||||
$mode = 0;
|
$mode = 0;
|
||||||
}
|
}
|
||||||
// $mode = 4; // Pour Debuguer le mode "graphique" des quotas
|
// $mode = 4; // to debug the graphical mode of quotas
|
||||||
|
|
||||||
// If the var $usr exists, it means we call quotas for 1 user from the general admin page.
|
// If the var $usr exists, it means we call quotas for 1 user from the general admin page.
|
||||||
// If not, we get the ID of the user via $mem->user["login"]
|
// If not, we get the ID of the user via $mem->user["login"]
|
||||||
|
|
|
@ -1,4 +1,27 @@
|
||||||
<?php
|
<?php
|
||||||
|
/*
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
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
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Display the quotas of one or some users
|
||||||
|
*
|
||||||
|
* @copyright AlternC-Team 2000-2017 https://alternc.com/
|
||||||
|
*/
|
||||||
|
|
||||||
require_once("../class/config.php");
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
@ -51,7 +74,7 @@ echo "<br /><br />"; printf(_("If you want to manage them, go to")." <a hre
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
<?php if ($mode == 4) {
|
<?php if ($mode == 4) {
|
||||||
// Mode : affichage des donn<6E>es globales
|
// Mode : global display
|
||||||
|
|
||||||
if ($cuid != 2000)
|
if ($cuid != 2000)
|
||||||
{
|
{
|
||||||
|
@ -159,7 +182,7 @@ echo "<br /><br />"; printf(_("If you want to manage them, go to")." <a hre
|
||||||
</div>
|
</div>
|
||||||
</center>
|
</center>
|
||||||
<?php } elseif ($usr==0) {
|
<?php } elseif ($usr==0) {
|
||||||
// Mode : affichage de tous les comptes
|
// Mode : display all accounts
|
||||||
|
|
||||||
function sortlink($txt,$asc,$desc) {
|
function sortlink($txt,$asc,$desc) {
|
||||||
global $order,$mode,$sd,$usr;
|
global $order,$mode,$sd,$usr;
|
||||||
|
@ -263,7 +286,7 @@ foreach ($membres_list as $c) {
|
||||||
|
|
||||||
$one=$c;
|
$one=$c;
|
||||||
|
|
||||||
// On affiche le compte et ses domaines :
|
// We show account AND domains
|
||||||
$domaines_list = $dom->enum_domains($c["uid"]);
|
$domaines_list = $dom->enum_domains($c["uid"]);
|
||||||
$dc=0; // Domain Count
|
$dc=0; // Domain Count
|
||||||
$ms=0; // Mail Space
|
$ms=0; // Mail Space
|
||||||
|
@ -335,7 +358,7 @@ foreach ($all as $c) {
|
||||||
|
|
||||||
echo "<tr><td>";
|
echo "<tr><td>";
|
||||||
|
|
||||||
// On affiche le compte et ses domaines :
|
// We show all accounts and domains
|
||||||
echo "<b><a href=\"quotas_users.php?mode=".$mode."&sd=".$sd."&usr=".$c["uid"]."\">".$c["login"]."</a></b><br />\n";
|
echo "<b><a href=\"quotas_users.php?mode=".$mode."&sd=".$sd."&usr=".$c["uid"]."\">".$c["login"]."</a></b><br />\n";
|
||||||
$domaines_list = $dom->enum_domains($c["uid"]);
|
$domaines_list = $dom->enum_domains($c["uid"]);
|
||||||
$dc=0; // Domain Count
|
$dc=0; // Domain Count
|
||||||
|
@ -351,7 +374,7 @@ foreach ($all as $c) {
|
||||||
$mailsize=$quota->get_size_unit($ms);
|
$mailsize=$quota->get_size_unit($ms);
|
||||||
$mailmansize=$quota->get_size_unit($mls * 1024);
|
$mailmansize=$quota->get_size_unit($mls * 1024);
|
||||||
|
|
||||||
// Espace WEB
|
// WEB space quota
|
||||||
$ws = $c["websize"];
|
$ws = $c["websize"];
|
||||||
$webspace=$quota->get_size_unit($ws * 1024);
|
$webspace=$quota->get_size_unit($ws * 1024);
|
||||||
if (isset($totalweb) && $totalweb){
|
if (isset($totalweb) && $totalweb){
|
||||||
|
@ -372,14 +395,13 @@ if ($mode==0) {
|
||||||
} elseif ($mode==1) {
|
} elseif ($mode==1) {
|
||||||
echo sprintf("%.1f",$pc)." %";
|
echo sprintf("%.1f",$pc)." %";
|
||||||
} else {
|
} else {
|
||||||
#echo "<img src=\"images/hippo_bleue.gif\" style=\"width: ".(1*$pc)."px; height: 16px\" alt=\"".$pc."%\" title=\"".$pc."\"/>";
|
|
||||||
$quota->quota_displaybar($pc);
|
$quota->quota_displaybar($pc);
|
||||||
}
|
}
|
||||||
echo "</td><td";
|
echo "</td><td";
|
||||||
if ($mode!=2) echo " style=\"text-align: right\"";
|
if ($mode!=2) echo " style=\"text-align: right\"";
|
||||||
echo ">";
|
echo ">";
|
||||||
|
|
||||||
// Espace Mail :
|
// Mail space quota
|
||||||
|
|
||||||
if ($totalmail)
|
if ($totalmail)
|
||||||
$pc=intval(100*$ms/$totalmail);
|
$pc=intval(100*$ms/$totalmail);
|
||||||
|
@ -391,7 +413,6 @@ if ($mode==0) {
|
||||||
} elseif ($mode==1) {
|
} elseif ($mode==1) {
|
||||||
echo sprintf("%.1f",$pc)." %";
|
echo sprintf("%.1f",$pc)." %";
|
||||||
} else {
|
} else {
|
||||||
#echo "<img src=\"images/hippo_bleue.gif\" style=\"width: ".(1*$pc)."px; height: 16px\" alt=\"".$pc."%\" title=\"".$pc."%\"/>";
|
|
||||||
$quota->quota_displaybar($pc);
|
$quota->quota_displaybar($pc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -399,7 +420,7 @@ if ($mode==0) {
|
||||||
if ($mode!=2) echo " style=\"text-align: right\"";
|
if ($mode!=2) echo " style=\"text-align: right\"";
|
||||||
echo ">";
|
echo ">";
|
||||||
|
|
||||||
// Espace Mailman :
|
// Mailman space quota
|
||||||
if ($totallist)
|
if ($totallist)
|
||||||
$pc=intval(100*$mls/$totallist);
|
$pc=intval(100*$mls/$totallist);
|
||||||
else
|
else
|
||||||
|
@ -410,7 +431,6 @@ if ($mode==0) {
|
||||||
} elseif ($mode==1) {
|
} elseif ($mode==1) {
|
||||||
echo sprintf("%.1f",$pc)." %";
|
echo sprintf("%.1f",$pc)." %";
|
||||||
} else {
|
} else {
|
||||||
#echo "<img src=\"images/hippo_bleue.gif\" style=\"width: ".(1*$pc)."px; height: 16px\" alt=\"".$pc."%\" title=\"".$pc."%\"/>";
|
|
||||||
$quota->quota_displaybar($pc);
|
$quota->quota_displaybar($pc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -418,7 +438,7 @@ echo "</td><td";
|
||||||
if ($mode!=2) echo " style=\"text-align: right\"";
|
if ($mode!=2) echo " style=\"text-align: right\"";
|
||||||
echo ">";
|
echo ">";
|
||||||
|
|
||||||
// Espace DB :
|
// MySQL db space
|
||||||
$ds = $c["dbsize"];
|
$ds = $c["dbsize"];
|
||||||
$dbsize=$quota->get_size_unit($ds);
|
$dbsize=$quota->get_size_unit($ds);
|
||||||
|
|
||||||
|
@ -432,14 +452,14 @@ if ($mode==0) {
|
||||||
} elseif ($mode==1) {
|
} elseif ($mode==1) {
|
||||||
echo sprintf("%.1f",$pc)." %";
|
echo sprintf("%.1f",$pc)." %";
|
||||||
} else {
|
} else {
|
||||||
#echo "<img src=\"images/hippo_bleue.gif\" style=\"width: ".(1*$pc)."px; height: 16px\" alt=\"".$pc."%\" title=\"".$pc."%\"/>";
|
$quota->quota_displaybar($pc);
|
||||||
$quota->quota_displaybar($pc);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
echo "</td><td";
|
echo "</td><td";
|
||||||
if ($mode!=2) echo " style=\"text-align: right\"";
|
if ($mode!=2) echo " style=\"text-align: right\"";
|
||||||
echo ">";
|
echo ">";
|
||||||
|
|
||||||
|
// Total space
|
||||||
$ts=$c["totalsize"];
|
$ts=$c["totalsize"];
|
||||||
$totalsize=$quota->get_size_unit($ts * 1024);
|
$totalsize=$quota->get_size_unit($ts * 1024);
|
||||||
if ($mode==0) {
|
if ($mode==0) {
|
||||||
|
@ -452,7 +472,6 @@ if ($mode==0) {
|
||||||
} else {
|
} else {
|
||||||
$pc=0;
|
$pc=0;
|
||||||
}
|
}
|
||||||
#echo "<img src=\"images/hippo_bleue.gif\" style=\"width: ".(1*$pc)."px; height: 16px\" alt=\"".$pc."%\" title=\"".$pc."%\"/>";
|
|
||||||
$quota->quota_displaybar($pc);
|
$quota->quota_displaybar($pc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -471,7 +490,7 @@ echo "</tr>";
|
||||||
</div>
|
</div>
|
||||||
</center>
|
</center>
|
||||||
<?php
|
<?php
|
||||||
} else { // Mode affichage d'UN seul compte
|
} else { // Display only ONE accoutn
|
||||||
|
|
||||||
$oneuser_ok = false;
|
$oneuser_ok = false;
|
||||||
if ($cuid != 2000) {
|
if ($cuid != 2000) {
|
||||||
|
@ -487,11 +506,11 @@ echo "</tr>";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($oneuser_ok) { # quotas_oneuser.php will used prefilled $c
|
if ($oneuser_ok) { // quotas_oneuser.php will used prefilled $c
|
||||||
define("QUOTASONE","1");
|
define("QUOTASONE","1");
|
||||||
require_once("quotas_oneuser.php");
|
require_once("quotas_oneuser.php");
|
||||||
}
|
}
|
||||||
|
|
||||||
} // endif un seul compte
|
} // endif only one account
|
||||||
?>
|
?>
|
||||||
<?php include_once("foot.php"); ?>
|
<?php include_once("foot.php"); ?>
|
||||||
|
|
|
@ -1,13 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
$Id: sql_bck.php,v 1.8 2003/10/09 00:54:58 root 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
|
LICENSE
|
||||||
|
|
||||||
|
@ -23,10 +15,14 @@
|
||||||
|
|
||||||
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
Original Author of file: Benjamin Sonntag
|
|
||||||
Purpose of file: Manage the MySQL Backup
|
|
||||||
----------------------------------------------------------------------
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Form to manage MySQL database backup for an account
|
||||||
|
*
|
||||||
|
* @copyright AlternC-Team 2000-2017 https://alternc.com/
|
||||||
|
*/
|
||||||
|
|
||||||
require_once("../class/config.php");
|
require_once("../class/config.php");
|
||||||
include_once("head.php");
|
include_once("head.php");
|
||||||
|
|
||||||
|
@ -108,10 +104,10 @@ if (is_array($r)) {
|
||||||
</form>
|
</form>
|
||||||
<?php
|
<?php
|
||||||
$mem->show_help("sql_bck");
|
$mem->show_help("sql_bck");
|
||||||
} else {
|
} else {
|
||||||
echo "<p>";
|
echo "<p>";
|
||||||
__("You currently have no database defined");
|
__("You currently have no database defined");
|
||||||
echo "</p>";
|
echo "</p>";
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<?php include_once("foot.php"); ?>
|
<?php include_once("foot.php"); ?>
|
||||||
|
|
|
@ -1,13 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
$Id: sql_del.php,v 1.3 2003/06/10 07:20:29 root 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
|
LICENSE
|
||||||
|
|
||||||
|
@ -23,10 +15,14 @@
|
||||||
|
|
||||||
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
Original Author of file: Benjamin Sonntag
|
|
||||||
Purpose of file: Delete a mysql user database
|
|
||||||
----------------------------------------------------------------------
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Delete MySQL databases for the account
|
||||||
|
*
|
||||||
|
* @copyright AlternC-Team 2000-2017 https://alternc.com/
|
||||||
|
*/
|
||||||
|
|
||||||
require_once("../class/config.php");
|
require_once("../class/config.php");
|
||||||
include_once ("head.php");
|
include_once ("head.php");
|
||||||
|
|
||||||
|
@ -35,6 +31,7 @@ $fields = array (
|
||||||
);
|
);
|
||||||
getFields($fields);
|
getFields($fields);
|
||||||
|
|
||||||
|
// DO IT
|
||||||
if ($confirm=="y" ) {
|
if ($confirm=="y" ) {
|
||||||
reset($_POST);
|
reset($_POST);
|
||||||
while (list($key,$val)=each($_POST)) {
|
while (list($key,$val)=each($_POST)) {
|
||||||
|
@ -50,6 +47,7 @@ if ($confirm=="y" ) {
|
||||||
exit();
|
exit();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Confirm form
|
||||||
$found=false;
|
$found=false;
|
||||||
foreach($_POST as $key=>$val) {
|
foreach($_POST as $key=>$val) {
|
||||||
if (substr($key,0,4)=="del_") {
|
if (substr($key,0,4)=="del_") {
|
||||||
|
|
|
@ -1,13 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
$Id: sql_doadd.php,v 1.2 2003/06/10 07:20:29 root 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
|
LICENSE
|
||||||
|
|
||||||
|
@ -23,21 +15,28 @@
|
||||||
|
|
||||||
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
Original Author of file:
|
|
||||||
Purpose of file:
|
|
||||||
----------------------------------------------------------------------
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new MySQL database for the account
|
||||||
|
*
|
||||||
|
* @copyright AlternC-Team 2000-2017 https://alternc.com/
|
||||||
|
*/
|
||||||
|
|
||||||
require_once("../class/config.php");
|
require_once("../class/config.php");
|
||||||
|
|
||||||
$fields = array (
|
$fields = array (
|
||||||
"dbn" => array ("post", "string", ""),
|
"dbn" => array ("post", "string", ""),
|
||||||
);
|
);
|
||||||
|
|
||||||
getFields($fields);
|
getFields($fields);
|
||||||
|
|
||||||
if (!$quota->cancreate("mysql")) {
|
if (!$quota->cancreate("mysql")) {
|
||||||
$msg->raise("ALERT", "mysql", _("Can't create a database: your quota is over"));
|
$msg->raise("ALERT", "mysql", _("Can't create a database: your quota is over"));
|
||||||
include("sql_list.php");
|
include("sql_list.php");
|
||||||
exit;
|
exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
$q=$quota->getquota("mysql");
|
$q=$quota->getquota("mysql");
|
||||||
|
|
||||||
if($q['u'] > 0){
|
if($q['u'] > 0){
|
||||||
|
|
|
@ -1,13 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
$Id: sql_dobck.php,v 1.3 2003/06/10 07:20:29 root 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
|
LICENSE
|
||||||
|
|
||||||
|
@ -23,10 +15,15 @@
|
||||||
|
|
||||||
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
Original Author of file: Benjamin Sonntag
|
|
||||||
Purpose of file: Manage the MySQL Backup
|
|
||||||
----------------------------------------------------------------------
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Receive the post for the management of the Backup
|
||||||
|
* of MySQL database
|
||||||
|
*
|
||||||
|
* @copyright AlternC-Team 2000-2017 https://alternc.com/
|
||||||
|
*/
|
||||||
|
|
||||||
require_once("../class/config.php");
|
require_once("../class/config.php");
|
||||||
|
|
||||||
if ( ! variable_get('sql_allow_users_backups') ) {
|
if ( ! variable_get('sql_allow_users_backups') ) {
|
||||||
|
|
|
@ -1,13 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
$Id: sql_dorestore.php,v 1.4 2004/08/31 14:25:50 anonymous 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
|
LICENSE
|
||||||
|
|
||||||
|
@ -23,10 +15,14 @@
|
||||||
|
|
||||||
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
Original Author of file: Benjamin Sonntag
|
|
||||||
Purpose of file: Manage the MySQL Restore
|
|
||||||
----------------------------------------------------------------------
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* restore (do it) a MySQL database
|
||||||
|
*
|
||||||
|
* @copyright AlternC-Team 2000-2017 https://alternc.com/
|
||||||
|
*/
|
||||||
|
|
||||||
require_once("../class/config.php");
|
require_once("../class/config.php");
|
||||||
|
|
||||||
include_once("head.php");
|
include_once("head.php");
|
||||||
|
@ -57,8 +53,8 @@ if (! $r["enabled"]) {
|
||||||
<p>
|
<p>
|
||||||
<?php
|
<?php
|
||||||
if ($mysql->restore($restfile,true,$id)) {
|
if ($mysql->restore($restfile,true,$id)) {
|
||||||
$msg->raise("INFO", "mysql", _("Your database has been restored, check out the previous text for error messages."));
|
$msg->raise("INFO", "mysql", _("Your database have been restored, check out the previous text for error messages."));
|
||||||
} // if mysql->restore
|
}
|
||||||
|
|
||||||
echo $msg->msg_html_all();
|
echo $msg->msg_html_all();
|
||||||
?>
|
?>
|
||||||
|
|
|
@ -1,13 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
$Id: sql_getparam.php,v 1.4 2005/05/27 20:10:18 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
|
LICENSE
|
||||||
|
|
||||||
|
@ -23,10 +15,15 @@
|
||||||
|
|
||||||
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
Original Author of file: Benjamin Sonntag
|
|
||||||
Purpose of file: Return the current SQL settings
|
|
||||||
----------------------------------------------------------------------
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Show the settings (may be plural) available
|
||||||
|
* to access a MySQL database for an account
|
||||||
|
*
|
||||||
|
* @copyright AlternC-Team 2000-2017 https://alternc.com/
|
||||||
|
*/
|
||||||
|
|
||||||
require_once("../class/config.php");
|
require_once("../class/config.php");
|
||||||
include_once("head.php");
|
include_once("head.php");
|
||||||
|
|
||||||
|
@ -84,9 +81,10 @@ if(isset($r['user'])){
|
||||||
<td><code><?php echo $r['password']; ?></code></td>
|
<td><code><?php echo $r['password']; ?></code></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<th>Droits de l'utilisateur</th>
|
<th><?php __("User Rights"); ?></th>
|
||||||
<?php
|
<?php
|
||||||
// On teste la valeur de retour 'Rights' afin de savoir si cet utilisateur à tous les droits ou seulement certains et on place le bouton "Gestion des droits"
|
|
||||||
|
// We test the 'Rights' value to know if this user have all or only specific rights.
|
||||||
if ($r["Rights"] == 'All') {
|
if ($r["Rights"] == 'All') {
|
||||||
$rights = "Tous";
|
$rights = "Tous";
|
||||||
} else {
|
} else {
|
||||||
|
@ -110,10 +108,13 @@ if(!isset($r['user'])){
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<br>
|
<br>
|
||||||
<?php } // Fin foreach ?>
|
<?php
|
||||||
|
} // end foreach
|
||||||
|
?>
|
||||||
<p><span class="ina back"><a href="sql_list.php"><?php __("Back to the MySQL database list"); ?></a></span></p>
|
<p><span class="ina back"><a href="sql_list.php"><?php __("Back to the MySQL database list"); ?></a></span></p>
|
||||||
|
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
include_once("foot.php"); ?>
|
include_once("foot.php");
|
||||||
|
?>
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
$Id: sql_list.php,v 1.8 2006/02/16 16:26:28 benjamin 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
|
LICENSE
|
||||||
|
|
||||||
|
@ -23,10 +15,14 @@
|
||||||
|
|
||||||
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
Original Author of file: Benjamin Sonntag
|
|
||||||
Purpose of file: Manage the MySQL database of a member
|
|
||||||
----------------------------------------------------------------------
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* List and manage the MySQL databases of an account
|
||||||
|
*
|
||||||
|
* @copyright AlternC-Team 2000-2017 https://alternc.com/
|
||||||
|
*/
|
||||||
|
|
||||||
require_once("../class/config.php");
|
require_once("../class/config.php");
|
||||||
include_once("head.php");
|
include_once("head.php");
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
$Id: sql_admin.php,v 1.4 2005/05/27 21:30:38 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
|
LICENSE
|
||||||
|
|
||||||
|
@ -23,10 +15,14 @@
|
||||||
|
|
||||||
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
Original Author of file:
|
|
||||||
Purpose of file:
|
|
||||||
----------------------------------------------------------------------
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Launch a PhpMyAdmin session using PMA's SSO system
|
||||||
|
*
|
||||||
|
* @copyright AlternC-Team 2000-2017 https://alternc.com/
|
||||||
|
*/
|
||||||
|
|
||||||
require_once("../class/config.php");
|
require_once("../class/config.php");
|
||||||
|
|
||||||
$fields = array (
|
$fields = array (
|
||||||
|
@ -42,7 +38,7 @@ if ($r=$mysql->php_myadmin_connect()) {
|
||||||
$_SESSION['PMA_single_signon_host'] = $r["host"]; // pma >= 2.11
|
$_SESSION['PMA_single_signon_host'] = $r["host"]; // pma >= 2.11
|
||||||
session_write_close();
|
session_write_close();
|
||||||
|
|
||||||
// Forget any standard phpmyadmin session
|
// Destroy any existing phpmyadmin session
|
||||||
setcookie("phpMyAdmin", "", time() - 3600);
|
setcookie("phpMyAdmin", "", time() - 3600);
|
||||||
|
|
||||||
if ($id!="") {
|
if ($id!="") {
|
||||||
|
|
|
@ -1,13 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
$Id: sql_restore.php,v 1.5 2003/06/10 13:16:11 root 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
|
LICENSE
|
||||||
|
|
||||||
|
@ -23,11 +15,15 @@
|
||||||
|
|
||||||
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
Original Author of file: Benjamin Sonntag
|
|
||||||
Purpose of file: Manage the MySQL Restore
|
|
||||||
----------------------------------------------------------------------
|
|
||||||
*/
|
*/
|
||||||
require_once("../class/config.php");
|
|
||||||
|
/**
|
||||||
|
* Restore a MySQL database for an account
|
||||||
|
*
|
||||||
|
* @copyright AlternC-Team 2000-2017 https://alternc.com/
|
||||||
|
*/
|
||||||
|
|
||||||
|
require_once("../class/config.php");
|
||||||
include_once("head.php");
|
include_once("head.php");
|
||||||
|
|
||||||
$fields = array (
|
$fields = array (
|
||||||
|
|
|
@ -1,13 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
$Id: sql_users_add.php,v 1.5 2004/05/19 14:23:06 nahuel 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
|
LICENSE
|
||||||
|
|
||||||
|
@ -23,10 +15,14 @@
|
||||||
|
|
||||||
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
Original Author of file: Nahuel ANGELINETTI
|
|
||||||
Purpose of file:
|
|
||||||
----------------------------------------------------------------------
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Form to add a MySQL user account
|
||||||
|
*
|
||||||
|
* @copyright AlternC-Team 2000-2017 https://alternc.com/
|
||||||
|
*/
|
||||||
|
|
||||||
require_once("../class/config.php");
|
require_once("../class/config.php");
|
||||||
include_once("head.php");
|
include_once("head.php");
|
||||||
|
|
||||||
|
@ -55,10 +51,6 @@ if (isset($fatal) && $fatal) {
|
||||||
<form method="post" action="sql_users_doadd.php" id="main" name="main" autocomplete="off">
|
<form method="post" action="sql_users_doadd.php" id="main" name="main" autocomplete="off">
|
||||||
<?php csrf_get(); ?>
|
<?php csrf_get(); ?>
|
||||||
|
|
||||||
<!-- honeypot fields -->
|
|
||||||
<input type="text" style="display: none" id="fakeUsername" name="fakeUsername" value="" />
|
|
||||||
<input type="password" style="display: none" id="fakePassword" name="fakePassword" value="" />
|
|
||||||
|
|
||||||
<table class="tedit">
|
<table class="tedit">
|
||||||
<tr>
|
<tr>
|
||||||
<?php
|
<?php
|
||||||
|
|
|
@ -1,13 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
$Id: sql_del.php,v 1.3 2003/06/10 07:20:29 root 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
|
LICENSE
|
||||||
|
|
||||||
|
@ -23,10 +15,14 @@
|
||||||
|
|
||||||
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
Original Author of file: Benjamin Sonntag
|
|
||||||
Purpose of file: Delete a mysql user database
|
|
||||||
----------------------------------------------------------------------
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Delete a MySQL user account
|
||||||
|
*
|
||||||
|
* @copyright AlternC-Team 2000-2017 https://alternc.com/
|
||||||
|
*/
|
||||||
|
|
||||||
require_once("../class/config.php");
|
require_once("../class/config.php");
|
||||||
$fields = array (
|
$fields = array (
|
||||||
"confirm" => array ("post", "string", ""),
|
"confirm" => array ("post", "string", ""),
|
||||||
|
|
|
@ -1,13 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
$Id: sql_users_doadd.php,v 1.2 2003/06/10 07:20:29 nahuel 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
|
LICENSE
|
||||||
|
|
||||||
|
@ -23,10 +15,14 @@
|
||||||
|
|
||||||
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
Original Author of file: Nahuel ANGELINETTI
|
|
||||||
Purpose of file:
|
|
||||||
----------------------------------------------------------------------
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Create a new MySQL user account
|
||||||
|
*
|
||||||
|
* @copyright AlternC-Team 2000-2017 https://alternc.com/
|
||||||
|
*/
|
||||||
|
|
||||||
require_once("../class/config.php");
|
require_once("../class/config.php");
|
||||||
|
|
||||||
$fields = array (
|
$fields = array (
|
||||||
|
|
|
@ -1,13 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
$Id: sql_users_rights.php,v 1.8 2006/02/16 16:26:28 nahuel 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
|
LICENSE
|
||||||
|
|
||||||
|
@ -23,10 +15,14 @@
|
||||||
|
|
||||||
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
Original Author of file: Nahuel ANGELINETTI
|
|
||||||
Purpose of file: Manage the MySQL users of a member
|
|
||||||
----------------------------------------------------------------------
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Change the password of a MySQL user account
|
||||||
|
*
|
||||||
|
* @copyright AlternC-Team 2000-2017 https://alternc.com/
|
||||||
|
*/
|
||||||
|
|
||||||
require_once("../class/config.php");
|
require_once("../class/config.php");
|
||||||
$fields = array (
|
$fields = array (
|
||||||
"id" => array ("post", "string", ""),
|
"id" => array ("post", "string", ""),
|
||||||
|
|
|
@ -1,13 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
$Id: sql_users_dorights.php,v 1.8 2006/02/16 16:26:28 nahuel 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
|
LICENSE
|
||||||
|
|
||||||
|
@ -23,12 +15,15 @@
|
||||||
|
|
||||||
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
Original Author of file: Nahuel ANGELINETTI
|
|
||||||
Purpose of file: Manage the MySQL users of a member
|
|
||||||
----------------------------------------------------------------------
|
|
||||||
*/
|
*/
|
||||||
require_once("../class/config.php");
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Manages the MySQL users Rights
|
||||||
|
*
|
||||||
|
* @copyright AlternC-Team 2000-2017 https://alternc.com/
|
||||||
|
*/
|
||||||
|
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
$fields = array (
|
$fields = array (
|
||||||
"id" => array ("post", "string", ""),
|
"id" => array ("post", "string", ""),
|
||||||
|
|
|
@ -1,13 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
$Id: sql_users_list.php,v 1.8 2006/02/16 16:26:28 nahuel 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
|
LICENSE
|
||||||
|
|
||||||
|
@ -23,10 +15,14 @@
|
||||||
|
|
||||||
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
Original Author of file: Nahuel ANGELINETTI
|
|
||||||
Purpose of file: Manage the MySQL users of a member
|
|
||||||
----------------------------------------------------------------------
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Manages the MySQL users of an account
|
||||||
|
*
|
||||||
|
* @copyright AlternC-Team 2000-2017 https://alternc.com/
|
||||||
|
*/
|
||||||
|
|
||||||
require_once("../class/config.php");
|
require_once("../class/config.php");
|
||||||
include_once("head.php");
|
include_once("head.php");
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
$Id: sql_users_rights.php,v 1.8 2006/02/16 16:26:28 nahuel 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
|
LICENSE
|
||||||
|
|
||||||
|
@ -23,10 +15,14 @@
|
||||||
|
|
||||||
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
Original Author of file: Nahuel ANGELINETTI
|
|
||||||
Purpose of file: Manage the MySQL users of a member
|
|
||||||
----------------------------------------------------------------------
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Manage MySQL users password
|
||||||
|
*
|
||||||
|
* @copyright AlternC-Team 2000-2017 https://alternc.com/
|
||||||
|
*/
|
||||||
|
|
||||||
require_once("../class/config.php");
|
require_once("../class/config.php");
|
||||||
include_once("head.php");
|
include_once("head.php");
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
$Id: sql_users_rights.php,v 1.8 2006/02/16 16:26:28 nahuel 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
|
LICENSE
|
||||||
|
|
||||||
|
@ -23,10 +15,14 @@
|
||||||
|
|
||||||
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
Original Author of file: Nahuel ANGELINETTI
|
|
||||||
Purpose of file: Manage the MySQL users of a member
|
|
||||||
----------------------------------------------------------------------
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Manages MySQL users granted rights
|
||||||
|
*
|
||||||
|
* @copyright AlternC-Team 2000-2017 https://alternc.com/
|
||||||
|
*/
|
||||||
|
|
||||||
require_once("../class/config.php");
|
require_once("../class/config.php");
|
||||||
include_once("head.php");
|
include_once("head.php");
|
||||||
|
|
||||||
|
|
|
@ -1,13 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
$Id: stats_show_per_month.php,v 1.6 2005/08/02 14:56:51 anarcat 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
|
LICENSE
|
||||||
|
|
||||||
|
@ -23,10 +15,14 @@
|
||||||
|
|
||||||
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
Original Author of file:
|
|
||||||
Purpose of file:
|
|
||||||
----------------------------------------------------------------------
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Show the statistics of all members.
|
||||||
|
*
|
||||||
|
* @copyright AlternC-Team 2000-2017 https://alternc.com/
|
||||||
|
*/
|
||||||
|
|
||||||
@require_once("../class/config.php");
|
@require_once("../class/config.php");
|
||||||
if ((@include_once 'Image/Graph.php') === FALSE) {
|
if ((@include_once 'Image/Graph.php') === FALSE) {
|
||||||
echo "<p class=\"alert alert-warning\">". _("Image_Graph not installed. use 'aptitude install php-pear' then 'pear install --alldeps Image_Graph-devel' to see the graph.")."</p>";
|
echo "<p class=\"alert alert-warning\">". _("Image_Graph not installed. use 'aptitude install php-pear' then 'pear install --alldeps Image_Graph-devel' to see the graph.")."</p>";
|
||||||
|
|
|
@ -1,5 +1,11 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* LXC vm management code
|
||||||
|
*
|
||||||
|
* @copyright AlternC-Team 2000-2017 https://alternc.com/
|
||||||
|
*/
|
||||||
|
|
||||||
require_once("../class/config.php");
|
require_once("../class/config.php");
|
||||||
|
|
||||||
$fields = array (
|
$fields = array (
|
||||||
|
|
|
@ -1,9 +1,5 @@
|
||||||
<?php
|
<?php
|
||||||
/*
|
/*
|
||||||
----------------------------------------------------------------------
|
|
||||||
AlternC - Web Hosting System
|
|
||||||
Copyright (C) 2000-2012 by the AlternC Development Team.
|
|
||||||
https://alternc.org/
|
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
LICENSE
|
LICENSE
|
||||||
|
|
||||||
|
@ -19,10 +15,14 @@
|
||||||
|
|
||||||
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
----------------------------------------------------------------------
|
----------------------------------------------------------------------
|
||||||
Purpose of file: listing of mail accounts for one domain.
|
|
||||||
----------------------------------------------------------------------
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Redirect the user to the best possible webmail url
|
||||||
|
*
|
||||||
|
* @copyright AlternC-Team 2000-2017 https://alternc.com/
|
||||||
|
*/
|
||||||
|
|
||||||
require_once("../class/config_nochk.php");
|
require_once("../class/config_nochk.php");
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue