Merging blue desktop to trunk.

This commit is contained in:
Nahuel Angelinetti 2009-09-08 05:29:38 +00:00
parent c13e438840
commit 0f03969b8a
189 changed files with 11060 additions and 3025 deletions

65
.gitattributes vendored
View File

@ -1,4 +1,5 @@
* text=auto !eol * text=auto !eol
/.svnignore -text
/COPYING -text /COPYING -text
/README.en -text /README.en -text
/README.fr -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/frameset.html -text
bureau/admin/aide/inline/plus.gif -text bureau/admin/aide/inline/plus.gif -text
bureau/admin/aide/inline/tiret.gif -text bureau/admin/aide/inline/tiret.gif -text
bureau/admin/alternc.jpg -text
bureau/admin/alternc.png -text bureau/admin/alternc.png -text
bureau/admin/alternc3.png -text
bureau/admin/bro_editor.php -text bureau/admin/bro_editor.php -text
bureau/admin/bro_main.php -text bureau/admin/bro_main.php -text
bureau/admin/bro_pref.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_subdoedit.php -text
bureau/admin/dom_subedit.php -text bureau/admin/dom_subedit.php -text
bureau/admin/domlist.php -text bureau/admin/domlist.php -text
bureau/admin/foot.php -text
bureau/admin/ftp_add.php -text bureau/admin/ftp_add.php -text
bureau/admin/ftp_del.php -text bureau/admin/ftp_del.php -text
bureau/admin/ftp_doadd.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_edit.php -text
bureau/admin/ftp_list.php -text bureau/admin/ftp_list.php -text
bureau/admin/head.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_add.php -text
bureau/admin/hta_adduser.php -text bureau/admin/hta_adduser.php -text
bureau/admin/hta_del.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/winresize.gif -text
bureau/admin/icon/xls.png -text bureau/admin/icon/xls.png -text
bureau/admin/icon/zip.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/index.php -text
bureau/admin/js/alternc.js -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/js/wz_dragdrop.js -text
bureau/admin/login.php -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_add.php -text
bureau/admin/mail_del.php -text bureau/admin/mail_del.php -text
bureau/admin/mail_doadd.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_sta2.php -text
bureau/admin/menu_web.php -text bureau/admin/menu_web.php -text
bureau/admin/mxlist.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.php -text
bureau/admin/quota_show_all.php -text bureau/admin/quota_show_all.php -text
bureau/admin/quotas_users.php -text
bureau/admin/sql_add.php -text bureau/admin/sql_add.php -text
bureau/admin/sql_addmain.php -text bureau/admin/sql_addmain.php -text
bureau/admin/sql_admin.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/sta2_list.php -text
bureau/admin/stats_members.php -text bureau/admin/stats_members.php -text
bureau/admin/styles/base.css -text bureau/admin/styles/base.css -text
bureau/admin/styles/style.css -text
bureau/admin/template.php -text bureau/admin/template.php -text
bureau/admin/web_list.php -text bureau/admin/web_list.php -text
bureau/admin/webmail/.htaccess -text
bureau/admin/webmail/index.php -text bureau/admin/webmail/index.php -text
bureau/class/config.php -text bureau/class/config.php -text
bureau/class/config_nochk.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/db_mysql.php -text
bureau/class/export_account.php -text bureau/class/export_account.php -text
bureau/class/functions.php -text bureau/class/functions.php -text
bureau/class/functions2.php -text
bureau/class/lang_env.php -text bureau/class/lang_env.php -text
bureau/class/local.php -text bureau/class/local.php -text
bureau/class/m_admin.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/manual.pot -text
bureau/locales/messages.pot -text bureau/locales/messages.pot -text
bureau/locales/pt_BR/LC_MESSAGES/messages.po -text bureau/locales/pt_BR/LC_MESSAGES/messages.po -text
debian/.svnignore -text
debian/NEWS -text debian/NEWS -text
debian/README.Debian -text debian/README.Debian -text
debian/alternc-slave.config -text debian/alternc-slave.config -text
@ -337,6 +398,7 @@ install/upgrades/README -text
man/alternc-admintools.8 -text man/alternc-admintools.8 -text
man/alternc-admintools.fr.8 -text man/alternc-admintools.fr.8 -text
man/alternc.install.8 -text man/alternc.install.8 -text
man/alternc.install.fr.8 -text
man/get_account_by_domain.8 -text man/get_account_by_domain.8 -text
man/get_domains_by_account.8 -text man/get_domains_by_account.8 -text
man/top_ftp_users.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.8 -text
man/top_mysql_users.fr.8 -text man/top_mysql_users.fr.8 -text
po/alternc-admintools.pot -text po/alternc-admintools.pot -text
po/fr/LC_MESSAGES/.svnignore -text
po/fr/LC_MESSAGES/alternc-admintools.po -text po/fr/LC_MESSAGES/alternc-admintools.po -text
/quota_delete -text /quota_delete -text
/quota_init -text /quota_init -text
src/Makefile -text src/Makefile -text
src/alternc-check -text
src/alternc-passwd -text
src/alternc_reload -text src/alternc_reload -text
src/basedir_prot.sh -text src/basedir_prot.sh -text
src/du.pl -text src/du.pl -text

12
.gitignore vendored Normal file
View File

@ -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

1
.svnignore Normal file
View File

@ -0,0 +1 @@
build-stamp

View File

