Merging blue desktop to trunk.
|
@ -1,4 +1,5 @@
|
|||
* text=auto !eol
|
||||
/.svnignore -text
|
||||
/COPYING -text
|
||||
/README.en -text
|
||||
/README.fr -text
|
||||
|
@ -73,7 +74,9 @@ bureau/admin/aide/inline/docbook.css -text
|
|||
bureau/admin/aide/inline/frameset.html -text
|
||||
bureau/admin/aide/inline/plus.gif -text
|
||||
bureau/admin/aide/inline/tiret.gif -text
|
||||
bureau/admin/alternc.jpg -text
|
||||
bureau/admin/alternc.png -text
|
||||
bureau/admin/alternc3.png -text
|
||||
bureau/admin/bro_editor.php -text
|
||||
bureau/admin/bro_main.php -text
|
||||
bureau/admin/bro_pref.php -text
|
||||
|
@ -91,6 +94,7 @@ bureau/admin/dom_subdodel.php -text
|
|||
bureau/admin/dom_subdoedit.php -text
|
||||
bureau/admin/dom_subedit.php -text
|
||||
bureau/admin/domlist.php -text
|
||||
bureau/admin/foot.php -text
|
||||
bureau/admin/ftp_add.php -text
|
||||
bureau/admin/ftp_del.php -text
|
||||
bureau/admin/ftp_doadd.php -text
|
||||
|
@ -98,6 +102,8 @@ bureau/admin/ftp_doedit.php -text
|
|||
bureau/admin/ftp_edit.php -text
|
||||
bureau/admin/ftp_list.php -text
|
||||
bureau/admin/head.php -text
|
||||
bureau/admin/hippo_bleue.gif -text
|
||||
bureau/admin/hoster.png -text
|
||||
bureau/admin/hta_add.php -text
|
||||
bureau/admin/hta_adduser.php -text
|
||||
bureau/admin/hta_del.php -text
|
||||
|
@ -142,10 +148,58 @@ bureau/admin/icon/wav.png -text
|
|||
bureau/admin/icon/winresize.gif -text
|
||||
bureau/admin/icon/xls.png -text
|
||||
bureau/admin/icon/zip.png -text
|
||||
bureau/admin/images/admin.png -text
|
||||
bureau/admin/images/bgborder.gif -text
|
||||
bureau/admin/images/blank.gif -text
|
||||
bureau/admin/images/config.png -text
|
||||
bureau/admin/images/delete.png -text
|
||||
bureau/admin/images/dom.png -text
|
||||
bureau/admin/images/edit.png -text
|
||||
bureau/admin/images/exit.png -text
|
||||
bureau/admin/images/folder.png -text
|
||||
bureau/admin/images/folderhta.png -text
|
||||
bureau/admin/images/ftp.png -text
|
||||
bureau/admin/images/help.png -text
|
||||
bureau/admin/images/home.png -text
|
||||
bureau/admin/images/lang.png -text
|
||||
bureau/admin/images/mail.png -text
|
||||
bureau/admin/images/minus.png -text
|
||||
bureau/admin/images/mysql.png -text
|
||||
bureau/admin/images/new.png -text
|
||||
bureau/admin/images/orig/admin.png -text
|
||||
bureau/admin/images/orig/bgborder.gif -text
|
||||
bureau/admin/images/orig/blank.gif -text
|
||||
bureau/admin/images/orig/config.png -text
|
||||
bureau/admin/images/orig/delete.png -text
|
||||
bureau/admin/images/orig/dom.png -text
|
||||
bureau/admin/images/orig/edit.png -text
|
||||
bureau/admin/images/orig/exit.png -text
|
||||
bureau/admin/images/orig/folder.png -text
|
||||
bureau/admin/images/orig/folderhta.png -text
|
||||
bureau/admin/images/orig/ftp.png -text
|
||||
bureau/admin/images/orig/help.png -text
|
||||
bureau/admin/images/orig/home.png -text
|
||||
bureau/admin/images/orig/mail.png -text
|
||||
bureau/admin/images/orig/mailman.png -text
|
||||
bureau/admin/images/orig/minus.png -text
|
||||
bureau/admin/images/orig/mysql.png -text
|
||||
bureau/admin/images/orig/new.png -text
|
||||
bureau/admin/images/orig/password.png -text
|
||||
bureau/admin/images/orig/plus.png -text
|
||||
bureau/admin/images/orig/quota.png -text
|
||||
bureau/admin/images/orig/stat.png -text
|
||||
bureau/admin/images/password.png -text
|
||||
bureau/admin/images/plus.png -text
|
||||
bureau/admin/images/quota.png -text
|
||||
bureau/admin/images/stat.png -text
|
||||
bureau/admin/index.php -text
|
||||
bureau/admin/js/alternc.js -text
|
||||
bureau/admin/js/prototype.js -text
|
||||
bureau/admin/js/rico.js -text
|
||||
bureau/admin/js/wz_dragdrop.js -text
|
||||
bureau/admin/login.php -text
|
||||
bureau/admin/logo.png -text
|
||||
bureau/admin/logo2.png -text
|
||||
bureau/admin/mail_add.php -text
|
||||
bureau/admin/mail_del.php -text
|
||||
bureau/admin/mail_doadd.php -text
|
||||
|
@ -175,8 +229,11 @@ bureau/admin/menu_sql.php -text
|
|||
bureau/admin/menu_sta2.php -text
|
||||
bureau/admin/menu_web.php -text
|
||||
bureau/admin/mxlist.php -text
|
||||
bureau/admin/phpinfo.php -text
|
||||
bureau/admin/powered2.jpg -text
|
||||
bureau/admin/quota_show.php -text
|
||||
bureau/admin/quota_show_all.php -text
|
||||
bureau/admin/quotas_users.php -text
|
||||
bureau/admin/sql_add.php -text
|
||||
bureau/admin/sql_addmain.php -text
|
||||
bureau/admin/sql_admin.php -text
|
||||
|
@ -204,8 +261,10 @@ bureau/admin/sta2_edit_raw.php -text
|
|||
bureau/admin/sta2_list.php -text
|
||||
bureau/admin/stats_members.php -text
|
||||
bureau/admin/styles/base.css -text
|
||||
bureau/admin/styles/style.css -text
|
||||
bureau/admin/template.php -text
|
||||
bureau/admin/web_list.php -text
|
||||
bureau/admin/webmail/.htaccess -text
|
||||
bureau/admin/webmail/index.php -text
|
||||
bureau/class/config.php -text
|
||||
bureau/class/config_nochk.php -text
|
||||
|
@ -213,6 +272,7 @@ bureau/class/config_real.php -text
|
|||
bureau/class/db_mysql.php -text
|
||||
bureau/class/export_account.php -text
|
||||
bureau/class/functions.php -text
|
||||
bureau/class/functions2.php -text
|
||||
bureau/class/lang_env.php -text
|
||||
bureau/class/local.php -text
|
||||
bureau/class/m_admin.php -text
|
||||
|
@ -245,6 +305,7 @@ bureau/locales/fr_FR/LC_MESSAGES/messages.po -text
|
|||
bureau/locales/manual.pot -text
|
||||
bureau/locales/messages.pot -text
|
||||
bureau/locales/pt_BR/LC_MESSAGES/messages.po -text
|
||||
debian/.svnignore -text
|
||||
debian/NEWS -text
|
||||
debian/README.Debian -text
|
||||
debian/alternc-slave.config -text
|
||||
|
@ -337,6 +398,7 @@ install/upgrades/README -text
|
|||
man/alternc-admintools.8 -text
|
||||
man/alternc-admintools.fr.8 -text
|
||||
man/alternc.install.8 -text
|
||||
man/alternc.install.fr.8 -text
|
||||
man/get_account_by_domain.8 -text
|
||||
man/get_domains_by_account.8 -text
|
||||
man/top_ftp_users.8 -text
|
||||
|
@ -346,10 +408,13 @@ man/top_http_users.fr.8 -text
|
|||
man/top_mysql_users.8 -text
|
||||
man/top_mysql_users.fr.8 -text
|
||||
po/alternc-admintools.pot -text
|
||||
po/fr/LC_MESSAGES/.svnignore -text
|
||||
po/fr/LC_MESSAGES/alternc-admintools.po -text
|
||||
/quota_delete -text
|
||||
/quota_init -text
|
||||
src/Makefile -text
|
||||
src/alternc-check -text
|
||||
src/alternc-passwd -text
|
||||
src/alternc_reload -text
|
||||
src/basedir_prot.sh -text
|
||||
src/du.pl -text
|
||||
|
|
|
@ -0,0 +1,12 @@
|
|||
/build-stamp
|
||||
debian/.svnignore
|
||||
debian/alternc
|
||||
debian/alternc-slave
|
||||
debian/alternc-slave.debhelper.log
|
||||
debian/alternc-slave.postrm.debhelper
|
||||
debian/alternc-slave.substvars
|
||||
debian/alternc.debhelper.log
|
||||
debian/alternc.postrm.debhelper
|
||||
debian/alternc.substvars
|
||||
debian/files
|
||||
po/fr/LC_MESSAGES/alternc-admintools.mo
|
|
@ -0,0 +1 @@
|
|||
build-stamp
|
|
@ -30,19 +30,19 @@
|
|||
----------------------------------------------------------------------
|
||||
*/
|
||||
require_once("../class/config.php");
|
||||
include_once("head.php");
|
||||
|
||||
if (!$admin->enabled) {
|
||||
__("This page is restricted to authorized staff");
|
||||
exit();
|
||||
}
|
||||
|
||||
if (!isset($canpass)) $canpass=1;
|
||||
|
||||
include("head.php");
|
||||
$fields = array (
|
||||
"canpass" => array ("request", "integer", 1),
|
||||
);
|
||||
getFields($fields);
|
||||
|
||||
?>
|
||||
</head>
|
||||
<body>
|
||||
<h3><?php __("New member"); ?></h3>
|
||||
<?php
|
||||
if ($error) {
|
||||
|
@ -75,11 +75,11 @@ if ($error) {
|
|||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="notes"><?php __("Notes"); ?></label></th>
|
||||
<td><textarea name="notes" id="notes" class="int" cols="32" rows="5"><?php echo $notes; ?></textarea></td>
|
||||
<th><label for="notes"><?php __("Notes"); ?></label></th>
|
||||
<td><textarea name="notes" id="notes" class="int" cols="32" rows="5"><?php echo $notes; ?></textarea></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="nom"><?php echo _("Surname")."</label> / <label for=\"prenom\">"._("First Name"); ?></label></th>
|
||||
<th><label for="nom"><?php echo _("Surname")."</label> / <label for=\"prenom\">"._("First Name"); ?></label></th>
|
||||
<td><input class="int" type="text" id="nom" name="nom" value="<?php echo $nom; ?>" size="20" maxlength="128" /> / <input type="text" name="prenom" id="prenom" value="<?php echo $prenom; ?>" class="int" size="20" maxlength="128" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
@ -99,9 +99,8 @@ if ($error) {
|
|||
echo ">$type</option>";
|
||||
}
|
||||
?></select>
|
||||
</td>
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
<?php if (variable_get('hosting_tld') || $dom->enum_domains()) { ?>
|
||||
<tr>
|
||||
<th colspan="2">
|
||||
|
@ -109,23 +108,22 @@ if ($error) {
|
|||
<label><?php printf(_("Create the domain <b>username.%s</b>"),""); ?></label>
|
||||
<select name="create_dom_list">
|
||||
<?php if (variable_get('hosting_tld')) { ?>
|
||||
<option value="<?php echo variable_get('hosting_tld'); ?>" selected="selected"><?php echo variable_get('hosting_tld'); ?></option>
|
||||
<?php }
|
||||
<option value="<?php echo variable_get('hosting_tld'); ?>" selected="selected"><?php echo variable_get('hosting_tld'); ?></option>
|
||||
<?php }
|
||||
/* Enumeration des domaines : */
|
||||
$domain=$dom->enum_domains();
|
||||
reset($domain);
|
||||
while (list($key,$val)=each($domain)) { ?>
|
||||
<option value="<?php echo $val; ?>" > <?php echo $val?> </option>
|
||||
<option value="<?php echo $val; ?>" > <?php echo $val?> </option>
|
||||
<?php } ?>
|
||||
</select>
|
||||
</th>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
<?php } ?>
|
||||
<tr>
|
||||
<td colspan="2"><input type="submit" class="inb" name="submit" value="<?php __("Create a new member"); ?>" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<?php include_once("foot.php"); ?>
|
||||
|
|
|
@ -29,26 +29,23 @@
|
|||
*/
|
||||
require_once("../class/config.php");
|
||||
|
||||
include("head.php");
|
||||
?>
|
||||
</head>
|
||||
<body>
|
||||
<?php
|
||||
include_once("head.php");
|
||||
|
||||
$uid = $_GET['uid'];
|
||||
if (!$uid) {
|
||||
__("Missing uid");
|
||||
echo "</body></html>";
|
||||
include_once("foot.php");
|
||||
exit();
|
||||
}
|
||||
if (!$admin->enabled || !$admin->checkcreator($uid)) {
|
||||
__("This page is restricted to authorized staff");
|
||||
echo "</body></html>";
|
||||
include_once("foot.php");
|
||||
exit();
|
||||
}
|
||||
|
||||
if (!$r=$admin->get($uid)) {
|
||||
__("User does not exist");
|
||||
echo "</body></html>";
|
||||
include_once("foot.php");
|
||||
exit();
|
||||
}
|
||||
|
||||
|
@ -67,6 +64,7 @@ if (! ($confirmed = ($_GET['submit'] == _("Confirm")) ) ) {
|
|||
} else {
|
||||
if (!$_GET['redirect']) {
|
||||
__("Missing redirect url.");
|
||||
include_once("foot.php");
|
||||
exit();
|
||||
} else {
|
||||
$redirect = $_GET['redirect'];
|
||||
|
@ -138,7 +136,7 @@ if ($confirmed) {
|
|||
}
|
||||
$cuid = $old_cuid;
|
||||
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
include_once("foot.php");
|
||||
|
||||
?>
|
||||
|
||||
|
|
|
@ -36,10 +36,9 @@ if (!$admin->enabled) {
|
|||
exit();
|
||||
}
|
||||
|
||||
include("head.php");
|
||||
include_once ("head.php");
|
||||
|
||||
?>
|
||||
</head>
|
||||
<body>
|
||||
<h3><?php __("Change the default quotas"); ?></h3>
|
||||
<?php
|
||||
if ($error) {
|
||||
|
@ -47,14 +46,17 @@ include("head.php");
|
|||
}
|
||||
|
||||
?>
|
||||
<p><form method="post" action="adm_dodefquotas.php">
|
||||
<input type="hidden" name="action" value="add">
|
||||
<input type="text" name="type" class="int"></td>
|
||||
<form method="post" action="adm_dodefquotas.php">
|
||||
<p>
|
||||
<input type="hidden" name="action" value="add" />
|
||||
<input type="text" name="type" class="int" />
|
||||
<input type="submit" class="inb" value="<?php __("Add account type"); ?>" />
|
||||
</form></p>
|
||||
</p>
|
||||
</form>
|
||||
|
||||
<p><form method="post" action="adm_dodefquotas.php">
|
||||
<input type="hidden" name="action" value="delete">
|
||||
<form method="post" action="adm_dodefquotas.php">
|
||||
<p>
|
||||
<input type="hidden" name="action" value="delete" />
|
||||
<select name="type" id="type" class="inl">
|
||||
<?php
|
||||
$db->query("SELECT distinct(type) FROM defquotas WHERE TYPE != 'default' ORDER by type");
|
||||
|
@ -64,50 +66,45 @@ while($db->next_record()) {
|
|||
}
|
||||
?></select>
|
||||
<input type="submit" class="inb" value="<?php __("Delete account type"); ?>" />
|
||||
</form></p>
|
||||
</p>
|
||||
</form>
|
||||
|
||||
<p>
|
||||
<?php __("Here is the list of the quotas on the server for the new accounts. If you want to change them, enter new values"); ?>
|
||||
</p>
|
||||
|
||||
<form method="post" action="adm_dodefquotas.php">
|
||||
<input type="hidden" name="action" value="modify">
|
||||
<div>
|
||||
<input type="hidden" name="action" value="modify" />
|
||||
<?php
|
||||
$col=1;
|
||||
$qarray=$quota->qlist();
|
||||
$qlist=$quota->getdefaults();
|
||||
$aqlist = $quota->qlist();
|
||||
reset($qlist);
|
||||
foreach($qlist as $qname => $q)
|
||||
{
|
||||
|
||||
foreach($qlist as $type => $q) {
|
||||
?>
|
||||
<h4><?php echo _("Accounts of type"). " \"" . $qname . "\"" ?></h4>
|
||||
<div>
|
||||
<h4><?php echo _("Accounts of type"). " \"$type\"" ?></h4>
|
||||
<table border="0" cellpadding="4" cellspacing="0">
|
||||
<tr><th><?php __("Quotas") ?></th><th><?php __("Default Value"); ?></th></tr>
|
||||
<?php
|
||||
|
||||
foreach($aqlist as $aqtype => $aqname)
|
||||
{
|
||||
$key = $qname . ":" . $aqtype;
|
||||
$col=3-$col;
|
||||
|
||||
foreach($q as $name => $value) {
|
||||
$key = $type . ":" . $name;
|
||||
$col=3-$col;
|
||||
?>
|
||||
|
||||
<tr class="lst<?php echo $col; ?>">
|
||||
<td><label for="<?php echo $key; ?>"><?php echo $aqname; ?></label></td>
|
||||
<td><input type="text" class="int" size="16" maxlength="16" name="<?php echo $key; ?>" id="<?php echo $key; ?>" value="<?php echo $q[$aqtype]; ?>" /></td></tr>
|
||||
<td><label for="<?php echo $key; ?>"><?php echo $qarray[$name]; ?></label></td>
|
||||
<td><input type="text" class="int" size="16" maxlength="16" name="<?php echo $key; ?>" id="<?php echo $name; ?>" value="<?php echo $value; ?>" /></td></tr>
|
||||
<?php
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
</table>
|
||||
</div>
|
||||
<?php
|
||||
|
||||
}
|
||||
|
||||
?>
|
||||
<input type="submit" class="inb" value="<?php __("Edit the default quotas"); ?>" />
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<?php include_once("foot.php"); ?>
|
||||
|
|
|
@ -51,22 +51,20 @@ if (!($u=$admin->add_mem($login, $pass, $nom, $prenom, $nmail, $canpass, $type,
|
|||
$mem->su($u);
|
||||
|
||||
/*
|
||||
* 0 = pas d'hébergement dns, en effet, pas besoin vu que les
|
||||
* domaines *.koumbit.net sont bien sur le serveur
|
||||
* 1 = hébergement dns, en effet, les
|
||||
* domaines *.koumbit.net ne sont pas forcément sur le serveur
|
||||
*
|
||||
* 1 = noerase = empêche à l'utilisateur de modifier le dns ou de
|
||||
* supprimer le domaine
|
||||
*
|
||||
* 1 = force = ne tient pas compte du whois ou des droits de tld
|
||||
*/
|
||||
|
||||
if (($create_dom == 1) && !is_null($create_dom_list)) {
|
||||
# make sure we don't have multiple dots there
|
||||
$dom->lock();
|
||||
$dom->add_domain($login.".".preg_replace("/^\.\.*/", "", $create_dom_list),1,1,1);
|
||||
$dom->unlock();
|
||||
// make sure we don't have multiple dots there
|
||||
$dom->lock();
|
||||
$dom->add_domain($login.".".preg_replace("/^\.\.*/", "", $create_dom_list),1,1,1);
|
||||
$dom->unlock();
|
||||
}
|
||||
|
||||
$ftp->add_ftp($login,"",$pass,"/");
|
||||
$mem->unsu();
|
||||
|
||||
|
|
|
@ -34,9 +34,15 @@ if (!$admin->enabled) {
|
|||
exit();
|
||||
}
|
||||
|
||||
$fields = array (
|
||||
"domain" => array ("request", "string", ""),
|
||||
);
|
||||
getFields($fields);
|
||||
|
||||
if (!$admin->dom_lock($domain)) {
|
||||
$error=$err->errstr();
|
||||
}
|
||||
|
||||
include("adm_doms.php");
|
||||
exit;
|
||||
|
||||
|
|
|
@ -34,10 +34,9 @@ if (!$admin->enabled) {
|
|||
exit();
|
||||
}
|
||||
|
||||
include("head.php");
|
||||
include_once ("head.php");
|
||||
|
||||
?>
|
||||
</head>
|
||||
<body>
|
||||
<h3><?php __("Manage installed domains"); ?></h3>
|
||||
<?php
|
||||
if ($error) {
|
||||
|
@ -51,8 +50,6 @@ $c=$admin->dom_list();
|
|||
<?php __("Here is the list of the domains installed on this server. You can remove a domain if it does not exist or does not point to our server anymore. You can also set the 'Lock' flag on a domain so that the user will not be able to change any DNS parameter or delete this domain from his account."); ?>
|
||||
</p>
|
||||
|
||||
<p><a href="<?php echo $_SERVER["SCRIPT_NAME"]; ?>"><?php __("Update this page"); ?></a></p>
|
||||
|
||||
<form method="post" action="adm_dodom.php">
|
||||
<table border="0" cellpadding="4" cellspacing="0">
|
||||
<tr><th><?php __("Action"); ?></th><th><?php __("Domain"); ?></th><th><?php __("Member"); ?></th><th>Lock</th></tr>
|
||||
|
@ -64,10 +61,10 @@ for($i=0;$i<count($c);$i++) {
|
|||
|
||||
<tr class="lst<?php echo $col; ?>">
|
||||
<td><a href="adm_domlock.php?domain=<?php echo urlencode($c[$i][domaine]); ?>"><?php
|
||||
if ($c[$i][noerase]) __("Unlock"); else __("Lock"); ?></a></td>
|
||||
<td><a href="http://<?php echo $c[$i][domaine]; ?>" target="_blank"><?php echo $c[$i][domaine]; ?></a></td>
|
||||
<td><?php echo $c[$i][login]; ?></td>
|
||||
<td><?php if ($c[$i][noerase]) {
|
||||
if ($c[$i]["noerase"]) __("Unlock"); else __("Lock"); ?></a></td>
|
||||
<td><a href="http://<?php echo $c[$i][domaine]; ?>" target="_blank"><?php echo $c[$i]["domaine"]; ?></a></td>
|
||||
<td><?php echo $c[$i]["login"]; ?></td>
|
||||
<td><?php if ($c[$i]["noerase"]) {
|
||||
echo "<img src=\"icon/encrypted.png\" width=\"16\" height=\"16\" alt=\""._("Locked Domain")."\" />";
|
||||
} ?></td>
|
||||
</tr>
|
||||
|
@ -76,6 +73,4 @@ for($i=0;$i<count($c);$i++) {
|
|||
?>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<?php include_once("foot.php"); ?>
|
||||
|
|
|
@ -34,6 +34,11 @@ if (!$admin->enabled) {
|
|||
exit();
|
||||
}
|
||||
|
||||
$fields = array (
|
||||
"uid" => array ("request", "integer", 0),
|
||||
);
|
||||
getFields($fields);
|
||||
|
||||
if (!$admin->su2normal($uid)) {
|
||||
$error=$err->errstr();
|
||||
}
|
||||
|
|
|
@ -34,6 +34,11 @@ if (!$admin->enabled) {
|
|||
exit();
|
||||
}
|
||||
|
||||
$fields = array (
|
||||
"uid" => array ("request", "integer", 0),
|
||||
);
|
||||
getFields($fields);
|
||||
|
||||
if (!$admin->normal2su($uid)) {
|
||||
$error=$err->errstr();
|
||||
}
|
||||
|
|
|
@ -30,11 +30,18 @@
|
|||
----------------------------------------------------------------------
|
||||
*/
|
||||
require_once("../class/config.php");
|
||||
include_once("head.php");
|
||||
|
||||
if (!$admin->enabled) {
|
||||
__("This page is restricted to authorized staff");
|
||||
exit();
|
||||
}
|
||||
|
||||
$fields = array (
|
||||
"uid" => array ("request", "integer", 0),
|
||||
);
|
||||
getFields($fields);
|
||||
|
||||
if (!$admin->checkcreator($uid)) {
|
||||
__("This page is restricted to authorized staff");
|
||||
exit();
|
||||
|
@ -44,17 +51,14 @@ if (!$r=$admin->get($uid)) {
|
|||
$error=$err->errstr();
|
||||
}
|
||||
|
||||
include("head.php");
|
||||
?>
|
||||
</head>
|
||||
<body>
|
||||
<h3><?php __("Member Edition"); ?></h3>
|
||||
<?php
|
||||
if ($error) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
}
|
||||
?>
|
||||
<form method="post" action="adm_doedit.php">
|
||||
<form method="post" action="adm_doedit.php" name="main" id="main">
|
||||
<table border="1" cellspacing="0" cellpadding="4">
|
||||
<tr>
|
||||
<th><input type="hidden" name="uid" value="<?php echo $uid ?>" />
|
||||
|
@ -94,7 +98,7 @@ include("head.php");
|
|||
?></select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<tr>
|
||||
<th><label for="notes"><?php __("Notes"); ?></label></th>
|
||||
<td><textarea name="notes" id="notes" class="int" cols="32" rows="5"><?php echo $r['notes']; ?></textarea></td>
|
||||
</tr>
|
||||
|
@ -118,7 +122,7 @@ include("head.php");
|
|||
echo " selected";
|
||||
echo ">$type</option>";
|
||||
}
|
||||
?></select><label for="reset_quotas"><?php __("Reset quotas to default ?") ?></label><input type="checkbox" name="reset_quotas" id="reset_quotas"></td>
|
||||
?></select><label for="reset_quotas"><?php __("Reset quotas to default ?") ?></label><input type="checkbox" name="reset_quotas" id="reset_quotas" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><label for="duration"><?php __("Period"); ?></label></th>
|
||||
|
@ -174,5 +178,7 @@ printf(_("Account created by %s"),$c["login"]);
|
|||
?>
|
||||
</p>
|
||||
<p><a href="adm_list.php"><?php __("Back to the account list"); ?></a></p>
|
||||
</body>
|
||||
</html>
|
||||
<script type="text/javascript">
|
||||
document.forms['main'].pass.focus();
|
||||
</script>
|
||||
<?php include_once("foot.php"); ?>
|
||||
|
|
|
@ -31,20 +31,28 @@
|
|||
----------------------------------------------------------------------
|
||||
*/
|
||||
require_once("../class/config.php");
|
||||
include_once("head.php");
|
||||
|
||||
if (!$admin->enabled) {
|
||||
__("This page is restricted to authorized staff");
|
||||
exit();
|
||||
}
|
||||
|
||||
$creator_id = intval($_REQUEST['creator']);
|
||||
$fields = array (
|
||||
"show" => array ("request", "string", ""),
|
||||
"creator_id" => array("request", "integer", 2000),
|
||||
);
|
||||
getFields($fields);
|
||||
|
||||
$r=$admin->get_list($_REQUEST['show'] == 'all' ? 1 : 0, $creator_id);
|
||||
if ($show && $cuid != 2000)
|
||||
{
|
||||
__("This page is restricted to authorized staff");
|
||||
exit();
|
||||
}
|
||||
|
||||
$r=$admin->get_list($show == 'all' ? 1 : 0, $creator_id);
|
||||
|
||||
include("head.php");
|
||||
?>
|
||||
</head>
|
||||
<body>
|
||||
<h3><?php __("Member list"); ?></h3>
|
||||
<?php
|
||||
if ($error) {
|
||||
|
@ -53,9 +61,9 @@ include("head.php");
|
|||
?>
|
||||
<p>
|
||||
<?php __("Here is the list of hosted members"); ?>
|
||||
|
||||
<?php if($_REQUEST['show'] != 'all') {
|
||||
echo '<br /><a href="adm_list.php?show=all">' . _('List all the accounts') . '</a>';
|
||||
|
||||
if ($cuid == 2000) {
|
||||
$list_creators = $admin->get_creator_list();
|
||||
$infos_creators = array();
|
||||
|
@ -108,15 +116,13 @@ while (list($key,$val)=each($r))
|
|||
$col=3-$col;
|
||||
?>
|
||||
<tr class="lst<?php echo $col; ?>">
|
||||
|
||||
<?php
|
||||
if($admin->checkcreator($val['uid'])) {
|
||||
if ($val["su"]) { ?>
|
||||
<td> </td>
|
||||
<?php } else { ?>
|
||||
<td align="center"><input type="checkbox" class="inc" name="d[]" value="<?php echo $val["uid"]; ?>" /></td>
|
||||
<?php }
|
||||
?>
|
||||
<?php } ?>
|
||||
<td align="center"><a href="adm_edit.php?uid=<?php echo $val["uid"] ?>"><?php __("Edit"); ?></a></td>
|
||||
<td align="center"><a href="adm_quotaedit.php?uid=<?php echo $val["uid"] ?>"><?php __("Quotas"); ?></a></td>
|
||||
<td align="center"><a href="adm_deactivate.php?uid=<?php echo $val["uid"] ?>"><?php __("Deactivate"); ?></a></td>
|
||||
|
@ -124,16 +130,16 @@ while (list($key,$val)=each($r))
|
|||
if (!$val["enabled"])
|
||||
echo "<img src=\"icon/encrypted.png\" width=\"16\" height=\"16\" alt=\""._("Locked Account")."\" />";
|
||||
else {
|
||||
if($admin->checkcreator($val['uid'])) {
|
||||
?>
|
||||
<a href="adm_login.php?id=<?php echo $val["uid"];?>" target="_parent"><?php __("Connect as"); ?></a>
|
||||
<?php } ?>
|
||||
<?php } } ?>
|
||||
</td>
|
||||
<?php
|
||||
} else {
|
||||
echo "<td colspan=\"5\"></td>";
|
||||
}
|
||||
?>
|
||||
|
||||
<td <?php if ($val["su"]) echo "style=\"color: red\""; ?>><?php echo $val["login"] ?></td>
|
||||
<td><a href="mailto:<?php echo $val["mail"]; ?>"><?php echo $val["nom"]." ".$val["prenom"] ?></a> </td>
|
||||
<td><?php echo $val["parentlogin"] ?></td>
|
||||
|
@ -173,7 +179,7 @@ $val=$r[$z];
|
|||
<?php if ($val["su"]) { ?>
|
||||
<td> </td>
|
||||
<?php } else { ?>
|
||||
<td align="center"><input type="checkbox" class="inc" name="d[]" value="<?php echo $val["uid"]; ?>"></td>
|
||||
<td align="center"><input type="checkbox" class="inc" name="d[]" value="<?php echo $val["uid"]; ?>" /></td>
|
||||
<?php } ?>
|
||||
<td align="center">
|
||||
<a href="adm_edit.php?uid=<?php echo $val["uid"] ?>"><?php __("E"); ?></a>
|
||||
|
@ -248,5 +254,4 @@ if (is_array($val)) {
|
|||
printf("<p>"._("%s accounts")."</p>",count($r));
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
<?php include_once("foot.php"); ?>
|
||||
|
|
|
@ -34,60 +34,44 @@ if (!$admin->enabled) {
|
|||
exit();
|
||||
}
|
||||
|
||||
$id = $_GET['id'];
|
||||
$fields = array (
|
||||
"id" => array ("request", "integer", 0),
|
||||
);
|
||||
getFields($fields);
|
||||
|
||||
if (!$admin->checkcreator($id)) {
|
||||
__("This page is restricted to authorized staff");
|
||||
exit();
|
||||
}
|
||||
|
||||
if (!$r=$admin->get($id)) {
|
||||
if (!$r=$admin->get($id))
|
||||
{
|
||||
$error=$err->errstr();
|
||||
} else {
|
||||
}
|
||||
else
|
||||
{
|
||||
if (!$mem->setid($id))
|
||||
{
|
||||
$error=$err->errstr();
|
||||
include("index.php");
|
||||
exit();
|
||||
}
|
||||
|
||||
if (!$mem->setid($id)) {
|
||||
$error=$err->errstr();
|
||||
include("index.php");
|
||||
include_once("main.php");
|
||||
exit();
|
||||
}
|
||||
|
||||
include_once("head.php");
|
||||
|
||||
?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
|
||||
<html>
|
||||
<head>
|
||||
<title><?php __("AlternC Desktop"); ?></title>
|
||||
<link rel="stylesheet" href="styles/base.css" type="text/css" />
|
||||
<link rel="stylesheet" href="styles/custom.css" type="text/css" />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
||||
</head>
|
||||
<frameset cols="225px,*">
|
||||
<frame src="menu.php" name="left" />
|
||||
<frame src="main.php" name="right" />
|
||||
<noframes>
|
||||
<body>
|
||||
<p>
|
||||
Votre navigateur doit supporter les cadres.<br />
|
||||
Your browser must support frames
|
||||
</p>
|
||||
</body>
|
||||
</noframes>
|
||||
</frameset>
|
||||
</html>
|
||||
<?php
|
||||
exit();
|
||||
}
|
||||
include("head.php");
|
||||
?>
|
||||
</head>
|
||||
<body>
|
||||
<h3><?php __("Member login"); ?></h3>
|
||||
<?php
|
||||
if ($error) {
|
||||
echo "<p class=\"error\">$error</p></body></html>";
|
||||
|
||||
if ($error)
|
||||
{
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
include_once("foot.php");
|
||||
exit();
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
<?php include_once("foot.php"); ?>
|
||||
|
|
|
@ -34,6 +34,14 @@ if (!$admin->enabled) {
|
|||
exit();
|
||||
}
|
||||
|
||||
$fields = array (
|
||||
"delaccount" => array ("request", "string", ""),
|
||||
|
||||
"newlogin" => array ("request", "string", ""),
|
||||
"newpass" => array ("request", "string", ""),
|
||||
);
|
||||
getFields($fields);
|
||||
|
||||
if ($delaccount) {
|
||||
// Delete an account
|
||||
if ($mail->del_slave_account($delaccount)) {
|
||||
|
@ -48,7 +56,7 @@ if ($newlogin) {
|
|||
}
|
||||
}
|
||||
|
||||
include("head.php");
|
||||
include_once("head.php");
|
||||
?>
|
||||
</head>
|
||||
<body>
|
||||
|
@ -76,7 +84,7 @@ for($i=0;$i<count($c);$i++) {
|
|||
?>
|
||||
|
||||
<tr class="lst<?php echo $col; ?>">
|
||||
<td><a href="adm_mxaccount.php?delaccount=<?php echo urlencode($c[$i]["login"]); ?>"><?php __("Delete"); ?></a></td>
|
||||
<td class="center"><a href="adm_mxaccount.php?delaccount=<?php echo urlencode($c[$i]["login"]); ?>"><img src="images/delete.png" alt="<?php __("Delete"); ?>" /></a></td>
|
||||
<td><?php echo $c[$i]["login"]; ?></td>
|
||||
<td><?php echo $c[$i]["pass"]; ?></td>
|
||||
</tr>
|
||||
|
@ -98,5 +106,4 @@ for($i=0;$i<count($c);$i++) {
|
|||
</table>
|
||||
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
<?php include_once("foot.php"); ?>
|
||||
|
|
|
@ -34,14 +34,15 @@ if (!$admin->enabled) {
|
|||
exit();
|
||||
}
|
||||
|
||||
include("head.php");
|
||||
include_once("head.php");
|
||||
|
||||
?>
|
||||
</head>
|
||||
<body>
|
||||
<h3><?php __("Admin Control Panel"); ?></h3>
|
||||
<?php
|
||||
if ($error) {
|
||||
echo "<p class=\"error\">$error</p></body></html>";
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
include_once("foot.php");
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
<ul id="adm_panel">
|
||||
|
@ -50,21 +51,21 @@ include("head.php");
|
|||
<li class="lst1"><a href="adm_doms.php"><?php __("Manage installed domains"); ?></a></li>
|
||||
<li class="lst2"><a href="adm_slaveip.php"><?php __("Manage allowed ip for slave zone transfers"); ?></a></li>
|
||||
<li class="lst1"><a href="adm_slaveaccount.php"><?php __("Manage allowed accounts for slave zone transfers"); ?></a></li>
|
||||
<li class="lst1"><a href="adm_mxaccount.php"><?php __("Manage allowed accounts for secondary mx"); ?></a></li>
|
||||
<li class="lst2"><a href="adm_variables.php"><?php __("Configure AlternC variables"); ?></a></li>
|
||||
<li class="lst1"><a href="quota_show_all.php"><?php __("Show all quotas"); ?></a></li>
|
||||
<li class="lst2"><a href="adm_mxaccount.php"><?php __("Manage allowed accounts for secondary mx"); ?></a></li>
|
||||
<li class="lst1"><a href="adm_variables.php"><?php __("Configure AlternC variables"); ?></a></li>
|
||||
<li class="lst2"><a href="quota_show_all.php"><?php __("Show all quotas"); ?></a></li>
|
||||
<li class="lst1"><a href="stats_members.php"><?php __("Account creation statistics"); ?></a></li>
|
||||
<?php
|
||||
|
||||
// here we include any "adminmenu_*" file content
|
||||
$d=opendir(".");
|
||||
if ($d) {
|
||||
$lst=1;
|
||||
$lst=2;
|
||||
while ($c=readdir($d)) {
|
||||
if (substr($c,0,10)=="adminmenu_") {
|
||||
echo "<tr class=\"lst$lst\">";
|
||||
echo "<li class=\"lst$lst\">";
|
||||
include($c);
|
||||
echo "</tr>\n";
|
||||
echo "</li>\n";
|
||||
$lst=3-$lst;
|
||||
}
|
||||
}
|
||||
|
@ -73,7 +74,5 @@ if ($d) {
|
|||
closedir($d);
|
||||
?>
|
||||
</ul>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
|
||||
<?php include_once("foot.php"); ?>
|
||||
|
|
|
@ -51,5 +51,4 @@ if ($submit) {
|
|||
|
||||
}
|
||||
|
||||
|
||||
?>
|
|
@ -28,12 +28,19 @@
|
|||
----------------------------------------------------------------------
|
||||
*/
|
||||
require_once("../class/config.php");
|
||||
include_once("head.php");
|
||||
|
||||
if (!$admin->enabled) {
|
||||
__("This page is restricted to authorized staff");
|
||||
include_once("foot.php");
|
||||
exit();
|
||||
}
|
||||
|
||||
$fields = array (
|
||||
"uid" => array ("request", "integer", 0),
|
||||
);
|
||||
getFields($fields);
|
||||
|
||||
if (!$us=$admin->get($uid)) {
|
||||
$error=$err->errstr();
|
||||
}
|
||||
|
@ -43,14 +50,13 @@ if (!$r=$quota->getquota()) {
|
|||
$error=$err->errstr();
|
||||
}
|
||||
$mem->unsu();
|
||||
include("head.php");
|
||||
|
||||
?>
|
||||
</head>
|
||||
<body>
|
||||
<h3><?php __("Editing the quotas of a member"); ?></h3>
|
||||
<?php
|
||||
if ($error) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
include_once("foot.php");
|
||||
exit();
|
||||
}
|
||||
?>
|
||||
|
@ -65,9 +71,10 @@ reset($ql);
|
|||
while (list($key,$val)=each($ql)) {
|
||||
echo "<tr>";
|
||||
echo "<td>";
|
||||
if ($r[$key]["t"]==$r[$key]["u"] && $r[$key]["u"]) echo "<font color=red>";
|
||||
echo _("quota_".$key)."</td>";
|
||||
if ($r[$key]["t"]==$r[$key]["u"] && $r[$key]["u"]) echo "</font>";
|
||||
if ($r[$key]["t"]==$r[$key]["u"] && $r[$key]["u"]) echo "<span style=\"color: red;\">";
|
||||
echo "<label for=\"q_$key\">" . _("quota_".$key) . "</label>";
|
||||
if ($r[$key]["t"]==$r[$key]["u"] && $r[$key]["u"]) echo "</span>";
|
||||
echo "</td>";
|
||||
echo "<td align=\"center\"><input type=\"text\" class=\"int\" style=\"text-align: right\" size=\"10\" maxlength=\"10\" value=\"".$r[$key]["t"]."\" name=\"q_".$key."\" id=\"q_".$key."\" /></td>";
|
||||
echo "<td align=\"right\"><code><label for=\"q_$key\">".$r[$key]["u"]."</label></code> </td>";
|
||||
echo "</tr>";
|
||||
|
@ -77,5 +84,4 @@ while (list($key,$val)=each($ql)) {
|
|||
</td></tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
<?php include_once("foot.php"); ?>
|
||||
|
|
|
@ -34,6 +34,14 @@ if (!$admin->enabled) {
|
|||
exit();
|
||||
}
|
||||
|
||||
$fields = array (
|
||||
"delaccount" => array ("request", "string", ""),
|
||||
|
||||
"newlogin" => array ("request", "string", ""),
|
||||
"newpass" => array ("request", "string", ""),
|
||||
);
|
||||
getFields($fields);
|
||||
|
||||
if ($delaccount) {
|
||||
// Delete an account
|
||||
if ($dom->del_slave_account($delaccount)) {
|
||||
|
@ -48,10 +56,9 @@ if ($newlogin) {
|
|||
}
|
||||
}
|
||||
|
||||
include("head.php");
|
||||
include_once ("head.php");
|
||||
|
||||
?>
|
||||
</head>
|
||||
<body>
|
||||
<h3><?php __("Manage allowed accounts for slave zone transfers"); ?></h3>
|
||||
<?php
|
||||
if ($error) {
|
||||
|
@ -76,7 +83,7 @@ for($i=0;$i<count($c);$i++) {
|
|||
?>
|
||||
|
||||
<tr class="lst<?php echo $col; ?>">
|
||||
<td><a href="adm_slaveaccount.php?delaccount=<?php echo urlencode($c[$i]["login"]); ?>"><?php __("Delete"); ?></a></td>
|
||||
<td class="center"><a href="adm_slaveaccount.php?delaccount=<?php echo urlencode($c[$i]["login"]); ?>"><img src="images/delete.png" alt="<?php __("Delete"); ?>" /></a></td>
|
||||
<td><?php echo $c[$i]["login"]; ?></td>
|
||||
<td><?php echo $c[$i]["pass"]; ?></td>
|
||||
</tr>
|
||||
|
@ -98,5 +105,4 @@ for($i=0;$i<count($c);$i++) {
|
|||
</table>
|
||||
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
<?php include_once("foot.php"); ?>
|
||||
|
|
|
@ -34,6 +34,14 @@ if (!$admin->enabled) {
|
|||
exit();
|
||||
}
|
||||
|
||||
$fields = array (
|
||||
"delip" => array ("request", "string", ""),
|
||||
|
||||
"newip" => array ("request", "string", ""),
|
||||
"newclass" => array ("request", "string", "32"),
|
||||
);
|
||||
getFields($fields);
|
||||
|
||||
if ($delip) {
|
||||
// Delete an ip address/class
|
||||
if ($dom->del_slave_ip($delip)) {
|
||||
|
@ -48,12 +56,9 @@ if ($newip) {
|
|||
}
|
||||
}
|
||||
|
||||
if (!$newclass) $newclass=32;
|
||||
include_once("head.php");
|
||||
|
||||
include("head.php");
|
||||
?>
|
||||
</head>
|
||||
<body>
|
||||
<h3><?php __("Manage allowed ip for slave zone transfers"); ?></h3>
|
||||
<?php
|
||||
if ($error) {
|
||||
|
@ -78,7 +83,7 @@ for($i=0;$i<count($c);$i++) {
|
|||
?>
|
||||
|
||||
<tr class="lst<?php echo $col; ?>">
|
||||
<td><a href="adm_slaveip.php?delip=<?php echo urlencode($c[$i][ip]); ?>"><?php __("Delete"); ?></a></td>
|
||||
<td class="center"><a href="adm_slaveip.php?delip=<?php echo urlencode($c[$i][ip]); ?>"><img src="images/delete.png" alt="<?php __("Delete"); ?>" /></a></td>
|
||||
<td><?php echo $c[$i]["ip"]."/".$c[$i]["class"]; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
|
@ -97,7 +102,5 @@ for($i=0;$i<count($c);$i++) {
|
|||
<tr><td colspan="2">
|
||||
<input type="submit" value="<?php __("Add this ip to the slave list"); ?>" class="inb" />
|
||||
</table>
|
||||
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
<?php include_once("foot.php"); ?>
|
||||
|
|
|
@ -44,11 +44,9 @@ if (is_array($sel)) {
|
|||
if (!$error) $error=_("The requested TLD has been deleted");
|
||||
}
|
||||
|
||||
include_once("head.php");
|
||||
|
||||
include("head.php");
|
||||
?>
|
||||
</head>
|
||||
<body>
|
||||
<h3><?php __("Manage allowed domains (TLD)"); ?></h3>
|
||||
<?php
|
||||
if ($error) {
|
||||
|
@ -61,7 +59,7 @@ $c=$admin->listtld();
|
|||
<p>
|
||||
<?php __("Here is the list of the TLD allowed on this server. Each TLD can be allowed or denied after some checks (whois, ns, domain exists...)"); ?>
|
||||
</p>
|
||||
|
||||
<p><a href="adm_tldadd.php"><?php __("Add a new TLD"); ?></a></p>
|
||||
<form method="post" action="adm_tld.php">
|
||||
<table border="0" cellpadding="4" cellspacing="0">
|
||||
<tr><th><?php __("Action"); ?></th><th><?php __("TLD"); ?></th><th><?php __("Allowed Mode"); ?></th></tr>
|
||||
|
@ -72,7 +70,7 @@ for($i=0;$i<count($c);$i++) {
|
|||
?>
|
||||
|
||||
<tr class="lst<?php echo $col; ?>">
|
||||
<td><input id="sel<?php echo $i; ?>" type="checkbox" name="sel[]" class="inc" value="<?php echo $c[$i]["tld"]; ?>" /> <a href="adm_tldedit.php?tld=<?php echo urlencode($c[$i]["tld"]); ?>"><?php __("Edit"); ?></a></td>
|
||||
<td><input id="sel<?php echo $i; ?>" type="checkbox" name="sel[]" class="inc" value="<?php echo $c[$i]["tld"]; ?>" /> <a href="adm_tldedit.php?tld=<?php echo urlencode($c[$i]["tld"]); ?>"><img style="padding-bottom: 5px" src="images/edit.png" alt="<?php __("Edit"); ?>" /></a></td>
|
||||
<td><label for="sel<?php echo $i; ?>"><?php echo $c[$i]["tld"]; ?></label></td>
|
||||
<td><?php __($admin->tldmode[$c[$i]["mode"]]); ?></td></tr>
|
||||
|
||||
|
@ -82,6 +80,5 @@ for($i=0;$i<count($c);$i++) {
|
|||
<tr><td colspan="3"><input type="submit" class="inb" value="<?php __("Delete the checked TLD"); ?>" /></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
<a href="adm_tldadd.php"><?php __("Add a new TLD"); ?></a>
|
||||
</body>
|
||||
</html>
|
||||
<p><a href="adm_tldadd.php"><?php __("Add a new TLD"); ?></a></p>
|
||||
<?php include_once("foot.php"); ?>
|
||||
|
|
|
@ -34,10 +34,9 @@ if (!$admin->enabled) {
|
|||
exit();
|
||||
}
|
||||
|
||||
include("head.php");
|
||||
include_once ("head.php");
|
||||
|
||||
?>
|
||||
</head>
|
||||
<body>
|
||||
<h3><?php __("Manage allowed domains (TLD)"); ?></h3>
|
||||
<?php
|
||||
if ($error) {
|
||||
|
@ -62,6 +61,4 @@ include("head.php");
|
|||
<tr><td colspan="2"><input type="submit" class="inb" value="<?php __("Add a new TLD"); ?>" /></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<?php include_once("foot.php"); ?>
|
||||
|
|
|
@ -34,6 +34,11 @@ if (!$admin->enabled) {
|
|||
exit();
|
||||
}
|
||||
|
||||
$fields = array (
|
||||
"tld" => array ("request", "string", ""),
|
||||
);
|
||||
getFields($fields);
|
||||
|
||||
$mode=$admin->gettld($tld);
|
||||
if ($mode===false) {
|
||||
$error=$err->errstr();
|
||||
|
@ -41,10 +46,9 @@ if ($mode===false) {
|
|||
exit();
|
||||
}
|
||||
|
||||
include("head.php");
|
||||
include_once("head.php");
|
||||
|
||||
?>
|
||||
</head>
|
||||
<body>
|
||||
<h3><?php __("Manage allowed domains (TLD)"); ?></h3>
|
||||
<?php
|
||||
if ($error) {
|
||||
|
@ -62,6 +66,4 @@ include("head.php");
|
|||
<tr><td colspan="2"><input type="submit" class="inb" value="<?php __("Edit this TLD"); ?>" /></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<?php include_once("foot.php"); ?>
|
||||
|
|
|
@ -41,10 +41,9 @@ foreach ($conf as $name => $val) {
|
|||
}
|
||||
}
|
||||
|
||||
include("head.php");
|
||||
include_once ("head.php");
|
||||
|
||||
?>
|
||||
</head>
|
||||
<body>
|
||||
<h3><?php __("Configure AlternC variables"); ?></h3>
|
||||
|
||||
<p>
|
||||
|
@ -65,12 +64,11 @@ while ($db->next_record()) {
|
|||
|
||||
<tr class="lst<?php echo $col; ?>">
|
||||
<td><?php echo $vars['name']; ?></td>
|
||||
<td><input type="text" name="<?php echo $vars['name']?>" value="<?php echo $vars['value']?>" ></td>
|
||||
<td><input type="text" name="<?php echo $vars['name']?>" value="<?php echo $vars['value']?>" /></td>
|
||||
<td><?php echo $vars['comment']; ?></td>
|
||||
</tr>
|
||||
<? } ?>
|
||||
</table>
|
||||
<input type="submit" class="inb" value="<?php __("Save variables"); ?>" />
|
||||
<p><input type="submit" class="inb" value="<?php __("Save variables"); ?>" /></p>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
<?php include_once("foot.php"); ?>
|
||||
|
|
|
@ -27,30 +27,9 @@
|
|||
Purpose of file:
|
||||
----------------------------------------------------------------------
|
||||
*/
|
||||
require_once("../../class/config.php");
|
||||
require_once("../../class/config_nochk.php");
|
||||
|
||||
$hlist=array(
|
||||
100=>"c26.html",
|
||||
0=>"book1.html"
|
||||
);
|
||||
header("Location: ".$help_baseurl."go?version=".urlencode($L_VERSION)."&hid=".$_REQUEST["hid"]);
|
||||
|
||||
if (!$hlist[$hid]) {
|
||||
$hid=0;
|
||||
}
|
||||
exit();
|
||||
|
||||
?>
|
||||
<html>
|
||||
<head>
|
||||
<title>Aide en ligne <?php echo $host ?></title>
|
||||
<link rel="stylesheet" href="/admin/styles/base.css" type="text/css">
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
|
||||
</head>
|
||||
<frameset cols="30%,*" onload="window.focus(); return true;">
|
||||
<frame src="html/toc.htm" name="left">
|
||||
<frame src="html/<?php echo $hlist[$hid]; ?>" name="right">
|
||||
</frameset>
|
||||
<noframes>
|
||||
Votre navigateur doit supporter les cadres.<br />
|
||||
Your browser must support frames
|
||||
</noframes>
|
||||
</html>
|
||||
|
|
After Width: | Height: | Size: 2.3 KiB |
After Width: | Height: | Size: 3.1 KiB |
|
@ -50,31 +50,28 @@ if ($save) {
|
|||
$error=sprintf(_("Your file %s has been saved"),$file)." (".format_date('%3$d-%2$d-%1$d %4$d:%5$d',date("Y-m-d H:i:s")).")";
|
||||
}
|
||||
|
||||
include("head.php");
|
||||
include_once("head.php");
|
||||
|
||||
?>
|
||||
<script src="/admin/js/wz_dragdrop.js" type="text/javascript"></script>
|
||||
</head>
|
||||
<body>
|
||||
<p>
|
||||
<?php if ($error) echo "<font color=\"red\">$error</font><br />"; ?>
|
||||
<?php echo _("File editing")." <code>$R/<b>$file</b></code><br />"; ?>
|
||||
</p>
|
||||
<form action="bro_editor.php" method="post"><p>
|
||||
<div id="resizer" style="left: 0px; top: 0px; z-index: 54; width: <?php echo $p["editsizex"]*6; ?>px; height: <?php echo $p["editsizex"]*6; ?>px; cursor: auto;"><textarea class="int" style="width: 90%; height: 95%; font-family: <?php echo $p["editor_font"]; ?>; font-size: <?php echo $p["editor_size"]; ?>;" name="texte"><?php
|
||||
<form action="bro_editor.php" method="post"><br />
|
||||
<div id="resizer" style="left: 0px; top: 0px; z-index: 54; width: <?php echo $p["editsizex"]*8; ?>px; height: <?php echo $p["editsizey"]*8; ?>px; cursor: auto;"><textarea class="int" style="font-family: <?php echo $p["editor_font"]; ?>; font-size: <?php echo $p["editor_size"]; ?>; width: 90%; height: 90%;" name="texte"><?php
|
||||
$bro->content($R,$file);
|
||||
?></textarea><img src="/admin/icon/winresize.gif" alt="shift+click and drag to resize textarea" title="shift+click and drag to resize textarea" height="20" width="20"></div>
|
||||
?></textarea><img src="/admin/icon/winresize.gif" alt="<?php __("ctrl+click or shift+click and drag to resize the editing zone"); ?>" title="<?php __("ctrl+click or shift+click and drag to resize the editing zone"); ?>" height="20" width="20" /></div><br />
|
||||
<input type="hidden" name="file" value="<?php echo str_replace("\"",""",$file); ?>" />
|
||||
<input type="hidden" name="R" value="<?php echo str_replace("\"",""",$R); ?>" />
|
||||
|
||||
<input type="submit" class="inb" value="<?php __("Save"); ?>" name="save" />
|
||||
<input type="submit" class="inb" value="<?php __("Save & Quit"); ?>" name="saveret" />
|
||||
<input type="submit" class="inb" value="<?php __("Quit"); ?>" name="cancel" />
|
||||
</p>
|
||||
<input type="hidden" name="file" value="<?php echo str_replace("\"",""",$file); ?>" />
|
||||
<input type="hidden" name="R" value="<?php echo str_replace("\"",""",$R); ?>" />
|
||||
<br />
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
SET_DHTML("resizer"+RESIZABLE);
|
||||
//-->
|
||||
</script>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
<?php include_once("foot.php"); ?>
|
|
@ -25,9 +25,11 @@
|
|||
----------------------------------------------------------------------
|
||||
Original Author of file: Benjamin Sonntag, Remi
|
||||
Purpose of file: Online file Browser of AlternC
|
||||
TODO : Voir ??? + Déplacer / Copier
|
||||
----------------------------------------------------------------------
|
||||
*/
|
||||
require_once("../class/config.php");
|
||||
include_once ("head.php");
|
||||
|
||||
$p=$bro->GetPrefs();
|
||||
if (!$R && $p["golastdir"]) {
|
||||
|
@ -61,10 +63,8 @@ if ($formu) {
|
|||
print $err->errstr();
|
||||
}
|
||||
} elseif (!$cancel && is_array($d)) {
|
||||
include("head.php");
|
||||
include_once("head.php");
|
||||
?>
|
||||
</head>
|
||||
<body>
|
||||
<h3><?php printf(_("Deleting files and/or directories")); ?> : </h3>
|
||||
<form action="bro_main.php" method="post">
|
||||
<input type="hidden" name="formu" value="2" />
|
||||
|
@ -116,12 +116,12 @@ if ($formu) {
|
|||
}
|
||||
|
||||
if ($actextract) {
|
||||
print _("extracting...");
|
||||
print _("extracting...")."<br />\n"; flush();
|
||||
if ($bro->ExtractFile($R. '/' . $file, $R)) {
|
||||
print $err->errstr();
|
||||
print _("failed");
|
||||
print _("failed")."<br />\n";
|
||||
} else {
|
||||
print _("done");
|
||||
print _("done")."<br />\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -129,23 +129,20 @@ if ($actextract) {
|
|||
$c=$bro->filelist($R, $_REQUEST['showdirsize']);
|
||||
if ($c===false) $error=$err->errstr();
|
||||
|
||||
include("head.php");
|
||||
?>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<div id="browser">
|
||||
<h3><?php __("File browser"); ?></h3>
|
||||
<table border="0" width="100%" cellspacing="0">
|
||||
<tr><td>
|
||||
|
||||
<hr />
|
||||
<table width="100%"><tr><td valign="top">
|
||||
<a href="bro_main.php?R=/"><?php echo $mem->user["login"]; ?></a> / <?php echo $bro->PathList($R,"bro_main.php") ?><br />
|
||||
<small>
|
||||
<?php if ($error) echo "<font color=\"red\">$error</font>"; ?>
|
||||
</td><td valign="top" align="right">
|
||||
|
||||
<form action="bro_main.php" method="post" name="nn" id="nn">
|
||||
<input type="hidden" name="R" value="<?php echo $R; ?>" />
|
||||
<table id="add-file"><tr>
|
||||
<table><tr>
|
||||
<td><input type="text" class="int" name="nomfich" size="22" maxlength="255" /></td>
|
||||
<td><input type="submit" class="inb" value="<?php __("Create"); ?>" /></td>
|
||||
</tr><tr><td>
|
||||
|
@ -162,19 +159,18 @@ include("head.php");
|
|||
<?php
|
||||
/* Renommer / Copier / Déplacer les fichiers : */
|
||||
if ($formu==2 && $actrename && count($d)) {
|
||||
echo "<table cellpadding=\"6\">\n";
|
||||
echo "<form action=\"bro_main.php\" method=\"post\">\n";
|
||||
echo "<input type=\"hidden\" name=\"R\" value=\"$R\" />\n";
|
||||
echo "<input type=\"hidden\" name=\"formu\" value=\"4\" />\n";
|
||||
echo "<p>"._("Rename")."</p>";
|
||||
echo "<tr><th colspan=\"2\">"._("Rename")."</th></tr>";
|
||||
for ($i=0;$i<count($d);$i++) {
|
||||
$d[$i]=ssla($d[$i]);
|
||||
echo "<table>";
|
||||
echo "<tr><td>"._("Old Name:")."</td><td><input type=\"hidden\" name=\"o[$i]\" value=\"".$d[$i]."\" />".$d[$i]."</td></tr>";
|
||||
echo "<tr><td>"._("New Name:")."</td><td><input type=\"text\" class=\"int\" style=\"width: 350px\" name=\"d[$i]\" value=\"".$d[$i]."\" /></td></tr>";
|
||||
echo "</table>";
|
||||
echo "<tr><td><input type=\"hidden\" name=\"o[$i]\" value=\"".$d[$i]."\" />".$d[$i]."</td>";
|
||||
echo "<td><input type=\"text\" class=\"int\" name=\"d[$i]\" value=\"".$d[$i]."\" /></td></tr>";
|
||||
}
|
||||
echo "<p><input type=\"submit\" class=\"inb\" name=\"submit\" value=\""._("Rename")."\" /></p>";
|
||||
echo "</form>\n";
|
||||
echo "<tr><td colspan=\"2\" align=\"center\"><input type=\"submit\" class=\"inb\" name=\"submit\" value=\""._("Rename")."\" /></td></tr>";
|
||||
echo "</table></form>\n";
|
||||
echo "<hr />\n";
|
||||
}
|
||||
|
||||
|
@ -187,10 +183,9 @@ if ($formu==2 && $_REQUEST['actperms'] && count($d)) {
|
|||
|
||||
$tmp_absdir = $bro->convertabsolute($R,0);
|
||||
|
||||
echo "<table border=\"1\">"; // FIXME, marco, ajouter classe css?
|
||||
echo "<table border=\"1\" cellpadding=\"4\" cellspacing=\"0\">";
|
||||
echo "<tr>";
|
||||
// echo "<th>" . 'File' . "</th><th> </th><th>Owner</th><th>Group</th><th>Other</th>"; // FIXME , i18n
|
||||
echo "<th>" . 'File' . "</th><th>Permissions</th>"; // FIXME, i18n
|
||||
echo "<th>" . _("File") . "</th><th>"._("Permissions")."</th>";
|
||||
echo "</tr>";
|
||||
|
||||
for ($i=0;$i<count($d);$i++) {
|
||||
|
@ -204,8 +199,7 @@ if ($formu==2 && $_REQUEST['actperms'] && count($d)) {
|
|||
// Owner
|
||||
echo "<td>";
|
||||
echo "<input type=\"hidden\" name=\"d[$i]\" value=\"".$d[$i]."\" />";
|
||||
// echo "<label>read <input type=\"checkbox\" name=\"perm[$i][r]\" value=\"1\" ". (($modes & 0000400) ? 'checked="checked"' : '') ." />";
|
||||
echo "<label>write <input type=\"checkbox\" name=\"perm[$i][w]\" value=\"1\" ". (($modes & 0000200) ? 'checked="checked"' : '') ." />";
|
||||
echo "<label for=\"permw$i\">"._("write")."</label> <input type=\"checkbox\" id=\"permw$i\" name=\"perm[$i][w]\" value=\"1\" ". (($modes & 0000200) ? 'checked="checked"' : '') ." />";
|
||||
echo "</td>";
|
||||
|
||||
echo "</tr>";
|
||||
|
@ -231,14 +225,14 @@ if (count($c)) {
|
|||
document.write("<input type=\"button\" value=\"<?php __("all/none"); ?>\" class=\"inb\" onclick=\"CheckAll();\" />");
|
||||
// -->
|
||||
</script>
|
||||
|
||||
<input type="submit" class="inb" name="actdel" value="<?php __("Delete"); ?>" />
|
||||
|
||||
<input type="submit" class="inb" name="actrename" value="<?php __("Rename"); ?>" />
|
||||
<input type="submit" class="inb" name="actperms" value="<?php __("Permissions"); ?>" /> <!-- [ML] -->
|
||||
|
||||
<input type="submit" class="inb" name="actcopy" value="<?php __("Copy to"); ?>" />
|
||||
|
||||
<input type="submit" class="inb" name="actmove" value="<?php __("Move to"); ?>" /> : <input type="text" class="int" name="actmoveto" value="" />
|
||||
<br /><br />
|
||||
<input type="submit" class="inb" name="actcopy" value="<?php __("Copy"); ?>" />
|
||||
<input type="submit" class="inb" name="actmove" value="<?php __("Move"); ?>" /> : <input type="text" class="int" name="actmoveto" value="" />
|
||||
<script type="text/javascript">
|
||||
<!--
|
||||
document.write("<input type=\"button\" name=\"bff\" onclick=\"browseforfolder('main.actmoveto');\" value=\" ... \" class=\"inb\" />");
|
||||
|
@ -259,7 +253,7 @@ for($i=0;$i<count($c);$i++) {
|
|||
$col=3-$col;
|
||||
echo "<tr class=\"lst$col\">\n";
|
||||
if ($c[$i]["type"]) {
|
||||
echo " <td width=\"28\"><input type=\"checkbox\" class=\"inc\" name=\"d[]\" value=\"".htmlentities($c[$i]["name"])."\" /></td>";
|
||||
echo " <td width=\"28\"><input type=\"checkbox\" class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\" /></td>";
|
||||
if ($p["showicons"]) {
|
||||
echo "<td width=\"28\"><img src=\"icon/".$bro->icon($c[$i]["name"])."\" width=\"16\" height=\"16\" alt=\"\" /></td>";
|
||||
}
|
||||
|
@ -279,9 +273,9 @@ echo "<td> ";
|
|||
}
|
||||
$e = $bro->is_extractable($R,$c[$i]["name"]);
|
||||
if ($e) {
|
||||
echo "<a href=\"bro_main.php?actextract=1&file=".urlencode($c[$i]["name"])."&R=".urlencode($R)."\">";
|
||||
echo _("Extract");
|
||||
echo "</a>";
|
||||
echo "<a href=\"bro_main.php?actextract=1&file=".urlencode($c[$i]["name"])."&R=".urlencode($R)."\">";
|
||||
echo _("Extract");
|
||||
echo "</a>";
|
||||
}
|
||||
|
||||
echo "</td>\n";
|
||||
|
@ -491,14 +485,14 @@ else {
|
|||
<hr />
|
||||
<?php __("Import this file"); ?> <input class="int" name="userfile" type="file" />
|
||||
<input type="hidden" name="MAX_FILE_SIZE" value="10000000" />
|
||||
<input type="submit" class="inb" name="upload" value="<?php __("Send"); ?>" />
|
||||
<input type="submit" class="inb" value="<?php __("Send"); ?>" />
|
||||
<hr />
|
||||
</form>
|
||||
<p> </p>
|
||||
|
||||
<?php
|
||||
|
||||
echo '<a href="bro_main.php?R=' . $R . '&showdirsize=1">' . _("Show disk usage of directories (slow)") . '</a><br /><br />';
|
||||
echo '<a href="bro_main.php?R=' . $R . '&showdirsize=1">' . _("Show disk usage of directories (slow)") . '</a><br /><br />';
|
||||
|
||||
if ($id=$ftp->is_ftp($R)) {
|
||||
echo _("There is an ftp account in this folder")." <a href=\"ftp_edit.php?id=".urlencode($id)."\">"._("Click here to edit this ftp account.")."</a><br />";
|
||||
|
@ -519,6 +513,4 @@ echo "<a href=\"hta_add.php?value=$R\">"._("Click here to protect this folder wi
|
|||
<a href="bro_pref.php"><?php __("Configure the file browser"); ?></a><br />
|
||||
|
||||
</td></tr></table>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<?php include_once("foot.php"); ?>
|
||||
|
|
|
@ -37,19 +37,19 @@ if ($submit) {
|
|||
}
|
||||
$p=$bro->GetPrefs();
|
||||
|
||||
include("head.php");
|
||||
include_once("head.php");
|
||||
|
||||
?>
|
||||
</head>
|
||||
<body>
|
||||
<?php if ($error) echo "<font color=\"red\">$error</font><br />"; ?>
|
||||
<h3><?php __("File editor preferences"); ?></h3>
|
||||
<h3><?php __("File browser preferences"); ?></h3>
|
||||
<form action="bro_pref.php" method="post">
|
||||
|
||||
|
||||
<table cellpadding="6" border="1" cellspacing="0">
|
||||
<tr><td colspan="2"><h4><?php __("File editor preferences"); ?></h4></td></tr>
|
||||
<tr><td colspan="2"><h4><?php __("File browser preferences"); ?></h4></td></tr>
|
||||
<tr><td><?php __("Horizontal window size"); ?></td><td><select class="inl" name="editsizex">
|
||||
<?php
|
||||
for($i=10;$i<=200;$i+=10) {
|
||||
for($i=50;$i<=200;$i+=10) {
|
||||
echo "<option";
|
||||
if ($p["editsizex"]==$i) echo " selected";
|
||||
echo ">$i";
|
||||
|
@ -57,7 +57,7 @@ for($i=10;$i<=200;$i+=10) {
|
|||
?></select></td></tr>
|
||||
<tr><td><?php __("Vertical window size"); ?></td><td><select class="inl" name="editsizey">
|
||||
<?php
|
||||
for($i=4;$i<=60;$i+=2) {
|
||||
for($i=4;$i<=80;$i+=2) {
|
||||
echo "<option";
|
||||
if ($p["editsizey"]==$i) echo " selected";
|
||||
echo ">$i";
|
||||
|
@ -79,11 +79,6 @@ for($i=0;$i<count($bro->l_editor_size);$i++) {
|
|||
echo ">"._($bro->l_editor_size[$i]);
|
||||
}
|
||||
?></select></td></tr>
|
||||
</table>
|
||||
<p> </p>
|
||||
|
||||
<table cellpadding="6" border="1" cellspacing="0">
|
||||
<tr><td colspan="2"><h4><?php __("File browser preferences"); ?></h4></td></tr>
|
||||
<tr><td><?php __("File list view"); ?></td><td><select class="inl" name="listmode">
|
||||
<?php
|
||||
for($i=0;$i<count($bro->l_mode);$i++) {
|
||||
|
@ -134,10 +129,9 @@ for($i=0;$i<count($bro->l_icons);$i++) {
|
|||
?></select></td></tr>
|
||||
|
||||
</table>
|
||||
<p><input type="submit" name="submit" class="inb" value="<?php __("Change my settings"); ?>"></p>
|
||||
<p><input type="submit" name="submit" class="inb" value="<?php __("Change my settings"); ?>" /></p>
|
||||
|
||||
</form>
|
||||
<p> </p>
|
||||
<a href="bro_main.php"><?php __("Back to the file browser"); ?></a>
|
||||
</body>
|
||||
</html>
|
||||
<?php include_once("foot.php"); ?>
|
|
@ -82,8 +82,7 @@ if ($select) {
|
|||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
|
||||
<head>
|
||||
<title>Browser for folder</title>
|
||||
<link rel="stylesheet" href="styles/base.css" type="text/css" />
|
||||
<link rel="stylesheet" href="styles/custom.css" type="text/css" />
|
||||
<link rel="stylesheet" href="styles/style.css" type="text/css" />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
||||
|
||||
<?php
|
||||
|
@ -101,8 +100,7 @@ if ($select) {
|
|||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
|
||||
<head>
|
||||
<title>Recherche d'un dossier</title>
|
||||
<link rel="stylesheet" href="styles/base.css" type="text/css" />
|
||||
<link rel="stylesheet" href="styles/custom.css" type="text/css" />
|
||||
<link rel="stylesheet" href="styles/style.css" type="text/css" />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
||||
<script type="text/javascript">
|
||||
/* Fonction appellée lors du lancement d'un popup Fichier : */
|
||||
|
|
|
@ -41,8 +41,7 @@ if (!$mem->checkid()) {
|
|||
<html>
|
||||
<head>
|
||||
<title>Administration de <?php echo $host ?></title>
|
||||
<link rel="stylesheet" href="styles/base.css" type="text/css" />
|
||||
<link rel="stylesheet" href="styles/custom.css" type="text/css" />
|
||||
<link rel="stylesheet" href="style.css" type="text/css">
|
||||
</head>
|
||||
<frameset cols="225px,*">
|
||||
<frame src="menu.php" name="left">
|
||||
|
|
|
@ -29,12 +29,11 @@
|
|||
*/
|
||||
require_once("../class/config.php");
|
||||
|
||||
if (!isSet($dns)) $dns="1";
|
||||
include_once("head.php");
|
||||
|
||||
if (!isset($dns)) $dns="1";
|
||||
|
||||
include("head.php");
|
||||
?>
|
||||
</head>
|
||||
<body onload="document.forms['main'].newdomain.focus();">
|
||||
<h3><?php __("Domain hosting"); ?></h3>
|
||||
<?php
|
||||
if (!$quota->cancreate("dom")) { ?>
|
||||
|
@ -45,16 +44,9 @@ exit();
|
|||
if ($error) echo "<p class=\"error\">$error</p>";
|
||||
?>
|
||||
<form method="post" action="dom_doadd.php" id="main">
|
||||
<table><thead><?php __("Domain hosting"); ?></thead><tbody>
|
||||
<tr>
|
||||
<th><label for="newdomain"><?php __("Domain name"); ?> : www.</label></th>
|
||||
<td><input type="text" class="int" id="newdomain" name="newdomain" value="<?php echo $newdomain ?>" size="32" maxlength="255" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th></th>
|
||||
<td><input type="submit" class="inb" name="submit" value="<?php __("Add this domain"); ?>" /></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
<table><tr><td>
|
||||
<b><label for="newdomain"><?php __("Domain name"); ?> : www.</label></b></td><td><input type="text" class="int" id="newdomain" name="newdomain" value="<?php echo $newdomain ?>" size="32" maxlength="255" />
|
||||
</td></tr><tr><td></td><td><input type="submit" class="inb" name="submit" value="<?php __("Add this domain"); ?>" /></td></tr>
|
||||
</table>
|
||||
<p>
|
||||
<input type="checkbox" name="dns" class="inc" value="1" id="yndns" <?php if ($dns=="1") echo "checked=\"checked\""; ?> /><br />
|
||||
|
@ -75,5 +67,7 @@ if ($error) echo "<p class=\"error\">$error</p>";
|
|||
echo "</pre>";
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
<script type="text/javascript">
|
||||
document.forms['main'].newdomain.focus();
|
||||
</script>
|
||||
<?php include_once("foot.php"); ?>
|
||||
|
|
|
@ -28,6 +28,13 @@
|
|||
----------------------------------------------------------------------
|
||||
*/
|
||||
require_once("../class/config.php");
|
||||
include_once("head.php");
|
||||
|
||||
$fields = array (
|
||||
"newdomain" => array ("post", "string", ""),
|
||||
"dns" => array ("post", "string", ""),
|
||||
);
|
||||
getFields($fields);
|
||||
|
||||
$dom->lock();
|
||||
|
||||
|
@ -39,14 +46,11 @@ if (!$dom->add_domain($newdomain,$dns)) {
|
|||
|
||||
$dom->unlock();
|
||||
|
||||
include("head.php");
|
||||
?>
|
||||
</head>
|
||||
<body>
|
||||
<h3><?php __("Add a domain"); ?></h3>
|
||||
<p>
|
||||
<?php printf(_("Your new domain %s has been successfully installed"),$newdomain); ?><br />
|
||||
<a href="login.php" target="_top"><?php __("Click here to continue"); ?></a><br />
|
||||
<a href="main.php" target="_top"><?php __("Click here to continue"); ?></a><br />
|
||||
<?php $mem->show_help("add_domain"); ?>
|
||||
<br />
|
||||
<?php
|
||||
|
@ -60,5 +64,4 @@ include("head.php");
|
|||
}
|
||||
?>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
<?php include_once("foot.php"); ?>
|
||||
|
|
|
@ -28,6 +28,13 @@
|
|||
----------------------------------------------------------------------
|
||||
*/
|
||||
require_once("../class/config.php");
|
||||
include_once("head.php");
|
||||
|
||||
$fields = array (
|
||||
"domain" => array ("request", "string", ""),
|
||||
"del_confirm" => array ("post", "string", ""),
|
||||
);
|
||||
getFields($fields);
|
||||
|
||||
$dom->lock();
|
||||
if ($del_confirm=="y")
|
||||
|
@ -41,10 +48,7 @@ if ($del_confirm=="y")
|
|||
$dom->unlock();
|
||||
if ($del_confirm!="y") {
|
||||
|
||||
include("head.php");
|
||||
?>
|
||||
</head>
|
||||
<body>
|
||||
<h3><?php printf(_("Confirm the deletion of domain %s"),$domain); ?></h3>
|
||||
<p class="error"><?php __("WARNING"); ?><br /><?php printf(_("Confirm the deletion of domain %s"),$domain); ?><br />
|
||||
<?php __("This will delete the related sub-domains too."); ?></p>
|
||||
|
@ -54,20 +58,15 @@ include("head.php");
|
|||
<input type="hidden" name="domain" value="<?php echo $domain ?>" />
|
||||
<input type="submit" class="inb" name="submit" value="<?php __("Yes"); ?>" /> - <input type="button" class="inb" name="non" value="<?php __("No"); ?>" onclick="history.back()" />
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
<?php include_once("foot.php"); ?>
|
||||
<?php
|
||||
exit();
|
||||
}
|
||||
include("head.php");
|
||||
?>
|
||||
</head>
|
||||
<body bgcolor="#FFFFF0">
|
||||
<h3><?php printf(_("Domain %s deleted"),$domain); ?></h3>
|
||||
<p>
|
||||
<?php printf(_("The domain %s has been successfully deleted."),$domain); ?><br />
|
||||
<a href="login.php" target="_parent"><?php __("Click here to continue"); ?></a>
|
||||
<a href="main.php" target="_parent"><?php __("Click here to continue"); ?></a>
|
||||
<?php $mem->show_help("del_domain"); ?>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
<?php include_once("foot.php"); ?>
|
||||
|
|
|
@ -28,6 +28,12 @@
|
|||
----------------------------------------------------------------------
|
||||
*/
|
||||
require_once("../class/config.php");
|
||||
include_once("head.php");
|
||||
|
||||
$fields = array (
|
||||
"domain" => array ("request", "string", ""),
|
||||
);
|
||||
getFields($fields);
|
||||
|
||||
$dom->lock();
|
||||
if (!$r=$dom->get_domain_all($domain)) {
|
||||
|
@ -35,7 +41,6 @@ if (!$r=$dom->get_domain_all($domain)) {
|
|||
}
|
||||
$dom->unlock();
|
||||
|
||||
include("head.php");
|
||||
?>
|
||||
<script type="text/javascript">
|
||||
function dnson() {
|
||||
|
@ -53,9 +58,7 @@ function dnsoff() {
|
|||
document.forms["dns"].mail.disabled=false;
|
||||
}
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<h3><?php printf(_("Editing domain %s"),$domain); ?> : </h3>
|
||||
<h3><?php printf(_("Editing domain %s"),$domain); ?></h3>
|
||||
<?php
|
||||
if ($error) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
|
@ -73,26 +76,23 @@ for($i=0;$i<$r["nsub"];$i++) {
|
|||
$col=3-$col;
|
||||
?>
|
||||
<tr class="lst<?php echo $col; ?>">
|
||||
<td align="center">
|
||||
<a href="dom_subedit.php?domain=<?php echo urlencode($r["name"]) ?>&sub=<?php echo urlencode($r["sub"][$i]["name"]) ?>"><?php __("Edit"); ?></a>
|
||||
|
||||
<td class="center">
|
||||
<a href="dom_subedit.php?domain=<?php echo urlencode($r["name"]) ?>&sub=<?php echo urlencode($r["sub"][$i]["name"]) ?>"><img src="images/edit.png" alt="<?php __("Edit"); ?>" /></a> <a href="dom_subdel.php?domain=<?php echo urlencode($r["name"]) ?>&sub=<?php echo urlencode($r["sub"][$i]["name"]) ?>"><img src="images/delete.png" alt="<?php __("Delete"); ?>" /></a>
|
||||
</td>
|
||||
<td align="center"><a href="dom_subdel.php?domain=<?php echo urlencode($r["name"]) ?>&sub=<?php echo urlencode($r["sub"][$i]["name"]) ?>"><?php __("Delete"); ?></a></td>
|
||||
<td><a href="http://<?php ecif($r["sub"][$i]["name"],$r["sub"][$i]["name"]."."); echo $r["name"] ?>" target="_blank"><?php ecif($r["sub"][$i]["name"],$r["sub"][$i]["name"]."."); echo $r["name"] ?></a></td>
|
||||
<td><?php echo $r["sub"][$i]['type'] === '0' ? '<a href="bro_main.php?R='.urlencode($r["sub"][$i]["dest"]).'">'.htmlspecialchars($r["sub"][$i]["dest"]).'</a>' : htmlspecialchars($r["sub"][$i]["dest"]); ?> </td>
|
||||
</tr>
|
||||
<?php } ?>
|
||||
</table>
|
||||
<br />
|
||||
<form action="dom_subdoedit.php?" method="post" name="main">
|
||||
<form action="dom_subdoedit.php?" method="post" name="main" id="main">
|
||||
<table border="0">
|
||||
<tr>
|
||||
<td>
|
||||
<td colspan="2">
|
||||
<input type="hidden" name="domain" value="<?php echo $r["name"]; ?>" />
|
||||
<input type="hidden" name="action" value="add" />
|
||||
<?php __("Create a subdomain:"); ?>
|
||||
<input type="text" class="int" name="sub" style="text-align:right" value="" size="22" id="sub" /><code>.<?php echo $domain; ?></code></td>
|
||||
<td><input type="submit" class="inb" name="add" value="<?php __("Add a subdomain"); ?>" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input type="radio" id="local" class="inc" name="type" value="<?php echo $dom->type_local; ?>" checked="checked" onclick="document.main.sub_local.focus();" />
|
||||
|
@ -122,6 +122,9 @@ for($i=0;$i<$r["nsub"];$i++) {
|
|||
<label for="webmail"><?php __("Webmail access"); ?></label></td>
|
||||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><input type="submit" class="inb" name="add" value="<?php __("Add a subdomain"); ?>" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
<?php $mem->show_help("edit_domain"); ?>
|
||||
|
@ -146,9 +149,7 @@ if (!$r[noerase]) {
|
|||
<tr>
|
||||
<td width="65%" valign="top">
|
||||
<p>
|
||||
<?php printf(_("help_dns_mx %s %s"),$L_MX,$L_HOSTING);
|
||||
if (!$r["mx"] && !$r["dns"]) $r["mx"]=$L_MX;
|
||||
?>
|
||||
<?php printf(_("help_dns_mx %s %s"),$L_MX,$L_HOSTING); ?>
|
||||
</p>
|
||||
<label for="mx"><?php __("MX Field"); ?> : </label><input type="text" class="int" name="mx" id="mx" value="<?php echo $r["mx"] ?>" <?php if (!$r["dns"]) echo "disabled=\"disabled\""; ?> />
|
||||
</td>
|
||||
|
@ -173,6 +174,8 @@ if (!$r[noerase]) {
|
|||
</p>
|
||||
</form>
|
||||
<hr />
|
||||
<?php } // noerase ?>
|
||||
</body>
|
||||
</html>
|
||||
<?php } // noerase ?>
|
||||
<script type="text/javascript">
|
||||
document.forms['main'].sub.focus();
|
||||
</script>
|
||||
<?php include_once("foot.php"); ?>
|
||||
|
|
|
@ -28,6 +28,14 @@
|
|||
----------------------------------------------------------------------
|
||||
*/
|
||||
require_once("../class/config.php");
|
||||
include_once("head.php");
|
||||
|
||||
$fields = array (
|
||||
"domain" => array ("request", "string", ""),
|
||||
"dns" => array ("request", "integer", 1),
|
||||
"mx" => array ("request", "string", ""),
|
||||
);
|
||||
getFields($fields);
|
||||
|
||||
$dom->lock();
|
||||
if ($dns!="1") {
|
||||
|
@ -47,21 +55,15 @@ if (!$dom->edit_domain($domain,$dns,$mx)) {
|
|||
}
|
||||
$dom->unlock();
|
||||
|
||||
include("head.php");
|
||||
?>
|
||||
</head>
|
||||
<body>
|
||||
<h3><?php printf(_("Editing domain %s"),$domain); ?></h3>
|
||||
<p>
|
||||
<?php
|
||||
printf(_("The domain %s has been changed."),$domain);
|
||||
# take the current time
|
||||
$t = time();
|
||||
# that modulo (%) there computes the time of the next cron job
|
||||
# XXX: we assume the cron job is at every 5 minutes
|
||||
// XXX: we assume the cron job is at every 5 minutes
|
||||
print strtr(_("The modifications will take effect at %time. Server time is %now."), array('%now' => date('H:i:s', $t), '%time' => date('H:i:s', ($t-($t%300)+300))));
|
||||
?><br />
|
||||
<a href="login.php" target="_top"><?php __("Click here to continue"); ?></a>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
<?php include_once("foot.php"); ?>
|
|
@ -28,6 +28,13 @@
|
|||
----------------------------------------------------------------------
|
||||
*/
|
||||
require_once("../class/config.php");
|
||||
include_once("head.php");
|
||||
|
||||
$fields = array (
|
||||
"domain" => array ("request", "string", ""),
|
||||
"sub" => array ("request", "string", ""),
|
||||
);
|
||||
getFields($fields);
|
||||
|
||||
$dom->lock();
|
||||
if (!$r=$dom->get_sub_domain_all($domain,$sub)) {
|
||||
|
@ -35,14 +42,12 @@ if (!$r=$dom->get_sub_domain_all($domain,$sub)) {
|
|||
}
|
||||
$dom->unlock();
|
||||
|
||||
include("head.php");
|
||||
?>
|
||||
</head>
|
||||
<body>
|
||||
<h3><?php printf(_("Deleting subdomain %s"),"http://".ife($sub,$sub.".").$domain); ?> : </h3>
|
||||
<?php
|
||||
if ($error) {
|
||||
echo "<p class=\"error\">$error</p></body></html>";
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
include_once("foot.php");
|
||||
exit();
|
||||
}
|
||||
?>
|
||||
|
@ -61,5 +66,4 @@ include("head.php");
|
|||
<input type="button" class="inb" name="cancel" value="<?php __("No"); ?>" onclick="history.back();" />
|
||||
</blockquote>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
<?php include_once("foot.php"); ?>
|
||||
|
|
|
@ -28,6 +28,13 @@
|
|||
----------------------------------------------------------------------
|
||||
*/
|
||||
require_once("../class/config.php");
|
||||
include_once("head.php");
|
||||
|
||||
$fields = array (
|
||||
"domain" => array ("request", "string", ""),
|
||||
"sub" => array ("request", "string", ""),
|
||||
);
|
||||
getFields($fields);
|
||||
|
||||
$dom->lock();
|
||||
|
||||
|
@ -37,24 +44,19 @@ if (!$dom->del_sub_domain($domain,$sub)) {
|
|||
|
||||
$dom->unlock();
|
||||
|
||||
include("head.php");
|
||||
?>
|
||||
</head>
|
||||
<body>
|
||||
<h3><?=sprintf(_("Deleting the subdomain %s:"),"http://".(($sub)?$sub.".":$sub).$domain); ?></h3>
|
||||
<?php
|
||||
if ($error) {
|
||||
echo "<p class=\"error\">$error</p></body></html>";
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
include_once("foot.php");
|
||||
exit();
|
||||
} else {
|
||||
# take the current time
|
||||
$t = time();
|
||||
# that modulo (%) there computes the time of the next cron job
|
||||
# XXX: we assume the cron job is at every 5 minutes
|
||||
// XXX: we assume the cron job is at every 5 minutes
|
||||
$error=strtr(_("The modifications will take effect at %time. Server time is %now."), array('%now' => date('H:i:s', $t), '%time' => date('H:i:s', ($t-($t%300)+300))));
|
||||
echo "<p class=\"error\">".$error."</p>";
|
||||
}
|
||||
?>
|
||||
<p><a href="dom_edit.php?domain=<?php echo urlencode($domain) ?>"><?php __("Click here to continue"); ?></a></p>
|
||||
</body>
|
||||
</html>
|
||||
<?php include_once("foot.php"); ?>
|
||||
|
|
|
@ -50,10 +50,8 @@ $dom->unlock();
|
|||
if (!$r) {
|
||||
$error=$err->errstr();
|
||||
} else {
|
||||
# take the current time
|
||||
$t = time();
|
||||
# that modulo (%) there computes the time of the next cron job
|
||||
# XXX: we assume the cron job is at every 5 minutes
|
||||
// XXX: we assume the cron job is at every 5 minutes
|
||||
$error=strtr(_("The modifications will take effect at %time. Server time is %now."), array('%now' => date('H:i:s', $t), '%time' => date('H:i:s', ($t-($t%300)+300))));
|
||||
}
|
||||
include("dom_edit.php");
|
||||
|
|
|
@ -28,6 +28,13 @@
|
|||
----------------------------------------------------------------------
|
||||
*/
|
||||
require_once("../class/config.php");
|
||||
include_once("head.php");
|
||||
|
||||
$fields = array (
|
||||
"domain" => array ("request", "string", ""),
|
||||
"sub" => array ("request", "string", ""),
|
||||
);
|
||||
getFields($fields);
|
||||
|
||||
$dom->lock();
|
||||
if (!$r=$dom->get_sub_domain_all($domain,$sub)) {
|
||||
|
@ -35,14 +42,12 @@ if (!$r=$dom->get_sub_domain_all($domain,$sub)) {
|
|||
}
|
||||
$dom->unlock();
|
||||
|
||||
include("head.php");
|
||||
?>
|
||||
</head>
|
||||
<body>
|
||||
<h3><?php __("Edition du sous-domaine"); ?> http://<?php ecif($sub,$sub."."); echo $domain; ?> : </h3>
|
||||
<h3><?php __("Editing subdomain"); ?> http://<?php ecif($sub,$sub."."); echo $domain; ?> : </h3>
|
||||
<?php
|
||||
if ($error) {
|
||||
echo "<p class=\"erroe\">$error</p></body></html>";
|
||||
echo "<p class=\"erroe\">$error</p>";
|
||||
include_once("foot.php");
|
||||
exit();
|
||||
}
|
||||
?>
|
||||
|
@ -50,7 +55,7 @@ include("head.php");
|
|||
<!-- *****************************************
|
||||
gestion du sous-domaine
|
||||
-->
|
||||
<h3><?php __("Sous-domaine"); ?> http://<?php ecif($sub,$sub."."); echo $domain; ?></h3>
|
||||
<h3><?php __("Sub-domain"); ?> http://<?php ecif($sub,$sub."."); echo $domain; ?></h3>
|
||||
<form action="dom_subdoedit.php" method="post" id="main" name="main">
|
||||
<table border="0">
|
||||
<tr>
|
||||
|
@ -84,10 +89,9 @@ include("head.php");
|
|||
<td> </td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><input type="submit" class="inb" name="submit" value="Valider les changements" /></td>
|
||||
<td><input type="button" class="inb" name="back" value="Annuler" onclick="history.back();" /></td>
|
||||
<td><input type="submit" class="inb" name="submit" value="<?php __("Validate this change"); ?>" /></td>
|
||||
<td><input type="button" class="inb" name="back" value="<?php __("Cancel"); ?>" onclick="history.back();" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
<?php include_once("foot.php"); ?>
|
||||
|
|
|
@ -23,8 +23,8 @@
|
|||
|
||||
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||
----------------------------------------------------------------------
|
||||
Original Author of file: Benjamin Sonntag
|
||||
Purpose of file: Return the list of hosted domains to a slave dns server
|
||||
Original Author of file:
|
||||
Purpose of file:
|
||||
----------------------------------------------------------------------
|
||||
*/
|
||||
require_once("../class/config_nochk.php");
|
||||
|
|
|
@ -0,0 +1,7 @@
|
|||
</div> <!-- div content -->
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div> <!-- div global -->
|
||||
</body>
|
||||
</html>
|
|
@ -28,28 +28,26 @@
|
|||
----------------------------------------------------------------------
|
||||
*/
|
||||
require_once("../class/config.php");
|
||||
include_once("head.php");
|
||||
|
||||
if (!$quota->cancreate("ftp")) {
|
||||
$error=_("You cannot add any new ftp account, your quota is over.");
|
||||
$fatal=1;
|
||||
}
|
||||
include("head.php");
|
||||
|
||||
?>
|
||||
</head>
|
||||
<body>
|
||||
<h3><?php __("Create a new ftp account"); ?></h3>
|
||||
<?php
|
||||
if ($error) {
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
if ($fatal) {
|
||||
echo "</body></html>";
|
||||
exit();
|
||||
include_once("foot.php");
|
||||
exit();
|
||||
}
|
||||
}
|
||||
?>
|
||||
<form method="post" action="ftp_doadd.php" name="main">
|
||||
<form method="post" action="ftp_doadd.php" name="main" id="main">
|
||||
<table><thead><?php __("Create a new ftp account"); ?></thead>
|
||||
<tbody>
|
||||
<tr><th><input type="hidden" name="id" value="<?php echo $id ?>" />
|
||||
<label for="login"><?php __("Username"); ?></label></th><td>
|
||||
<select class="inl" name="prefixe"><?php $ftp->select_prefix_list($prefixe); ?></select> <b>_</b> <input type="text" class="int" name="login" id="login" value="<?php echo $login; ?>" size="20" maxlength="64" />
|
||||
|
@ -64,8 +62,10 @@ include("head.php");
|
|||
</script>
|
||||
</td></tr>
|
||||
<tr><td colspan="2"><input type="submit" class="inb" name="submit" value="<?php __("Create this new FTP account."); ?>" /></td></tr>
|
||||
</tbody></table>
|
||||
</table>
|
||||
</form>
|
||||
<?php $mem->show_help("ftp_add"); ?>
|
||||
</body>
|
||||
</html>
|
||||
<script type="text/javascript">
|
||||
document.forms['main'].login.focus();
|
||||
</script>
|
||||
<?php include_once("foot.php"); ?>
|
||||
|
|
|
@ -50,15 +50,13 @@ if (!$id) {
|
|||
}
|
||||
}
|
||||
|
||||
include("head.php");
|
||||
include_once("head.php");
|
||||
|
||||
?>
|
||||
</head>
|
||||
<body>
|
||||
<div align="center"><h3><?php __("Editing an FTP account"); ?></h3></div>
|
||||
<?php
|
||||
if ($error) {
|
||||
echo "<p class=\"error\">$error</p></body></html>";
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
}
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
<?php include_once("foot.php"); ?>
|
||||
|
|
|
@ -28,6 +28,12 @@
|
|||
----------------------------------------------------------------------
|
||||
*/
|
||||
require_once("../class/config.php");
|
||||
include_once("head.php");
|
||||
|
||||
$fields = array (
|
||||
"id" => array ("request", "integer", ""),
|
||||
);
|
||||
getFields($fields);
|
||||
|
||||
if (!$id) {
|
||||
$error=_("No account selected!");
|
||||
|
@ -38,25 +44,23 @@ if (!$id) {
|
|||
}
|
||||
}
|
||||
|
||||
include("head.php");
|
||||
?>
|
||||
</head>
|
||||
<body>
|
||||
<h3><?php __("Editing an FTP account"); ?></h3>
|
||||
<?php
|
||||
if ($error) {
|
||||
echo "<p class=\"error\">$error</p></body></html>";
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
include_once("foot.php");
|
||||
exit();
|
||||
}
|
||||
?>
|
||||
<form method="post" action="ftp_doedit.php" name="main">
|
||||
<form method="post" action="ftp_doedit.php" name="main" id="main">
|
||||
<table border="1" cellspacing="0" cellpadding="4">
|
||||
<tr><th><input type="hidden" name="id" value="<?php echo $id ?>" />
|
||||
<label for="login"><?php __("Username"); ?></label></th><td>
|
||||
<select class="inl" name="prefixe"><?php $ftp->select_prefix_list($r["prefixe"]); ?></select> <b>_</b> <input type="text" class="int" name="login" id="login" value="<?php echo $r["login"]; ?>" size="20" maxlength="64" />
|
||||
</td></tr>
|
||||
<tr><th><label for="pass"><?php __("Password"); ?></label></th><td><input type="password" class="int" name="pass" id="pass" size="20" maxlength="64" value=""/></td></tr>
|
||||
<tr><th><label for="passconf"><?php __("Confirm password"); ?></label></th><td><input type="password" class="int" name="passconf" id="passconf" size="20" maxlength="64" value=""/></td></tr>
|
||||
<tr><th><label for="pass"><?php __("Password"); ?></label></th><td><input type="password" class="int" name="pass" id="pass" size="20" maxlength="64" value="********"/></td></tr>
|
||||
<tr><th><label for="passconf"><?php __("Confirm password"); ?></label></th><td><input type="password" class="int" name="passconf" id="passconf" size="20" maxlength="64" value="********"/></td></tr>
|
||||
<tr><th><label for="rep"><?php __("Folder"); ?></label></th><td><input type="text" class="int" name="rep" id="rep" value="<?php echo $r["dir"]; ?>" size="20" maxlength="64" />
|
||||
|
||||
<script type="text/javascript">
|
||||
|
@ -69,5 +73,7 @@ include("head.php");
|
|||
<tr><td colspan="2"><input type="submit" class="inb" name="submit" value="<?php __("Change this FTP account"); ?>" /></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
<script type="text/javascript">
|
||||
document.forms['main'].login.focus();
|
||||
</script>
|
||||
<?php include_once("foot.php"); ?>
|
||||
|
|
|
@ -28,6 +28,12 @@
|
|||
----------------------------------------------------------------------
|
||||
*/
|
||||
require_once("../class/config.php");
|
||||
include_once("head.php");
|
||||
|
||||
$fields = array (
|
||||
"domain" => array ("request", "string", ""),
|
||||
);
|
||||
getFields($fields);
|
||||
|
||||
$noftp=false;
|
||||
if (!$r=$ftp->get_list($domain)) {
|
||||
|
@ -35,10 +41,7 @@ if (!$r=$ftp->get_list($domain)) {
|
|||
$error=$err->errstr();
|
||||
}
|
||||
|
||||
include("head.php");
|
||||
?>
|
||||
</head>
|
||||
<body id="ftp-account-list">
|
||||
<h3><?php __("FTP accounts list"); ?></h3>
|
||||
<?php
|
||||
if ($noftp) {
|
||||
|
@ -46,8 +49,8 @@ include("head.php");
|
|||
<p class="error"><?php echo $error ?></p>
|
||||
<a href="ftp_add.php"><?php __("Create a new ftp account") ?></a><br />
|
||||
<?php $mem->show_help("ftp_list_no"); ?>
|
||||
</body></html>
|
||||
<?php
|
||||
include_once("foot.php");
|
||||
exit();
|
||||
}
|
||||
|
||||
|
@ -55,17 +58,9 @@ if ($error) {
|
|||
?>
|
||||
<p class="error"><?php echo $error ?></p>
|
||||
<?php } ?>
|
||||
<?php if ($quota->cancreate("ftp")) { ?>
|
||||
<p class="add">
|
||||
<a href="ftp_add.php"><?php __("Create a new ftp account"); ?></a>
|
||||
</p>
|
||||
<div id="help">
|
||||
<?php }
|
||||
$mem->show_help("ftp_list");
|
||||
?></div>
|
||||
<form method="post" action="ftp_del.php">
|
||||
<div class="delete"><input type="submit" name="submit" class="inb" value="<?php __("Delete checked accounts"); ?>" /></div>
|
||||
|
||||
<table cellspacing="0" cellpadding="4">
|
||||
<tr><th colspan="2"> </th><th><?php __("Username"); ?></th><th><?php __("Folder"); ?></th></tr>
|
||||
<?php
|
||||
reset($r);
|
||||
$col=1;
|
||||
|
@ -73,21 +68,25 @@ while (list($key,$val)=each($r))
|
|||
{
|
||||
$col=3-$col;
|
||||
?>
|
||||
<dl class="ftp-account">
|
||||
<dt><input type="checkbox" class="inc" id="del_<?php echo
|
||||
$val["id"]; ?>" name="del_<?php echo $val["id"]; ?>" value="<?php
|
||||
echo $val["id"]; ?>" /><?php __("Username"); ?>:<strong> <label
|
||||
for="del_<?php echo $val["id"]; ?>"><?php echo $val["login"]
|
||||
?></label></strong></dt>
|
||||
<dd><span><?php __("Folder"); ?>: <code>/<?php echo $val["dir"] ?></code></span</dd>
|
||||
<dd class="edit"><a href="ftp_edit.php?id=<?php echo $val["id"] ?>"><?php __("Edit"); ?></a></dd>
|
||||
<dd><span></span></dd>
|
||||
</dl>
|
||||
|
||||
<tr class="lst<?php echo $col; ?>">
|
||||
<td align="center"><input type="checkbox" class="inc" id="del_<?php echo $val["id"]; ?>" name="del_<?php echo $val["id"]; ?>" value="<?php echo $val["id"]; ?>" /></td>
|
||||
<td class="center"><a href="ftp_edit.php?id=<?php echo $val["id"] ?>"><img src="images/edit.png" alt="<?php __("Edit"); ?>" /></a></td>
|
||||
<td><label for="del_<?php echo $val["id"]; ?>"><?php echo $val["login"] ?></label></td>
|
||||
<td><code>/<?php echo $val["dir"] ?></code></td>
|
||||
</tr>
|
||||
<?php
|
||||
}
|
||||
?>
|
||||
<div class="delete"><input type="submit" name="submit" class="inb" value="<?php __("Delete checked accounts"); ?>" /></div>
|
||||
<tr><td colspan="5"><input type="submit" name="submit" class="inb" value="<?php __("Delete checked accounts"); ?>" /></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<?php if ($quota->cancreate("ftp")) { ?>
|
||||
<p>
|
||||
<a href="ftp_add.php"><?php __("Create a new ftp account"); ?></a>
|
||||
</p>
|
||||
<?php }
|
||||
|
||||
$mem->show_help("ftp_list");
|
||||
?>
|
||||
<?php include_once("foot.php"); ?>
|
||||
|
|
|
@ -32,8 +32,14 @@
|
|||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
|
||||
<head>
|
||||
<title>Bureau</title>
|
||||
<link rel="stylesheet" href="styles/base.css" type="text/css" />
|
||||
<link rel="stylesheet" href="styles/custom.css" type="text/css" />
|
||||
<link rel="stylesheet" href="styles/style.css" type="text/css" />
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
||||
<script type="text/javascript" language="javascript" src="/admin/js/alternc.js">
|
||||
</script>
|
||||
<script type="text/javascript" src="js/alternc.js"></script>
|
||||
<script type="text/javascript" src="js/wz_dragdrop.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="global">
|
||||
<table>
|
||||
<tr>
|
||||
<td id="tdMenu"><div id="menu"><?php include_once("menu.php"); ?></div></td>
|
||||
<td id="tdContent"><div id="content">
|
||||
|
|
After Width: | Height: | Size: 43 B |
After Width: | Height: | Size: 5.9 KiB |
|
@ -28,24 +28,21 @@
|
|||
----------------------------------------------------------------------
|
||||
*/
|
||||
require_once("../class/config.php");
|
||||
include_once("head.php");
|
||||
|
||||
include("head.php");
|
||||
?>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<h3><?php __("Protect a folder"); ?></h3>
|
||||
<p>
|
||||
<?php __("The folder must exists."); ?>
|
||||
</p>
|
||||
<?php
|
||||
if ($error) {
|
||||
echo "<p class=\"error\">$error</p></body></html>";
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
include_once("foot.php");
|
||||
exit;
|
||||
}
|
||||
?>
|
||||
|
||||
<form method="post" action="hta_doadd.php" name="main">
|
||||
<form method="post" action="hta_doadd.php" name="main" id="main">
|
||||
<table border="1" cellspacing="0" cellpadding="4">
|
||||
<tr>
|
||||
<td><label for="dir"><?php __("Folder"); ?></label></td>
|
||||
|
@ -56,10 +53,10 @@ include("head.php");
|
|||
// -->
|
||||
</script></td>
|
||||
</tr>
|
||||
<tr><td class="add" colspan="2"><input type="submit" class="inb" value="<?php __("Protect this folder"); ?>" /></td></tr>
|
||||
<tr><td colspan="2"><input type="submit" class="inb" value="<?php __("Protect this folder"); ?>" /></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<script type="text/javascript">
|
||||
document.forms['main'].dir.focus();
|
||||
</script>
|
||||
<?php include_once("foot.php"); ?>
|
|
@ -28,12 +28,14 @@
|
|||
----------------------------------------------------------------------
|
||||
*/
|
||||
require_once("../class/config.php");
|
||||
include_once("head.php");
|
||||
|
||||
$fields = array (
|
||||
"dir" => array ("request", "string", ""),
|
||||
);
|
||||
getFields($fields);
|
||||
|
||||
include("head.php");
|
||||
?>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<h3><?php printf(_("Adding a username in %s"),$dir); ?></h3>
|
||||
<?php
|
||||
if ($error) {
|
||||
|
@ -41,16 +43,30 @@ include("head.php");
|
|||
}
|
||||
?>
|
||||
|
||||
<form method="post" action="hta_doadduser.php">
|
||||
<form method="post" action="hta_doadduser.php" name="main" id="main">
|
||||
<table border="1" cellspacing="0" cellpadding="4">
|
||||
<tr><td><input type="hidden" name="dir" value="<?php echo $dir ?>" />
|
||||
<?php __("Folder"); ?></td><td><code><?php echo $dir; ?></code></td></tr>
|
||||
<tr><td><label for="user"><?php __("Username"); ?></label></td><td><input type="text" class="int" name="user" id="user" value="" size="20" maxlength="64" /></td></tr>
|
||||
<tr><td><label for="password"><?php __("Password"); ?></label></td><td><input type="password" class="int" name="password" id="password" value="" size="20" maxlength="64" /></td></tr>
|
||||
<tr><td><label for="passwordconf"><?php __("Confirm password"); ?></label></td><td><input type="password" class="int" name="passwordconf" id="passwordconf" value="" size="20" maxlength="64" /></td></tr>
|
||||
<tr><td colspan="2"><input type="submit" class="inb" value="<?php __("Add this user"); ?>" /></td></tr>
|
||||
<tr>
|
||||
<td><input type="hidden" name="dir" value="<?php echo $dir ?>" /><?php __("Folder"); ?></td>
|
||||
<td><code><?php echo $dir; ?></code></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="user"><?php __("Username"); ?></label></td>
|
||||
<td><input type="text" class="int" name="user" id="user" value="" size="20" maxlength="64" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="password"><?php __("Password"); ?></label></td>
|
||||
<td><input type="password" class="int" name="password" id="password" value="" size="20" maxlength="64" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><label for="passwordconf"><?php __("Confirm password"); ?></label></td>
|
||||
<td><input type="password" class="int" name="passwordconf" id="passwordconf" value="" size="20" maxlength="64" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td colspan="2"><input type="submit" class="inb" value="<?php __("Add this user"); ?>" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
</form>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
<script type="text/javascript">
|
||||
document.forms['main'].user.focus();
|
||||
</script>
|
||||
<?php include_once("foot.php"); ?>
|
|
@ -28,6 +28,14 @@
|
|||
----------------------------------------------------------------------
|
||||
*/
|
||||
require_once("../class/config.php");
|
||||
include_once("head.php");
|
||||
|
||||
$fields = array (
|
||||
"user" => array ("request", "string", ""),
|
||||
"dir" => array ("request", "string", ""),
|
||||
"newpass" => array ("request", "string", ""),
|
||||
"newpassconf" => array ("request", "string", ""),
|
||||
);
|
||||
|
||||
if ($newpass != $newpassconf) {
|
||||
$error = _("Passwords do not match");
|
||||
|
@ -38,10 +46,8 @@ if ($newpass != $newpassconf) {
|
|||
if (!$hta->change_pass($user,$newpass,$dir)) {
|
||||
$error=$err->errstr();
|
||||
}
|
||||
include("head.php");
|
||||
|
||||
?>
|
||||
</head>
|
||||
<body>
|
||||
<h3><?php printf(_("Change the user %s in the protected folder %s"),$user,$dir); ?></h3>
|
||||
<?php
|
||||
if ($error) {
|
||||
|
@ -52,6 +58,4 @@ include("head.php");
|
|||
}
|
||||
echo "<p><a href=\"hta_edit.php?dir=$dir\">"._("Click here to continue")."</a></p>";
|
||||
?>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<?php include_once("foot.php"); ?>
|
|
@ -28,6 +28,12 @@
|
|||
----------------------------------------------------------------------
|
||||
*/
|
||||
require_once("../class/config.php");
|
||||
include_once("head.php");
|
||||
|
||||
$fields = array (
|
||||
"dir" => array ("request", "string", ""),
|
||||
);
|
||||
getFields($fields);
|
||||
|
||||
if (!$dir) {
|
||||
$error=_("No folder selected!");
|
||||
|
@ -38,16 +44,14 @@ if (!$dir) {
|
|||
}
|
||||
}
|
||||
|
||||
include("head.php");
|
||||
?>
|
||||
</head>
|
||||
<body>
|
||||
<h3><?php printf(_("List of authorized user in folder %s"),$dir); ?></h3>
|
||||
<?php
|
||||
if (!count($r)) {
|
||||
echo "<p class=\"error\">".sprintf(_("No authorized user in %s"),$dir)."</p>";
|
||||
echo "<a href=\"hta_adduser.php?dir=$dir\">"._("Add a username")."</a><br />";
|
||||
echo "<br /><small><a href=\"bro_main.php?R=$dir\">"._("File browser")."</a><br /></small></body></html>";
|
||||
echo "<br /><small><a href=\"bro_main.php?R=$dir\">"._("File browser")."</a><br /></small>";
|
||||
include_once("foot.php");
|
||||
exit();
|
||||
}
|
||||
reset($r);
|
||||
|
@ -55,8 +59,10 @@ reset($r);
|
|||
?>
|
||||
<form method="post" action="hta_dodeluser.php">
|
||||
<table cellspacing="0" cellpadding="4">
|
||||
<tr><th colspan="2" ><input type="hidden" name="dir" value="<?php echo $dir?>">
|
||||
</th><th><?php __("Username"); ?></th></tr>
|
||||
<tr>
|
||||
<th colspan="2" ><input type="hidden" name="dir" value="<?php echo $dir?>"> </th>
|
||||
<th><?php __("Username"); ?></th>
|
||||
</tr>
|
||||
<?php
|
||||
$col=1;
|
||||
|
||||
|
@ -65,7 +71,7 @@ for($i=0;$i<count($r);$i++){
|
|||
?>
|
||||
<tr class="lst<?php echo $col; ?>">
|
||||
<td align="center"><input type="checkbox" class="inc" name="d[]"" value="<?php echo $r[$i]?>" /></td>
|
||||
<td><a href="hta_edituser.php?user=<?php echo $r[$i]?>&dir=<?php echo $dir?>"><?php __("Edit"); ?></a></td>
|
||||
<td><a href="hta_edituser.php?user=<?php echo $r[$i]?>&dir=<?php echo $dir?>"><img src="images/edit.png" alt="<?php __("Edit"); ?>" /></a></td>
|
||||
<td><?php echo $r[$i]; ?></td>
|
||||
</tr>
|
||||
<?php
|
||||
|
@ -81,5 +87,4 @@ for($i=0;$i<count($r);$i++){
|
|||
<p>
|
||||
<small><a href="bro_main.php?R=<?php echo $dir ?>"><?php __("File browser"); ?></a></small>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
<?php include_once("foot.php"); ?>
|
|
@ -28,12 +28,15 @@
|
|||
----------------------------------------------------------------------
|
||||
*/
|
||||
require_once("../class/config.php");
|
||||
include_once ("head.php");
|
||||
|
||||
$fields = array (
|
||||
"user" => array ("request", "string", ""),
|
||||
"dir" => array ("request", "string", ""),
|
||||
);
|
||||
getFields($fields);
|
||||
|
||||
include("head.php");
|
||||
?>
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<h3><?php printf(_("Editing user %s in the protected folder %s"),$user,$dir); ?></h3>
|
||||
<?php
|
||||
if ($error) {
|
||||
|
@ -51,6 +54,4 @@ include("head.php");
|
|||
<tr><td colspan="2"><input type="submit" class="inb" value="<?php __("Change the password"); ?>" /></td></tr>
|
||||
</table>
|
||||
</form>
|
||||
</body>
|
||||
</html>
|
||||
|
||||
<?php include_once("foot.php"); ?>
|
|
@ -28,6 +28,7 @@
|
|||
----------------------------------------------------------------------
|
||||
*/
|
||||
require_once("../class/config.php");
|
||||
include_once("head.php");
|
||||
|
||||
if (!$r=$hta->ListDir()) {
|
||||
$error=$err->errstr();
|
||||
|
@ -36,20 +37,18 @@ else {
|
|||
reset($r);
|
||||
}
|
||||
|
||||
include("head.php");
|
||||
?>
|
||||
</head>
|
||||
<body>
|
||||
<h3><?php __("Protected folders list"); ?></h3>
|
||||
<?php
|
||||
if ($error) {
|
||||
echo "<p class=\"error\">$error</p></body></html>";
|
||||
echo "<p class=\"error\">$error</p>";
|
||||
}
|
||||
|
||||
if (!is_array($r)) {
|
||||
echo "<p><a href=\"hta_add.php\">"._("Protect a folder")."</a><br />";
|
||||
$mem->show_help("hta_list");
|
||||
echo "</p></body></html>";
|
||||
echo "</p>";
|
||||
include_once("foot.php");
|
||||
exit();
|
||||
}
|
||||
|
||||
|
@ -73,7 +72,7 @@ for($i=0;$i<count($r);$i++){
|
|||
?>
|
||||
<tr class="lst<?php echo $col; ?>">
|
||||
<td align="center"><input type="checkbox" class="inc" name="del_<?php echo $r[$i] ?>" value="<?php echo $r[$i] ?>" /></td>
|
||||
<td><a href="hta_edit.php?dir=<?php echo $r[$i]?>"><?php __("Edit"); ?></a></td>
|
||||
<td><a href="hta_edit.php?dir=<?php echo $r[$i]?>"><img src="images/edit.png" alt="<?php __("Edit"); ?>" /></a></td>
|
||||
<td><code><?php echo "$r[$i]"?></code></td>
|
||||
</tr>
|
||||
<?php
|
||||
|
@ -88,5 +87,4 @@ for($i=0;$i<count($r);$i++){
|
|||
<p>
|
||||
<?php $mem->show_help("hta_list"); ?>
|
||||
</p>
|
||||
</body>
|
||||
</html>
|
||||
<?php include_once("foot.php"); ?>
|
After Width: | Height: | Size: 734 B |
After Width: | Height: | Size: 54 B |
After Width: | Height: | Size: 49 B |
After Width: | Height: | Size: 646 B |
After Width: | Height: | Size: 825 B |
After Width: | Height: | Size: 831 B |
After Width: | Height: | Size: 741 B |
After Width: | Height: | Size: 776 B |
After Width: | Height: | Size: 739 B |
After Width: | Height: | Size: 753 B |
After Width: | Height: | Size: 753 B |
After Width: | Height: | Size: 801 B |
After Width: | Height: | Size: 715 B |
After Width: | Height: | Size: 852 B |
After Width: | Height: | Size: 743 B |
After Width: | Height: | Size: 98 B |
After Width: | Height: | Size: 564 B |
After Width: | Height: | Size: 390 B |
After Width: | Height: | Size: 703 B |
After Width: | Height: | Size: 54 B |
After Width: | Height: | Size: 49 B |
After Width: | Height: | Size: 753 B |
After Width: | Height: | Size: 892 B |
After Width: | Height: | Size: 925 B |
After Width: | Height: | Size: 946 B |
After Width: | Height: | Size: 882 B |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 1.1 KiB |
After Width: | Height: | Size: 837 B |
After Width: | Height: | Size: 997 B |
After Width: | Height: | Size: 713 B |
After Width: | Height: | Size: 1001 B |
After Width: | Height: | Size: 902 B |
After Width: | Height: | Size: 98 B |
After Width: | Height: | Size: 683 B |
After Width: | Height: | Size: 483 B |
After Width: | Height: | Size: 693 B |
After Width: | Height: | Size: 185 B |
After Width: | Height: | Size: 728 B |
After Width: | Height: | Size: 624 B |
After Width: | Height: | Size: 612 B |
After Width: | Height: | Size: 185 B |
After Width: | Height: | Size: 556 B |
After Width: | Height: | Size: 499 B |