[cosm] many cosmetic comment fixes, + ensure license and copyright everywhere

This commit is contained in:
Benjamin Sonntag 2017-10-08 19:53:03 +02:00
parent 5b7622ce90
commit 9a6ea8b5bf
32 changed files with 269 additions and 342 deletions

View File

@ -1,13 +1,5 @@
<?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
@ -23,10 +15,14 @@
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");
$fields = array (

View File

@ -1,9 +1,5 @@
<?php
/*
----------------------------------------------------------------------
AlternC - Web Hosting System
Copyright (C) 2000-2012 by the AlternC Development Team.
https://alternc.org/
----------------------------------------------------------------------
LICENSE
@ -19,8 +15,6 @@
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");

View File

@ -1,13 +1,5 @@
<?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
@ -23,10 +15,14 @@
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");
$userslist = $piwik->users_list();

View File

@ -1,13 +1,5 @@
<?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
@ -23,10 +15,14 @@
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");
include_once("head.php");

View File

@ -1,13 +1,5 @@
<?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
@ -23,10 +15,14 @@
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");
$fields = array (

View File

@ -1,13 +1,5 @@
<?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
@ -23,10 +15,13 @@
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");
include_once("head.php");
include_once("piwik_utils.php");

View File

@ -1,13 +1,5 @@
<?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
@ -23,10 +15,8 @@
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");
$fields = array (

View File

@ -1,13 +1,5 @@
<?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
@ -23,8 +15,6 @@
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");

View File

@ -1,13 +1,5 @@
<?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
@ -23,10 +15,14 @@
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");
include_once("head.php");

View File

@ -1,13 +1,5 @@
<?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
@ -23,10 +15,14 @@
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");
include_once("head.php");

View File

@ -1,4 +1,27 @@
<?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");
if (!defined("QUOTASONE")) return;
@ -7,7 +30,7 @@ if (!defined("QUOTASONE")) return;
if (!isset($mode)) { // when included from adm_login, mode is not set
$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 not, we get the ID of the user via $mem->user["login"]

View File

@ -1,4 +1,27 @@
<?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");
@ -51,7 +74,7 @@ echo "<br /><br />"; printf(_("If you want to manage them, go to")."&nbsp;<a hre
</p>
<?php if ($mode == 4) {
// Mode : affichage des donn<6E>es globales
// Mode : global display
if ($cuid != 2000)
{
@ -159,7 +182,7 @@ echo "<br /><br />"; printf(_("If you want to manage them, go to")."&nbsp;<a hre
</div>
</center>
<?php } elseif ($usr==0) {
// Mode : affichage de tous les comptes
// Mode : display all accounts
function sortlink($txt,$asc,$desc) {
global $order,$mode,$sd,$usr;
@ -263,7 +286,7 @@ foreach ($membres_list as $c) {
$one=$c;
// On affiche le compte et ses domaines :
// We show account AND domains
$domaines_list = $dom->enum_domains($c["uid"]);
$dc=0; // Domain Count
$ms=0; // Mail Space
@ -335,7 +358,7 @@ foreach ($all as $c) {
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";
$domaines_list = $dom->enum_domains($c["uid"]);
$dc=0; // Domain Count
@ -351,7 +374,7 @@ foreach ($all as $c) {
$mailsize=$quota->get_size_unit($ms);
$mailmansize=$quota->get_size_unit($mls * 1024);
// Espace WEB
// WEB space quota
$ws = $c["websize"];
$webspace=$quota->get_size_unit($ws * 1024);
if (isset($totalweb) && $totalweb){
@ -372,14 +395,13 @@ if ($mode==0) {
} elseif ($mode==1) {
echo sprintf("%.1f",$pc)."&nbsp;%";
} else {
#echo "<img src=\"images/hippo_bleue.gif\" style=\"width: ".(1*$pc)."px; height: 16px\" alt=\"".$pc."%\" title=\"".$pc."\"/>";
$quota->quota_displaybar($pc);
}
echo "</td><td";
if ($mode!=2) echo " style=\"text-align: right\"";
echo ">";
// Espace Mail :
// Mail space quota
if ($totalmail)
$pc=intval(100*$ms/$totalmail);
@ -391,7 +413,6 @@ if ($mode==0) {
} elseif ($mode==1) {
echo sprintf("%.1f",$pc)."&nbsp;%";
} else {
#echo "<img src=\"images/hippo_bleue.gif\" style=\"width: ".(1*$pc)."px; height: 16px\" alt=\"".$pc."%\" title=\"".$pc."%\"/>";
$quota->quota_displaybar($pc);
}
@ -399,7 +420,7 @@ if ($mode==0) {
if ($mode!=2) echo " style=\"text-align: right\"";
echo ">";
// Espace Mailman :
// Mailman space quota
if ($totallist)
$pc=intval(100*$mls/$totallist);
else
@ -410,7 +431,6 @@ if ($mode==0) {
} elseif ($mode==1) {
echo sprintf("%.1f",$pc)."&nbsp;%";
} else {
#echo "<img src=\"images/hippo_bleue.gif\" style=\"width: ".(1*$pc)."px; height: 16px\" alt=\"".$pc."%\" title=\"".$pc."%\"/>";
$quota->quota_displaybar($pc);
}
@ -418,7 +438,7 @@ echo "</td><td";
if ($mode!=2) echo " style=\"text-align: right\"";
echo ">";
// Espace DB :
// MySQL db space
$ds = $c["dbsize"];
$dbsize=$quota->get_size_unit($ds);
@ -432,14 +452,14 @@ if ($mode==0) {
} elseif ($mode==1) {
echo sprintf("%.1f",$pc)."&nbsp;%";
} 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";
if ($mode!=2) echo " style=\"text-align: right\"";
echo ">";
// Total space
$ts=$c["totalsize"];
$totalsize=$quota->get_size_unit($ts * 1024);
if ($mode==0) {
@ -452,7 +472,6 @@ if ($mode==0) {
} else {
$pc=0;
}
#echo "<img src=\"images/hippo_bleue.gif\" style=\"width: ".(1*$pc)."px; height: 16px\" alt=\"".$pc."%\" title=\"".$pc."%\"/>";
$quota->quota_displaybar($pc);
}
@ -471,7 +490,7 @@ echo "</tr>";
</div>
</center>
<?php
} else { // Mode affichage d'UN seul compte
} else { // Display only ONE accoutn
$oneuser_ok = false;
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");
require_once("quotas_oneuser.php");
}
} // endif un seul compte
} // endif only one account
?>
<?php include_once("foot.php"); ?>

View File

@ -1,13 +1,5 @@
<?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
@ -23,10 +15,14 @@
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");
include_once("head.php");
@ -108,10 +104,10 @@ if (is_array($r)) {
</form>
<?php
$mem->show_help("sql_bck");
} else {
echo "<p>";
__("You currently have no database defined");
echo "</p>";
}
} else {
echo "<p>";
__("You currently have no database defined");
echo "</p>";
}
?>
<?php include_once("foot.php"); ?>

View File

@ -1,13 +1,5 @@
<?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
@ -23,10 +15,14 @@
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");
include_once ("head.php");
@ -35,6 +31,7 @@ $fields = array (
);
getFields($fields);
// DO IT
if ($confirm=="y" ) {
reset($_POST);
while (list($key,$val)=each($_POST)) {
@ -50,6 +47,7 @@ if ($confirm=="y" ) {
exit();
}
// Confirm form
$found=false;
foreach($_POST as $key=>$val) {
if (substr($key,0,4)=="del_") {

View File

@ -1,13 +1,5 @@
<?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
@ -23,21 +15,28 @@
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");
$fields = array (
"dbn" => array ("post", "string", ""),
);
getFields($fields);
if (!$quota->cancreate("mysql")) {
$msg->raise("ALERT", "mysql", _("Can't create a database: your quota is over"));
include("sql_list.php");
exit;
}
$q=$quota->getquota("mysql");
if($q['u'] > 0){

View File

@ -1,13 +1,5 @@
<?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
@ -23,10 +15,15 @@
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");
if ( ! variable_get('sql_allow_users_backups') ) {

View File

@ -1,13 +1,5 @@
<?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
@ -23,10 +15,14 @@
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");
include_once("head.php");
@ -57,8 +53,8 @@ if (! $r["enabled"]) {
<p>
<?php
if ($mysql->restore($restfile,true,$id)) {
$msg->raise("INFO", "mysql", _("Your database has been restored, check out the previous text for error messages."));
} // if mysql->restore
$msg->raise("INFO", "mysql", _("Your database have been restored, check out the previous text for error messages."));
}
echo $msg->msg_html_all();
?>

View File

@ -1,13 +1,5 @@
<?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
@ -23,10 +15,15 @@
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");
include_once("head.php");
@ -84,9 +81,10 @@ if(isset($r['user'])){
<td><code><?php echo $r['password']; ?></code></td>
</tr>
<tr>
<th>Droits de l'utilisateur</th>
<th><?php __("User Rights"); ?></th>
<?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') {
$rights = "Tous";
} else {
@ -110,10 +108,13 @@ if(!isset($r['user'])){
}
?>
<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>
<?php
include_once("foot.php"); ?>
include_once("foot.php");
?>

View File

@ -1,13 +1,5 @@
<?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
@ -23,10 +15,14 @@
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");
include_once("head.php");

View File

@ -1,13 +1,5 @@
<?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
@ -23,10 +15,14 @@
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");
$fields = array (
@ -42,7 +38,7 @@ if ($r=$mysql->php_myadmin_connect()) {
$_SESSION['PMA_single_signon_host'] = $r["host"]; // pma >= 2.11
session_write_close();
// Forget any standard phpmyadmin session
// Destroy any existing phpmyadmin session
setcookie("phpMyAdmin", "", time() - 3600);
if ($id!="") {

View File

@ -1,13 +1,5 @@
<?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
@ -23,11 +15,15 @@
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");
$fields = array (

View File

@ -1,13 +1,5 @@
<?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
@ -23,10 +15,14 @@
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");
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">
<?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">
<tr>
<?php

View File

@ -1,13 +1,5 @@
<?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
@ -23,10 +15,14 @@
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");
$fields = array (
"confirm" => array ("post", "string", ""),

View File

@ -1,13 +1,5 @@
<?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
@ -23,10 +15,14 @@
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");
$fields = array (

View File

@ -1,13 +1,5 @@
<?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
@ -23,10 +15,14 @@
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");
$fields = array (
"id" => array ("post", "string", ""),

View File

@ -1,13 +1,5 @@
<?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
@ -23,12 +15,15 @@
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 (
"id" => array ("post", "string", ""),

View File

@ -1,13 +1,5 @@
<?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
@ -23,10 +15,14 @@
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");
include_once("head.php");

View File

@ -1,13 +1,5 @@
<?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
@ -23,10 +15,14 @@
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");
include_once("head.php");

View File

@ -1,13 +1,5 @@
<?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
@ -23,10 +15,14 @@
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");
include_once("head.php");

View File

@ -1,13 +1,5 @@
<?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
@ -23,10 +15,14 @@
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");
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>";

View File

@ -1,5 +1,11 @@
<?php
/**
* LXC vm management code
*
* @copyright AlternC-Team 2000-2017 https://alternc.com/
*/
require_once("../class/config.php");
$fields = array (

View File

@ -1,9 +1,5 @@
<?php
/*
----------------------------------------------------------------------
AlternC - Web Hosting System
Copyright (C) 2000-2012 by the AlternC Development Team.
https://alternc.org/
----------------------------------------------------------------------
LICENSE
@ -19,10 +15,14 @@
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");