@ -30,19 +30,19 @@
---------------------------------------------------------------------- ----------------------------------------------------------------------
*/ */
require_once("../class/config.php"); require_once("../class/config.php");
include_once("head.php");
if (!$admin->enabled) { if (!$admin->enabled) {
__("This page is restricted to authorized staff"); __("This page is restricted to authorized staff");
exit(); exit();
} }
if (!isset($canpass)) $canpass=1; $fields = array (
"canpass" => array ("request", "integer", 1),
include("head.php"); );
getFields($fields);
?> ?>
</head>
<body>
<h3><?php __("New member"); ?></h3> <h3><?php __("New member"); ?></h3>
<?php <?php
if ($error) { if ($error) {
@ -65,7 +65,7 @@ if ($error) {
<tr> <tr>
<th><label for="canpass"><?php __("Can he change its password"); ?></label></th> <th><label for="canpass"><?php __("Can he change its password"); ?></label></th>
<td><select class="inl" name="canpass" id="canpass"> <td><select class="inl" name="canpass" id="canpass">
<?php <?php
for($i=0;$i<count($bro->l_icons);$i++) { for($i=0;$i<count($bro->l_icons);$i++) {
echo "<option"; echo "<option";
if ($canpass==$i) echo " selected=\"selected\""; if ($canpass==$i) echo " selected=\"selected\"";
@ -75,11 +75,11 @@ if ($error) {
</td> </td>
</tr> </tr>
<tr> <tr>
<th><label for="notes"><?php __("Notes"); ?></label></th> <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> <td><textarea name="notes" id="notes" class="int" cols="32" rows="5"><?php echo $notes; ?></textarea></td>
</tr> </tr>
<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" />&nbsp;/&nbsp;<input type="text" name="prenom" id="prenom" value="<?php echo $prenom; ?>" class="int" size="20" maxlength="128" /></td> <td><input class="int" type="text" id="nom" name="nom" value="<?php echo $nom; ?>" size="20" maxlength="128" />&nbsp;/&nbsp;<input type="text" name="prenom" id="prenom" value="<?php echo $prenom; ?>" class="int" size="20" maxlength="128" /></td>
</tr> </tr>
<tr> <tr>
@ -99,9 +99,8 @@ if ($error) {
echo ">$type</option>"; echo ">$type</option>";
} }
?></select> ?></select>
</td> </td>
</tr> </tr>
<?php if (variable_get('hosting_tld') || $dom->enum_domains()) { ?> <?php if (variable_get('hosting_tld') || $dom->enum_domains()) { ?>
<tr> <tr>
<th colspan="2"> <th colspan="2">
@ -109,23 +108,22 @@ if ($error) {
<label><?php printf(_("Create the domain <b>username.%s</b>"),""); ?></label> <label><?php printf(_("Create the domain <b>username.%s</b>"),""); ?></label>
<select name="create_dom_list"> <select name="create_dom_list">
<?php if (variable_get('hosting_tld')) { ?> <?php if (variable_get('hosting_tld')) { ?>
<option value="<?php echo variable_get('hosting_tld'); ?>" selected="selected"><?php echo variable_get('hosting_tld'); ?></option> <option value="<?php echo variable_get('hosting_tld'); ?>" selected="selected"><?php echo variable_get('hosting_tld'); ?></option>
<?php } <?php }
/* Enumeration des domaines : */ /* Enumeration des domaines : */
$domain=$dom->enum_domains(); $domain=$dom->enum_domains();
reset($domain); reset($domain);
while (list($key,$val)=each($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 } ?> <?php } ?>
</select> </select>
</th> </th>
</tr> </tr>
<?php } ?> <?php } ?>
<tr> <tr>
<td colspan="2"><input type="submit" class="inb" name="submit" value="<?php __("Create a new member"); ?>" /></td> <td colspan="2"><input type="submit" class="inb" name="submit" value="<?php __("Create a new member"); ?>" /></td>
</tr> </tr>
</table> </table>
</form> </form>
</body> <?php include_once("foot.php"); ?>
</html>

View File

@ -29,26 +29,23 @@
*/ */
require_once("../class/config.php"); require_once("../class/config.php");
include("head.php"); include_once("head.php");
?>
</head>
<body>
<?php
$uid = $_GET['uid']; $uid = $_GET['uid'];
if (!$uid) { if (!$uid) {
__("Missing uid"); __("Missing uid");
echo "</body></html>"; include_once("foot.php");
exit(); exit();
} }
if (!$admin->enabled || !$admin->checkcreator($uid)) { if (!$admin->enabled || !$admin->checkcreator($uid)) {
__("This page is restricted to authorized staff"); __("This page is restricted to authorized staff");
echo "</body></html>"; include_once("foot.php");
exit(); exit();
} }
if (!$r=$admin->get($uid)) { if (!$r=$admin->get($uid)) {
__("User does not exist"); __("User does not exist");
echo "</body></html>"; include_once("foot.php");
exit(); exit();
} }
@ -67,6 +64,7 @@ if (! ($confirmed = ($_GET['submit'] == _("Confirm")) ) ) {
} else { } else {
if (!$_GET['redirect']) { if (!$_GET['redirect']) {
__("Missing redirect url."); __("Missing redirect url.");
include_once("foot.php");
exit(); exit();
} else { } else {
$redirect = $_GET['redirect']; $redirect = $_GET['redirect'];
@ -138,7 +136,7 @@ if ($confirmed) {
} }
$cuid = $old_cuid; $cuid = $old_cuid;
?> include_once("foot.php");
</body>
</html> ?>

View File

@ -36,10 +36,9 @@ if (!$admin->enabled) {
exit(); exit();
} }
include("head.php"); include_once ("head.php");
?> ?>
</head>
<body>
<h3><?php __("Change the default quotas"); ?></h3> <h3><?php __("Change the default quotas"); ?></h3>
<?php <?php
if ($error) { if ($error) {
@ -47,14 +46,17 @@ include("head.php");
} }
?> ?>
<p><form method="post" action="adm_dodefquotas.php"> <form method="post" action="adm_dodefquotas.php">
<input type="hidden" name="action" value="add"> <p>
<input type="text" name="type" class="int"></td> <input type="hidden" name="action" value="add" />
<input type="text" name="type" class="int" />
<input type="submit" class="inb" value="<?php __("Add account type"); ?>" /> <input type="submit" class="inb" value="<?php __("Add account type"); ?>" />
</form></p> </p>
</form>
<p><form method="post" action="adm_dodefquotas.php"> <form method="post" action="adm_dodefquotas.php">
<input type="hidden" name="action" value="delete"> <p>
<input type="hidden" name="action" value="delete" />
<select name="type" id="type" class="inl"> <select name="type" id="type" class="inl">
<?php <?php
$db->query("SELECT distinct(type) FROM defquotas WHERE TYPE != 'default' ORDER by type"); $db->query("SELECT distinct(type) FROM defquotas WHERE TYPE != 'default' ORDER by type");
@ -64,50 +66,45 @@ while($db->next_record()) {
} }
?></select> ?></select>
<input type="submit" class="inb" value="<?php __("Delete account type"); ?>" /> <input type="submit" class="inb" value="<?php __("Delete account type"); ?>" />
</form></p> </p>
</form>
<p> <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"); ?> <?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> </p>
<form method="post" action="adm_dodefquotas.php"> <form method="post" action="adm_dodefquotas.php">
<input type="hidden" name="action" value="modify"> <div>
<input type="hidden" name="action" value="modify" />
<?php <?php
$col=1; $col=1;
$qarray=$quota->qlist();
$qlist=$quota->getdefaults(); $qlist=$quota->getdefaults();
$aqlist = $quota->qlist();
reset($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"> <table border="0" cellpadding="4" cellspacing="0">
<tr><th><?php __("Quotas") ?></th><th><?php __("Default Value"); ?></th></tr> <tr><th><?php __("Quotas") ?></th><th><?php __("Default Value"); ?></th></tr>
<?php <?php
foreach($q as $name => $value) {
foreach($aqlist as $aqtype => $aqname) $key = $type . ":" . $name;
{ $col=3-$col;
$key = $qname . ":" . $aqtype;
$col=3-$col;
?> ?>
<tr class="lst<?php echo $col; ?>"> <tr class="lst<?php echo $col; ?>">
<td><label for="<?php echo $key; ?>"><?php echo $aqname; ?></label></td> <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 $key; ?>" value="<?php echo $q[$aqtype]; ?>" /></td></tr> <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 <?php
}
}
?> ?>
</table> </table>
</div>
<?php <?php
} }
?> ?>
<input type="submit" class="inb" value="<?php __("Edit the default quotas"); ?>" /> <input type="submit" class="inb" value="<?php __("Edit the default quotas"); ?>" />
</div>
</form> </form>
<?php include_once("foot.php"); ?>
</body>
</html>

View File

@ -51,22 +51,20 @@ if (!($u=$admin->add_mem($login, $pass, $nom, $prenom, $nmail, $canpass, $type,
$mem->su($u); $mem->su($u);
/* /*
* 0 = pas d'hébergement dns, en effet, pas besoin vu que les * 1 = hébergement dns, en effet, les
* domaines *.koumbit.net sont bien sur le serveur * domaines *.koumbit.net ne sont pas forcément sur le serveur
* *
* 1 = noerase = empêche à l'utilisateur de modifier le dns ou de * 1 = noerase = empêche à l'utilisateur de modifier le dns ou de
* supprimer le domaine * supprimer le domaine
* *
* 1 = force = ne tient pas compte du whois ou des droits de tld * 1 = force = ne tient pas compte du whois ou des droits de tld
*/ */
if (($create_dom == 1) && !is_null($create_dom_list)) { if (($create_dom == 1) && !is_null($create_dom_list)) {
# make sure we don't have multiple dots there // make sure we don't have multiple dots there
$dom->lock(); $dom->lock();
$dom->add_domain($login.".".preg_replace("/^\.\.*/", "", $create_dom_list),1,1,1); $dom->add_domain($login.".".preg_replace("/^\.\.*/", "", $create_dom_list),1,1,1);
$dom->unlock(); $dom->unlock();
} }
$ftp->add_ftp($login,"",$pass,"/"); $ftp->add_ftp($login,"",$pass,"/");
$mem->unsu(); $mem->unsu();

View File

@ -34,9 +34,15 @@ if (!$admin->enabled) {
exit(); exit();
} }
$fields = array (
"domain" => array ("request", "string", ""),
);
getFields($fields);
if (!$admin->dom_lock($domain)) { if (!$admin->dom_lock($domain)) {
$error=$err->errstr(); $error=$err->errstr();
} }
include("adm_doms.php"); include("adm_doms.php");
exit; exit;

View File

@ -34,10 +34,9 @@ if (!$admin->enabled) {
exit(); exit();
} }
include("head.php"); include_once ("head.php");
?> ?>
</head>
<body>
<h3><?php __("Manage installed domains"); ?></h3> <h3><?php __("Manage installed domains"); ?></h3>
<?php <?php
if ($error) { 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."); ?> <?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>
<p><a href="<?php echo $_SERVER["SCRIPT_NAME"]; ?>"><?php __("Update this page"); ?></a></p>
<form method="post" action="adm_dodom.php"> <form method="post" action="adm_dodom.php">
<table border="0" cellpadding="4" cellspacing="0"> <table border="0" cellpadding="4" cellspacing="0">
<tr><th><?php __("Action"); ?></th><th><?php __("Domain"); ?></th><th><?php __("Member"); ?></th><th>Lock</th></tr> <tr><th><?php __("Action"); ?></th><th><?php __("Domain"); ?></th><th><?php __("Member"); ?></th><th>Lock</th></tr>
@ -63,11 +60,11 @@ for($i=0;$i<count($c);$i++) {
?> ?>
<tr class="lst<?php echo $col; ?>"> <tr class="lst<?php echo $col; ?>">
<td><a href="adm_domlock.php?domain=<?php echo urlencode($c[$i][domaine]); ?>"><?php <td><a href="adm_domlock.php?domain=<?php echo urlencode($c[$i][domaine]); ?>"><?php
if ($c[$i][noerase]) __("Unlock"); else __("Lock"); ?></a></td> 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><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 echo $c[$i]["login"]; ?></td>
<td><?php if ($c[$i][noerase]) { <td><?php if ($c[$i]["noerase"]) {
echo "<img src=\"icon/encrypted.png\" width=\"16\" height=\"16\" alt=\""._("Locked Domain")."\" />"; echo "<img src=\"icon/encrypted.png\" width=\"16\" height=\"16\" alt=\""._("Locked Domain")."\" />";
} ?></td> } ?></td>
</tr> </tr>
@ -76,6 +73,4 @@ for($i=0;$i<count($c);$i++) {
?> ?>
</table> </table>
</form> </form>
<?php include_once("foot.php"); ?>
</body>
</html>

View File

@ -34,6 +34,11 @@ if (!$admin->enabled) {
exit(); exit();
} }
$fields = array (
"uid" => array ("request", "integer", 0),
);
getFields($fields);
if (!$admin->su2normal($uid)) { if (!$admin->su2normal($uid)) {
$error=$err->errstr(); $error=$err->errstr();
} }

View File

@ -34,6 +34,11 @@ if (!$admin->enabled) {
exit(); exit();
} }
$fields = array (
"uid" => array ("request", "integer", 0),
);
getFields($fields);
if (!$admin->normal2su($uid)) { if (!$admin->normal2su($uid)) {
$error=$err->errstr(); $error=$err->errstr();
} }

View File

@ -30,11 +30,18 @@
---------------------------------------------------------------------- ----------------------------------------------------------------------
*/ */
require_once("../class/config.php"); require_once("../class/config.php");
include_once("head.php");
if (!$admin->enabled) { if (!$admin->enabled) {
__("This page is restricted to authorized staff"); __("This page is restricted to authorized staff");
exit(); exit();
} }
$fields = array (
"uid" => array ("request", "integer", 0),
);
getFields($fields);
if (!$admin->checkcreator($uid)) { if (!$admin->checkcreator($uid)) {
__("This page is restricted to authorized staff"); __("This page is restricted to authorized staff");
exit(); exit();
@ -44,17 +51,14 @@ if (!$r=$admin->get($uid)) {
$error=$err->errstr(); $error=$err->errstr();
} }
include("head.php");
?> ?>
</head>
<body>
<h3><?php __("Member Edition"); ?></h3> <h3><?php __("Member Edition"); ?></h3>
<?php <?php
if ($error) { if ($error) {
echo "<p class=\"error\">$error</p>"; 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"> <table border="1" cellspacing="0" cellpadding="4">
<tr> <tr>
<th><input type="hidden" name="uid" value="<?php echo $uid ?>" /> <th><input type="hidden" name="uid" value="<?php echo $uid ?>" />
@ -85,7 +89,7 @@ include("head.php");
<tr> <tr>
<th><label for="canpass"><?php __("Can he change its password"); ?></label></th> <th><label for="canpass"><?php __("Can he change its password"); ?></label></th>
<td><select class="inl" name="canpass" id="canpass"> <td><select class="inl" name="canpass" id="canpass">
<?php <?php
for($i=0;$i<count($bro->l_icons);$i++) { for($i=0;$i<count($bro->l_icons);$i++) {
echo "<option"; echo "<option";
if ($r["canpass"]==$i) echo " selected=\"selected\""; if ($r["canpass"]==$i) echo " selected=\"selected\"";
@ -94,7 +98,7 @@ include("head.php");
?></select> ?></select>
</td> </td>
</tr> </tr>
<tr> <tr>
<th><label for="notes"><?php __("Notes"); ?></label></th> <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> <td><textarea name="notes" id="notes" class="int" cols="32" rows="5"><?php echo $r['notes']; ?></textarea></td>
</tr> </tr>
@ -118,7 +122,7 @@ include("head.php");
echo " selected"; echo " selected";
echo ">$type</option>"; 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>
<tr> <tr>
<th><label for="duration"><?php __("Period"); ?></label></th> <th><label for="duration"><?php __("Period"); ?></label></th>
@ -151,11 +155,11 @@ include("head.php");
<p> <p>
<?php <?php
if ($mem->user[uid]==2000) { // PATCHBEN only admin can change su/nosu :) if ($mem->user[uid]==2000) { // PATCHBEN only admin can change su/nosu :)
if ($r["su"]) { if ($r["su"]) {
?> ?>
<b><?php __("This account is a super-admin account"); ?></b><br /> <b><?php __("This account is a super-admin account"); ?></b><br />
<?php if ($admin->onesu()) { <?php if ($admin->onesu()) {
__("There is only one administrator account, you cannot turn this account back to normal"); __("There is only one administrator account, you cannot turn this account back to normal");
} else { } else {
?> ?>
@ -167,12 +171,14 @@ if ($r["su"]) {
</p> </p>
<p><?php <p><?php
} }
$c=$admin->get($r["creator"]); $c=$admin->get($r["creator"]);
printf(_("Account created by %s"),$c["login"]); printf(_("Account created by %s"),$c["login"]);
?> ?>
</p> </p>
<p><a href="adm_list.php"><?php __("Back to the account list"); ?></a></p> <p><a href="adm_list.php"><?php __("Back to the account list"); ?></a></p>
</body> <script type="text/javascript">
</html> document.forms['main'].pass.focus();
</script>
<?php include_once("foot.php"); ?>

View File

@ -31,20 +31,28 @@
---------------------------------------------------------------------- ----------------------------------------------------------------------
*/ */
require_once("../class/config.php"); require_once("../class/config.php");
include_once("head.php");
if (!$admin->enabled) { if (!$admin->enabled) {
__("This page is restricted to authorized staff"); __("This page is restricted to authorized staff");
exit(); 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> <h3><?php __("Member list"); ?></h3>
<?php <?php
if ($error) { if ($error) {
@ -53,9 +61,9 @@ include("head.php");
?> ?>
<p> <p>
<?php __("Here is the list of hosted members"); ?> <?php __("Here is the list of hosted members"); ?>
&nbsp;
<?php if($_REQUEST['show'] != 'all') { <?php if($_REQUEST['show'] != 'all') {
echo '<br /><a href="adm_list.php?show=all">' . _('List all the accounts') . '</a>'; echo '<br /><a href="adm_list.php?show=all">' . _('List all the accounts') . '</a>';
if ($cuid == 2000) { if ($cuid == 2000) {
$list_creators = $admin->get_creator_list(); $list_creators = $admin->get_creator_list();
$infos_creators = array(); $infos_creators = array();
@ -77,11 +85,11 @@ include("head.php");
<?php <?php
if (!is_array($r)) { if (!is_array($r)) {
echo "<p class=\"error\">"._("No account defined for now")."</p>"; echo "<p class=\"error\">"._("No account defined for now")."</p>";
} else { } else {
?> ?>
<form method="post" action="adm_dodel.php"> <form method="post" action="adm_dodel.php">
<?php <?php
// Depending on the admin's choice, let's show a short list or a long list. // Depending on the admin's choice, let's show a short list or a long list.
@ -108,15 +116,13 @@ while (list($key,$val)=each($r))
$col=3-$col; $col=3-$col;
?> ?>
<tr class="lst<?php echo $col; ?>"> <tr class="lst<?php echo $col; ?>">
<?php <?php
if($admin->checkcreator($val['uid'])) { if($admin->checkcreator($val['uid'])) {
if ($val["su"]) { ?> if ($val["su"]) { ?>
<td>&nbsp;</td> <td>&nbsp;</td>
<?php } else { ?> <?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 } <?php } ?>
?>
<td align="center"><a href="adm_edit.php?uid=<?php echo $val["uid"] ?>"><?php __("Edit"); ?></a></td> <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_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> <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"]) if (!$val["enabled"])
echo "<img src=\"icon/encrypted.png\" width=\"16\" height=\"16\" alt=\""._("Locked Account")."\" />"; echo "<img src=\"icon/encrypted.png\" width=\"16\" height=\"16\" alt=\""._("Locked Account")."\" />";
else { else {
if($admin->checkcreator($val['uid'])) {
?> ?>
<a href="adm_login.php?id=<?php echo $val["uid"];?>" target="_parent"><?php __("Connect as"); ?></a> <a href="adm_login.php?id=<?php echo $val["uid"];?>" target="_parent"><?php __("Connect as"); ?></a>
<?php } ?> <?php } } ?>
</td> </td>
<?php <?php
} else { } else {
echo "<td colspan=\"5\"></td>"; echo "<td colspan=\"5\"></td>";
} }
?> ?>
<td <?php if ($val["su"]) echo "style=\"color: red\""; ?>><?php echo $val["login"] ?></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>&nbsp;</td> <td><a href="mailto:<?php echo $val["mail"]; ?>"><?php echo $val["nom"]." ".$val["prenom"] ?></a>&nbsp;</td>
<td><?php echo $val["parentlogin"] ?></td> <td><?php echo $val["parentlogin"] ?></td>
@ -173,7 +179,7 @@ $val=$r[$z];
<?php if ($val["su"]) { ?> <?php if ($val["su"]) { ?>
<td>&nbsp;</td> <td>&nbsp;</td>
<?php } else { ?> <?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 } ?> <?php } ?>
<td align="center"> <td align="center">
<a href="adm_edit.php?uid=<?php echo $val["uid"] ?>"><?php __("E"); ?></a> <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)); printf("<p>"._("%s accounts")."</p>",count($r));
} }
?> ?>
</body> <?php include_once("foot.php"); ?>
</html>

View File

@ -34,60 +34,44 @@ if (!$admin->enabled) {
exit(); exit();
} }
$id = $_GET['id']; $fields = array (
"id" => array ("request", "integer", 0),
);
getFields($fields);
if (!$admin->checkcreator($id)) { if (!$admin->checkcreator($id)) {
__("This page is restricted to authorized staff"); __("This page is restricted to authorized staff");
exit(); exit();
} }
if (!$r=$admin->get($id)) { if (!$r=$admin->get($id))
{
$error=$err->errstr(); $error=$err->errstr();
} else { }
else
{
if (!$mem->setid($id))
{
$error=$err->errstr();
include("index.php");
exit();
}
if (!$mem->setid($id)) { include_once("main.php");
$error=$err->errstr();
include("index.php");
exit(); 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> <h3><?php __("Member login"); ?></h3>
<?php <?php
if ($error) {
echo "<p class=\"error\">$error</p></body></html>"; if ($error)
{
echo "<p class=\"error\">$error</p>";
include_once("foot.php");
exit(); exit();
} }
?> ?>
</body> <?php include_once("foot.php"); ?>
</html>

View File

@ -34,6 +34,14 @@ if (!$admin->enabled) {
exit(); exit();
} }
$fields = array (
"delaccount" => array ("request", "string", ""),
"newlogin" => array ("request", "string", ""),
"newpass" => array ("request", "string", ""),
);
getFields($fields);
if ($delaccount) { if ($delaccount) {
// Delete an account // Delete an account
if ($mail->del_slave_account($delaccount)) { if ($mail->del_slave_account($delaccount)) {
@ -48,7 +56,7 @@ if ($newlogin) {
} }
} }
include("head.php"); include_once("head.php");
?> ?>
</head> </head>
<body> <body>
@ -76,7 +84,7 @@ for($i=0;$i<count($c);$i++) {
?> ?>
<tr class="lst<?php echo $col; ?>"> <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]["login"]; ?></td>
<td><?php echo $c[$i]["pass"]; ?></td> <td><?php echo $c[$i]["pass"]; ?></td>
</tr> </tr>
@ -98,5 +106,4 @@ for($i=0;$i<count($c);$i++) {
</table> </table>
</form> </form>
</body> <?php include_once("foot.php"); ?>
</html>

View File

@ -34,14 +34,15 @@ if (!$admin->enabled) {
exit(); exit();
} }
include("head.php"); include_once("head.php");
?> ?>
</head>
<body>
<h3><?php __("Admin Control Panel"); ?></h3> <h3><?php __("Admin Control Panel"); ?></h3>
<?php <?php
if ($error) { 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"> <ul id="adm_panel">
@ -50,30 +51,28 @@ include("head.php");
<li class="lst1"><a href="adm_doms.php"><?php __("Manage installed domains"); ?></a></li> <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="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_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_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="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="quota_show_all.php"><?php __("Show all quotas"); ?></a></li>
<li class="lst1"><a href="stats_members.php"><?php __("Account creation statistics"); ?></a></li> <li class="lst1"><a href="stats_members.php"><?php __("Account creation statistics"); ?></a></li>
<?php <?php
// here we include any "adminmenu_*" file content // here we include any "adminmenu_*" file content
$d=opendir("."); $d=opendir(".");
if ($d) { if ($d) {
$lst=1; $lst=2;
while ($c=readdir($d)) { while ($c=readdir($d)) {
if (substr($c,0,10)=="adminmenu_") { if (substr($c,0,10)=="adminmenu_") {
echo "<tr class=\"lst$lst\">"; echo "<li class=\"lst$lst\">";
include($c); include($c);
echo "</tr>\n"; echo "</li>\n";
$lst=3-$lst; $lst=3-$lst;
} }
} }
} }
closedir($d); closedir($d);
?> ?>
</ul> </ul>
</body>
</html>
<?php include_once("foot.php"); ?>

View File

@ -39,7 +39,7 @@ if ($submit) {
$mem->su($uid); $mem->su($uid);
$qlist=$quota->qlist(); $qlist=$quota->qlist();
reset($qlist); reset($qlist);
while (list($key,$val)=each($qlist)) { while (list($key,$val)=each($qlist)) {
$var="q_".$key; $var="q_".$key;
$quota->setquota($key,$$var); $quota->setquota($key,$$var);
@ -48,8 +48,7 @@ if ($submit) {
$error=_("The quotas has been successfully edited"); $error=_("The quotas has been successfully edited");
include("adm_list.php"); include("adm_list.php");
exit; exit;
} }
?>
?>

View File

@ -28,12 +28,19 @@
---------------------------------------------------------------------- ----------------------------------------------------------------------
*/ */
require_once("../class/config.php"); require_once("../class/config.php");
include_once("head.php");
if (!$admin->enabled) { if (!$admin->enabled) {
__("This page is restricted to authorized staff"); __("This page is restricted to authorized staff");
include_once("foot.php");
exit(); exit();
} }
$fields = array (
"uid" => array ("request", "integer", 0),
);
getFields($fields);
if (!$us=$admin->get($uid)) { if (!$us=$admin->get($uid)) {
$error=$err->errstr(); $error=$err->errstr();
} }
@ -43,14 +50,13 @@ if (!$r=$quota->getquota()) {
$error=$err->errstr(); $error=$err->errstr();
} }
$mem->unsu(); $mem->unsu();
include("head.php");
?> ?>
</head>
<body>
<h3><?php __("Editing the quotas of a member"); ?></h3> <h3><?php __("Editing the quotas of a member"); ?></h3>
<?php <?php
if ($error) { if ($error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"error\">$error</p>";
include_once("foot.php");
exit(); exit();
} }
?> ?>
@ -65,9 +71,10 @@ reset($ql);
while (list($key,$val)=each($ql)) { while (list($key,$val)=each($ql)) {
echo "<tr>"; echo "<tr>";
echo "<td>"; echo "<td>";
if ($r[$key]["t"]==$r[$key]["u"] && $r[$key]["u"]) echo "<font color=red>"; if ($r[$key]["t"]==$r[$key]["u"] && $r[$key]["u"]) echo "<span style=\"color: red;\">";
echo _("quota_".$key)."</td>"; echo "<label for=\"q_$key\">" . _("quota_".$key) . "</label>";
if ($r[$key]["t"]==$r[$key]["u"] && $r[$key]["u"]) echo "</font>"; 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=\"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>&nbsp;</td>"; echo "<td align=\"right\"><code><label for=\"q_$key\">".$r[$key]["u"]."</label></code>&nbsp;</td>";
echo "</tr>"; echo "</tr>";
@ -77,5 +84,4 @@ while (list($key,$val)=each($ql)) {
</td></tr> </td></tr>
</table> </table>
</form> </form>
</body> <?php include_once("foot.php"); ?>
</html>

View File

@ -34,6 +34,14 @@ if (!$admin->enabled) {
exit(); exit();
} }
$fields = array (
"delaccount" => array ("request", "string", ""),
"newlogin" => array ("request", "string", ""),
"newpass" => array ("request", "string", ""),
);
getFields($fields);
if ($delaccount) { if ($delaccount) {
// Delete an account // Delete an account
if ($dom->del_slave_account($delaccount)) { if ($dom->del_slave_account($delaccount)) {
@ -42,16 +50,15 @@ if ($delaccount) {
} }
if ($newlogin) { if ($newlogin) {
// Add an account // Add an account
if ($dom->add_slave_account($newlogin,$newpass)) { if ($dom->add_slave_account($newlogin,$newpass)) {
$error=_("The requested account address has been created. It is now allowed."); $error=_("The requested account address has been created. It is now allowed.");
unset($newlogin); unset($newpass); unset($newlogin); unset($newpass);
} }
} }
include("head.php"); include_once ("head.php");
?> ?>
</head>
<body>
<h3><?php __("Manage allowed accounts for slave zone transfers"); ?></h3> <h3><?php __("Manage allowed accounts for slave zone transfers"); ?></h3>
<?php <?php
if ($error) { if ($error) {
@ -76,7 +83,7 @@ for($i=0;$i<count($c);$i++) {
?> ?>
<tr class="lst<?php echo $col; ?>"> <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]["login"]; ?></td>
<td><?php echo $c[$i]["pass"]; ?></td> <td><?php echo $c[$i]["pass"]; ?></td>
</tr> </tr>
@ -98,5 +105,4 @@ for($i=0;$i<count($c);$i++) {
</table> </table>
</form> </form>
</body> <?php include_once("foot.php"); ?>
</html>

View File

@ -34,6 +34,14 @@ if (!$admin->enabled) {
exit(); exit();
} }
$fields = array (
"delip" => array ("request", "string", ""),
"newip" => array ("request", "string", ""),
"newclass" => array ("request", "string", "32"),
);
getFields($fields);
if ($delip) { if ($delip) {
// Delete an ip address/class // Delete an ip address/class
if ($dom->del_slave_ip($delip)) { 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> <h3><?php __("Manage allowed ip for slave zone transfers"); ?></h3>
<?php <?php
if ($error) { if ($error) {
@ -78,7 +83,7 @@ for($i=0;$i<count($c);$i++) {
?> ?>
<tr class="lst<?php echo $col; ?>"> <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> <td><?php echo $c[$i]["ip"]."/".$c[$i]["class"]; ?></td>
</tr> </tr>
<?php <?php
@ -97,7 +102,5 @@ for($i=0;$i<count($c);$i++) {
<tr><td colspan="2"> <tr><td colspan="2">
<input type="submit" value="<?php __("Add this ip to the slave list"); ?>" class="inb" /> <input type="submit" value="<?php __("Add this ip to the slave list"); ?>" class="inb" />
</table> </table>
</form> </form>
</body> <?php include_once("foot.php"); ?>
</html>

View File

@ -44,11 +44,9 @@ if (is_array($sel)) {
if (!$error) $error=_("The requested TLD has been deleted"); 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> <h3><?php __("Manage allowed domains (TLD)"); ?></h3>
<?php <?php
if ($error) { if ($error) {
@ -61,7 +59,7 @@ $c=$admin->listtld();
<p> <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...)"); ?> <?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>
<p><a href="adm_tldadd.php"><?php __("Add a new TLD"); ?></a></p>
<form method="post" action="adm_tld.php"> <form method="post" action="adm_tld.php">
<table border="0" cellpadding="4" cellspacing="0"> <table border="0" cellpadding="4" cellspacing="0">
<tr><th><?php __("Action"); ?></th><th><?php __("TLD"); ?></th><th><?php __("Allowed Mode"); ?></th></tr> <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; ?>"> <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"]; ?>" />&nbsp;<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"]; ?>" />&nbsp;<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><label for="sel<?php echo $i; ?>"><?php echo $c[$i]["tld"]; ?></label></td>
<td><?php __($admin->tldmode[$c[$i]["mode"]]); ?></td></tr> <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> <tr><td colspan="3"><input type="submit" class="inb" value="<?php __("Delete the checked TLD"); ?>" /></td></tr>
</table> </table>
</form> </form>
<a href="adm_tldadd.php"><?php __("Add a new TLD"); ?></a> <p><a href="adm_tldadd.php"><?php __("Add a new TLD"); ?></a></p>
</body> <?php include_once("foot.php"); ?>
</html>

View File

@ -34,10 +34,9 @@ if (!$admin->enabled) {
exit(); exit();
} }
include("head.php"); include_once ("head.php");
?> ?>
</head>
<body>
<h3><?php __("Manage allowed domains (TLD)"); ?></h3> <h3><?php __("Manage allowed domains (TLD)"); ?></h3>
<?php <?php
if ($error) { 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> <tr><td colspan="2"><input type="submit" class="inb" value="<?php __("Add a new TLD"); ?>" /></td></tr>
</table> </table>
</form> </form>
<?php include_once("foot.php"); ?>
</body>
</html>

View File

@ -34,6 +34,11 @@ if (!$admin->enabled) {
exit(); exit();
} }
$fields = array (
"tld" => array ("request", "string", ""),
);
getFields($fields);
$mode=$admin->gettld($tld); $mode=$admin->gettld($tld);
if ($mode===false) { if ($mode===false) {
$error=$err->errstr(); $error=$err->errstr();
@ -41,10 +46,9 @@ if ($mode===false) {
exit(); exit();
} }
include("head.php"); include_once("head.php");
?> ?>
</head>
<body>
<h3><?php __("Manage allowed domains (TLD)"); ?></h3> <h3><?php __("Manage allowed domains (TLD)"); ?></h3>
<?php <?php
if ($error) { 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> <tr><td colspan="2"><input type="submit" class="inb" value="<?php __("Edit this TLD"); ?>" /></td></tr>
</table> </table>
</form> </form>
<?php include_once("foot.php"); ?>
</body>
</html>

View File

@ -41,10 +41,9 @@ foreach ($conf as $name => $val) {
} }
} }
include("head.php"); include_once ("head.php");
?> ?>
</head>
<body>
<h3><?php __("Configure AlternC variables"); ?></h3> <h3><?php __("Configure AlternC variables"); ?></h3>
<p> <p>
@ -65,12 +64,11 @@ while ($db->next_record()) {
<tr class="lst<?php echo $col; ?>"> <tr class="lst<?php echo $col; ?>">
<td><?php echo $vars['name']; ?></td> <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> <td><?php echo $vars['comment']; ?></td>
</tr> </tr>
<? } ?> <? } ?>
</table> </table>
<input type="submit" class="inb" value="<?php __("Save variables"); ?>" /> <p><input type="submit" class="inb" value="<?php __("Save variables"); ?>" /></p>
</form> </form>
</body> <?php include_once("foot.php"); ?>
</html>

View File

@ -27,30 +27,9 @@
Purpose of file: Purpose of file:
---------------------------------------------------------------------- ----------------------------------------------------------------------
*/ */
require_once("../../class/config.php"); require_once("../../class/config_nochk.php");
$hlist=array( header("Location: ".$help_baseurl."go?version=".urlencode($L_VERSION)."&hid=".$_REQUEST["hid"]);
100=>"c26.html",
0=>"book1.html"
);
if (!$hlist[$hid]) { exit();
$hid=0;
}
?>
<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>

BIN
bureau/admin/alternc.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

BIN
bureau/admin/alternc3.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

@ -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")).")"; $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> <p>
<?php if ($error) echo "<font color=\"red\">$error</font><br />"; ?> <?php if ($error) echo "<font color=\"red\">$error</font><br />"; ?>
<?php echo _("File editing")." <code>$R/<b>$file</b></code><br />"; ?> <?php echo _("File editing")." <code>$R/<b>$file</b></code><br />"; ?>
</p> </p>
<form action="bro_editor.php" method="post"><p> <form action="bro_editor.php" method="post"><br />
<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 <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); $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("\"","&quot;",$file); ?>" />
<input type="hidden" name="R" value="<?php echo str_replace("\"","&quot;",$R); ?>" />
<input type="submit" class="inb" value="<?php __("Save"); ?>" name="save" /> <input type="submit" class="inb" value="<?php __("Save"); ?>" name="save" />
<input type="submit" class="inb" value="<?php __("Save &amp; Quit"); ?>" name="saveret" /> <input type="submit" class="inb" value="<?php __("Save &amp; Quit"); ?>" name="saveret" />
<input type="submit" class="inb" value="<?php __("Quit"); ?>" name="cancel" /> <input type="submit" class="inb" value="<?php __("Quit"); ?>" name="cancel" />
</p> <br />
<input type="hidden" name="file" value="<?php echo str_replace("\"","&quot;",$file); ?>" />
<input type="hidden" name="R" value="<?php echo str_replace("\"","&quot;",$R); ?>" />
<script type="text/javascript"> <script type="text/javascript">
<!-- <!--
SET_DHTML("resizer"+RESIZABLE); SET_DHTML("resizer"+RESIZABLE);
//--> //-->
</script> </script>
</form> </form>
</body> <?php include_once("foot.php"); ?>
</html>

View File

@ -25,9 +25,11 @@
---------------------------------------------------------------------- ----------------------------------------------------------------------
Original Author of file: Benjamin Sonntag, Remi Original Author of file: Benjamin Sonntag, Remi
Purpose of file: Online file Browser of AlternC Purpose of file: Online file Browser of AlternC
TODO : Voir ??? + Déplacer / Copier
---------------------------------------------------------------------- ----------------------------------------------------------------------
*/ */
require_once("../class/config.php"); require_once("../class/config.php");
include_once ("head.php");
$p=$bro->GetPrefs(); $p=$bro->GetPrefs();
if (!$R && $p["golastdir"]) { if (!$R && $p["golastdir"]) {
@ -61,10 +63,8 @@ if ($formu) {
print $err->errstr(); print $err->errstr();
} }
} elseif (!$cancel && is_array($d)) { } elseif (!$cancel && is_array($d)) {
include("head.php"); include_once("head.php");
?> ?>
</head>
<body>
<h3><?php printf(_("Deleting files and/or directories")); ?> : </h3> <h3><?php printf(_("Deleting files and/or directories")); ?> : </h3>
<form action="bro_main.php" method="post"> <form action="bro_main.php" method="post">
<input type="hidden" name="formu" value="2" /> <input type="hidden" name="formu" value="2" />
@ -100,7 +100,7 @@ if ($formu) {
case 4: // Renommage Effectif... case 4: // Renommage Effectif...
if (!$bro->RenameFile($R,$o,$d)) { // Rename $R (directory) $o (old) $d (new) names if (!$bro->RenameFile($R,$o,$d)) { // Rename $R (directory) $o (old) $d (new) names
print $err->errstr(); print $err->errstr();
} }
break; break;
case 3: // Upload de fichier... case 3: // Upload de fichier...
if (!$bro->UploadFile($R)) { if (!$bro->UploadFile($R)) {
@ -116,12 +116,12 @@ if ($formu) {
} }
if ($actextract) { if ($actextract) {
print _("extracting..."); print _("extracting...")."<br />\n"; flush();
if ($bro->ExtractFile($R. '/' . $file, $R)) { if ($bro->ExtractFile($R. '/' . $file, $R)) {
print $err->errstr(); print $err->errstr();
print _("failed"); print _("failed")."<br />\n";
} else { } else {
print _("done"); print _("done")."<br />\n";
} }
} }
@ -129,23 +129,20 @@ if ($actextract) {
$c=$bro->filelist($R, $_REQUEST['showdirsize']); $c=$bro->filelist($R, $_REQUEST['showdirsize']);
if ($c===false) $error=$err->errstr(); if ($c===false) $error=$err->errstr();
include("head.php");
?> ?>
</head>
<body>
<div id="browser">
<h3><?php __("File browser"); ?></h3> <h3><?php __("File browser"); ?></h3>
<table border="0" width="100%" cellspacing="0">
<tr><td>
<hr /> <hr />
<table width="100%"><tr><td valign="top"> <table width="100%"><tr><td valign="top">
<a href="bro_main.php?R=/"><?php echo $mem->user["login"]; ?></a>&nbsp;/&nbsp;<?php echo $bro->PathList($R,"bro_main.php") ?><br /> <a href="bro_main.php?R=/"><?php echo $mem->user["login"]; ?></a>&nbsp;/&nbsp;<?php echo $bro->PathList($R,"bro_main.php") ?><br />
<small>
<?php if ($error) echo "<font color=\"red\">$error</font>"; ?> <?php if ($error) echo "<font color=\"red\">$error</font>"; ?>
</td><td valign="top" align="right"> </td><td valign="top" align="right">
<form action="bro_main.php" method="post" name="nn" id="nn"> <form action="bro_main.php" method="post" name="nn" id="nn">
<input type="hidden" name="R" value="<?php echo $R; ?>" /> <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="text" class="int" name="nomfich" size="22" maxlength="255" /></td>
<td><input type="submit" class="inb" value="<?php __("Create"); ?>" /></td> <td><input type="submit" class="inb" value="<?php __("Create"); ?>" /></td>
</tr><tr><td> </tr><tr><td>
@ -162,19 +159,18 @@ include("head.php");
<?php <?php
/* Renommer / Copier / Déplacer les fichiers : */ /* Renommer / Copier / Déplacer les fichiers : */
if ($formu==2 && $actrename && count($d)) { if ($formu==2 && $actrename && count($d)) {
echo "<table cellpadding=\"6\">\n";
echo "<form action=\"bro_main.php\" method=\"post\">\n"; echo "<form action=\"bro_main.php\" method=\"post\">\n";
echo "<input type=\"hidden\" name=\"R\" value=\"$R\" />\n"; echo "<input type=\"hidden\" name=\"R\" value=\"$R\" />\n";
echo "<input type=\"hidden\" name=\"formu\" value=\"4\" />\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++) { for ($i=0;$i<count($d);$i++) {
$d[$i]=ssla($d[$i]); $d[$i]=ssla($d[$i]);
echo "<table>"; echo "<tr><td><input type=\"hidden\" name=\"o[$i]\" value=\"".$d[$i]."\" />".$d[$i]."</td>";
echo "<tr><td>"._("Old Name:")."</td><td><input type=\"hidden\" name=\"o[$i]\" value=\"".$d[$i]."\" />".$d[$i]."</td></tr>"; echo "<td><input type=\"text\" class=\"int\" name=\"d[$i]\" value=\"".$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 "<p><input type=\"submit\" class=\"inb\" name=\"submit\" value=\""._("Rename")."\" /></p>"; echo "<tr><td colspan=\"2\" align=\"center\"><input type=\"submit\" class=\"inb\" name=\"submit\" value=\""._("Rename")."\" /></td></tr>";
echo "</form>\n"; echo "</table></form>\n";
echo "<hr />\n"; echo "<hr />\n";
} }
@ -187,10 +183,9 @@ if ($formu==2 && $_REQUEST['actperms'] && count($d)) {
$tmp_absdir = $bro->convertabsolute($R,0); $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 "<tr>";
// echo "<th>" . 'File' . "</th><th>&nbsp;</th><th>Owner</th><th>Group</th><th>Other</th>"; // FIXME , i18n echo "<th>" . _("File") . "</th><th>"._("Permissions")."</th>";
echo "<th>" . 'File' . "</th><th>Permissions</th>"; // FIXME, i18n
echo "</tr>"; echo "</tr>";
for ($i=0;$i<count($d);$i++) { for ($i=0;$i<count($d);$i++) {
@ -204,8 +199,7 @@ if ($formu==2 && $_REQUEST['actperms'] && count($d)) {
// Owner // Owner
echo "<td>"; echo "<td>";
echo "<input type=\"hidden\" name=\"d[$i]\" value=\"".$d[$i]."\" />"; 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 for=\"permw$i\">"._("write")."</label> <input type=\"checkbox\" id=\"permw$i\" name=\"perm[$i][w]\" value=\"1\" ". (($modes & 0000200) ? 'checked="checked"' : '') ." />";
echo "<label>write <input type=\"checkbox\" name=\"perm[$i][w]\" value=\"1\" ". (($modes & 0000200) ? 'checked="checked"' : '') ." />";
echo "</td>"; echo "</td>";
echo "</tr>"; echo "</tr>";
@ -231,14 +225,14 @@ if (count($c)) {
document.write("<input type=\"button\" value=\"<?php __("all/none"); ?>\" class=\"inb\" onclick=\"CheckAll();\" />"); document.write("<input type=\"button\" value=\"<?php __("all/none"); ?>\" class=\"inb\" onclick=\"CheckAll();\" />");
// --> // -->
</script> </script>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
<input type="submit" class="inb" name="actdel" value="<?php __("Delete"); ?>" /> <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="actrename" value="<?php __("Rename"); ?>" />
<input type="submit" class="inb" name="actperms" value="<?php __("Permissions"); ?>" /> <!-- [ML] --> <input type="submit" class="inb" name="actperms" value="<?php __("Permissions"); ?>" /> <!-- [ML] -->
&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br /><br />
<input type="submit" class="inb" name="actcopy" value="<?php __("Copy to"); ?>" /> <input type="submit" class="inb" name="actcopy" value="<?php __("Copy"); ?>" />
<input type="submit" class="inb" name="actmove" value="<?php __("Move"); ?>" />&nbsp;:&nbsp;<input type="text" class="int" name="actmoveto" value="" />
<input type="submit" class="inb" name="actmove" value="<?php __("Move to"); ?>" />&nbsp;:&nbsp;<input type="text" class="int" name="actmoveto" value="" />
<script type="text/javascript"> <script type="text/javascript">
<!-- <!--
document.write("<input type=\"button\" name=\"bff\" onclick=\"browseforfolder('main.actmoveto');\" value=\" ... \" class=\"inb\" />"); 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; $col=3-$col;
echo "<tr class=\"lst$col\">\n"; echo "<tr class=\"lst$col\">\n";
if ($c[$i]["type"]) { 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"]) { if ($p["showicons"]) {
echo "<td width=\"28\"><img src=\"icon/".$bro->icon($c[$i]["name"])."\" width=\"16\" height=\"16\" alt=\"\" /></td>"; echo "<td width=\"28\"><img src=\"icon/".$bro->icon($c[$i]["name"])."\" width=\"16\" height=\"16\" alt=\"\" /></td>";
} }
@ -279,9 +273,9 @@ echo "<td>&nbsp;";
} }
$e = $bro->is_extractable($R,$c[$i]["name"]); $e = $bro->is_extractable($R,$c[$i]["name"]);
if ($e) { if ($e) {
echo "<a href=\"bro_main.php?actextract=1&file=".urlencode($c[$i]["name"])."&amp;R=".urlencode($R)."\">"; echo "<a href=\"bro_main.php?actextract=1&file=".urlencode($c[$i]["name"])."&amp;R=".urlencode($R)."\">";
echo _("Extract"); echo _("Extract");
echo "</a>"; echo "</a>";
} }
echo "</td>\n"; echo "</td>\n";
@ -474,7 +468,7 @@ break;
} }
?> ?>
</form> </form>
<?php <?php
} // is there any files here ? } // is there any files here ?
else { else {
echo "<p class=\"error\">"._("No files in this folder")."</p>"; echo "<p class=\"error\">"._("No files in this folder")."</p>";
@ -491,14 +485,14 @@ else {
<hr /> <hr />
<?php __("Import this file"); ?>&nbsp;&nbsp;<input class="int" name="userfile" type="file" /> <?php __("Import this file"); ?>&nbsp;&nbsp;<input class="int" name="userfile" type="file" />
<input type="hidden" name="MAX_FILE_SIZE" value="10000000" /> <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 /> <hr />
</form> </form>
<p>&nbsp;</p> <p>&nbsp;</p>
<?php <?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)) { 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 />"; 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 /> <a href="bro_pref.php"><?php __("Configure the file browser"); ?></a><br />
</td></tr></table> </td></tr></table>
<?php include_once("foot.php"); ?>
</body>
</html>

View File

@ -37,19 +37,19 @@ if ($submit) {
} }
$p=$bro->GetPrefs(); $p=$bro->GetPrefs();
include("head.php"); include_once("head.php");
?> ?>
</head>
<body>
<?php if ($error) echo "<font color=\"red\">$error</font><br />"; ?> <?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"> <form action="bro_pref.php" method="post">
<table cellpadding="6" border="1" cellspacing="0"> <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"> <tr><td><?php __("Horizontal window size"); ?></td><td><select class="inl" name="editsizex">
<?php <?php
for($i=10;$i<=200;$i+=10) { for($i=50;$i<=200;$i+=10) {
echo "<option"; echo "<option";
if ($p["editsizex"]==$i) echo " selected"; if ($p["editsizex"]==$i) echo " selected";
echo ">$i"; echo ">$i";
@ -57,7 +57,7 @@ for($i=10;$i<=200;$i+=10) {
?></select></td></tr> ?></select></td></tr>
<tr><td><?php __("Vertical window size"); ?></td><td><select class="inl" name="editsizey"> <tr><td><?php __("Vertical window size"); ?></td><td><select class="inl" name="editsizey">
<?php <?php
for($i=4;$i<=60;$i+=2) { for($i=4;$i<=80;$i+=2) {
echo "<option"; echo "<option";
if ($p["editsizey"]==$i) echo " selected"; if ($p["editsizey"]==$i) echo " selected";
echo ">$i"; echo ">$i";
@ -79,11 +79,6 @@ for($i=0;$i<count($bro->l_editor_size);$i++) {
echo ">"._($bro->l_editor_size[$i]); echo ">"._($bro->l_editor_size[$i]);
} }
?></select></td></tr> ?></select></td></tr>
</table>
<p>&nbsp;</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"> <tr><td><?php __("File list view"); ?></td><td><select class="inl" name="listmode">
<?php <?php
for($i=0;$i<count($bro->l_mode);$i++) { 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> ?></select></td></tr>
</table> </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> </form>
<p>&nbsp;</p> <p>&nbsp;</p>
<a href="bro_main.php"><?php __("Back to the file browser"); ?></a> <a href="bro_main.php"><?php __("Back to the file browser"); ?></a>
</body> <?php include_once("foot.php"); ?>
</html>

View File

@ -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"> <!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> <head>
<title>Browser for folder</title> <title>Browser for folder</title>
<link rel="stylesheet" href="styles/base.css" type="text/css" /> <link rel="stylesheet" href="styles/style.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" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<?php <?php
@ -101,8 +100,7 @@ if ($select) {
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head> <head>
<title>Recherche d'un dossier</title> <title>Recherche d'un dossier</title>
<link rel="stylesheet" href="styles/base.css" type="text/css" /> <link rel="stylesheet" href="styles/style.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" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript"> <script type="text/javascript">
/* Fonction appellée lors du lancement d'un popup Fichier : */ /* Fonction appellée lors du lancement d'un popup Fichier : */

View File

@ -41,8 +41,7 @@ if (!$mem->checkid()) {
<html> <html>
<head> <head>
<title>Administration de <?php echo $host ?></title> <title>Administration de <?php echo $host ?></title>
<link rel="stylesheet" href="styles/base.css" type="text/css" /> <link rel="stylesheet" href="style.css" type="text/css">
<link rel="stylesheet" href="styles/custom.css" type="text/css" />
</head> </head>
<frameset cols="225px,*"> <frameset cols="225px,*">
<frame src="menu.php" name="left"> <frame src="menu.php" name="left">

View File

@ -29,12 +29,11 @@
*/ */
require_once("../class/config.php"); 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> <h3><?php __("Domain hosting"); ?></h3>
<?php <?php
if (!$quota->cancreate("dom")) { ?> if (!$quota->cancreate("dom")) { ?>
@ -45,16 +44,9 @@ exit();
if ($error) echo "<p class=\"error\">$error</p>"; if ($error) echo "<p class=\"error\">$error</p>";
?> ?>
<form method="post" action="dom_doadd.php" id="main"> <form method="post" action="dom_doadd.php" id="main">
<table><thead><?php __("Domain hosting"); ?></thead><tbody> <table><tr><td>
<tr> <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" />
<th><label for="newdomain"><?php __("Domain name"); ?> : www.</label></th> </td></tr><tr><td></td><td><input type="submit" class="inb" name="submit" value="<?php __("Add this domain"); ?>" /></td></tr>
<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> </table>
<p> <p>
<input type="checkbox" name="dns" class="inc" value="1" id="yndns" <?php if ($dns=="1") echo "checked=\"checked\""; ?> /><br /> <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>"; echo "</pre>";
} }
?> ?>
</body> <script type="text/javascript">
</html> document.forms['main'].newdomain.focus();
</script>
<?php include_once("foot.php"); ?>

View File

@ -28,6 +28,13 @@
---------------------------------------------------------------------- ----------------------------------------------------------------------
*/ */
require_once("../class/config.php"); require_once("../class/config.php");
include_once("head.php");
$fields = array (
"newdomain" => array ("post", "string", ""),
"dns" => array ("post", "string", ""),
);
getFields($fields);
$dom->lock(); $dom->lock();
@ -39,14 +46,11 @@ if (!$dom->add_domain($newdomain,$dns)) {
$dom->unlock(); $dom->unlock();
include("head.php");
?> ?>
</head>
<body>
<h3><?php __("Add a domain"); ?></h3> <h3><?php __("Add a domain"); ?></h3>
<p> <p>
<?php printf(_("Your new domain %s has been successfully installed"),$newdomain); ?><br /> <?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"); ?> <?php $mem->show_help("add_domain"); ?>
<br /> <br />
<?php <?php
@ -60,5 +64,4 @@ include("head.php");
} }
?> ?>
</p> </p>
</body> <?php include_once("foot.php"); ?>
</html>

View File

@ -28,6 +28,13 @@
---------------------------------------------------------------------- ----------------------------------------------------------------------
*/ */
require_once("../class/config.php"); require_once("../class/config.php");
include_once("head.php");
$fields = array (
"domain" => array ("request", "string", ""),
"del_confirm" => array ("post", "string", ""),
);
getFields($fields);
$dom->lock(); $dom->lock();
if ($del_confirm=="y") if ($del_confirm=="y")
@ -41,10 +48,7 @@ if ($del_confirm=="y")
$dom->unlock(); $dom->unlock();
if ($del_confirm!="y") { if ($del_confirm!="y") {
include("head.php");
?> ?>
</head>
<body>
<h3><?php printf(_("Confirm the deletion of domain %s"),$domain); ?></h3> <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 /> <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> <?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="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()" /> <input type="submit" class="inb" name="submit" value="<?php __("Yes"); ?>" /> - <input type="button" class="inb" name="non" value="<?php __("No"); ?>" onclick="history.back()" />
</form> </form>
</body> <?php include_once("foot.php"); ?>
</html>
<?php <?php
exit(); exit();
} }
include("head.php");
?> ?>
</head>
<body bgcolor="#FFFFF0">
<h3><?php printf(_("Domain %s deleted"),$domain); ?></h3> <h3><?php printf(_("Domain %s deleted"),$domain); ?></h3>
<p> <p>
<?php printf(_("The domain %s has been successfully deleted."),$domain); ?><br /> <?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"); ?> <?php $mem->show_help("del_domain"); ?>
</p> </p>
</body> <?php include_once("foot.php"); ?>
</html>

View File

@ -28,6 +28,12 @@
---------------------------------------------------------------------- ----------------------------------------------------------------------
*/ */
require_once("../class/config.php"); require_once("../class/config.php");
include_once("head.php");
$fields = array (
"domain" => array ("request", "string", ""),
);
getFields($fields);
$dom->lock(); $dom->lock();
if (!$r=$dom->get_domain_all($domain)) { if (!$r=$dom->get_domain_all($domain)) {
@ -35,7 +41,6 @@ if (!$r=$dom->get_domain_all($domain)) {
} }
$dom->unlock(); $dom->unlock();
include("head.php");
?> ?>
<script type="text/javascript"> <script type="text/javascript">
function dnson() { function dnson() {
@ -53,9 +58,7 @@ function dnsoff() {
document.forms["dns"].mail.disabled=false; document.forms["dns"].mail.disabled=false;
} }
</script> </script>
</head> <h3><?php printf(_("Editing domain %s"),$domain); ?></h3>
<body>
<h3><?php printf(_("Editing domain %s"),$domain); ?> : </h3>
<?php <?php
if ($error) { if ($error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"error\">$error</p>";
@ -73,26 +76,23 @@ for($i=0;$i<$r["nsub"];$i++) {
$col=3-$col; $col=3-$col;
?> ?>
<tr class="lst<?php echo $col; ?>"> <tr class="lst<?php echo $col; ?>">
<td align="center"> <td class="center">
<a href="dom_subedit.php?domain=<?php echo urlencode($r["name"]) ?>&amp;sub=<?php echo urlencode($r["sub"][$i]["name"]) ?>"><?php __("Edit"); ?></a> <a href="dom_subedit.php?domain=<?php echo urlencode($r["name"]) ?>&amp;sub=<?php echo urlencode($r["sub"][$i]["name"]) ?>"><img src="images/edit.png" alt="<?php __("Edit"); ?>" /></a>&nbsp;<a href="dom_subdel.php?domain=<?php echo urlencode($r["name"]) ?>&amp;sub=<?php echo urlencode($r["sub"][$i]["name"]) ?>"><img src="images/delete.png" alt="<?php __("Delete"); ?>" /></a>
&nbsp;
</td> </td>
<td align="center"><a href="dom_subdel.php?domain=<?php echo urlencode($r["name"]) ?>&amp;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><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"]); ?>&nbsp;</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"]); ?>&nbsp;</td>
</tr> </tr>
<?php } ?> <?php } ?>
</table> </table>
<br /> <br />
<form action="dom_subdoedit.php?" method="post" name="main"> <form action="dom_subdoedit.php?" method="post" name="main" id="main">
<table border="0"> <table border="0">
<tr> <tr>
<td> <td colspan="2">
<input type="hidden" name="domain" value="<?php echo $r["name"]; ?>" /> <input type="hidden" name="domain" value="<?php echo $r["name"]; ?>" />
<input type="hidden" name="action" value="add" /> <input type="hidden" name="action" value="add" />
<?php __("Create a subdomain:"); ?> <?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> <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>
<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();" /> <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> <label for="webmail"><?php __("Webmail access"); ?></label></td>
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
<tr>
<td colspan="2"><input type="submit" class="inb" name="add" value="<?php __("Add a subdomain"); ?>" /></td>
</tr>
</table> </table>
</form> </form>
<?php $mem->show_help("edit_domain"); ?> <?php $mem->show_help("edit_domain"); ?>
@ -146,9 +149,7 @@ if (!$r[noerase]) {
<tr> <tr>
<td width="65%" valign="top"> <td width="65%" valign="top">
<p> <p>
<?php printf(_("help_dns_mx %s %s"),$L_MX,$L_HOSTING); <?php printf(_("help_dns_mx %s %s"),$L_MX,$L_HOSTING); ?>
if (!$r["mx"] && !$r["dns"]) $r["mx"]=$L_MX;
?>
</p> </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\""; ?> /> <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> </td>
@ -173,6 +174,8 @@ if (!$r[noerase]) {
</p> </p>
</form> </form>
<hr /> <hr />
<?php } // noerase ?> <?php } // noerase ?>
</body> <script type="text/javascript">
</html> document.forms['main'].sub.focus();
</script>
<?php include_once("foot.php"); ?>

View File

@ -28,6 +28,14 @@
---------------------------------------------------------------------- ----------------------------------------------------------------------
*/ */
require_once("../class/config.php"); 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(); $dom->lock();
if ($dns!="1") { if ($dns!="1") {
@ -47,21 +55,15 @@ if (!$dom->edit_domain($domain,$dns,$mx)) {
} }
$dom->unlock(); $dom->unlock();
include("head.php");
?> ?>
</head>
<body>
<h3><?php printf(_("Editing domain %s"),$domain); ?></h3> <h3><?php printf(_("Editing domain %s"),$domain); ?></h3>
<p> <p>
<?php <?php
printf(_("The domain %s has been changed."),$domain); printf(_("The domain %s has been changed."),$domain);
# take the current time
$t = 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)))); 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 /> ?><br />
<a href="login.php" target="_top"><?php __("Click here to continue"); ?></a> <a href="login.php" target="_top"><?php __("Click here to continue"); ?></a>
</p> </p>
</body> <?php include_once("foot.php"); ?>
</html>

View File

@ -28,6 +28,13 @@
---------------------------------------------------------------------- ----------------------------------------------------------------------
*/ */
require_once("../class/config.php"); require_once("../class/config.php");
include_once("head.php");
$fields = array (
"domain" => array ("request", "string", ""),
"sub" => array ("request", "string", ""),
);
getFields($fields);
$dom->lock(); $dom->lock();
if (!$r=$dom->get_sub_domain_all($domain,$sub)) { if (!$r=$dom->get_sub_domain_all($domain,$sub)) {
@ -35,14 +42,12 @@ if (!$r=$dom->get_sub_domain_all($domain,$sub)) {
} }
$dom->unlock(); $dom->unlock();
include("head.php");
?> ?>
</head>
<body>
<h3><?php printf(_("Deleting subdomain %s"),"http://".ife($sub,$sub.".").$domain); ?> : </h3> <h3><?php printf(_("Deleting subdomain %s"),"http://".ife($sub,$sub.".").$domain); ?> : </h3>
<?php <?php
if ($error) { if ($error) {
echo "<p class=\"error\">$error</p></body></html>"; echo "<p class=\"error\">$error</p>";
include_once("foot.php");
exit(); exit();
} }
?> ?>
@ -61,5 +66,4 @@ include("head.php");
<input type="button" class="inb" name="cancel" value="<?php __("No"); ?>" onclick="history.back();" /> <input type="button" class="inb" name="cancel" value="<?php __("No"); ?>" onclick="history.back();" />
</blockquote> </blockquote>
</form> </form>
</body> <?php include_once("foot.php"); ?>
</html>

View File

@ -28,6 +28,13 @@
---------------------------------------------------------------------- ----------------------------------------------------------------------
*/ */
require_once("../class/config.php"); require_once("../class/config.php");
include_once("head.php");
$fields = array (
"domain" => array ("request", "string", ""),
"sub" => array ("request", "string", ""),
);
getFields($fields);
$dom->lock(); $dom->lock();
@ -37,24 +44,19 @@ if (!$dom->del_sub_domain($domain,$sub)) {
$dom->unlock(); $dom->unlock();
include("head.php");
?> ?>
</head>
<body>
<h3><?=sprintf(_("Deleting the subdomain %s:"),"http://".(($sub)?$sub.".":$sub).$domain); ?></h3> <h3><?=sprintf(_("Deleting the subdomain %s:"),"http://".(($sub)?$sub.".":$sub).$domain); ?></h3>
<?php <?php
if ($error) { if ($error) {
echo "<p class=\"error\">$error</p></body></html>"; echo "<p class=\"error\">$error</p>";
include_once("foot.php");
exit(); exit();
} else { } else {
# take the current time
$t = 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)))); $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>"; echo "<p class=\"error\">".$error."</p>";
} }
?> ?>
<p><a href="dom_edit.php?domain=<?php echo urlencode($domain) ?>"><?php __("Click here to continue"); ?></a></p> <p><a href="dom_edit.php?domain=<?php echo urlencode($domain) ?>"><?php __("Click here to continue"); ?></a></p>
</body> <?php include_once("foot.php"); ?>
</html>

View File

@ -50,13 +50,11 @@ $dom->unlock();
if (!$r) { if (!$r) {
$error=$err->errstr(); $error=$err->errstr();
} else { } else {
# take the current time
$t = 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)))); $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"); include("dom_edit.php");
exit; exit;
?> ?>

View File

@ -28,6 +28,13 @@
---------------------------------------------------------------------- ----------------------------------------------------------------------
*/ */
require_once("../class/config.php"); require_once("../class/config.php");
include_once("head.php");
$fields = array (
"domain" => array ("request", "string", ""),
"sub" => array ("request", "string", ""),
);
getFields($fields);
$dom->lock(); $dom->lock();
if (!$r=$dom->get_sub_domain_all($domain,$sub)) { if (!$r=$dom->get_sub_domain_all($domain,$sub)) {
@ -35,14 +42,12 @@ if (!$r=$dom->get_sub_domain_all($domain,$sub)) {
} }
$dom->unlock(); $dom->unlock();
include("head.php");
?> ?>
</head> <h3><?php __("Editing subdomain"); ?> http://<?php ecif($sub,$sub."."); echo $domain; ?> : </h3>
<body>
<h3><?php __("Edition du sous-domaine"); ?> http://<?php ecif($sub,$sub."."); echo $domain; ?> : </h3>
<?php <?php
if ($error) { if ($error) {
echo "<p class=\"erroe\">$error</p></body></html>"; echo "<p class=\"erroe\">$error</p>";
include_once("foot.php");
exit(); exit();
} }
?> ?>
@ -50,10 +55,10 @@ include("head.php");
<!-- ***************************************** <!-- *****************************************
gestion du sous-domaine 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"> <form action="dom_subdoedit.php" method="post" id="main" name="main">
<table border="0"> <table border="0">
<tr> <tr>
<td> <input type="hidden" name="domain" value="<?php echo $domain ?>" /> <td> <input type="hidden" name="domain" value="<?php echo $domain ?>" />
<input type="hidden" name="sub" value="<?php echo $sub ?>" /> <input type="hidden" name="sub" value="<?php echo $sub ?>" />
<input type="hidden" name="action" value="edit" /> <input type="hidden" name="action" value="edit" />
@ -84,10 +89,9 @@ include("head.php");
<td>&nbsp;</td> <td>&nbsp;</td>
</tr> </tr>
<tr> <tr>
<td><input type="submit" class="inb" name="submit" value="Valider les changements" /></td> <td><input type="submit" class="inb" name="submit" value="<?php __("Validate this change"); ?>" /></td>
<td><input type="button" class="inb" name="back" value="Annuler" onclick="history.back();" /></td> <td><input type="button" class="inb" name="back" value="<?php __("Cancel"); ?>" onclick="history.back();" /></td>
</tr> </tr>
</table> </table>
</form> </form>
</body> <?php include_once("foot.php"); ?>
</html>

View File

@ -23,8 +23,8 @@
To read the license please visit http://www.gnu.org/copyleft/gpl.html To read the license please visit http://www.gnu.org/copyleft/gpl.html
---------------------------------------------------------------------- ----------------------------------------------------------------------
Original Author of file: Benjamin Sonntag Original Author of file:
Purpose of file: Return the list of hosted domains to a slave dns server Purpose of file:
---------------------------------------------------------------------- ----------------------------------------------------------------------
*/ */
require_once("../class/config_nochk.php"); require_once("../class/config_nochk.php");

7
bureau/admin/foot.php Normal file
View File

@ -0,0 +1,7 @@
</div> <!-- div content -->
</td>
</tr>
</table>
</div> <!-- div global -->
</body>
</html>

View File

@ -28,28 +28,26 @@
---------------------------------------------------------------------- ----------------------------------------------------------------------
*/ */
require_once("../class/config.php"); require_once("../class/config.php");
include_once("head.php");
if (!$quota->cancreate("ftp")) { if (!$quota->cancreate("ftp")) {
$error=_("You cannot add any new ftp account, your quota is over."); $error=_("You cannot add any new ftp account, your quota is over.");
$fatal=1; $fatal=1;
} }
include("head.php");
?> ?>
</head>
<body>
<h3><?php __("Create a new ftp account"); ?></h3> <h3><?php __("Create a new ftp account"); ?></h3>
<?php <?php
if ($error) { if ($error) {
echo "<p class=\"error\">$error</p>"; echo "<p class=\"error\">$error</p>";
if ($fatal) { if ($fatal) {
echo "</body></html>"; include_once("foot.php");
exit(); 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> <table><thead><?php __("Create a new ftp account"); ?></thead>
<tbody>
<tr><th><input type="hidden" name="id" value="<?php echo $id ?>" /> <tr><th><input type="hidden" name="id" value="<?php echo $id ?>" />
<label for="login"><?php __("Username"); ?></label></th><td> <label for="login"><?php __("Username"); ?></label></th><td>
<select class="inl" name="prefixe"><?php $ftp->select_prefix_list($prefixe); ?></select>&nbsp;<b>_</b>&nbsp;<input type="text" class="int" name="login" id="login" value="<?php echo $login; ?>" size="20" maxlength="64" /> <select class="inl" name="prefixe"><?php $ftp->select_prefix_list($prefixe); ?></select>&nbsp;<b>_</b>&nbsp;<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> </script>
</td></tr> </td></tr>
<tr><td colspan="2"><input type="submit" class="inb" name="submit" value="<?php __("Create this new FTP account."); ?>" /></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> </form>
<?php $mem->show_help("ftp_add"); ?> <?php $mem->show_help("ftp_add"); ?>
</body> <script type="text/javascript">
</html> document.forms['main'].login.focus();
</script>
<?php include_once("foot.php"); ?>

View File

@ -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> <div align="center"><h3><?php __("Editing an FTP account"); ?></h3></div>
<?php <?php
if ($error) { if ($error) {
echo "<p class=\"error\">$error</p></body></html>"; echo "<p class=\"error\">$error</p>";
} }
?> ?>
</body> <?php include_once("foot.php"); ?>
</html>

View File

@ -28,6 +28,12 @@
---------------------------------------------------------------------- ----------------------------------------------------------------------
*/ */
require_once("../class/config.php"); require_once("../class/config.php");
include_once("head.php");
$fields = array (
"id" => array ("request", "integer", ""),
);
getFields($fields);
if (!$id) { if (!$id) {
$error=_("No account selected!"); $error=_("No account selected!");
@ -38,25 +44,23 @@ if (!$id) {
} }
} }
include("head.php");
?> ?>
</head>
<body>
<h3><?php __("Editing an FTP account"); ?></h3> <h3><?php __("Editing an FTP account"); ?></h3>
<?php <?php
if ($error) { if ($error) {
echo "<p class=\"error\">$error</p></body></html>"; echo "<p class=\"error\">$error</p>";
include_once("foot.php");
exit(); 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"> <table border="1" cellspacing="0" cellpadding="4">
<tr><th><input type="hidden" name="id" value="<?php echo $id ?>" /> <tr><th><input type="hidden" name="id" value="<?php echo $id ?>" />
<label for="login"><?php __("Username"); ?></label></th><td> <label for="login"><?php __("Username"); ?></label></th><td>
<select class="inl" name="prefixe"><?php $ftp->select_prefix_list($r["prefixe"]); ?></select>&nbsp;<b>_</b>&nbsp;<input type="text" class="int" name="login" id="login" value="<?php echo $r["login"]; ?>" size="20" maxlength="64" /> <select class="inl" name="prefixe"><?php $ftp->select_prefix_list($r["prefixe"]); ?></select>&nbsp;<b>_</b>&nbsp;<input type="text" class="int" name="login" id="login" value="<?php echo $r["login"]; ?>" size="20" maxlength="64" />
</td></tr> </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="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="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" /> <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"> <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> <tr><td colspan="2"><input type="submit" class="inb" name="submit" value="<?php __("Change this FTP account"); ?>" /></td></tr>
</table> </table>
</form> </form>
</body> <script type="text/javascript">
</html> document.forms['main'].login.focus();
</script>
<?php include_once("foot.php"); ?>

View File

@ -28,6 +28,12 @@
---------------------------------------------------------------------- ----------------------------------------------------------------------
*/ */
require_once("../class/config.php"); require_once("../class/config.php");
include_once("head.php");
$fields = array (
"domain" => array ("request", "string", ""),
);
getFields($fields);
$noftp=false; $noftp=false;
if (!$r=$ftp->get_list($domain)) { if (!$r=$ftp->get_list($domain)) {
@ -35,10 +41,7 @@ if (!$r=$ftp->get_list($domain)) {
$error=$err->errstr(); $error=$err->errstr();
} }
include("head.php");
?> ?>
</head>
<body id="ftp-account-list">
<h3><?php __("FTP accounts list"); ?></h3> <h3><?php __("FTP accounts list"); ?></h3>
<?php <?php
if ($noftp) { if ($noftp) {
@ -46,8 +49,8 @@ include("head.php");
<p class="error"><?php echo $error ?></p> <p class="error"><?php echo $error ?></p>
<a href="ftp_add.php"><?php __("Create a new ftp account") ?></a><br /> <a href="ftp_add.php"><?php __("Create a new ftp account") ?></a><br />
<?php $mem->show_help("ftp_list_no"); ?> <?php $mem->show_help("ftp_list_no"); ?>
</body></html>
<?php <?php
include_once("foot.php");
exit(); exit();
} }
@ -55,17 +58,9 @@ if ($error) {
?> ?>
<p class="error"><?php echo $error ?></p> <p class="error"><?php echo $error ?></p>
<?php } ?> <?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"> <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">&nbsp;</th><th><?php __("Username"); ?></th><th><?php __("Folder"); ?></th></tr>
<?php <?php
reset($r); reset($r);
$col=1; $col=1;
@ -73,21 +68,25 @@ while (list($key,$val)=each($r))
{ {
$col=3-$col; $col=3-$col;
?> ?>
<dl class="ftp-account"> <tr class="lst<?php echo $col; ?>">
<dt><input type="checkbox" class="inc" id="del_<?php echo <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>
$val["id"]; ?>" name="del_<?php echo $val["id"]; ?>" value="<?php <td class="center"><a href="ftp_edit.php?id=<?php echo $val["id"] ?>"><img src="images/edit.png" alt="<?php __("Edit"); ?>" /></a></td>
echo $val["id"]; ?>" /><?php __("Username"); ?>:<strong> <label <td><label for="del_<?php echo $val["id"]; ?>"><?php echo $val["login"] ?></label></td>
for="del_<?php echo $val["id"]; ?>"><?php echo $val["login"] <td><code>/<?php echo $val["dir"] ?></code></td>
?></label></strong></dt> </tr>
<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>
<?php <?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> </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"); ?>

View File

@ -32,8 +32,14 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
<head> <head>
<title>Bureau</title> <title>Bureau</title>
<link rel="stylesheet" href="styles/base.css" type="text/css" /> <link rel="stylesheet" href="styles/style.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" /> <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<script type="text/javascript" language="javascript" src="/admin/js/alternc.js"> <script type="text/javascript" src="js/alternc.js"></script>
</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">

Binary file not shown.

After

Width:  |  Height:  |  Size: 43 B

BIN
bureau/admin/hoster.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.9 KiB

View File

@ -28,24 +28,21 @@
---------------------------------------------------------------------- ----------------------------------------------------------------------
*/ */
require_once("../class/config.php"); require_once("../class/config.php");
include_once("head.php");
include("head.php");
?> ?>
</head>
<body>
<h3><?php __("Protect a folder"); ?></h3> <h3><?php __("Protect a folder"); ?></h3>
<p> <p>
<?php __("The folder must exists."); ?> <?php __("The folder must exists."); ?>
</p> </p>
<?php <?php
if ($error) { if ($error) {
echo "<p class=\"error\">$error</p></body></html>"; echo "<p class=\"error\">$error</p>";
include_once("foot.php");
exit; exit;
} }
?> ?>
<form method="post" action="hta_doadd.php" name="main" id="main">
<form method="post" action="hta_doadd.php" name="main">
<table border="1" cellspacing="0" cellpadding="4"> <table border="1" cellspacing="0" cellpadding="4">
<tr> <tr>
<td><label for="dir"><?php __("Folder"); ?></label></td> <td><label for="dir"><?php __("Folder"); ?></label></td>
@ -56,10 +53,10 @@ include("head.php");
// --> // -->
</script></td> </script></td>
</tr> </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> </table>
</form> </form>
<script type="text/javascript">
</body> document.forms['main'].dir.focus();
</html> </script>
<?php include_once("foot.php"); ?>

View File

@ -28,12 +28,14 @@
---------------------------------------------------------------------- ----------------------------------------------------------------------
*/ */
require_once("../class/config.php"); 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> <h3><?php printf(_("Adding a username in %s"),$dir); ?></h3>
<?php <?php
if ($error) { 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"> <table border="1" cellspacing="0" cellpadding="4">
<tr><td><input type="hidden" name="dir" value="<?php echo $dir ?>" /> <tr>
<?php __("Folder"); ?></td><td><code><?php echo $dir; ?></code></td></tr> <td><input type="hidden" name="dir" value="<?php echo $dir ?>" /><?php __("Folder"); ?></td>
<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> <td><code><?php echo $dir; ?></code></td>
<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>
<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>
<tr><td colspan="2"><input type="submit" class="inb" value="<?php __("Add this user"); ?>" /></td></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> </table>
</form> </form>
<script type="text/javascript">
</body> document.forms['main'].user.focus();
</html> </script>
<?php include_once("foot.php"); ?>

View File

@ -28,6 +28,14 @@
---------------------------------------------------------------------- ----------------------------------------------------------------------
*/ */
require_once("../class/config.php"); 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) { if ($newpass != $newpassconf) {
$error = _("Passwords do not match"); $error = _("Passwords do not match");
@ -38,10 +46,8 @@ if ($newpass != $newpassconf) {
if (!$hta->change_pass($user,$newpass,$dir)) { if (!$hta->change_pass($user,$newpass,$dir)) {
$error=$err->errstr(); $error=$err->errstr();
} }
include("head.php");
?> ?>
</head>
<body>
<h3><?php printf(_("Change the user %s in the protected folder %s"),$user,$dir); ?></h3> <h3><?php printf(_("Change the user %s in the protected folder %s"),$user,$dir); ?></h3>
<?php <?php
if ($error) { if ($error) {
@ -52,6 +58,4 @@ include("head.php");
} }
echo "<p><a href=\"hta_edit.php?dir=$dir\">"._("Click here to continue")."</a></p>"; echo "<p><a href=\"hta_edit.php?dir=$dir\">"._("Click here to continue")."</a></p>";
?> ?>
</body> <?php include_once("foot.php"); ?>
</html>

View File

@ -28,6 +28,12 @@
---------------------------------------------------------------------- ----------------------------------------------------------------------
*/ */
require_once("../class/config.php"); require_once("../class/config.php");
include_once("head.php");
$fields = array (
"dir" => array ("request", "string", ""),
);
getFields($fields);
if (!$dir) { if (!$dir) {
$error=_("No folder selected!"); $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> <h3><?php printf(_("List of authorized user in folder %s"),$dir); ?></h3>
<?php <?php
if (!count($r)) { if (!count($r)) {
echo "<p class=\"error\">".sprintf(_("No authorized user in %s"),$dir)."</p>"; 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 "<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(); exit();
} }
reset($r); reset($r);
@ -55,8 +59,10 @@ reset($r);
?> ?>
<form method="post" action="hta_dodeluser.php"> <form method="post" action="hta_dodeluser.php">
<table cellspacing="0" cellpadding="4"> <table cellspacing="0" cellpadding="4">
<tr><th colspan="2" ><input type="hidden" name="dir" value="<?php echo $dir?>"> <tr>
&nbsp;</th><th><?php __("Username"); ?></th></tr> <th colspan="2" ><input type="hidden" name="dir" value="<?php echo $dir?>">&nbsp;</th>
<th><?php __("Username"); ?></th>
</tr>
<?php <?php
$col=1; $col=1;
@ -65,7 +71,7 @@ for($i=0;$i<count($r);$i++){
?> ?>
<tr class="lst<?php echo $col; ?>"> <tr class="lst<?php echo $col; ?>">
<td align="center"><input type="checkbox" class="inc" name="d[]"" value="<?php echo $r[$i]?>" /></td> <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]?>&amp;dir=<?php echo $dir?>"><?php __("Edit"); ?></a></td> <td><a href="hta_edituser.php?user=<?php echo $r[$i]?>&amp;dir=<?php echo $dir?>"><img src="images/edit.png" alt="<?php __("Edit"); ?>" /></a></td>
<td><?php echo $r[$i]; ?></td> <td><?php echo $r[$i]; ?></td>
</tr> </tr>
<?php <?php
@ -81,5 +87,4 @@ for($i=0;$i<count($r);$i++){
<p> <p>
<small><a href="bro_main.php?R=<?php echo $dir ?>"><?php __("File browser"); ?></a></small> <small><a href="bro_main.php?R=<?php echo $dir ?>"><?php __("File browser"); ?></a></small>
</p> </p>
</body> <?php include_once("foot.php"); ?>
</html>

View File

@ -28,12 +28,15 @@
---------------------------------------------------------------------- ----------------------------------------------------------------------
*/ */
require_once("../class/config.php"); 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> <h3><?php printf(_("Editing user %s in the protected folder %s"),$user,$dir); ?></h3>
<?php <?php
if ($error) { 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> <tr><td colspan="2"><input type="submit" class="inb" value="<?php __("Change the password"); ?>" /></td></tr>
</table> </table>
</form> </form>
</body> <?php include_once("foot.php"); ?>
</html>

View File

@ -28,6 +28,7 @@
---------------------------------------------------------------------- ----------------------------------------------------------------------
*/ */
require_once("../class/config.php"); require_once("../class/config.php");
include_once("head.php");
if (!$r=$hta->ListDir()) { if (!$r=$hta->ListDir()) {
$error=$err->errstr(); $error=$err->errstr();
@ -36,27 +37,25 @@ else {
reset($r); reset($r);
} }
include("head.php");
?> ?>
</head>
<body>
<h3><?php __("Protected folders list"); ?></h3> <h3><?php __("Protected folders list"); ?></h3>
<?php <?php
if ($error) { if ($error) {
echo "<p class=\"error\">$error</p></body></html>"; echo "<p class=\"error\">$error</p>";
} }
if (!is_array($r)) { if (!is_array($r)) {
echo "<p><a href=\"hta_add.php\">"._("Protect a folder")."</a><br />"; echo "<p><a href=\"hta_add.php\">"._("Protect a folder")."</a><br />";
$mem->show_help("hta_list"); $mem->show_help("hta_list");
echo "</p></body></html>"; echo "</p>";
include_once("foot.php");
exit(); exit();
} }
?> ?>
<p> <p>
<?php __("help_hta_list"); <?php __("help_hta_list");
$mem->show_help("hta_list2"); $mem->show_help("hta_list2");
?> ?>
</p> </p>
@ -73,7 +72,7 @@ for($i=0;$i<count($r);$i++){
?> ?>
<tr class="lst<?php echo $col; ?>"> <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 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> <td><code><?php echo "$r[$i]"?></code></td>
</tr> </tr>
<?php <?php
@ -88,5 +87,4 @@ for($i=0;$i<count($r);$i++){
<p> <p>
<?php $mem->show_help("hta_list"); ?> <?php $mem->show_help("hta_list"); ?>
</p> </p>
</body> <?php include_once("foot.php"); ?>
</html>

BIN
bureau/admin/images/admin.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 734 B

BIN
bureau/admin/images/bgborder.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 B

BIN
bureau/admin/images/blank.gif Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 B

BIN
bureau/admin/images/config.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 646 B

BIN
bureau/admin/images/delete.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 825 B

BIN
bureau/admin/images/dom.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 831 B

BIN
bureau/admin/images/edit.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 741 B

BIN
bureau/admin/images/exit.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 776 B

BIN
bureau/admin/images/folder.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 739 B

BIN
bureau/admin/images/folderhta.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 753 B

BIN
bureau/admin/images/ftp.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 753 B

BIN
bureau/admin/images/help.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 801 B

BIN
bureau/admin/images/home.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 715 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 852 B

BIN
bureau/admin/images/mail.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 743 B

BIN
bureau/admin/images/minus.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 B

BIN
bureau/admin/images/mysql.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 564 B

BIN
bureau/admin/images/new.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 390 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 703 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 49 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 753 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 892 B

BIN
bureau/admin/images/orig/dom.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 925 B

BIN
bureau/admin/images/orig/edit.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 946 B

BIN
bureau/admin/images/orig/exit.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 882 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

BIN
bureau/admin/images/orig/ftp.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 837 B

BIN
bureau/admin/images/orig/help.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 997 B

BIN
bureau/admin/images/orig/home.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 713 B

BIN
bureau/admin/images/orig/mail.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1001 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 902 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 683 B

BIN
bureau/admin/images/orig/new.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 483 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 693 B

BIN
bureau/admin/images/orig/plus.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 728 B

BIN
bureau/admin/images/orig/stat.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 624 B

BIN
bureau/admin/images/password.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 612 B

BIN
bureau/admin/images/plus.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 185 B

BIN
bureau/admin/images/quota.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 556 B

BIN
bureau/admin/images/stat.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 499 B

Some files were not shown because too many files have changed in this diff Show More