Continue de ranger le panel au bon endroit

This commit is contained in:
Alan Garcia 2013-02-18 11:57:56 +00:00
parent c850a2cff5
commit 57d93e600e
6 changed files with 7 additions and 7 deletions

View File

@ -234,7 +234,7 @@ if (!$r['noerase']) {
<h3><?php __("Domain removal"); ?></h3> <h3><?php __("Domain removal"); ?></h3>
<br /> <br />
<?php printf(_("help_domain_del %s"),$domain); ?><br /> <?php printf(_("If you want to destroy the domain %s, click on the button below. Warning: this also deletes all FTP accounts, email, mailing lists associated with the domain and subdomains."),$domain); ?><br />
<form action="dom_dodel.php?domain=<?php echo urlencode($domain) ?>" method="post"> <form action="dom_dodel.php?domain=<?php echo urlencode($domain) ?>" method="post">
<p> <p>
<input type="submit" class="inb" name="detruire" value="<?php printf(_("Delete %s from this server"),$domain); ?>" /> <input type="submit" class="inb" name="detruire" value="<?php printf(_("Delete %s from this server"),$domain); ?>" />

View File

@ -54,7 +54,7 @@ define('ALTERNC_MAIL', "/var/alternc/mail");
define('ALTERNC_HTML', "/var/alternc/html"); define('ALTERNC_HTML', "/var/alternc/html");
define('ALTERNC_PANEL', "/usr/lib/alternc/panel"); define('ALTERNC_PANEL', "/usr/lib/alternc/panel");
define('ALTERNC_LOGS', "/var/alternc/logs"); define('ALTERNC_LOGS', "/var/alternc/logs");
define('ALTERNC_LOCALES', "/var/alternc/bureau/locales"); define('ALTERNC_LOCALES', ALTERNC_PANEL."/locales");
/* Toutes les pages du bureau passent ici. On utilise une sémaphore pour /* Toutes les pages du bureau passent ici. On utilise une sémaphore pour
s'assurer que personne ne pourra accéder à 2 pages du bureau en même temps. s'assurer que personne ne pourra accéder à 2 pages du bureau en même temps.

View File

@ -23,7 +23,7 @@ ScriptAlias /cgi-bin/ /var/alternc/cgi-bin/
AddHandler cgi-script .cgi AddHandler cgi-script .cgi
</Directory> </Directory>
<Directory /var/alternc/bureau/admin/> <Directory /usr/lib/alternc/panel/admin/>
Order allow,deny Order allow,deny
Allow from all Allow from all
@ -31,7 +31,7 @@ ScriptAlias /cgi-bin/ /var/alternc/cgi-bin/
php_admin_flag safe_mode off php_admin_flag safe_mode off
AddDefaultCharset UTF-8 AddDefaultCharset UTF-8
# open_basedir allows access to specifics directories. We need to grant access to these directories for alternc, awstats, mailman... # open_basedir allows access to specifics directories. We need to grant access to these directories for alternc, awstats, mailman...
php_admin_value open_basedir /usr/share/alternc-mailman/patches/:/etc/alternc/:/var/run/alternc/:/var/alternc/bureau/:/var/alternc/html/:/var/alternc/tmp:/tmp:/usr/share/php/:/var/cache/alternc-webalizer/:/etc/locale.gen:/var/log/alternc/bureau.log:/var/log/alternc/update_domains.log:/var/alternc/logs/:/etc/awstats/ php_admin_value open_basedir /usr/share/alternc-mailman/patches/:/etc/alternc/:/var/run/alternc/:/usr/lib/alternc/panel/:/var/alternc/html/:/var/alternc/tmp:/tmp:/usr/share/php/:/var/cache/alternc-webalizer/:/etc/locale.gen:/var/log/alternc/bureau.log:/var/log/alternc/update_domains.log:/var/alternc/logs/:/etc/awstats/
</Directory> </Directory>

View File

@ -14,7 +14,7 @@
* /etc/phpmyadmin/config.inc.php * /etc/phpmyadmin/config.inc.php
*/ */
include_once('/var/alternc/bureau/class/local.php'); include_once('/usr/lib/alternc/panel/class/local.php');
$cfg['SuhosinDisableWarning'] = true; $cfg['SuhosinDisableWarning'] = true;
$cfg['ShowCreateDb'] = false; $cfg['ShowCreateDb'] = false;
$cfg['ShowChgPassword'] = false; $cfg['ShowChgPassword'] = false;

View File

@ -2,7 +2,7 @@
AssignUserId alterncpanel alterncpanel AssignUserId alterncpanel alterncpanel
SetEnv LOGIN "0000-panel" SetEnv LOGIN "0000-panel"
DocumentRoot /var/alternc/bureau/admin DocumentRoot /usr/lib/alternc/panel/admin
ServerName %%fqdn%% ServerName %%fqdn%%
RewriteEngine on RewriteEngine on
RewriteRule ^/admin/(.*) /$1 [R=301,L] RewriteRule ^/admin/(.*) /$1 [R=301,L]

View File

@ -1,5 +1,5 @@
<VirtualHost *:80> <VirtualHost *:80>
DocumentRoot /var/alternc/bureau/admin DocumentRoot /usr/lib/alternc/panel/admin
AssignUserId alterncpanel alterncpanel AssignUserId alterncpanel alterncpanel
SetEnv LOGIN "%%UID%%-%%LOGIN%%" SetEnv LOGIN "%%UID%%-%%LOGIN%%"
ServerName %%fqdn%% ServerName %%fqdn%%