AlternC Plugin are now part of AlternC svn repository\n Migration Phase 2
|
@ -0,0 +1,438 @@
|
||||||
|
* text=auto !eol
|
||||||
|
/BUILD -text
|
||||||
|
/COPYING -text
|
||||||
|
/HACKING -text
|
||||||
|
/README -text
|
||||||
|
/TODO -text
|
||||||
|
aide/bin/build.sh -text
|
||||||
|
aide/bin/frames.dsl -text
|
||||||
|
aide/brouteur.sgml -text
|
||||||
|
aide/domain.sgml -text
|
||||||
|
aide/ftp.sgml -text
|
||||||
|
aide/index.sgml -text
|
||||||
|
aide/sommaire.sgml -text
|
||||||
|
aide/stats.sgml -text
|
||||||
|
aide/test.sgml -text
|
||||||
|
bureau/admin/adm_add.php -text
|
||||||
|
bureau/admin/adm_defquotas.php -text
|
||||||
|
bureau/admin/adm_del.php -text
|
||||||
|
bureau/admin/adm_doadd.php -text
|
||||||
|
bureau/admin/adm_dodefquotas.php -text
|
||||||
|
bureau/admin/adm_dodel.php -text
|
||||||
|
bureau/admin/adm_doedit.php -text
|
||||||
|
bureau/admin/adm_domlock.php -text
|
||||||
|
bureau/admin/adm_doms.php -text
|
||||||
|
bureau/admin/adm_donosu.php -text
|
||||||
|
bureau/admin/adm_dorenew.php -text
|
||||||
|
bureau/admin/adm_dosu.php -text
|
||||||
|
bureau/admin/adm_edit.php -text
|
||||||
|
bureau/admin/adm_list.php -text
|
||||||
|
bureau/admin/adm_login.php -text
|
||||||
|
bureau/admin/adm_panel.php -text
|
||||||
|
bureau/admin/adm_quotadoedit.php -text
|
||||||
|
bureau/admin/adm_quotaedit.php -text
|
||||||
|
bureau/admin/adm_slaveaccount.php -text
|
||||||
|
bureau/admin/adm_slaveip.php -text
|
||||||
|
bureau/admin/adm_tld.php -text
|
||||||
|
bureau/admin/adm_tldadd.php -text
|
||||||
|
bureau/admin/adm_tlddoadd.php -text
|
||||||
|
bureau/admin/adm_tlddoedit.php -text
|
||||||
|
bureau/admin/adm_tldedit.php -text
|
||||||
|
bureau/admin/adm_variables.php -text
|
||||||
|
bureau/admin/aide/files/browser_set.png -text
|
||||||
|
bureau/admin/aide/files/ftp_add.png -text
|
||||||
|
bureau/admin/aide/files/ftp_list.png -text
|
||||||
|
bureau/admin/aide/files/readme -text
|
||||||
|
bureau/admin/aide/files/sta_add.png -text
|
||||||
|
bureau/admin/aide/files/sta_view1.png -text
|
||||||
|
bureau/admin/aide/files/sta_view2.png -text
|
||||||
|
bureau/admin/aide/help.php -text
|
||||||
|
bureau/admin/aide/help.png -text
|
||||||
|
bureau/admin/aide/html/book1.html -text
|
||||||
|
bureau/admin/aide/html/c126.html -text
|
||||||
|
bureau/admin/aide/html/c18.html -text
|
||||||
|
bureau/admin/aide/html/c26.html -text
|
||||||
|
bureau/admin/aide/html/c72.html -text
|
||||||
|
bureau/admin/aide/html/c84.html -text
|
||||||
|
bureau/admin/aide/html/docbook.css -text
|
||||||
|
bureau/admin/aide/html/files/browser_set.png -text
|
||||||
|
bureau/admin/aide/html/files/ftp_add.png -text
|
||||||
|
bureau/admin/aide/html/files/ftp_list.png -text
|
||||||
|
bureau/admin/aide/html/files/readme -text
|
||||||
|
bureau/admin/aide/html/files/sta_add.png -text
|
||||||
|
bureau/admin/aide/html/files/sta_view1.png -text
|
||||||
|
bureau/admin/aide/html/files/sta_view2.png -text
|
||||||
|
bureau/admin/aide/html/frameset.html -text
|
||||||
|
bureau/admin/aide/html/plus.gif -text
|
||||||
|
bureau/admin/aide/html/tiret.gif -text
|
||||||
|
bureau/admin/aide/html/toc.htm -text
|
||||||
|
bureau/admin/aide/html/x105.html -text
|
||||||
|
bureau/admin/aide/html/x23.html -text
|
||||||
|
bureau/admin/aide/html/x53.html -text
|
||||||
|
bureau/admin/aide/inline/docbook.css -text
|
||||||
|
bureau/admin/aide/inline/frameset.html -text
|
||||||
|
bureau/admin/aide/inline/plus.gif -text
|
||||||
|
bureau/admin/aide/inline/tiret.gif -text
|
||||||
|
bureau/admin/alternc.png -text
|
||||||
|
bureau/admin/bro_editor.php -text
|
||||||
|
bureau/admin/bro_main.php -text
|
||||||
|
bureau/admin/bro_pref.php -text
|
||||||
|
bureau/admin/bro_tgzdown.php -text
|
||||||
|
bureau/admin/bro_view.php -text
|
||||||
|
bureau/admin/browseforfolder.php -text
|
||||||
|
bureau/admin/direct.php -text
|
||||||
|
bureau/admin/dom_add.php -text
|
||||||
|
bureau/admin/dom_doadd.php -text
|
||||||
|
bureau/admin/dom_dodel.php -text
|
||||||
|
bureau/admin/dom_edit.php -text
|
||||||
|
bureau/admin/dom_editdns.php -text
|
||||||
|
bureau/admin/dom_subdel.php -text
|
||||||
|
bureau/admin/dom_subdodel.php -text
|
||||||
|
bureau/admin/dom_subdoedit.php -text
|
||||||
|
bureau/admin/dom_subedit.php -text
|
||||||
|
bureau/admin/domlist.php -text
|
||||||
|
bureau/admin/ftp_add.php -text
|
||||||
|
bureau/admin/ftp_del.php -text
|
||||||
|
bureau/admin/ftp_doadd.php -text
|
||||||
|
bureau/admin/ftp_doedit.php -text
|
||||||
|
bureau/admin/ftp_edit.php -text
|
||||||
|
bureau/admin/ftp_list.php -text
|
||||||
|
bureau/admin/head.php -text
|
||||||
|
bureau/admin/hta_add.php -text
|
||||||
|
bureau/admin/hta_adduser.php -text
|
||||||
|
bureau/admin/hta_del.php -text
|
||||||
|
bureau/admin/hta_doadd.php -text
|
||||||
|
bureau/admin/hta_doadduser.php -text
|
||||||
|
bureau/admin/hta_dodeluser.php -text
|
||||||
|
bureau/admin/hta_doedituser.php -text
|
||||||
|
bureau/admin/hta_edit.php -text
|
||||||
|
bureau/admin/hta_edituser.php -text
|
||||||
|
bureau/admin/hta_list.php -text
|
||||||
|
bureau/admin/icon/browse.png -text
|
||||||
|
bureau/admin/icon/delfile.png -text
|
||||||
|
bureau/admin/icon/doc.png -text
|
||||||
|
bureau/admin/icon/encrypted.png -text
|
||||||
|
bureau/admin/icon/exe.png -text
|
||||||
|
bureau/admin/icon/file.png -text
|
||||||
|
bureau/admin/icon/folder.png -text
|
||||||
|
bureau/admin/icon/htm.png -text
|
||||||
|
bureau/admin/icon/jpg.png -text
|
||||||
|
bureau/admin/icon/m3u.png -text
|
||||||
|
bureau/admin/icon/move.png -text
|
||||||
|
bureau/admin/icon/newfile.png -text
|
||||||
|
bureau/admin/icon/newfolder.png -text
|
||||||
|
bureau/admin/icon/newhtml.png -text
|
||||||
|
bureau/admin/icon/openfold.png -text
|
||||||
|
bureau/admin/icon/pdf.png -text
|
||||||
|
bureau/admin/icon/php.png -text
|
||||||
|
bureau/admin/icon/ppt.png -text
|
||||||
|
bureau/admin/icon/properties.png -text
|
||||||
|
bureau/admin/icon/protect.png -text
|
||||||
|
bureau/admin/icon/ra.png -text
|
||||||
|
bureau/admin/icon/selall.png -text
|
||||||
|
bureau/admin/icon/sort0.png -text
|
||||||
|
bureau/admin/icon/sort1.png -text
|
||||||
|
bureau/admin/icon/swf.png -text
|
||||||
|
bureau/admin/icon/sxc.png -text
|
||||||
|
bureau/admin/icon/sxd.png -text
|
||||||
|
bureau/admin/icon/sxi.png -text
|
||||||
|
bureau/admin/icon/sxw.png -text
|
||||||
|
bureau/admin/icon/txt.png -text
|
||||||
|
bureau/admin/icon/wav.png -text
|
||||||
|
bureau/admin/icon/winresize.gif -text
|
||||||
|
bureau/admin/icon/xls.png -text
|
||||||
|
bureau/admin/icon/zip.png -text
|
||||||
|
bureau/admin/index.php -text
|
||||||
|
bureau/admin/js/alternc.js -text
|
||||||
|
bureau/admin/js/wz_dragdrop.js -text
|
||||||
|
bureau/admin/login.php -text
|
||||||
|
bureau/admin/lst_addown.php -text
|
||||||
|
bureau/admin/lst_addsub.php -text
|
||||||
|
bureau/admin/lst_addsub1.php -text
|
||||||
|
bureau/admin/lst_affallsub.php -text
|
||||||
|
bureau/admin/lst_affsub.php -text
|
||||||
|
bureau/admin/lst_delown.php -text
|
||||||
|
bureau/admin/lst_delsub.php -text
|
||||||
|
bureau/admin/lst_doedit.php -text
|
||||||
|
bureau/admin/lst_doeditsub.php -text
|
||||||
|
bureau/admin/lst_doedittxt.php -text
|
||||||
|
bureau/admin/lst_downsub.php -text
|
||||||
|
bureau/admin/lst_owner.php -text
|
||||||
|
bureau/admin/lst_subscribers.php -text
|
||||||
|
bureau/admin/mail_add.php -text
|
||||||
|
bureau/admin/mail_doadd.php -text
|
||||||
|
bureau/admin/mail_dodel.php -text
|
||||||
|
bureau/admin/mail_doedit.php -text
|
||||||
|
bureau/admin/mail_edit.php -text
|
||||||
|
bureau/admin/mail_list.php -text
|
||||||
|
bureau/admin/main.php -text
|
||||||
|
bureau/admin/mem_admin.php -text
|
||||||
|
bureau/admin/mem_chgmail.php -text
|
||||||
|
bureau/admin/mem_cm.php -text
|
||||||
|
bureau/admin/mem_cm2.php -text
|
||||||
|
bureau/admin/mem_logout.php -text
|
||||||
|
bureau/admin/mem_param.php -text
|
||||||
|
bureau/admin/mem_passwd.php -text
|
||||||
|
bureau/admin/menu.php -text
|
||||||
|
bureau/admin/menu_adm.php -text
|
||||||
|
bureau/admin/menu_aide.php -text
|
||||||
|
bureau/admin/menu_brouteur.php -text
|
||||||
|
bureau/admin/menu_dom.php -text
|
||||||
|
bureau/admin/menu_ftp.php -text
|
||||||
|
bureau/admin/menu_mail.php -text
|
||||||
|
bureau/admin/menu_mem.php -text
|
||||||
|
bureau/admin/menu_quota.php -text
|
||||||
|
bureau/admin/menu_sql.php -text
|
||||||
|
bureau/admin/menu_sta2.php -text
|
||||||
|
bureau/admin/menu_web.php -text
|
||||||
|
bureau/admin/quota_show.php -text
|
||||||
|
bureau/admin/quota_show_all.php -text
|
||||||
|
bureau/admin/sql_add.php -text
|
||||||
|
bureau/admin/sql_addmain.php -text
|
||||||
|
bureau/admin/sql_admin.php -text
|
||||||
|
bureau/admin/sql_bck.php -text
|
||||||
|
bureau/admin/sql_del.php -text
|
||||||
|
bureau/admin/sql_doadd.php -text
|
||||||
|
bureau/admin/sql_dobck.php -text
|
||||||
|
bureau/admin/sql_dorestore.php -text
|
||||||
|
bureau/admin/sql_getparam.php -text
|
||||||
|
bureau/admin/sql_list.php -text
|
||||||
|
bureau/admin/sql_pass.php -text
|
||||||
|
bureau/admin/sql_passchg.php -text
|
||||||
|
bureau/admin/sql_restore.php -text
|
||||||
|
bureau/admin/sta2_add_raw.php -text
|
||||||
|
bureau/admin/sta2_del_raw.php -text
|
||||||
|
bureau/admin/sta2_doadd_raw.php -text
|
||||||
|
bureau/admin/sta2_doedit_raw.php -text
|
||||||
|
bureau/admin/sta2_edit_raw.php -text
|
||||||
|
bureau/admin/sta2_list.php -text
|
||||||
|
bureau/admin/styles/style.css -text
|
||||||
|
bureau/admin/template.php -text
|
||||||
|
bureau/admin/web_list.php -text
|
||||||
|
bureau/admin/webmail/.htaccess -text
|
||||||
|
bureau/admin/webmail/index.php -text
|
||||||
|
bureau/class/config.php -text
|
||||||
|
bureau/class/config_nochk.php -text
|
||||||
|
bureau/class/config_real.php -text
|
||||||
|
bureau/class/db_mysql.php -text
|
||||||
|
bureau/class/export_account.php -text
|
||||||
|
bureau/class/functions.php -text
|
||||||
|
bureau/class/lang_env.php -text
|
||||||
|
bureau/class/local.php -text
|
||||||
|
bureau/class/m_admin.php -text
|
||||||
|
bureau/class/m_bro.php -text
|
||||||
|
bureau/class/m_dom.php -text
|
||||||
|
bureau/class/m_err.php -text
|
||||||
|
bureau/class/m_ftp.php -text
|
||||||
|
bureau/class/m_hta.php -text
|
||||||
|
bureau/class/m_mail.php -text
|
||||||
|
bureau/class/m_mem.php -text
|
||||||
|
bureau/class/m_mysql.php -text
|
||||||
|
bureau/class/m_quota.php -text
|
||||||
|
bureau/class/m_sta2.php -text
|
||||||
|
bureau/class/mime.php -text
|
||||||
|
bureau/class/reset_stats_conf.php -text
|
||||||
|
bureau/class/variables.php -text
|
||||||
|
bureau/head.php -text
|
||||||
|
bureau/index.php -text
|
||||||
|
bureau/locales/README -text
|
||||||
|
bureau/locales/admin.po -text
|
||||||
|
bureau/locales/admin_manual.po -text
|
||||||
|
bureau/locales/bro.po -text
|
||||||
|
bureau/locales/bromime.po -text
|
||||||
|
bureau/locales/de_DE/LC_MESSAGES/alternc.po -text
|
||||||
|
bureau/locales/dom.po -text
|
||||||
|
bureau/locales/dom_manual.po -text
|
||||||
|
bureau/locales/en_US/LC_MESSAGES/admin.po -text
|
||||||
|
bureau/locales/en_US/LC_MESSAGES/bro.po -text
|
||||||
|
bureau/locales/en_US/LC_MESSAGES/dom.po -text
|
||||||
|
bureau/locales/en_US/LC_MESSAGES/err.po -text
|
||||||
|
bureau/locales/en_US/LC_MESSAGES/ftp.po -text
|
||||||
|
bureau/locales/en_US/LC_MESSAGES/head.txt -text
|
||||||
|
bureau/locales/en_US/LC_MESSAGES/hta.po -text
|
||||||
|
bureau/locales/en_US/LC_MESSAGES/mail.po -text
|
||||||
|
bureau/locales/en_US/LC_MESSAGES/main.po -text
|
||||||
|
bureau/locales/en_US/LC_MESSAGES/mem.po -text
|
||||||
|
bureau/locales/en_US/LC_MESSAGES/mysql.po -text
|
||||||
|
bureau/locales/en_US/LC_MESSAGES/sta2.po -text
|
||||||
|
bureau/locales/es_ES/LC_MESSAGES/admin.po -text
|
||||||
|
bureau/locales/es_ES/LC_MESSAGES/bro.po -text
|
||||||
|
bureau/locales/es_ES/LC_MESSAGES/dom.po -text
|
||||||
|
bureau/locales/es_ES/LC_MESSAGES/err.po -text
|
||||||
|
bureau/locales/es_ES/LC_MESSAGES/ftp.po -text
|
||||||
|
bureau/locales/es_ES/LC_MESSAGES/head.txt -text
|
||||||
|
bureau/locales/es_ES/LC_MESSAGES/hta.po -text
|
||||||
|
bureau/locales/es_ES/LC_MESSAGES/mail.po -text
|
||||||
|
bureau/locales/es_ES/LC_MESSAGES/main.po -text
|
||||||
|
bureau/locales/es_ES/LC_MESSAGES/mem.po -text
|
||||||
|
bureau/locales/es_ES/LC_MESSAGES/mysql.po -text
|
||||||
|
bureau/locales/es_ES/LC_MESSAGES/sta2.po -text
|
||||||
|
bureau/locales/es_VE/LC_MESSAGES/alternc.po -text
|
||||||
|
bureau/locales/es_VE/LC_MESSAGES/alternc_message.po -text
|
||||||
|
bureau/locales/fr_FR/LC_MESSAGES/admin.po -text
|
||||||
|
bureau/locales/fr_FR/LC_MESSAGES/admin_manual.po -text
|
||||||
|
bureau/locales/fr_FR/LC_MESSAGES/alternc -text
|
||||||
|
bureau/locales/fr_FR/LC_MESSAGES/bro.po -text
|
||||||
|
bureau/locales/fr_FR/LC_MESSAGES/bro_manual.po -text
|
||||||
|
bureau/locales/fr_FR/LC_MESSAGES/bromime.po -text
|
||||||
|
bureau/locales/fr_FR/LC_MESSAGES/dom.po -text
|
||||||
|
bureau/locales/fr_FR/LC_MESSAGES/dom_manual.po -text
|
||||||
|
bureau/locales/fr_FR/LC_MESSAGES/ftp.po -text
|
||||||
|
bureau/locales/fr_FR/LC_MESSAGES/ftp_manual.po -text
|
||||||
|
bureau/locales/fr_FR/LC_MESSAGES/head.txt -text
|
||||||
|
bureau/locales/fr_FR/LC_MESSAGES/hta.po -text
|
||||||
|
bureau/locales/fr_FR/LC_MESSAGES/hta_manual.po -text
|
||||||
|
bureau/locales/fr_FR/LC_MESSAGES/mail.po -text
|
||||||
|
bureau/locales/fr_FR/LC_MESSAGES/mail_manual.po -text
|
||||||
|
bureau/locales/fr_FR/LC_MESSAGES/main.po -text
|
||||||
|
bureau/locales/fr_FR/LC_MESSAGES/main_manual.po -text
|
||||||
|
bureau/locales/fr_FR/LC_MESSAGES/sql.po -text
|
||||||
|
bureau/locales/fr_FR/LC_MESSAGES/sql_manual.po -text
|
||||||
|
bureau/locales/fr_FR/LC_MESSAGES/sta2.po -text
|
||||||
|
bureau/locales/fr_FR/LC_MESSAGES/sta2_manual.po -text
|
||||||
|
bureau/locales/ftp.po -text
|
||||||
|
bureau/locales/ftp_manual.po -text
|
||||||
|
bureau/locales/hta.po -text
|
||||||
|
bureau/locales/hta_manual.po -text
|
||||||
|
bureau/locales/mail.po -text
|
||||||
|
bureau/locales/mail_manual.po -text
|
||||||
|
bureau/locales/main.po -text
|
||||||
|
bureau/locales/main_manual.po -text
|
||||||
|
bureau/locales/sql.po -text
|
||||||
|
bureau/locales/sql_manual.po -text
|
||||||
|
bureau/locales/sta2.po -text
|
||||||
|
bureau/locales/sta2_manual.po -text
|
||||||
|
bureau/locales/updatelang.sh -text
|
||||||
|
bureau/style.css -text
|
||||||
|
debian/.cvsignore -text
|
||||||
|
debian/README.Debian -text
|
||||||
|
debian/alternc.cron.d -text
|
||||||
|
debian/alternc.links -text
|
||||||
|
debian/alternc.logrotate -text
|
||||||
|
debian/changelog -text
|
||||||
|
debian/compat -text
|
||||||
|
debian/config -text
|
||||||
|
debian/control -text
|
||||||
|
debian/copyright -text
|
||||||
|
debian/dirs -text
|
||||||
|
debian/docs -text
|
||||||
|
debian/lintian-override -text
|
||||||
|
debian/po/POTFILES.in -text
|
||||||
|
debian/po/fr.po -text
|
||||||
|
debian/po/templates.pot -text
|
||||||
|
debian/postinst -text
|
||||||
|
debian/postrm -text
|
||||||
|
debian/preinst -text
|
||||||
|
debian/prerm -text
|
||||||
|
debian/rules -text
|
||||||
|
debian/templates -text
|
||||||
|
etc/alternc/apache-ssl.conf -text
|
||||||
|
etc/alternc/apache.conf -text
|
||||||
|
etc/alternc/menulist.txt -text
|
||||||
|
etc/alternc/phpmyadmin.inc.php -text
|
||||||
|
etc/alternc/templates/apache-ssl/httpd.conf -text
|
||||||
|
etc/alternc/templates/apache/httpd.conf -text
|
||||||
|
etc/alternc/templates/bind/automatic.conf -text
|
||||||
|
etc/alternc/templates/bind/named.conf -text
|
||||||
|
etc/alternc/templates/bind/slaveip.conf -text
|
||||||
|
etc/alternc/templates/bind/templates/mx.template -text
|
||||||
|
etc/alternc/templates/bind/templates/named.template -text
|
||||||
|
etc/alternc/templates/bind/templates/slave.template -text
|
||||||
|
etc/alternc/templates/bind/templates/zone.template -text
|
||||||
|
etc/alternc/templates/courier/authdaemonrc -text
|
||||||
|
etc/alternc/templates/courier/authmysqlrc -text
|
||||||
|
etc/alternc/templates/default/saslauthd -text
|
||||||
|
etc/alternc/templates/php4/apache/php.ini -text
|
||||||
|
etc/alternc/templates/php4/cgi/php.ini -text
|
||||||
|
etc/alternc/templates/postfix/ca.der -text
|
||||||
|
etc/alternc/templates/postfix/main.cf -text
|
||||||
|
etc/alternc/templates/postfix/myalias.cf -text
|
||||||
|
etc/alternc/templates/postfix/mydomain.cf -text
|
||||||
|
etc/alternc/templates/postfix/mygid.cf -text
|
||||||
|
etc/alternc/templates/postfix/myvirtual.cf -text
|
||||||
|
etc/alternc/templates/postfix/sasl/smtpd.conf -text
|
||||||
|
etc/alternc/templates/proftpd.conf -text
|
||||||
|
etc/alternc/templates/squirrelmail/apache.conf -text
|
||||||
|
etc/alternc/templates/welcome.msg -text
|
||||||
|
flags/de_DE.png -text
|
||||||
|
flags/en_UK.png -text
|
||||||
|
flags/en_US.png -text
|
||||||
|
flags/es_ES.png -text
|
||||||
|
flags/es_VE.png -text
|
||||||
|
flags/fr_CA.png -text
|
||||||
|
flags/fr_FR.png -text
|
||||||
|
install/alternc.install -text
|
||||||
|
install/body_checks -text
|
||||||
|
install/domaines.template -text
|
||||||
|
install/dopo.sh -text
|
||||||
|
install/header_checks -text
|
||||||
|
install/initrep.sh -text
|
||||||
|
install/local.php -text
|
||||||
|
install/mysql.sh -text
|
||||||
|
install/mysql.sql -text
|
||||||
|
install/newone.php -text
|
||||||
|
install/reset_root.php -text
|
||||||
|
install/upgrade_check.sh -text
|
||||||
|
install/upgrades/0.9.1.sh -text
|
||||||
|
install/upgrades/0.9.1.sql -text
|
||||||
|
install/upgrades/0.9.1_migrationldap.php -text
|
||||||
|
install/upgrades/0.9.2.php -text
|
||||||
|
install/upgrades/0.9.2.sql -text
|
||||||
|
install/upgrades/0.9.3.1.sql -text
|
||||||
|
install/upgrades/0.9.3.sql -text
|
||||||
|
install/upgrades/0.9.4.sql -text
|
||||||
|
install/upgrades/0.9.5.sh -text
|
||||||
|
install/upgrades/0.9.5.sql -text
|
||||||
|
install/upgrades/README -text
|
||||||
|
man/alternc-admintools.8 -text
|
||||||
|
man/alternc-admintools.fr.8 -text
|
||||||
|
man/alternc.install.8 -text
|
||||||
|
man/get_account_by_domain.8 -text
|
||||||
|
man/get_domains_by_account.8 -text
|
||||||
|
man/top_ftp_users.8 -text
|
||||||
|
man/top_ftp_users.fr.8 -text
|
||||||
|
man/top_http_users.8 -text
|
||||||
|
man/top_http_users.fr.8 -text
|
||||||
|
man/top_mysql_users.8 -text
|
||||||
|
man/top_mysql_users.fr.8 -text
|
||||||
|
modules/admin -text
|
||||||
|
modules/bro -text
|
||||||
|
modules/dom -text
|
||||||
|
modules/ftp -text
|
||||||
|
modules/hta -text
|
||||||
|
modules/mail -text
|
||||||
|
modules/main -text
|
||||||
|
modules/sql -text
|
||||||
|
modules/sta2 -text
|
||||||
|
po/alternc-admintools.fr.po -text
|
||||||
|
po/fr/LC_MESSAGES/alternc-admintools.mo -text
|
||||||
|
po/make_po -text
|
||||||
|
/quota_delete -text
|
||||||
|
/quota_init -text
|
||||||
|
/searchmissing.pot.sh -text
|
||||||
|
src/.cvsignore -text
|
||||||
|
src/Makefile -text
|
||||||
|
src/basedir_prot.sh -text
|
||||||
|
src/db_create.c -text
|
||||||
|
src/du.pl -text
|
||||||
|
src/mail_add.c -text
|
||||||
|
src/mail_del.c -text
|
||||||
|
src/mem_add.c -text
|
||||||
|
src/mem_del.c -text
|
||||||
|
src/quota_delete -text
|
||||||
|
src/quota_edit.c -text
|
||||||
|
src/quota_edit.sh -text
|
||||||
|
src/quota_get.c -text
|
||||||
|
src/quota_get.sh -text
|
||||||
|
src/quota_init -text
|
||||||
|
src/rawstat.daily -text
|
||||||
|
src/sendmail -text
|
||||||
|
src/slave_dns -text
|
||||||
|
src/sqlbackup.sh -text
|
||||||
|
src/update_domains.sh -text
|
||||||
|
tools/get_account_by_domain -text
|
||||||
|
tools/get_domains_by_account -text
|
||||||
|
tools/top_ftp_users -text
|
||||||
|
tools/top_http_users -text
|
||||||
|
tools/top_mysql_users -text
|
||||||
|
/updatepot.sh -text
|
|
@ -0,0 +1,23 @@
|
||||||
|
Build instructions
|
||||||
|
==================
|
||||||
|
|
||||||
|
1- get the source
|
||||||
|
|
||||||
|
# cvs co alternc
|
||||||
|
|
||||||
|
2- get the dependencies
|
||||||
|
|
||||||
|
You probably need at least dpkg-dev, dehelper and optionally fakeroot, to
|
||||||
|
build the package as non-root.
|
||||||
|
|
||||||
|
3- build the package
|
||||||
|
|
||||||
|
Should be as simple as calling dpkg-buildpackage now. The package will
|
||||||
|
be in ../alternc_<version>_<arch>.deb
|
||||||
|
|
||||||
|
You can verify the validity of the package using:
|
||||||
|
|
||||||
|
lintian -i ../*.deb
|
||||||
|
|
||||||
|
Warning: this will print out a lot of messages, since the package is
|
||||||
|
really not clean right now.
|
|
@ -0,0 +1,340 @@
|
||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
Version 2, June 1991
|
||||||
|
|
||||||
|
Copyright (C) 1989, 1991 Free Software Foundation, Inc.
|
||||||
|
59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
Everyone is permitted to copy and distribute verbatim copies
|
||||||
|
of this license document, but changing it is not allowed.
|
||||||
|
|
||||||
|
Preamble
|
||||||
|
|
||||||
|
The licenses for most software are designed to take away your
|
||||||
|
freedom to share and change it. By contrast, the GNU General Public
|
||||||
|
License is intended to guarantee your freedom to share and change free
|
||||||
|
software--to make sure the software is free for all its users. This
|
||||||
|
General Public License applies to most of the Free Software
|
||||||
|
Foundation's software and to any other program whose authors commit to
|
||||||
|
using it. (Some other Free Software Foundation software is covered by
|
||||||
|
the GNU Library General Public License instead.) You can apply it to
|
||||||
|
your programs, too.
|
||||||
|
|
||||||
|
When we speak of free software, we are referring to freedom, not
|
||||||
|
price. Our General Public Licenses are designed to make sure that you
|
||||||
|
have the freedom to distribute copies of free software (and charge for
|
||||||
|
this service if you wish), that you receive source code or can get it
|
||||||
|
if you want it, that you can change the software or use pieces of it
|
||||||
|
in new free programs; and that you know you can do these things.
|
||||||
|
|
||||||
|
To protect your rights, we need to make restrictions that forbid
|
||||||
|
anyone to deny you these rights or to ask you to surrender the rights.
|
||||||
|
These restrictions translate to certain responsibilities for you if you
|
||||||
|
distribute copies of the software, or if you modify it.
|
||||||
|
|
||||||
|
For example, if you distribute copies of such a program, whether
|
||||||
|
gratis or for a fee, you must give the recipients all the rights that
|
||||||
|
you have. You must make sure that they, too, receive or can get the
|
||||||
|
source code. And you must show them these terms so they know their
|
||||||
|
rights.
|
||||||
|
|
||||||
|
We protect your rights with two steps: (1) copyright the software, and
|
||||||
|
(2) offer you this license which gives you legal permission to copy,
|
||||||
|
distribute and/or modify the software.
|
||||||
|
|
||||||
|
Also, for each author's protection and ours, we want to make certain
|
||||||
|
that everyone understands that there is no warranty for this free
|
||||||
|
software. If the software is modified by someone else and passed on, we
|
||||||
|
want its recipients to know that what they have is not the original, so
|
||||||
|
that any problems introduced by others will not reflect on the original
|
||||||
|
authors' reputations.
|
||||||
|
|
||||||
|
Finally, any free program is threatened constantly by software
|
||||||
|
patents. We wish to avoid the danger that redistributors of a free
|
||||||
|
program will individually obtain patent licenses, in effect making the
|
||||||
|
program proprietary. To prevent this, we have made it clear that any
|
||||||
|
patent must be licensed for everyone's free use or not licensed at all.
|
||||||
|
|
||||||
|
The precise terms and conditions for copying, distribution and
|
||||||
|
modification follow.
|
||||||
|
|
||||||
|
GNU GENERAL PUBLIC LICENSE
|
||||||
|
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
|
||||||
|
|
||||||
|
0. This License applies to any program or other work which contains
|
||||||
|
a notice placed by the copyright holder saying it may be distributed
|
||||||
|
under the terms of this General Public License. The "Program", below,
|
||||||
|
refers to any such program or work, and a "work based on the Program"
|
||||||
|
means either the Program or any derivative work under copyright law:
|
||||||
|
that is to say, a work containing the Program or a portion of it,
|
||||||
|
either verbatim or with modifications and/or translated into another
|
||||||
|
language. (Hereinafter, translation is included without limitation in
|
||||||
|
the term "modification".) Each licensee is addressed as "you".
|
||||||
|
|
||||||
|
Activities other than copying, distribution and modification are not
|
||||||
|
covered by this License; they are outside its scope. The act of
|
||||||
|
running the Program is not restricted, and the output from the Program
|
||||||
|
is covered only if its contents constitute a work based on the
|
||||||
|
Program (independent of having been made by running the Program).
|
||||||
|
Whether that is true depends on what the Program does.
|
||||||
|
|
||||||
|
1. You may copy and distribute verbatim copies of the Program's
|
||||||
|
source code as you receive it, in any medium, provided that you
|
||||||
|
conspicuously and appropriately publish on each copy an appropriate
|
||||||
|
copyright notice and disclaimer of warranty; keep intact all the
|
||||||
|
notices that refer to this License and to the absence of any warranty;
|
||||||
|
and give any other recipients of the Program a copy of this License
|
||||||
|
along with the Program.
|
||||||
|
|
||||||
|
You may charge a fee for the physical act of transferring a copy, and
|
||||||
|
you may at your option offer warranty protection in exchange for a fee.
|
||||||
|
|
||||||
|
2. You may modify your copy or copies of the Program or any portion
|
||||||
|
of it, thus forming a work based on the Program, and copy and
|
||||||
|
distribute such modifications or work under the terms of Section 1
|
||||||
|
above, provided that you also meet all of these conditions:
|
||||||
|
|
||||||
|
a) You must cause the modified files to carry prominent notices
|
||||||
|
stating that you changed the files and the date of any change.
|
||||||
|
|
||||||
|
b) You must cause any work that you distribute or publish, that in
|
||||||
|
whole or in part contains or is derived from the Program or any
|
||||||
|
part thereof, to be licensed as a whole at no charge to all third
|
||||||
|
parties under the terms of this License.
|
||||||
|
|
||||||
|
c) If the modified program normally reads commands interactively
|
||||||
|
when run, you must cause it, when started running for such
|
||||||
|
interactive use in the most ordinary way, to print or display an
|
||||||
|
announcement including an appropriate copyright notice and a
|
||||||
|
notice that there is no warranty (or else, saying that you provide
|
||||||
|
a warranty) and that users may redistribute the program under
|
||||||
|
these conditions, and telling the user how to view a copy of this
|
||||||
|
License. (Exception: if the Program itself is interactive but
|
||||||
|
does not normally print such an announcement, your work based on
|
||||||
|
the Program is not required to print an announcement.)
|
||||||
|
|
||||||
|
These requirements apply to the modified work as a whole. If
|
||||||
|
identifiable sections of that work are not derived from the Program,
|
||||||
|
and can be reasonably considered independent and separate works in
|
||||||
|
themselves, then this License, and its terms, do not apply to those
|
||||||
|
sections when you distribute them as separate works. But when you
|
||||||
|
distribute the same sections as part of a whole which is a work based
|
||||||
|
on the Program, the distribution of the whole must be on the terms of
|
||||||
|
this License, whose permissions for other licensees extend to the
|
||||||
|
entire whole, and thus to each and every part regardless of who wrote it.
|
||||||
|
|
||||||
|
Thus, it is not the intent of this section to claim rights or contest
|
||||||
|
your rights to work written entirely by you; rather, the intent is to
|
||||||
|
exercise the right to control the distribution of derivative or
|
||||||
|
collective works based on the Program.
|
||||||
|
|
||||||
|
In addition, mere aggregation of another work not based on the Program
|
||||||
|
with the Program (or with a work based on the Program) on a volume of
|
||||||
|
a storage or distribution medium does not bring the other work under
|
||||||
|
the scope of this License.
|
||||||
|
|
||||||
|
3. You may copy and distribute the Program (or a work based on it,
|
||||||
|
under Section 2) in object code or executable form under the terms of
|
||||||
|
Sections 1 and 2 above provided that you also do one of the following:
|
||||||
|
|
||||||
|
a) Accompany it with the complete corresponding machine-readable
|
||||||
|
source code, which must be distributed under the terms of Sections
|
||||||
|
1 and 2 above on a medium customarily used for software interchange; or,
|
||||||
|
|
||||||
|
b) Accompany it with a written offer, valid for at least three
|
||||||
|
years, to give any third party, for a charge no more than your
|
||||||
|
cost of physically performing source distribution, a complete
|
||||||
|
machine-readable copy of the corresponding source code, to be
|
||||||
|
distributed under the terms of Sections 1 and 2 above on a medium
|
||||||
|
customarily used for software interchange; or,
|
||||||
|
|
||||||
|
c) Accompany it with the information you received as to the offer
|
||||||
|
to distribute corresponding source code. (This alternative is
|
||||||
|
allowed only for noncommercial distribution and only if you
|
||||||
|
received the program in object code or executable form with such
|
||||||
|
an offer, in accord with Subsection b above.)
|
||||||
|
|
||||||
|
The source code for a work means the preferred form of the work for
|
||||||
|
making modifications to it. For an executable work, complete source
|
||||||
|
code means all the source code for all modules it contains, plus any
|
||||||
|
associated interface definition files, plus the scripts used to
|
||||||
|
control compilation and installation of the executable. However, as a
|
||||||
|
special exception, the source code distributed need not include
|
||||||
|
anything that is normally distributed (in either source or binary
|
||||||
|
form) with the major components (compiler, kernel, and so on) of the
|
||||||
|
operating system on which the executable runs, unless that component
|
||||||
|
itself accompanies the executable.
|
||||||
|
|
||||||
|
If distribution of executable or object code is made by offering
|
||||||
|
access to copy from a designated place, then offering equivalent
|
||||||
|
access to copy the source code from the same place counts as
|
||||||
|
distribution of the source code, even though third parties are not
|
||||||
|
compelled to copy the source along with the object code.
|
||||||
|
|
||||||
|
4. You may not copy, modify, sublicense, or distribute the Program
|
||||||
|
except as expressly provided under this License. Any attempt
|
||||||
|
otherwise to copy, modify, sublicense or distribute the Program is
|
||||||
|
void, and will automatically terminate your rights under this License.
|
||||||
|
However, parties who have received copies, or rights, from you under
|
||||||
|
this License will not have their licenses terminated so long as such
|
||||||
|
parties remain in full compliance.
|
||||||
|
|
||||||
|
5. You are not required to accept this License, since you have not
|
||||||
|
signed it. However, nothing else grants you permission to modify or
|
||||||
|
distribute the Program or its derivative works. These actions are
|
||||||
|
prohibited by law if you do not accept this License. Therefore, by
|
||||||
|
modifying or distributing the Program (or any work based on the
|
||||||
|
Program), you indicate your acceptance of this License to do so, and
|
||||||
|
all its terms and conditions for copying, distributing or modifying
|
||||||
|
the Program or works based on it.
|
||||||
|
|
||||||
|
6. Each time you redistribute the Program (or any work based on the
|
||||||
|
Program), the recipient automatically receives a license from the
|
||||||
|
original licensor to copy, distribute or modify the Program subject to
|
||||||
|
these terms and conditions. You may not impose any further
|
||||||
|
restrictions on the recipients' exercise of the rights granted herein.
|
||||||
|
You are not responsible for enforcing compliance by third parties to
|
||||||
|
this License.
|
||||||
|
|
||||||
|
7. If, as a consequence of a court judgment or allegation of patent
|
||||||
|
infringement or for any other reason (not limited to patent issues),
|
||||||
|
conditions are imposed on you (whether by court order, agreement or
|
||||||
|
otherwise) that contradict the conditions of this License, they do not
|
||||||
|
excuse you from the conditions of this License. If you cannot
|
||||||
|
distribute so as to satisfy simultaneously your obligations under this
|
||||||
|
License and any other pertinent obligations, then as a consequence you
|
||||||
|
may not distribute the Program at all. For example, if a patent
|
||||||
|
license would not permit royalty-free redistribution of the Program by
|
||||||
|
all those who receive copies directly or indirectly through you, then
|
||||||
|
the only way you could satisfy both it and this License would be to
|
||||||
|
refrain entirely from distribution of the Program.
|
||||||
|
|
||||||
|
If any portion of this section is held invalid or unenforceable under
|
||||||
|
any particular circumstance, the balance of the section is intended to
|
||||||
|
apply and the section as a whole is intended to apply in other
|
||||||
|
circumstances.
|
||||||
|
|
||||||
|
It is not the purpose of this section to induce you to infringe any
|
||||||
|
patents or other property right claims or to contest validity of any
|
||||||
|
such claims; this section has the sole purpose of protecting the
|
||||||
|
integrity of the free software distribution system, which is
|
||||||
|
implemented by public license practices. Many people have made
|
||||||
|
generous contributions to the wide range of software distributed
|
||||||
|
through that system in reliance on consistent application of that
|
||||||
|
system; it is up to the author/donor to decide if he or she is willing
|
||||||
|
to distribute software through any other system and a licensee cannot
|
||||||
|
impose that choice.
|
||||||
|
|
||||||
|
This section is intended to make thoroughly clear what is believed to
|
||||||
|
be a consequence of the rest of this License.
|
||||||
|
|
||||||
|
8. If the distribution and/or use of the Program is restricted in
|
||||||
|
certain countries either by patents or by copyrighted interfaces, the
|
||||||
|
original copyright holder who places the Program under this License
|
||||||
|
may add an explicit geographical distribution limitation excluding
|
||||||
|
those countries, so that distribution is permitted only in or among
|
||||||
|
countries not thus excluded. In such case, this License incorporates
|
||||||
|
the limitation as if written in the body of this License.
|
||||||
|
|
||||||
|
9. The Free Software Foundation may publish revised and/or new versions
|
||||||
|
of the General Public License from time to time. Such new versions will
|
||||||
|
be similar in spirit to the present version, but may differ in detail to
|
||||||
|
address new problems or concerns.
|
||||||
|
|
||||||
|
Each version is given a distinguishing version number. If the Program
|
||||||
|
specifies a version number of this License which applies to it and "any
|
||||||
|
later version", you have the option of following the terms and conditions
|
||||||
|
either of that version or of any later version published by the Free
|
||||||
|
Software Foundation. If the Program does not specify a version number of
|
||||||
|
this License, you may choose any version ever published by the Free Software
|
||||||
|
Foundation.
|
||||||
|
|
||||||
|
10. If you wish to incorporate parts of the Program into other free
|
||||||
|
programs whose distribution conditions are different, write to the author
|
||||||
|
to ask for permission. For software which is copyrighted by the Free
|
||||||
|
Software Foundation, write to the Free Software Foundation; we sometimes
|
||||||
|
make exceptions for this. Our decision will be guided by the two goals
|
||||||
|
of preserving the free status of all derivatives of our free software and
|
||||||
|
of promoting the sharing and reuse of software generally.
|
||||||
|
|
||||||
|
NO WARRANTY
|
||||||
|
|
||||||
|
11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY
|
||||||
|
FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
|
||||||
|
OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
|
||||||
|
PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
|
||||||
|
OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
|
||||||
|
MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS
|
||||||
|
TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE
|
||||||
|
PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING,
|
||||||
|
REPAIR OR CORRECTION.
|
||||||
|
|
||||||
|
12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||||
|
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
|
||||||
|
REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
|
||||||
|
INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
|
||||||
|
OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED
|
||||||
|
TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY
|
||||||
|
YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
|
||||||
|
PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
|
||||||
|
POSSIBILITY OF SUCH DAMAGES.
|
||||||
|
|
||||||
|
END OF TERMS AND CONDITIONS
|
||||||
|
|
||||||
|
How to Apply These Terms to Your New Programs
|
||||||
|
|
||||||
|
If you develop a new program, and you want it to be of the greatest
|
||||||
|
possible use to the public, the best way to achieve this is to make it
|
||||||
|
free software which everyone can redistribute and change under these terms.
|
||||||
|
|
||||||
|
To do so, attach the following notices to the program. It is safest
|
||||||
|
to attach them to the start of each source file to most effectively
|
||||||
|
convey the exclusion of warranty; and each file should have at least
|
||||||
|
the "copyright" line and a pointer to where the full notice is found.
|
||||||
|
|
||||||
|
<one line to give the program's name and a brief idea of what it does.>
|
||||||
|
Copyright (C) <year> <name of author>
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or modify
|
||||||
|
it under the terms of the GNU General Public License as published by
|
||||||
|
the Free Software Foundation; either version 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
You should have received a copy of the GNU General Public License
|
||||||
|
along with this program; if not, write to the Free Software
|
||||||
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
|
|
||||||
|
|
||||||
|
Also add information on how to contact you by electronic and paper mail.
|
||||||
|
|
||||||
|
If the program is interactive, make it output a short notice like this
|
||||||
|
when it starts in an interactive mode:
|
||||||
|
|
||||||
|
Gnomovision version 69, Copyright (C) year name of author
|
||||||
|
Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||||
|
This is free software, and you are welcome to redistribute it
|
||||||
|
under certain conditions; type `show c' for details.
|
||||||
|
|
||||||
|
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||||
|
parts of the General Public License. Of course, the commands you use may
|
||||||
|
be called something other than `show w' and `show c'; they could even be
|
||||||
|
mouse-clicks or menu items--whatever suits your program.
|
||||||
|
|
||||||
|
You should also get your employer (if you work as a programmer) or your
|
||||||
|
school, if any, to sign a "copyright disclaimer" for the program, if
|
||||||
|
necessary. Here is a sample; alter the names:
|
||||||
|
|
||||||
|
Yoyodyne, Inc., hereby disclaims all copyright interest in the program
|
||||||
|
`Gnomovision' (which makes passes at compilers) written by James Hacker.
|
||||||
|
|
||||||
|
<signature of Ty Coon>, 1 April 1989
|
||||||
|
Ty Coon, President of Vice
|
||||||
|
|
||||||
|
This General Public License does not permit incorporating your program into
|
||||||
|
proprietary programs. If your program is a subroutine library, you may
|
||||||
|
consider it more useful to permit linking proprietary applications with the
|
||||||
|
library. If this is what you want to do, use the GNU Library General
|
||||||
|
Public License instead of this License.
|
|
@ -0,0 +1,117 @@
|
||||||
|
Modularisation d'AlternC
|
||||||
|
========================
|
||||||
|
|
||||||
|
- Chaque classe a un nom en lettres (pas trop long).
|
||||||
|
- Chaque classe fournit :
|
||||||
|
* Un fichier m_<classname>.php contenant la déclaration de la classe php
|
||||||
|
* Une classe qui s'appelle "m_<classname>"
|
||||||
|
* La variable globale instanciant la classe est $<classname>, elle est créée automatiquement par config_real.php
|
||||||
|
* Un fichier .pot dans locales/<classname>.po (et eventuellement <classname>_manual.po pour les entrees non détectées par gettext
|
||||||
|
* Les messages d'erreur sont du type "err_<classname>_<errno>" ou <errno> est un entier positif. 0 pour "OK"
|
||||||
|
* Une classe PEUT présenter un fichier "menu_<classname>.php" dans admin/
|
||||||
|
|
||||||
|
- Une classe peut présenter les fonctions particulières suivantes :
|
||||||
|
* alternc_add_domain($domain) qui est appellée quand un domaine est créé sur le compte membre courant
|
||||||
|
* alternc_del_domain($domain) qui est appellée quand un domaine est supprimé sur le compte membre courant
|
||||||
|
* alternc_add_member($uid) quand un membre est créé
|
||||||
|
* alternc_del_member($uid) quand un membre est détruit
|
||||||
|
* alternc_quota_check($uid) pour recalculer le quota utilisé par un membre
|
||||||
|
* alternc_quota_names() qui retourne une chaine ou un tableau avec le(s) noms des quota(s) gérés par cette classe.
|
||||||
|
si elle ne les contient pas, ces fonctions ne seront pas appellées...
|
||||||
|
|
||||||
|
|
||||||
|
AlternC est fourni en standard avec les classes :
|
||||||
|
- domain (installation domaines / dns / mx)
|
||||||
|
- ftp (maintenance des comptes ftp)
|
||||||
|
- mail (maintenance des emails pop/alias)
|
||||||
|
- quota (gestion globale des quotas de service et de disques)
|
||||||
|
- bro (navigateur dans le système de fichier)
|
||||||
|
- admin (panneau administrateur)
|
||||||
|
- mem (connexion et préférences membre)
|
||||||
|
- mysql (maintenance de bdd mysql)
|
||||||
|
- err (gestion des erreurs)
|
||||||
|
- sta2 (demande de sortie de logs bruts apache)
|
||||||
|
- hta (protection de dossiers web par htaccess/htpasswd)
|
||||||
|
|
||||||
|
Les modules additionnels dispo :
|
||||||
|
- alternc-webinstaller (cette classe particulière permet l'intégration facile d'outils (dmanager, spip, forum, chat ...) )
|
||||||
|
- alternc-mailman (gestion de listes sous mailman)
|
||||||
|
- alternc-sympa (gestion de listes sous sympa)
|
||||||
|
- alternc-webalizer (gestion de stats webalizer)
|
||||||
|
- procmail_builder (plugin spécial pour squirrelmail)
|
||||||
|
|
||||||
|
Donc, pour s'installer, une classe a besoin de :
|
||||||
|
- Créer les éventuelles structures de données nécessaires (mysql)
|
||||||
|
- Copier le fichier m_<classname> dans bureau/class/
|
||||||
|
- Copier l'eventuel fichier menu_<classname>.php
|
||||||
|
- Copier les éventuels autres fichiers dans bureau/admin, bureau/locales/* ...
|
||||||
|
|
||||||
|
Quotas
|
||||||
|
------
|
||||||
|
|
||||||
|
Le système de quota est simple : la classe peut appeler
|
||||||
|
$quota->inc dec ...
|
||||||
|
pour le membre donné, sur le nom de quota utilisé par celle-ci,
|
||||||
|
(utiliser <classname> est conseillé ;)
|
||||||
|
|
||||||
|
Quand un nouveau membre est créé, la valeur par défaut choisi par
|
||||||
|
l'admin lui est associé, et cette valeur vaut 0 par défaut.
|
||||||
|
|
||||||
|
Autres
|
||||||
|
------
|
||||||
|
|
||||||
|
Il est conseillé que chaque classe non standard fournisse un dossier
|
||||||
|
dans /bureau/admin/ dans lequel elle stocke les pages web
|
||||||
|
correspondantes, ceci afin de ne pas alourdir le dossier bureau/admin...
|
||||||
|
|
||||||
|
Ajout à l'API :
|
||||||
|
- La variable globale "$classes" contient un tableau avec le nom des
|
||||||
|
classes disponibles (nom court sans m_ =>mail, quota, err...)
|
||||||
|
|
||||||
|
Hooks ou "events" AlternC
|
||||||
|
=========================
|
||||||
|
|
||||||
|
Liste des fonctions "events" appellées lorsqu'un évènement particulier a lieu
|
||||||
|
sur un compte, tel que l'ajout d'un domaine, la suppression d'un domaine etc.
|
||||||
|
|
||||||
|
- Ces fonctions commencent TOUJOURS par "alternc_"
|
||||||
|
- SEULES ces fonctions ont le droit d'utiliser le prefixe alternc_ dans les
|
||||||
|
classes
|
||||||
|
- Les fonctions ne peuvent apparaitre que dans les classes d'AlternC, ayant
|
||||||
|
pour nom m_<nom du module>
|
||||||
|
- Chaque fonction est prototypée ci-dessous et son évènement est expliqué en
|
||||||
|
détail
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
alternc_del_domain($dom)
|
||||||
|
fonction appellée lorsqu'un domaine est effacé d'un compte AlternC.
|
||||||
|
$dom est le nom de domaine concerné.
|
||||||
|
|
||||||
|
alternc_add_domain($dom)
|
||||||
|
fonction appellée lorsqu'un domaine est installé sur un compte AlternC.
|
||||||
|
$dom est le nom de domaine concerné.
|
||||||
|
|
||||||
|
alternc_quota_check($id)
|
||||||
|
fonction appellée afin de recalculer le quota d'un membre pour le service correspondant.
|
||||||
|
$id est le numéro unique du membre concerné.
|
||||||
|
|
||||||
|
alternc_add_member($id)
|
||||||
|
fonction appellée lorsqu'un compte membre est créé sur le serveur AlternC.
|
||||||
|
$id est le numéro unique du membre concerné, qui a déjà été créé dans les tables principales.
|
||||||
|
|
||||||
|
alternc_del_member($id)
|
||||||
|
fonction appellée lorsqu'un compte membre est supprimé sur le serveur AlternC.
|
||||||
|
$id est le numéro unique du membre concerné, qui sera détruit après l'appel.
|
||||||
|
|
||||||
|
alternc_add_mx_domain($dom)
|
||||||
|
fonction appellée lorsqu'un domaine déjà hébergé mais n'ayant pas le mx pointant vers nous voit son mx
|
||||||
|
pointer vers nous. Pour les classes sensible au mail, cela équivaut bien souvent à add_domain
|
||||||
|
|
||||||
|
alternc_del_mx_domain($dom)
|
||||||
|
fonction appellée lorsqu'un domaine déjà hébergé et ayant son mx pointant vers nous voit son mx
|
||||||
|
nous quitter. Pour les classes sensible au mail, cela équivaut bien souvent à del_domain
|
||||||
|
|
||||||
|
alternc_description()
|
||||||
|
retourne la chaine ou la liste de chaine de description du module, traduit par gettext.
|
||||||
|
permet de savoir à quoi sert un module ou les éléments d'un module.
|
|
@ -0,0 +1,42 @@
|
||||||
|
AlternC: Architecture pour serveurs d'hébergement
|
||||||
|
=================================================
|
||||||
|
|
||||||
|
Introduction
|
||||||
|
------------
|
||||||
|
|
||||||
|
AlternC est un ensemble de logiciels d'hébergement facile à utiliser,
|
||||||
|
facile à installer, basé uniquement sur des logiciels OpenSource,
|
||||||
|
AlternC étant sous licence GPL.
|
||||||
|
|
||||||
|
Ce logiciel contient un système d'installation et de configuration
|
||||||
|
automatique, ainsi qu'un panneau de contrôle accessible par le web, pour
|
||||||
|
la gestion des utilisateurs et des services web (domaines, mails,
|
||||||
|
comptes ftp, statistiques ...)
|
||||||
|
|
||||||
|
Techniquement, AlternC se base sur la distribution Debian GNU/Linux
|
||||||
|
'Woody', et utilise d'autres logiciels tels Apache, Postfix, Mailman ...
|
||||||
|
Il contient aussi une documentation d'API, permettant une
|
||||||
|
personnalisation facile et rapide du bureau, le 'panneau de contrôle
|
||||||
|
web' d'AlternC.
|
||||||
|
|
||||||
|
La langue natale de ce projet est le Français. Cependant, le paquet
|
||||||
|
debian contient le bureau en Français ET en Anglais. Une version
|
||||||
|
Espagnole et Allemande est en cours de préparation. Les traductions dans
|
||||||
|
d'autres langues auront lieu si vous nous y aidez. La documentation
|
||||||
|
n'est actuellement disponible qu'en Français, mais une traduction
|
||||||
|
multilingue devrait arriver un jour ...
|
||||||
|
|
||||||
|
AlternC est développé par les administrateurs système de l'Autre Net,
|
||||||
|
les membres de l'Autre Net, ainsi que d'autres structures / développeurs
|
||||||
|
parmis lesquels Globenet.
|
||||||
|
|
||||||
|
Installation
|
||||||
|
------------
|
||||||
|
|
||||||
|
Pour l'instant, AlternC doit être installé en package Debian. Ceci prend
|
||||||
|
soin d'installer AlternC lui-même est toutes ses dépendances. Pour
|
||||||
|
télécharger les packages Debian d'alternc, veuillez insérer les linges
|
||||||
|
suivantes dans votre fichier /etc/apt/sources.list
|
||||||
|
|
||||||
|
deb http://debian.alternc.org debian/
|
||||||
|
deb-src http://debian.alternc.org debian/
|
|
@ -0,0 +1,2 @@
|
||||||
|
See http://dev.alternc.org/trac/alternc/roadmap to get up to date information
|
||||||
|
about what's left to do for AlternC.
|
|
@ -0,0 +1,20 @@
|
||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
# $Id: build.sh,v 1.1.1.1 2003/03/26 17:41:29 root Exp $
|
||||||
|
|
||||||
|
cd /data/bureau/admin/aide/
|
||||||
|
# BUILD HTML
|
||||||
|
rm -rf html
|
||||||
|
mkdir html
|
||||||
|
docbook2html --dsl /data/bureau/admin/aide/bin/frames.dsl -o html index.sgml
|
||||||
|
rsync files/ html/files/ -a
|
||||||
|
rsync inline/ html/ -a
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
# Construction du fichier langue :
|
||||||
|
# fr_FR :
|
||||||
|
cd /data/bureau/admin/locale/fr_FR/LC_MESSAGES
|
||||||
|
msgfmt -o alternc.mo alternc.po
|
||||||
|
cd /data/bureau/admin/locale/en_US/LC_MESSAGES
|
||||||
|
msgfmt -o alternc.mo alternc.po
|
||||||
|
|
|
@ -0,0 +1,144 @@
|
||||||
|
<!DOCTYPE style-sheet PUBLIC "-//James Clark//DTD DSSSL Style Sheet//EN" [
|
||||||
|
<!ENTITY docbook.dsl PUBLIC "-//Norman Walsh//DOCUMENT DocBook HTML Stylesheet//EN" CDATA DSSSL>
|
||||||
|
]>
|
||||||
|
|
||||||
|
<style-sheet>
|
||||||
|
<style-specification use="docbook">
|
||||||
|
<style-specification-body>
|
||||||
|
|
||||||
|
(define %stylesheet-version%
|
||||||
|
"DocBook HTML Frames Stylesheet version 2.0")
|
||||||
|
|
||||||
|
|
||||||
|
(define %stylesheet% "docbook.css");
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
(root
|
||||||
|
(make sequence
|
||||||
|
(process-children)
|
||||||
|
(with-mode manifest
|
||||||
|
(process-children))
|
||||||
|
(make-dhtml-toc)))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
(define (make-dhtml-toc)
|
||||||
|
(make entity
|
||||||
|
system-id: "toc.htm"
|
||||||
|
(make element gi: "HTML"
|
||||||
|
(make element gi: "HEAD"
|
||||||
|
(make element gi: "TITLE" (literal "DocBook TOC"))
|
||||||
|
($standard-html-header$))
|
||||||
|
(make element gi: "BODY"
|
||||||
|
(with-mode dhtmltoc
|
||||||
|
(process-children))
|
||||||
|
)))
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
(define (dhtml-toc-entry nd gilist)
|
||||||
|
(let*
|
||||||
|
|
||||||
|
(
|
||||||
|
(subdivnodes (node-list-filter-by-gi (children nd) gilist))
|
||||||
|
(subdivs (and (> (node-list-length subdivnodes) 0) (not (node-list=? nd (sgml-root-element))) ) )
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
(if (node-list=? nd (sgml-root-element))
|
||||||
|
; SEQUENCE 1 : ROOT element
|
||||||
|
(make sequence
|
||||||
|
(make element gi: "NOBR"
|
||||||
|
(make element gi: "A"
|
||||||
|
attributes: (list (list "HREF" (href-to (current-node)))
|
||||||
|
(list "TARGET" "right")
|
||||||
|
)
|
||||||
|
(element-title-sosofo (current-node))
|
||||||
|
)
|
||||||
|
(make empty-element gi: "BR")
|
||||||
|
(make element gi: "UL"
|
||||||
|
attributes: (list (list "CLASS" "TOC"))
|
||||||
|
(process-children))
|
||||||
|
)
|
||||||
|
)
|
||||||
|
; SEQUENCE 2 : Children elements
|
||||||
|
(make sequence
|
||||||
|
(make empty-element gi: "LI")
|
||||||
|
(make element gi: "NOBR"
|
||||||
|
(make element gi: "A"
|
||||||
|
attributes: (list (list "HREF" (href-to (current-node)))
|
||||||
|
(list "TARGET" "right")
|
||||||
|
)
|
||||||
|
(element-title-sosofo (current-node))
|
||||||
|
))
|
||||||
|
; DIV ENFANT :
|
||||||
|
(make element gi: "UL"
|
||||||
|
attributes: (list (list "CLASS" "TOC2"))
|
||||||
|
(process-children))
|
||||||
|
|
||||||
|
) ; sequence
|
||||||
|
) ; if node-list ...
|
||||||
|
|
||||||
|
))
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
(mode dhtmltoc
|
||||||
|
(default (empty-sosofo))
|
||||||
|
|
||||||
|
(element set (dhtml-toc-entry (current-node)
|
||||||
|
(list (normalize "book"))))
|
||||||
|
|
||||||
|
(element book (dhtml-toc-entry (current-node)
|
||||||
|
(list (normalize "part")
|
||||||
|
(normalize "preface")
|
||||||
|
(normalize "chapter")
|
||||||
|
(normalize "appendix")
|
||||||
|
(normalize "reference"))))
|
||||||
|
|
||||||
|
(element preface (dhtml-toc-entry (current-node)
|
||||||
|
(list (normalize "sect1"))))
|
||||||
|
|
||||||
|
(element part (dhtml-toc-entry (current-node)
|
||||||
|
(list (normalize "preface")
|
||||||
|
(normalize "chapter")
|
||||||
|
(normalize "appendix")
|
||||||
|
(normalize "reference"))))
|
||||||
|
|
||||||
|
(element chapter (dhtml-toc-entry (current-node)
|
||||||
|
(list (normalize "sect1"))))
|
||||||
|
|
||||||
|
(element appendix (dhtml-toc-entry (current-node)
|
||||||
|
(list (normalize "sect1"))))
|
||||||
|
|
||||||
|
(element sect1 (dhtml-toc-entry (current-node) '()))
|
||||||
|
|
||||||
|
(element reference (dhtml-toc-entry (current-node)
|
||||||
|
(list (normalize "refentry"))))
|
||||||
|
|
||||||
|
(element refentry (dhtml-toc-entry (current-node) '()))
|
||||||
|
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
</style-specification-body>
|
||||||
|
</style-specification>
|
||||||
|
|
||||||
|
<external-specification id="docbook" document="docbook.dsl">
|
||||||
|
|
||||||
|
</style-sheet>
|
|
@ -0,0 +1,65 @@
|
||||||
|
<chapter id="browser"><title>Le gestionnaire de fichiers</title>
|
||||||
|
|
||||||
|
<sect1 id="browser.1"><title>Introduction / Description</title>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
Sur AlternC, vous disposez d'un espace disque personnel sur lequel vous pouvez installer vos
|
||||||
|
domaines, sous-domaines, comptes ftp, statistiques web etc. Cet espace est en fait un dossier
|
||||||
|
sur le serveur, dans lequel vous pouvez stocker des fichiers, mais aussi des sous-dossiers,
|
||||||
|
afin d'organiser au mieux votre espace disponible.
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
Afin de pouvoir modifier facilement vos fichiers, vous pouvez utiliser le FTP, en créant un
|
||||||
|
compte sur votre bureau virtuel. Plus d'info sur le FTP dans <link id="ftp">la section FTP de l'Aide.</link>.
|
||||||
|
Vous pouvez aussi utiliser le gestionnaire de fichier pour gérer vos fichiers directement depuis le
|
||||||
|
bureau virtuel. Pour cela, dans le menu principal, cliquez sur "Gestionnaire de fichiers"
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
Le gestionnaire de fichier permet de gérer l'ensemble de vos fichiers, à savoir :
|
||||||
|
<itemizedlist>
|
||||||
|
<listitem><para>Créer Supprimer et Renommer des fichiers</para></listitem>
|
||||||
|
<listitem><para>Créer Supprimer et Renommer des dossiers / Sous-dossiers</para></listitem>
|
||||||
|
<listitem><para>Editer les fichiers présents dans le compte (fichiers textes, html ...)</para></listitem>
|
||||||
|
<listitem><para>Visualiser les fichiers du compte (html, images, document ...)</para></listitem>
|
||||||
|
<listitem><para>Télécharger l'ensemble de votre compte dans un fichier compressé (plusieurs formats supportés)</para></listitem>
|
||||||
|
<listitem><para>Accéder aux autres fonctions du bureau, tels la création de comptes FTP ou la protection de
|
||||||
|
dossier par nom d'utilisateur et mot de passe.
|
||||||
|
</para></listitem>
|
||||||
|
</itemizedlist>
|
||||||
|
</para>
|
||||||
|
|
||||||
|
</sect1>
|
||||||
|
|
||||||
|
<sect1 id="browser.2"><title>Paramètres du gestionnaire de fichiers</title>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
Vous pouvez régler les préférences du gestionnaire de fichier en cliquant sur "Régler mes préférences"
|
||||||
|
en bas du gestionnaire.
|
||||||
|
<graphic fileref="files/browser_set.png" format="png"></>
|
||||||
|
Les éléments ci-dessous peuvent être réglés :
|
||||||
|
<itemizedlist>
|
||||||
|
<listitem><para>Type d'affichage du gestionnaire (1 colonne de fichiers, 2 colonnes, 3 colonnes)</para></listitem>
|
||||||
|
<listitem><para>L'affichage ou pas des icones des fichiers</para></listitem>
|
||||||
|
<listitem><para>L'affichage ou pas des types des fichiers (image jpeg, page html, ...)</para></listitem>
|
||||||
|
<listitem><para>Le format de compression utilisé pour téléchargé tout le site au format compressé. (zip, tgz, tar.z, tar.bz2 supportés)</para></listitem>
|
||||||
|
<listitem><para>La largeur et la hauteur de la fenêtre de l'éditeur de fichiers.</para></listitem>
|
||||||
|
<listitem><para>Si vous préférer aller à l'éditeur de fichiers ou au gestionnaire après la création d'un nouveau fichier.</para></listitem>
|
||||||
|
</itemizedlist>
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
</para>
|
||||||
|
|
||||||
|
</sect1>
|
||||||
|
|
||||||
|
</chapter>
|
|
@ -0,0 +1,69 @@
|
||||||
|
<chapter id="domain"><title>Les Noms de Domaines</title>
|
||||||
|
|
||||||
|
<sect1 id="domain.1"><title>Introduction / Installation d'un nouveau domaine</title>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
AlternC propose de l'hébergement de noms de domaine personnels sur votre compte.
|
||||||
|
Un nom de domaine est toujours de la forme quelquechose.tld. Exemple : <literal>virtuel.org</literal>, <literal>masociete.com</literal> etc.
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
Un nom de domaine, pour être hébergé chez un hébergeur de site, doit être proprement installé. Pour cela, il faut procéder par étape :
|
||||||
|
<orderedlist>
|
||||||
|
<listitem><para>Acheter le nom de domaine voulu chez un registrar.</para>
|
||||||
|
<example><title>Exemple de registrar</title>
|
||||||
|
<para>On peut acheter par exemple un domaine en <literal>.fr</literal> auprès d'un partenaire de <ulink url="http://www.nic.fr">l'AFNIC</ulink>,
|
||||||
|
ou un <literal>.com .org .net</literal> auprès de <ulink url="http://www.gandi.net">Gandi</ulink>
|
||||||
|
</para></example>
|
||||||
|
</listitem>
|
||||||
|
<listitem><para>Lors de l'achat du nom de domaine, préciser le nom des serveurs DNS d'AlternC au registrar.</para>
|
||||||
|
<example><title>Exemple de DNS</title>
|
||||||
|
<para>Chaque hébergeur dispose d'au moins 2 serveurs DNS. Votre hébergeur vous donnera les noms et adresse Internet des siens.</para>
|
||||||
|
<para>Exemple : ns1.alternc.net (80.67.172.5) et ns2.alternc.net (80.67.172.9)</para></example>
|
||||||
|
</listitem>
|
||||||
|
<listitem><para>Installer le domaine sur AlternC.</para>
|
||||||
|
<para>Une fois acheté et ses DNS corrects, le domaine peut être installé sur
|
||||||
|
AlternC. Pour cela, cliquez sur le lien "Ajouter un domaine" dans le bureau virtuel.
|
||||||
|
</para>
|
||||||
|
</listitem>
|
||||||
|
</orderedlist>
|
||||||
|
</para>
|
||||||
|
|
||||||
|
</sect1>
|
||||||
|
|
||||||
|
<sect1 id="domain.2"><title>Configuration d'un domaine / sous-domaine</title>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
Lorsque vous avez installé un domaine sur AlternC, vous pouvez choisir dans quel dossier
|
||||||
|
de votre espace disque vous souhaitez connecter ce domaine, ou tout sous-domaine associé.
|
||||||
|
Pour cela, Cliquez sur le domaine dans le menu de gauche. Cela affiche l'ensemble des
|
||||||
|
sous-domaines installé. Vous pouvez ensuite modifier l'emplacement de ces sous-domaines,
|
||||||
|
ou en créer de nouveaux.
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
Par défaut, les sous-domaines suivants sont installés : (exemple pour <literal>virtuel.org</literal>)
|
||||||
|
<itemizedlist>
|
||||||
|
<listitem><para><literal>virtuel.org</literal> Ce sous-domaine est en fait le domaine
|
||||||
|
lui-même. Vous pouvez choisir comment vous voulez rediriger le domaine lui-même.
|
||||||
|
Le plus simple est de le rediriger vers l'URL http://www.virtuel.org ou vers
|
||||||
|
le même dossier que www.virtuel.org</para></listitem>
|
||||||
|
<listitem><para><literal>www.virtuel.org</literal> Ce sosu-domaine correspond à l'adresse
|
||||||
|
qu'utiliseront la plupart des internautes, l'adresse www de votre site web. Vous pouvez donc
|
||||||
|
l'héberger sur un dossier local. Par défaut, c'est la racine (nommé /) de votre espace
|
||||||
|
disque qui recoit ce domaine.</para></listitem>
|
||||||
|
<listitem><para><literal>mail.virtuel.org</literal> Ce sous-domaine particulier recoit le webmail
|
||||||
|
de votre domaine. Vous pouvez donc accéder à votre mail par l'adresse <literal>http://mail.virtuel.org</literal>
|
||||||
|
Si vous souhaitez connecter le webmail sur un autre nom, détruisez ce sous-domaine et recréez-en un
|
||||||
|
en lui affectant le type "webmail".
|
||||||
|
</para></listitem>
|
||||||
|
<listitem><para><literal>admin.virtuel.org</literal> Ce sous-domaine particulier recoit l'interface
|
||||||
|
du bureau virtuel. Ainsi, vous pouvez administrer votre domaine directement depuis le domaine lui-même.
|
||||||
|
Si vous souhaitez connecter le bureau d'administration sur un autre nom, détruisez ce sous-domaine et recréez-en un
|
||||||
|
en lui affectant le type "bureau virtuel".
|
||||||
|
</para></listitem>
|
||||||
|
</itemizedlist>
|
||||||
|
</para>
|
||||||
|
|
||||||
|
</sect1>
|
||||||
|
|
||||||
|
</chapter>
|
|
@ -0,0 +1,37 @@
|
||||||
|
<chapter id="ftp"><title>Comptes FTP</title>
|
||||||
|
|
||||||
|
<sect1 id="ftp.1"><title>Introduction</title>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
Le FTP est un moyen pratique de pouvoir échanger des fichiers entre un serveur et une
|
||||||
|
machine connectée à Internet. Pour cela, il faut disposer d'un compte FTP sur le serveur,
|
||||||
|
constitué d'un nom d'utilisateur et d'un mot de passe.
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
Sur AlternC, vous pouvez créer des comptes FTP, en précisant le nom d'utilisateur, le mot de passe,
|
||||||
|
et le dossier dans lequel sera connecté ce compte FTP. Ainsi, chaque compte pourra accéder à son dossier
|
||||||
|
et ses sous-dossiers, en lecture et en écriture.
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
Par exemple, si vous disposez des dossiers suivants dans votre compte :
|
||||||
|
<graphic fileref="files/ftp_list.png" format="png"></>
|
||||||
|
Vous pouvez créer, par exemple, un compte ftp pour philippe, que vous hébergez sur
|
||||||
|
<literal>http://virtuel.org/philippe/</literal>
|
||||||
|
Pour cela, il suffit de cliquer sur "Comptes FTP" puis "Créer un compte FTP" et enfin,
|
||||||
|
entrez les paramètres de connexion, à savoir, un nom d'utilisateur, un mot de passe, et un répertoire.
|
||||||
|
<graphic fileref="files/ftp_add.png" format="png"></>
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
Philippe peut donc modifier les fichiers de son dossier en utilisant les paramètres suivants :
|
||||||
|
<programlisting>
|
||||||
|
Serveur ftp : "virtuel.org"
|
||||||
|
Nom d'utilisateur : "virtuel.org_philippe"
|
||||||
|
Mot de passe : "philpas"
|
||||||
|
</programlisting>
|
||||||
|
</para>
|
||||||
|
|
||||||
|
</sect1>
|
||||||
|
|
||||||
|
</chapter>
|
|
@ -0,0 +1,42 @@
|
||||||
|
<!DOCTYPE book PUBLIC "-//OASIS//DTD DocBook V3.1//EN" [
|
||||||
|
|
||||||
|
<!ENTITY chap1 SYSTEM "sommaire.sgml">
|
||||||
|
<!ENTITY hlpftp SYSTEM "ftp.sgml">
|
||||||
|
<!ENTITY hlpdomain SYSTEM "domain.sgml">
|
||||||
|
<!ENTITY hlpbrouteur SYSTEM "brouteur.sgml">
|
||||||
|
<!ENTITY hlpstats SYSTEM "stats.sgml">
|
||||||
|
|
||||||
|
|
||||||
|
]>
|
||||||
|
<book lang="fr">
|
||||||
|
<bookinfo>
|
||||||
|
<title>AlternC, Documentation Utilisateur</title>
|
||||||
|
|
||||||
|
<authorgroup>
|
||||||
|
<author>
|
||||||
|
<firstname></firstname><surname>AlternC Development Team</surname>
|
||||||
|
<affiliation><address><email>tech@alternc.org</email></address> </affiliation>
|
||||||
|
</author>
|
||||||
|
</authorgroup>
|
||||||
|
|
||||||
|
<date>2002-06-11</date>
|
||||||
|
<releaseinfo>0.1</releaseinfo>
|
||||||
|
|
||||||
|
<abstract>
|
||||||
|
<para>Bienvenue dans l'aide en ligne d'AlternC.</para>
|
||||||
|
</abstract>
|
||||||
|
|
||||||
|
<keywordset>
|
||||||
|
<keyword>AlternC</keyword>
|
||||||
|
<keyword>Hébergement</keyword>
|
||||||
|
</keywordset>
|
||||||
|
</bookinfo>
|
||||||
|
|
||||||
|
&chap1;
|
||||||
|
|
||||||
|
&hlpdomain;
|
||||||
|
&hlpftp;
|
||||||
|
&hlpbrouteur;
|
||||||
|
&hlpstats;
|
||||||
|
|
||||||
|
</book>
|
|
@ -0,0 +1,24 @@
|
||||||
|
<chapter id="Sommaire"><title>Introduction</title>
|
||||||
|
|
||||||
|
<sect1 id="i1.1"><title>Introduction à AlternC</title>
|
||||||
|
|
||||||
|
<para>AlternC est un logiciel de gestion d'hébergeur de sites Internet, d'emails, de
|
||||||
|
noms de domaines et de tout service web disponible pour le public. Ce
|
||||||
|
logiciel utilise des programmes comme apache pour serveur web ou postfix
|
||||||
|
pour le courrier électronique. Il fournit une suite logicielle écrite en php4
|
||||||
|
qui permet de gérer intégralement un serveur depuis une interface web,
|
||||||
|
et permet d'allouer à chaque utilisateur un certain nombre de ressources
|
||||||
|
sur le serveur. </para>
|
||||||
|
|
||||||
|
</sect1>
|
||||||
|
|
||||||
|
<sect1><title>Fonctionnement de l'aide en ligne</title>
|
||||||
|
<para>
|
||||||
|
Cette aide en ligne est accessible par le lien "aide en ligne" du bureau virtuel.
|
||||||
|
vous pouvez aussi cliquer sur les "?" situés dans le bureau virtuel pour avoir
|
||||||
|
une aide contextuelle sur la page en cours.
|
||||||
|
</para>
|
||||||
|
|
||||||
|
</sect1>
|
||||||
|
|
||||||
|
</chapter>
|
|
@ -0,0 +1,37 @@
|
||||||
|
<chapter id="stats"><title>Les statistiques Web.</title>
|
||||||
|
|
||||||
|
<sect1 id="stats.1"><title>Introduction / Mode d'emploi</title>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
Sur AlternC, vous pouvez héberger des domaines / sous-domaines, sur lesquels vous hébergez un ou
|
||||||
|
plusieurs sites web. Maintenant que votre site est en marche, vous souhaitez savoir qui va voir votre
|
||||||
|
site, d'où ils viennent, quelles pages sont les plus vues etc. Pour cela, vous pouvez utiliser l'outil
|
||||||
|
de génération de statistiques web.
|
||||||
|
</para>
|
||||||
|
<para>
|
||||||
|
Ce menu vous permet de demander la génération quotidienne de pages html dans un dossier de votre espace disque.
|
||||||
|
Pour créer un jeu de statistiques associé à votre site web, cliquez sur "Statistiques web" puis sur
|
||||||
|
"Créer un jeu de statistiques".
|
||||||
|
<graphic fileref="files/sta_add.png" format="png"></>
|
||||||
|
Ensuite, choisissez dans la liste le nom de domaine dont vous souhaitez obtenir des statistiques,
|
||||||
|
Choisissez la langue dans laquelle vous souhaitez que ces statistiques soit générées.
|
||||||
|
Enfin, Entrez le nom du dossier dans lequel vous voulez voir apparaitre les pages HTML de statistiques.
|
||||||
|
</para>
|
||||||
|
|
||||||
|
<caution>Notez qu'il faut attendre le lendemain pour voir apparaitre comme par magie les premiers
|
||||||
|
fichiers de statistique dans le dossier désigné. En effet, ceux-ci sont générés tous les matins.</caution>
|
||||||
|
|
||||||
|
<para>
|
||||||
|
Dès le lendemain, vous pourrez aller sur la page web du dossier contenant vos statistiques pour y retrouver
|
||||||
|
les pages générées:
|
||||||
|
<graphic fileref="files/sta_view1.png" format="png"></>
|
||||||
|
Une page index, contenant un résumé des visites par mois, ainsi qu'un graphique le représentant,
|
||||||
|
ainsi qu'une page par mois, détaillant les visites, les mots-clés utilisés sur les moteurs de recherche,
|
||||||
|
les liens vers le site etc.
|
||||||
|
<graphic fileref="files/sta_view2.png" format="png"></>
|
||||||
|
</para>
|
||||||
|
|
||||||
|
|
||||||
|
</sect1>
|
||||||
|
|
||||||
|
</chapter>
|
|
@ -0,0 +1,16 @@
|
||||||
|
<chapter id="Test"><title>Coucou</title>
|
||||||
|
|
||||||
|
<sect1><title>le Coucou premier</title>
|
||||||
|
|
||||||
|
<para>Juste histoire de tester les manipulations à effectuer pour créer un fichier d'aide </para>
|
||||||
|
|
||||||
|
</sect1>
|
||||||
|
|
||||||
|
<sect1><title>le coucou en second</title>
|
||||||
|
<para>
|
||||||
|
A voir donc
|
||||||
|
</para>
|
||||||
|
|
||||||
|
</sect1>
|
||||||
|
|
||||||
|
</chapter>
|
|
@ -0,0 +1,112 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: adm_add.php,v 1.9 2006/01/24 05:03:30 joe Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2006 Le réseau Koumbit Inc.
|
||||||
|
http://koumbit.org/
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: Member managment
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
if (!$admin->enabled) {
|
||||||
|
__("This page is restricted to authorized staff");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!isset($canpass)) $canpass=1;
|
||||||
|
|
||||||
|
include("head.php");
|
||||||
|
|
||||||
|
?>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h3><?php __("New member"); ?></h3>
|
||||||
|
<?php
|
||||||
|
if ($error) {
|
||||||
|
echo "<p class=\"error\">$error</p>";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<form method="post" action="adm_doadd.php">
|
||||||
|
<table border="1" cellspacing="0" cellpadding="4">
|
||||||
|
<tr><th><label for="login"><?php __("Username"); ?></label></th><td>
|
||||||
|
<input type="text" class="int" name="login" id="login" value="<?php echo $login; ?>" size="20" maxlength="64" />
|
||||||
|
</td></tr>
|
||||||
|
<tr>
|
||||||
|
<th><label for="pass"><?php __("Initial password"); ?></label></th>
|
||||||
|
<td><input type="password" id="pass" name="pass" class="int" value="<?php echo $pass; ?>" size="20" maxlength="64" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><label for="passconf"><?php __("Confirm password"); ?></label></th>
|
||||||
|
<td><input type="password" id="passconf" name="passconf" class="int" value="<?php echo $passconf; ?>" size="20" maxlength="64" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><label for="canpass"><?php __("Can he change its password"); ?></label></th>
|
||||||
|
<td><select class="inl" name="canpass" id="canpass">
|
||||||
|
<?php
|
||||||
|
for($i=0;$i<count($bro->l_icons);$i++) {
|
||||||
|
echo "<option";
|
||||||
|
if ($canpass==$i) echo " selected=\"selected\"";
|
||||||
|
echo " value=\"$i\">"._($bro->l_icons[$i])."</option>";
|
||||||
|
}
|
||||||
|
?></select>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><label for="nom"><?php echo _("Surname")."</label> / <label for=\"prenom\">"._("First Name"); ?></label></th>
|
||||||
|
<td><input class="int" type="text" id="nom" name="nom" value="<?php echo $nom; ?>" size="20" maxlength="128" /> / <input type="text" name="prenom" id="prenom" value="<?php echo $prenom; ?>" class="int" size="20" maxlength="128" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><label for="nmail"><?php __("Email address"); ?></label></th>
|
||||||
|
<td><input type="text" name="nmail" id="nmail" class="int" value="<?php echo $nmail; ?>" size="30" maxlength="128" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><label for="type"><?php __("Account type"); ?></label></th>
|
||||||
|
<td><select name="type" id="type">
|
||||||
|
<?php
|
||||||
|
$db->query("SELECT distinct(type) FROM defquotas ORDER by type");
|
||||||
|
while($db->next_record()) {
|
||||||
|
$type = $db->f("type");
|
||||||
|
echo "<option value=\"$type\"";
|
||||||
|
if($type == 'default')
|
||||||
|
echo " selected";
|
||||||
|
echo ">$type</option>";
|
||||||
|
}
|
||||||
|
?></select>
|
||||||
|
</tr>
|
||||||
|
<? if (variable_get('hosting_tld')) { ?>
|
||||||
|
<tr>
|
||||||
|
<th colspan="2"><label><input type="checkbox" name="create_dom" value="1" />
|
||||||
|
<?php print _("Create the domain username.").variable_get('hosting_tld'); ?></label></th>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<? } ?>
|
||||||
|
<td colspan="2"><input type="submit" class="inb" name="submit" value="<?php __("Create a new member"); ?>" /></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,104 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: adm_defquotas.php,v 1.4 2006/01/24 05:03:30 joe Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2006 Le réseau Koumbit Inc.
|
||||||
|
http://koumbit.org/
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: Manage the default quotas
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
if (!$admin->enabled) {
|
||||||
|
__("This page is restricted to authorized staff");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
include("head.php");
|
||||||
|
?>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h3><?php __("Change the default quotas"); ?></h3>
|
||||||
|
<?php
|
||||||
|
if ($error) {
|
||||||
|
echo "<p class=\"error\">$error</p>";
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<p><form method="post" action="adm_dodefquotas.php">
|
||||||
|
<input type="hidden" name="action" value="add">
|
||||||
|
<input type="text" name="type"></td>
|
||||||
|
<input type="submit" class="inb" value="<?php __("Add account type"); ?>" />
|
||||||
|
</form></p>
|
||||||
|
|
||||||
|
<p><form method="post" action="adm_dodefquotas.php">
|
||||||
|
<input type="hidden" name="action" value="delete">
|
||||||
|
<select name="type" id="type">
|
||||||
|
<?php
|
||||||
|
$db->query("SELECT distinct(type) FROM defquotas WHERE TYPE != 'default' ORDER by type");
|
||||||
|
while($db->next_record()) {
|
||||||
|
$type = $db->f("type");
|
||||||
|
echo "<option value=\"$type\">$type</option>";
|
||||||
|
}
|
||||||
|
?></select>
|
||||||
|
<input type="submit" class="inb" value="<?php __("Delete account type"); ?>" />
|
||||||
|
</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"); ?>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<form method="post" action="adm_dodefquotas.php">
|
||||||
|
<input type="hidden" name="action" value="modify">
|
||||||
|
<?php
|
||||||
|
$col=1;
|
||||||
|
$qlist=$quota->getdefaults();
|
||||||
|
reset($qlist);
|
||||||
|
foreach($qlist as $type => $q) {
|
||||||
|
?>
|
||||||
|
<h4><?php echo _("Accounts of type"). " \"$type\"" ?></h4>
|
||||||
|
<table border="0" cellpadding="4" cellspacing="0">
|
||||||
|
<tr><th><?php __("Quotas") ?></th><th><?php __("Default Value"); ?></th></tr>
|
||||||
|
<?php
|
||||||
|
foreach($q as $name => $value) {
|
||||||
|
$key = $type . ":" . $name;
|
||||||
|
$col=3-$col;
|
||||||
|
?>
|
||||||
|
|
||||||
|
<tr class="lst<?php echo $col; ?>">
|
||||||
|
<td><label for="<?php echo $key; ?>"><?php echo "quota_$name"; ?></label></td>
|
||||||
|
<td><input type="text" class="int" size="16" maxlength="16" name="<?php echo $key; ?>" id="<?php echo $name; ?>" value="<?php echo $value; ?>" /></td></tr>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</table>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<input type="submit" class="inb" value="<?php __("Edit the default quotas"); ?>" />
|
||||||
|
</form>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,30 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: adm_del.php,v 1.1.1.1 2003/03/26 17:41:29 root Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file:
|
||||||
|
Purpose of file:
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
?>
|
|
@ -0,0 +1,80 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: adm_doadd.php,v 1.8 2006/01/24 05:03:30 joe Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2006 Le réseau Koumbit Inc.
|
||||||
|
http://koumbit.org/
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: Create a new member
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
if (!$admin->enabled) {
|
||||||
|
__("This page is restricted to authorized staff");
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($pass != $passconf) {
|
||||||
|
$error = _("Passwords do not match");
|
||||||
|
include("adm_add.php");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
if (!($u=$admin->add_mem($login, $pass, $nom, $prenom, $nmail, $canpass, $type))) {
|
||||||
|
$error=$err->errstr();
|
||||||
|
include ("adm_add.php");
|
||||||
|
exit;
|
||||||
|
} else {
|
||||||
|
|
||||||
|
// Add here all what you want when an account is created !
|
||||||
|
$mem->su($u);
|
||||||
|
|
||||||
|
/*
|
||||||
|
* 0 = pas d'hébergement dns, en effet, pas besoin vu que les
|
||||||
|
* domaines *.koumbit.net sont bien sur le serveur
|
||||||
|
*
|
||||||
|
* 1 = noerase = empêche à l'utilisateur de modifier le dns ou de
|
||||||
|
* supprimer le domaine
|
||||||
|
*
|
||||||
|
* 1 = force = ne tient pas compte du whois ou des droits de tld
|
||||||
|
*/
|
||||||
|
if ($create_dom) {
|
||||||
|
if (variable_get("hosting_tld")) {
|
||||||
|
# make sure we don't have multiple dots there
|
||||||
|
$dom->lock();
|
||||||
|
$dom->add_domain($login.".".preg_replace("/^\.\.*/", "", variable_get("hosting_tld")),0,1,1);
|
||||||
|
$dom->unlock();
|
||||||
|
} else {
|
||||||
|
$err->log("no 'hosting_tld' variable defined in `variables` table, not creating domain");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
$ftp->add_ftp($login,"",$pass,"/");
|
||||||
|
$mem->unsu();
|
||||||
|
|
||||||
|
$error=_("The new member has been successfully created");
|
||||||
|
|
||||||
|
include("adm_list.php");
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
?>
|
|
@ -0,0 +1,75 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: adm_dodefquotas.php,v 1.3 2006/01/24 05:03:30 joe Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2006 Le réseau Koumbit Inc.
|
||||||
|
http://koumbit.org/
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: Manage the default quotas
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
if (!$admin->enabled) {
|
||||||
|
__("This page is restricted to authorized staff");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
if($_POST["action"] == "add") {
|
||||||
|
$type = $_POST['type'];
|
||||||
|
|
||||||
|
if($quota->addtype($type)) {
|
||||||
|
$error=_("Account type"). " \"$type\" "._("added");
|
||||||
|
} else {
|
||||||
|
$error=_("Account type"). " \"$type\" "._("could not be added");
|
||||||
|
}
|
||||||
|
include("adm_defquotas.php");
|
||||||
|
} else if($_POST["action"] == "delete") {
|
||||||
|
if($_POST['type']) {
|
||||||
|
if($quota->deltype($_POST['type'])) {
|
||||||
|
$error=_("Account type"). " \"$type\" "._("deleted");
|
||||||
|
} else {
|
||||||
|
$error=_("Account type"). " \"$type\" "._("could not be deleted");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
include("adm_defquotas.php");
|
||||||
|
} else if($_POST["action"] == "modify") {
|
||||||
|
reset($_POST);
|
||||||
|
$c=array();
|
||||||
|
foreach($_POST as $key => $val) {
|
||||||
|
if($key == "action")
|
||||||
|
continue;
|
||||||
|
|
||||||
|
list($type, $q) = explode(":", $key, 2);
|
||||||
|
$c[$type][$q] = abs(intval($val));
|
||||||
|
}
|
||||||
|
|
||||||
|
if($quota->setdefaults($c)) {
|
||||||
|
$error=_("Default quotas successfully changed");
|
||||||
|
} else {
|
||||||
|
$error=_("Default quotas could not be set.");
|
||||||
|
}
|
||||||
|
include("adm_panel.php");
|
||||||
|
}
|
||||||
|
?>
|
|
@ -0,0 +1,57 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: adm_dodel.php,v 1.2 2004/05/19 14:23:06 benjamin Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: Delete a member
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
if (!$admin->enabled) {
|
||||||
|
__("This page is restricted to authorized staff");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
if (!is_array($d)) {
|
||||||
|
$d[]=$d;
|
||||||
|
}
|
||||||
|
|
||||||
|
reset($d);
|
||||||
|
while (list($key,$val)=each($d)) {
|
||||||
|
if (!$admin->checkcreator($val)) {
|
||||||
|
__("This page is restricted to authorized staff");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
if (!($u=$admin->get($val)) || !$admin->del_mem($val)) {
|
||||||
|
$error.=sprintf(_("Member '%s' does not exist"),$val)."<br />";
|
||||||
|
} else {
|
||||||
|
$error.=sprintf(_("Member %s successfully deleted"),$u["login"])."<br />";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
include("adm_list.php");
|
||||||
|
exit();
|
||||||
|
|
||||||
|
?>
|
|
@ -0,0 +1,56 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: adm_doedit.php,v 1.6 2006/01/24 05:03:30 joe Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2006 Le réseau Koumbit Inc.
|
||||||
|
http://koumbit.org/
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: Edit a member's parameters
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
if (!$admin->enabled) {
|
||||||
|
__("This page is restricted to authorized staff");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
if (!$admin->checkcreator($uid)) {
|
||||||
|
__("This page is restricted to authorized staff");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($pass != $passconf) {
|
||||||
|
$error = _("Passwords do not match");
|
||||||
|
include("adm_edit.php");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!$admin->update_mem($uid, $nmail, $nom, $prenom, $pass, $enabled, $canpass, $type, $duration)){
|
||||||
|
$error=$err->errstr();
|
||||||
|
include("adm_edit.php");
|
||||||
|
} else {
|
||||||
|
$error=_("The member has been successfully edited");
|
||||||
|
include("adm_list.php");
|
||||||
|
}
|
||||||
|
?>
|
|
@ -0,0 +1,43 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: adm_domlock.php,v 1.1 2003/09/20 19:41:06 root Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: Manage allowed TLD on the server
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
if (!$admin->enabled) {
|
||||||
|
__("This page is restricted to authorized staff");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!$admin->dom_lock($domain)) {
|
||||||
|
$error=$err->errstr();
|
||||||
|
}
|
||||||
|
include("adm_doms.php");
|
||||||
|
exit;
|
||||||
|
|
||||||
|
?>
|
|
@ -0,0 +1,79 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: adm_doms.php,v 1.1 2003/09/20 19:41:06 root Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: Manage allowed TLD on the server
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
if (!$admin->enabled) {
|
||||||
|
__("This page is restricted to authorized staff");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
include("head.php");
|
||||||
|
?>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h3><?php __("Manage installed domains"); ?></h3>
|
||||||
|
<?php
|
||||||
|
if ($error) {
|
||||||
|
echo "<p class=\"error\">$error</p>";
|
||||||
|
}
|
||||||
|
|
||||||
|
$c=$admin->dom_list();
|
||||||
|
|
||||||
|
?>
|
||||||
|
<p>
|
||||||
|
<?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>
|
||||||
|
|
||||||
|
<form method="post" action="adm_dodom.php">
|
||||||
|
<table border="0" cellpadding="4" cellspacing="0">
|
||||||
|
<tr><th><?php __("Action"); ?></th><th><?php __("Domain"); ?></th><th><?php __("Member"); ?></th><th>Lock</th></tr>
|
||||||
|
<?php
|
||||||
|
$col=1;
|
||||||
|
for($i=0;$i<count($c);$i++) {
|
||||||
|
$col=3-$col;
|
||||||
|
?>
|
||||||
|
|
||||||
|
<tr class="lst<?php echo $col; ?>">
|
||||||
|
<td><a href="adm_domlock.php?domain=<?php echo urlencode($c[$i][domaine]); ?>"><?php
|
||||||
|
if ($c[$i][noerase]) __("Unlock"); else __("Lock"); ?></a></td>
|
||||||
|
<td><?php echo $c[$i][domaine]; ?></td>
|
||||||
|
<td><?php echo $c[$i][login]; ?></td>
|
||||||
|
<td><?php if ($c[$i][noerase]) {
|
||||||
|
echo "<img src=\"icon/encrypted.png\" width=\"16\" height=\"16\" alt=\""._("Locked Domain")."\" />";
|
||||||
|
} ?></td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,45 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: adm_donosu.php,v 1.1.1.1 2003/03/26 17:41:29 root Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: Transform an account from Normal to Administrator
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
if (!$admin->enabled) {
|
||||||
|
__("This page is restricted to authorized staff");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!$admin->su2normal($uid)) {
|
||||||
|
$error=$err->errstr();
|
||||||
|
}
|
||||||
|
|
||||||
|
include("adm_edit.php");
|
||||||
|
|
||||||
|
exit();
|
||||||
|
|
||||||
|
?>
|
|
@ -0,0 +1,49 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: adm_dorenew.php,v 1.6 2006/01/24 05:03:30 joe Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2006 Le réseau Koumbit Inc.
|
||||||
|
http://koumbit.org/
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Purpose of file: Renew an account for the specified period
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
if (!$admin->enabled) {
|
||||||
|
__("This page is restricted to authorized staff");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
if (!$admin->checkcreator($uid)) {
|
||||||
|
__("This page is restricted to authorized staff");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!$admin->renew_mem($_REQUEST['uid'], $_REQUEST['periods'])){
|
||||||
|
$error=$err->errstr();
|
||||||
|
include("adm_edit.php");
|
||||||
|
} else {
|
||||||
|
$error=_("The member has been successfully renewed");
|
||||||
|
include("adm_list.php");
|
||||||
|
}
|
||||||
|
?>
|
|
@ -0,0 +1,45 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: adm_dosu.php,v 1.1.1.1 2003/03/26 17:41:29 root Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: Transform an account from Normal to Administrator
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
if (!$admin->enabled) {
|
||||||
|
__("This page is restricted to authorized staff");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!$admin->normal2su($uid)) {
|
||||||
|
$error=$err->errstr();
|
||||||
|
}
|
||||||
|
|
||||||
|
include("adm_edit.php");
|
||||||
|
|
||||||
|
exit();
|
||||||
|
|
||||||
|
?>
|
|
@ -0,0 +1,174 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: adm_edit.php,v 1.13 2006/01/24 05:03:30 joe Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2006 Le réseau Koumbit Inc.
|
||||||
|
http://koumbit.org/
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: Show a form to edit a member
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
if (!$admin->enabled) {
|
||||||
|
__("This page is restricted to authorized staff");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
if (!$admin->checkcreator($uid)) {
|
||||||
|
__("This page is restricted to authorized staff");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!$r=$admin->get($uid)) {
|
||||||
|
$error=$err->errstr();
|
||||||
|
}
|
||||||
|
|
||||||
|
include("head.php");
|
||||||
|
?>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h3><?php __("Member Edition"); ?></h3>
|
||||||
|
<?php
|
||||||
|
if ($error) {
|
||||||
|
echo "<p class=\"error\">$error</p>";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<form method="post" action="adm_doedit.php">
|
||||||
|
<table border="1" cellspacing="0" cellpadding="4">
|
||||||
|
<tr>
|
||||||
|
<th><input type="hidden" name="uid" value="<?php echo $uid ?>" />
|
||||||
|
<?php __("Username"); ?></th>
|
||||||
|
<td><?php echo $r["login"]; ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><label for="enabled"><?php __("Account Enabled ?"); ?></label></th>
|
||||||
|
<td><select class="inl" name="enabled" id="enabled">
|
||||||
|
<?php
|
||||||
|
echo "<option";
|
||||||
|
if ($r["enabled"]=="0") echo " selected=\"selected\"";
|
||||||
|
echo " value=\"0\">"._("No")."</option>";
|
||||||
|
echo "<option";
|
||||||
|
if ($r["enabled"]=="1") echo " selected=\"selected\"";
|
||||||
|
echo " value=\"1\">"._("Yes")."</option>";
|
||||||
|
?></select></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
|
<tr>
|
||||||
|
<th><label for="pass"><?php __("Password"); ?></label></th>
|
||||||
|
<td><input type="password" class="int" id="pass" name="pass" value="" size="20" maxlength="64" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><label for="passconf"><?php __("Confirm password"); ?></label></th>
|
||||||
|
<td><input type="password" class="int" id="passconf" name="passconf" value="" size="20" maxlength="64" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><label for="canpass"><?php __("Can he change its password"); ?></label></th>
|
||||||
|
<td><select class="inl" name="canpass" id="canpass">
|
||||||
|
<?php
|
||||||
|
for($i=0;$i<count($bro->l_icons);$i++) {
|
||||||
|
echo "<option";
|
||||||
|
if ($r["canpass"]==$i) echo " selected=\"selected\"";
|
||||||
|
echo " value=\"$i\">"._($bro->l_icons[$i])."</option>";
|
||||||
|
}
|
||||||
|
?></select>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><label for="nom"><?php echo _("Surname")."</label> / <label for=\"prenom\">"._("First Name"); ?></label></th>
|
||||||
|
<td><input type="text" class="int" name="nom" id="nom" value="<?php echo $r["nom"]; ?>" size="20" maxlength="128" /> / <input type="text" class="int" name="prenom" id="prenom" value="<?php echo $r["prenom"]; ?>" size="20" maxlength="128" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><label for="nmail"><?php __("Email address"); ?></label></th>
|
||||||
|
<td><input type="text" class="int" name="nmail" id="nmail" value="<?php echo $r["mail"]; ?>" size="30" maxlength="128" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><label for="type"><?php __("Account type"); ?></label></th>
|
||||||
|
<td><select name="type" id="type">
|
||||||
|
<?php
|
||||||
|
$db->query("SELECT distinct(type) FROM defquotas ORDER by type");
|
||||||
|
while($db->next_record()) {
|
||||||
|
$type = $db->f("type");
|
||||||
|
echo "<option value=\"$type\"";
|
||||||
|
if($type == $r['type'])
|
||||||
|
echo " selected";
|
||||||
|
echo ">$type</option>";
|
||||||
|
}
|
||||||
|
?></select><label for="reset_quotas"><?php __("Reset quotas to default ?") ?></label><input type="checkbox" name="reset_quotas" id="reset_quotas"></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th><label for="duration"><?php __("Period"); ?></label></th>
|
||||||
|
<td><?php echo duration_list('duration', $r['duration']) ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="2" align="center"><input type="submit" class="inb" name="submit" value="<?php __("Edit this account"); ?>" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<?php if($r['duration']) { ?>
|
||||||
|
<p>
|
||||||
|
<form method="post" action="adm_dorenew.php">
|
||||||
|
<input type="hidden" name="uid" value="<?php echo $uid ?>" />
|
||||||
|
<table border="1" cellspacing="0" cellpadding="4">
|
||||||
|
<tr>
|
||||||
|
<th><label for="periods"><?php __("Renew for") ?></label></th>
|
||||||
|
<td><input name="periods" id="periods" type="text" size="2" value="1"/><?php echo ' ' . _('period(s)') ?></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td colspan="2" align="center"><input type="submit" class="inb" name="submit" value="<?php __("Renew"); ?>" />
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
</p>
|
||||||
|
<?php } /* Renouvellement */ ?>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<?php
|
||||||
|
if ($mem->user[uid]==2000) { // PATCHBEN only admin can change su/nosu :)
|
||||||
|
if ($r["su"]) {
|
||||||
|
?>
|
||||||
|
<b><?php __("This account is a super-admin account"); ?></b><br />
|
||||||
|
<?php if ($admin->onesu()) {
|
||||||
|
__("There is only one administrator account, you cannot turn this account back to normal");
|
||||||
|
} else {
|
||||||
|
?>
|
||||||
|
<a href="adm_donosu.php?uid=<?php echo $r["uid"]; ?>"><?php __("Turn this account back to normal"); ?></a>
|
||||||
|
<?php }
|
||||||
|
} else { ?>
|
||||||
|
<a href="adm_dosu.php?uid=<?php echo $r["uid"]; ?>"><?php __("Make this account a super admin one"); ?></a>
|
||||||
|
<?php } ?>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
|
||||||
|
<p><?php
|
||||||
|
}
|
||||||
|
$c=$admin->get($r["creator"]);
|
||||||
|
printf(_("Account created by %s"),$c["login"]);
|
||||||
|
?>
|
||||||
|
</p>
|
||||||
|
<p><a href="adm_list.php"><?php __("Back to the account list"); ?></a></p>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,214 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: adm_list.php,v 1.11 2006/01/24 05:03:30 joe Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2006 Le réseau Koumbit Inc.
|
||||||
|
http://koumbit.org/
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: Show the member list
|
||||||
|
TODO : Add a Next / Previous system in case of big lists...
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
if (!$admin->enabled) {
|
||||||
|
__("This page is restricted to authorized staff");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
$r=$admin->get_list($_REQUEST['show'] == 'all' ? 1 : 0);
|
||||||
|
|
||||||
|
include("head.php");
|
||||||
|
?>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h3><?php __("Member list"); ?></h3>
|
||||||
|
<?php
|
||||||
|
if ($error) {
|
||||||
|
echo "<p class=\"error\">$error</p>";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<p>
|
||||||
|
<?php __("Here is the list of hosted members"); ?>
|
||||||
|
|
||||||
|
<?php if($_REQUEST['show'] != 'all') {
|
||||||
|
echo '<a href="adm_list.php?show=all">' . _('List all the accounts') . '</a>';
|
||||||
|
} else {
|
||||||
|
echo '<a href="adm_list.php">' . _('List only my accounts') . '</a>';
|
||||||
|
} ?>
|
||||||
|
</p>
|
||||||
|
<p>
|
||||||
|
<a href="adm_add.php"><?php __("Create a new member"); ?></a>
|
||||||
|
</p>
|
||||||
|
<?php
|
||||||
|
if (!is_array($r)) {
|
||||||
|
echo "<p class=\"error\">"._("No account defined for now")."</p>";
|
||||||
|
} else {
|
||||||
|
?>
|
||||||
|
|
||||||
|
<form method="post" action="adm_dodel.php">
|
||||||
|
<?php
|
||||||
|
|
||||||
|
// Depending on the admin's choice, let's show a short list or a long list.
|
||||||
|
|
||||||
|
if ($mem->user["admlist"]==0) { // Normal (large) mode
|
||||||
|
?>
|
||||||
|
<table cellspacing="0" cellpadding="4">
|
||||||
|
<tr><th colspan="4"> </th><th><?php __("Username"); ?></th><th><?php echo _("Surname")." "._("First Name")."<br />("._("Email address").")"; ?></th><th><?php __("Account type") ?></th><th><?php __("Last login"); ?></th><th><?php __("Last fail"); ?></th><th><?php __("Last ip"); ?><th><?php __('Expiry') ?></th></tr>
|
||||||
|
<?php
|
||||||
|
reset($r);
|
||||||
|
$col=1;
|
||||||
|
while (list($key,$val)=each($r))
|
||||||
|
{
|
||||||
|
$col=3-$col;
|
||||||
|
?>
|
||||||
|
<tr class="lst<?php echo $col; ?>">
|
||||||
|
<?php if ($val["su"]) { ?>
|
||||||
|
<td> </td>
|
||||||
|
<?php } else { ?>
|
||||||
|
<td align="center"><input type="checkbox" class="inc" name="d[]" value="<?php echo $val["uid"]; ?>" /></td>
|
||||||
|
<?php } ?>
|
||||||
|
<td align="center"><a href="adm_edit.php?uid=<?php echo $val["uid"] ?>"><?php __("Edit"); ?></a></td>
|
||||||
|
<td align="center"><a href="adm_quotaedit.php?uid=<?php echo $val["uid"] ?>"><?php __("Quotas"); ?></a></td>
|
||||||
|
<td align="center"><?php
|
||||||
|
if (!$val["enabled"])
|
||||||
|
echo "<img src=\"icon/encrypted.png\" width=\"16\" height=\"16\" alt=\""._("Locked Account")."\" />";
|
||||||
|
else {
|
||||||
|
if($admin->checkcreator($val['uid'])) {
|
||||||
|
?>
|
||||||
|
<a href="adm_login.php?id=<?php echo $val["uid"];?>" target="_parent"><?php __("Connect as"); ?></a>
|
||||||
|
<?php } } ?>
|
||||||
|
</td>
|
||||||
|
<td <?php if ($val["su"]) echo "style=\"color: red\""; ?>><?php echo $val["login"] ?></td>
|
||||||
|
<td><a href="mailto:<?php echo $val["mail"]; ?>"><?php echo $val["nom"]." ".$val["prenom"] ?></a> </td>
|
||||||
|
<td><?php echo $val["type"] ?></td>
|
||||||
|
<td><?php echo $val["lastlogin"] ?></td>
|
||||||
|
<td><?php echo $val["lastfail"] ?></td>
|
||||||
|
<td><?php echo $val["lastip"] ?></td>
|
||||||
|
<td><div class="<?php echo 'exp' . $admin->renew_get_status($val['uid']) ?>"><?php echo $admin->renew_get_expiry($val['uid']) ?></div></td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
|
||||||
|
} // Normal Mode
|
||||||
|
|
||||||
|
if ($mem->user["admlist"]==1) { // Short mode TODO : make 3 columns instead of 2 + XHTML compliance instead of 1px img trick ;)
|
||||||
|
?>
|
||||||
|
|
||||||
|
|
||||||
|
<table cellspacing="0" cellpadding="0">
|
||||||
|
<tr>
|
||||||
|
<th colspan="2"> </th><th><?php __("Username"); ?></th>
|
||||||
|
<th colspan="2"> </th><th><?php __("Username"); ?></th>
|
||||||
|
<th colspan="2"> </th><th><?php __("Username"); ?></th>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
reset($r);
|
||||||
|
$col=1;
|
||||||
|
|
||||||
|
$rz=ceil(count($r)/3);
|
||||||
|
|
||||||
|
for($z=0;$z<$rz;$z++)
|
||||||
|
{
|
||||||
|
$col=3-$col;
|
||||||
|
$val=$r[$z];
|
||||||
|
?>
|
||||||
|
<tr class="lst<?php echo $col; ?>">
|
||||||
|
<?php if ($val["su"]) { ?>
|
||||||
|
<td> </td>
|
||||||
|
<?php } else { ?>
|
||||||
|
<td align="center"><input type="checkbox" class="inc" name="d[]" value="<?php echo $val["uid"]; ?>"></td>
|
||||||
|
<?php } ?>
|
||||||
|
<td align="center">
|
||||||
|
<a href="adm_edit.php?uid=<?php echo $val["uid"] ?>"><?php __("E"); ?></a>
|
||||||
|
<a href="adm_quotaedit.php?uid=<?php echo $val["uid"] ?>"><?php __("Q"); ?></a>
|
||||||
|
<?php
|
||||||
|
if (!$val["enabled"])
|
||||||
|
echo "<img src=\"icon/encrypted.png\" width=\"16\" height=\"16\" alt=\""._("Locked Account")."\">";
|
||||||
|
else {
|
||||||
|
?>
|
||||||
|
<a href="adm_login.php?id=<?php echo $val["uid"];?>" target="_parent"><?php __("C"); ?></a>
|
||||||
|
<?php } ?>
|
||||||
|
</td>
|
||||||
|
<td style="padding-right: 2px; border-right: 1px solid; <?php if ($val["su"]) echo "color: red"; ?>"><?php echo $val["login"] ?></td>
|
||||||
|
<?php
|
||||||
|
$val=$r[$z+$rz];
|
||||||
|
if (is_array($val)) {
|
||||||
|
?>
|
||||||
|
<?php if ($val["su"]) { ?>
|
||||||
|
<td> </td>
|
||||||
|
<?php } else { ?>
|
||||||
|
<td align="center"><input type="checkbox" class="inc" name="d[]" value="<?php echo $val["uid"]; ?>"></td>
|
||||||
|
<?php } ?>
|
||||||
|
<td align="center">
|
||||||
|
<a href="adm_edit.php?uid=<?php echo $val["uid"] ?>"><?php __("E"); ?></a>
|
||||||
|
<a href="adm_quotaedit.php?uid=<?php echo $val["uid"] ?>"><?php __("Q"); ?></a>
|
||||||
|
<?php
|
||||||
|
if (!$val["enabled"])
|
||||||
|
echo "<img src=\"icon/encrypted.png\" width=\"16\" height=\"16\" alt=\""._("Locked Account")."\">";
|
||||||
|
else {
|
||||||
|
if($admin->checkcreator($val['uid'])) {
|
||||||
|
?>
|
||||||
|
<a href="adm_login.php?id=<?php echo $val["uid"];?>" target="_parent"><?php __("C"); ?></a>
|
||||||
|
<?php } } ?>
|
||||||
|
</td>
|
||||||
|
<td style="padding-right: 2px; border-right: 1px solid; <?php if ($val["su"]) echo "color: red"; ?>"><?php echo $val["login"] ?></td>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
} else echo "<td style=\"padding-right: 2px; border-right: 1px solid;\" colspan=\"3\"></td></tr>";
|
||||||
|
|
||||||
|
$val=$r[$z+2*$rz];
|
||||||
|
if (is_array($val)) {
|
||||||
|
?>
|
||||||
|
<?php if ($val["su"]) { ?>
|
||||||
|
<td> </td>
|
||||||
|
<?php } else { ?>
|
||||||
|
<td align="center"><input type="checkbox" class="inc" name="d[]" value="<?php echo $val["uid"]; ?>"></td>
|
||||||
|
<?php } ?>
|
||||||
|
<td align="center">
|
||||||
|
<a href="adm_edit.php?uid=<?php echo $val["uid"] ?>"><?php __("E"); ?></a>
|
||||||
|
<a href="adm_quotaedit.php?uid=<?php echo $val["uid"] ?>"><?php __("Q"); ?></a>
|
||||||
|
<?php
|
||||||
|
if (!$val["enabled"])
|
||||||
|
echo "<img src=\"icon/encrypted.png\" width=\"16\" height=\"16\" alt=\""._("Locked Account")."\">";
|
||||||
|
else {
|
||||||
|
?>
|
||||||
|
<a href="adm_login.php?id=<?php echo $val["uid"];?>" target="_parent"><?php __("C"); ?></a>
|
||||||
|
<?php } ?>
|
||||||
|
</td>
|
||||||
|
<td style="padding-right: 2px; border-right: 1px solid; <?php if ($val["su"]) echo "color: red"; ?>"><?php echo $val["login"] ?></td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
} else echo "<td style=\"padding-right: 2px; border-right: 1px solid;\" colspan=\"3\"></td></tr>";
|
||||||
|
} // for loop
|
||||||
|
} // Short Mode
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
||||||
|
<tr><td colspan="9"><input type="submit" class="inb" name="submit" value="<?php __("Delete checked accounts"); ?>" /></td></tr>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
<?php } ?>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,92 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: adm_login.php,v 1.4 2005/04/01 17:13:10 benjamin Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: Connect a super-user to another account
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
if (!$admin->enabled) {
|
||||||
|
__("This page is restricted to authorized staff");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
$id = $_GET['id'];
|
||||||
|
|
||||||
|
if (!$admin->checkcreator($id)) {
|
||||||
|
__("This page is restricted to authorized staff");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!$r=$admin->get($id)) {
|
||||||
|
$error=$err->errstr();
|
||||||
|
} else {
|
||||||
|
|
||||||
|
if (!$mem->setid($id)) {
|
||||||
|
$error=$err->errstr();
|
||||||
|
include("index.php");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<!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/style.css" type="text/css" />
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
||||||
|
</head>
|
||||||
|
<frameset cols="225px,*">
|
||||||
|
<frame src="menu.php" name="left" />
|
||||||
|
<frame src="main.php" name="right" />
|
||||||
|
<noframes>
|
||||||
|
<body>
|
||||||
|
<p>
|
||||||
|
Votre navigateur doit supporter les cadres.<br />
|
||||||
|
Your browser must support frames
|
||||||
|
</p>
|
||||||
|
</body>
|
||||||
|
</noframes>
|
||||||
|
</frameset>
|
||||||
|
</html>
|
||||||
|
<?php
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
include("head.php");
|
||||||
|
?>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h3><?php __("Member login"); ?></h3>
|
||||||
|
<?php
|
||||||
|
if ($error) {
|
||||||
|
echo "<p class=\"error\">$error</p></body></html>";
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,80 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: adm_panel.php,v 1.9 2005/08/01 18:25:52 anarcat Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: Panneau de control de l'administrateur
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
if (!$admin->enabled) {
|
||||||
|
__("This page is restricted to authorized staff");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
include("head.php");
|
||||||
|
?>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h3><?php __("Admin Control Panel"); ?></h3>
|
||||||
|
<?php
|
||||||
|
if ($error) {
|
||||||
|
echo "<p class=\"error\">$error</p></body></html>";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<blockquote>
|
||||||
|
<table border="0" cellpadding="4" cellspacing="0">
|
||||||
|
<tr class="lst1"><td><a href="adm_tld.php"><?php __("Manage allowed domains (TLD)"); ?></a></td></tr>
|
||||||
|
<tr class="lst2"><td><a href="adm_defquotas.php"><?php __("Change the default quotas"); ?></a></td></tr>
|
||||||
|
<tr class="lst1"><td><a href="adm_doms.php"><?php __("Manage installed domains"); ?></a></td></tr>
|
||||||
|
<tr class="lst2"><td><a href="adm_slaveip.php"><?php __("Manage allowed ip for slave zone transfers"); ?></a></td></tr>
|
||||||
|
<tr class="lst1"><td><a href="adm_slaveaccount.php"><?php __("Manage allowed accounts for slave zone transfers"); ?></a></td></tr>
|
||||||
|
<tr class="lst2"><td><a href="adm_variables.php"><?php __("Configure AlternC variables"); ?></a></td></tr>
|
||||||
|
<tr class="lst1"><td><a href="quota_show_all.php"><?php __("Show all quotas"); ?></a></td></tr>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
// here we include any "adminmenu_*" file content
|
||||||
|
$d=opendir(".");
|
||||||
|
if ($d) {
|
||||||
|
$lst=1;
|
||||||
|
while ($c=readdir($d)) {
|
||||||
|
if (substr($c,0,10)=="adminmenu_") {
|
||||||
|
echo "<tr class=\"lst$lst\">";
|
||||||
|
include($c);
|
||||||
|
echo "</tr>\n";
|
||||||
|
$lst=3-$lst;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
closedir($d);
|
||||||
|
?>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
</blockquote>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,55 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: adm_quotadoedit.php,v 1.3 2004/10/24 20:09:21 anonymous Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: Edit a member's quotas
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
if (!$admin->enabled) {
|
||||||
|
__("This page is restricted to authorized staff");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($submit) {
|
||||||
|
|
||||||
|
$mem->su($uid);
|
||||||
|
$qlist=$quota->qlist();
|
||||||
|
reset($qlist);
|
||||||
|
|
||||||
|
while (list($key,$val)=each($qlist)) {
|
||||||
|
$var="q_".$key;
|
||||||
|
$quota->setquota($key,$$var);
|
||||||
|
}
|
||||||
|
$mem->unsu();
|
||||||
|
$error=_("The quotas has been successfully edited");
|
||||||
|
include("adm_list.php");
|
||||||
|
exit;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
|
@ -0,0 +1,81 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: adm_quotaedit.php,v 1.4 2004/10/24 20:09:21 anonymous Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: Show the form to edit the user's quota
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
if (!$admin->enabled) {
|
||||||
|
__("This page is restricted to authorized staff");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!$us=$admin->get($uid)) {
|
||||||
|
$error=$err->errstr();
|
||||||
|
}
|
||||||
|
|
||||||
|
$mem->su($uid);
|
||||||
|
if (!$r=$quota->getquota()) {
|
||||||
|
$error=$err->errstr();
|
||||||
|
}
|
||||||
|
$mem->unsu();
|
||||||
|
include("head.php");
|
||||||
|
?>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h3><?php __("Editing the quotas of a member"); ?></h3>
|
||||||
|
<?php
|
||||||
|
if ($error) {
|
||||||
|
echo "<p class=\"error\">$error</p>";
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<form method="post" action="adm_quotadoedit.php">
|
||||||
|
<table border="1" cellspacing="0" cellpadding="6">
|
||||||
|
<tr><th><input type="hidden" name="uid" value="<?php echo $uid ?>" />
|
||||||
|
<?php __("Username"); ?></th><td colspan="3"><code><big><?php echo $us["login"]; ?></big></code> </td></tr>
|
||||||
|
<tr><th><?php __("Quota"); ?></th><th><?php __("Total"); ?></th><th><?php __("Used"); ?></th></tr>
|
||||||
|
<?php
|
||||||
|
$ql=$quota->qlist();
|
||||||
|
reset($ql);
|
||||||
|
while (list($key,$val)=each($ql)) {
|
||||||
|
echo "<tr>";
|
||||||
|
echo "<td>";
|
||||||
|
if ($r[$key]["t"]==$r[$key]["u"] && $r[$key]["u"]) echo "<font color=red>";
|
||||||
|
echo _("quota_".$key)."</td>";
|
||||||
|
if ($r[$key]["t"]==$r[$key]["u"] && $r[$key]["u"]) echo "</font>";
|
||||||
|
echo "<td align=\"center\"><input type=\"text\" class=\"int\" style=\"text-align: right\" size=\"10\" maxlength=\"10\" value=\"".$r[$key]["t"]."\" name=\"q_".$key."\" id=\"q_".$key."\" /></td>";
|
||||||
|
echo "<td align=\"right\"><code><label for=\"q_$key\">".$r[$key]["u"]."</label></code> </td>";
|
||||||
|
echo "</tr>";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<tr><td colspan="4" align="center"><input class="inb" type="submit" name="submit" value="<?php __("Edit the quotas"); ?>" />
|
||||||
|
</td></tr>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,102 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: adm_slaveaccount.php,v 1.2 2006/02/17 18:57:02 olivier Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: Manage list of allowed accounts for zone transfers
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
if (!$admin->enabled) {
|
||||||
|
__("This page is restricted to authorized staff");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($delaccount) {
|
||||||
|
// Delete an account
|
||||||
|
if ($dom->del_slave_account($delaccount)) {
|
||||||
|
$error=_("The requested account has been deleted. It is now denied.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ($newlogin) {
|
||||||
|
// Add an account
|
||||||
|
if ($dom->add_slave_account($newlogin,$newpass)) {
|
||||||
|
$error=_("The requested account address has been created. It is now allowed.");
|
||||||
|
unset($newlogin); unset($newpass);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
include("head.php");
|
||||||
|
?>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h3><?php __("Manage allowed accounts for slave zone transfers"); ?></h3>
|
||||||
|
<?php
|
||||||
|
if ($error) {
|
||||||
|
echo "<p class=\"error\">$error</p>";
|
||||||
|
}
|
||||||
|
|
||||||
|
$c=$dom->enum_slave_account();
|
||||||
|
|
||||||
|
if (is_array($c)) {
|
||||||
|
|
||||||
|
?>
|
||||||
|
<p>
|
||||||
|
<?php __("Here is the list of the allowed accounts for slave dns synchronization. You can configure the alternc-slavedns package on your slave server and give him the login/pass that will grant him access to your server's domain list. "); ?>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<table border="0" cellpadding="4" cellspacing="0">
|
||||||
|
<tr><th><?php __("Action"); ?></th><th><?php __("Login"); ?></th><th><?php __("Password"); ?></th></tr>
|
||||||
|
<?php
|
||||||
|
$col=1;
|
||||||
|
for($i=0;$i<count($c);$i++) {
|
||||||
|
$col=3-$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><?php echo $c[$i]["login"]; ?></td>
|
||||||
|
<td><?php echo $c[$i]["pass"]; ?></td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</table>
|
||||||
|
<?php } ?>
|
||||||
|
<p><?php __("If you want to allow a new server to access your domain list, give him an account."); ?></p>
|
||||||
|
<form method="post" action="adm_slaveaccount.php">
|
||||||
|
<table border="0" cellpadding="4" cellspacing="0">
|
||||||
|
<tr><th><label for="newlogin"><?php __("Login"); ?></label></th><th><label for="newpass"><?php __("Password"); ?></label></th></tr>
|
||||||
|
<tr>
|
||||||
|
<td><input type="text" class="int" value="<?php echo urlencode($newlogin); ?>" id="newlogin" name="newlogin" maxlength="64" size="32" /> / </td>
|
||||||
|
<td><input type="password" class="int" value="<?php echo urlencode($newpass); ?>" id="newpass" name="newpass" maxlength="64" size="32" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr><td colspan="2">
|
||||||
|
<input type="submit" value="<?php __("Add this account to the allowed list"); ?>" class="inb" />
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,103 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: adm_slaveip.php,v 1.2 2004/06/02 13:03:13 anonymous Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: Manage list of allowed ip for zone transfers
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
if (!$admin->enabled) {
|
||||||
|
__("This page is restricted to authorized staff");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($delip) {
|
||||||
|
// Delete an ip address/class
|
||||||
|
if ($dom->del_slave_ip($delip)) {
|
||||||
|
$error=_("The requested ip address has been deleted. It will be denied in one hour.");
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if ($newip) {
|
||||||
|
// Add an ip address/class
|
||||||
|
if ($dom->add_slave_ip($newip,$newclass)) {
|
||||||
|
$error=_("The requested ip address has been added to the list. It will be allowed in one hour.");
|
||||||
|
unset($newip); unset($newclass);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!$newclass) $newclass=32;
|
||||||
|
|
||||||
|
include("head.php");
|
||||||
|
?>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h3><?php __("Manage allowed ip for slave zone transfers"); ?></h3>
|
||||||
|
<?php
|
||||||
|
if ($error) {
|
||||||
|
echo "<p class=\"error\">$error</p>";
|
||||||
|
}
|
||||||
|
|
||||||
|
$c=$dom->enum_slave_ip();
|
||||||
|
|
||||||
|
if (is_array($c)) {
|
||||||
|
|
||||||
|
?>
|
||||||
|
<p>
|
||||||
|
<?php __("Here is the list of the allowed ip or ip class for slave dns zone transfer requests (AXFR). You must add the ip address of all the slave DNS you have so that those slaves will be allowed to transfer the zone files. There is also some defaults ip from DNS checks made by some third-party technical offices such as afnic (for .fr domains)"); ?>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<table border="0" cellpadding="4" cellspacing="0">
|
||||||
|
<tr><th><?php __("Action"); ?></th><th><?php __("IP Address"); ?></th></tr>
|
||||||
|
<?php
|
||||||
|
$col=1;
|
||||||
|
for($i=0;$i<count($c);$i++) {
|
||||||
|
$col=3-$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><?php echo $c[$i]["ip"]."/".$c[$i]["class"]; ?></td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</table>
|
||||||
|
<?php } ?>
|
||||||
|
<p><?php __("If you want to allow an ip address or class to connect to your dns server, enter it here. Choose 32 as a prefix for single ip address."); ?></p>
|
||||||
|
<form method="post" action="adm_slaveip.php">
|
||||||
|
<table border="0" cellpadding="4" cellspacing="0">
|
||||||
|
<tr><th><label for="newip"><?php __("IP Address"); ?></label></th><th><label for="newclass"><?php __("Prefix"); ?></label></th></tr>
|
||||||
|
<tr>
|
||||||
|
<td style="text-align: right"><input type="text" class="int" value="<?php echo urlencode($newip); ?>" id="newip" name="newip" maxlength="15" size="20" style="text-align:right" /> / </td>
|
||||||
|
<td><input type="text" class="int" value="<?php echo urlencode($newclass); ?>" id="newclass" name="newclass" maxlength="2" size="3" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr><td colspan="2">
|
||||||
|
<input type="submit" value="<?php __("Add this ip to the slave list"); ?>" class="inb" />
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,87 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: adm_tld.php,v 1.4 2004/11/29 17:27:04 anonymous Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: Manage allowed TLD on the server
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
if (!$admin->enabled) {
|
||||||
|
__("This page is restricted to authorized staff");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (is_array($sel)) {
|
||||||
|
$error="";
|
||||||
|
for($i=0;$i<count($sel);$i++) {
|
||||||
|
if (!$admin->deltld($sel[$i])) {
|
||||||
|
$error.=_("Some TLD cannot be deleted...")." : ".$sel[$i]."<br />";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (!$error) $error=_("The requested TLD has been deleted");
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
include("head.php");
|
||||||
|
?>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h3><?php __("Manage allowed domains (TLD)"); ?></h3>
|
||||||
|
<?php
|
||||||
|
if ($error) {
|
||||||
|
echo "<p class=\"error\">$error</p>";
|
||||||
|
}
|
||||||
|
|
||||||
|
$c=$admin->listtld();
|
||||||
|
|
||||||
|
?>
|
||||||
|
<p>
|
||||||
|
<?php __("Here is the list of the TLD allowed on this server. Each TLD can be allowed or denied after some checks (whois, ns, domain exists...)"); ?>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<form method="post" action="adm_tld.php">
|
||||||
|
<table border="0" cellpadding="4" cellspacing="0">
|
||||||
|
<tr><th><?php __("Action"); ?></th><th><?php __("TLD"); ?></th><th><?php __("Allowed Mode"); ?></th></tr>
|
||||||
|
<?php
|
||||||
|
$col=1;
|
||||||
|
for($i=0;$i<count($c);$i++) {
|
||||||
|
$col=3-$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"]; ?>" /> <a href="adm_tldedit.php?tld=<?php echo urlencode($c[$i]["tld"]); ?>"><?php __("Edit"); ?></a></td>
|
||||||
|
<td><label for="sel<?php echo $i; ?>"><?php echo $c[$i]["tld"]; ?></label></td>
|
||||||
|
<td><?php __($admin->tldmode[$c[$i]["mode"]]); ?></td></tr>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<tr><td colspan="3"><input type="submit" class="inb" value="<?php __("Delete the checked TLD"); ?>" /></td></tr>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
<a href="adm_tldadd.php"><?php __("Add a new TLD"); ?></a>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,67 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: adm_tldadd.php,v 1.3 2003/06/10 12:14:09 root Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: Manage allowed TLD on the server
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
if (!$admin->enabled) {
|
||||||
|
__("This page is restricted to authorized staff");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
include("head.php");
|
||||||
|
?>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h3><?php __("Manage allowed domains (TLD)"); ?></h3>
|
||||||
|
<?php
|
||||||
|
if ($error) {
|
||||||
|
echo "<p class=\"error\">$error</p>";
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
?>
|
||||||
|
<h3><?php __("Add a new TLD"); ?></h3>
|
||||||
|
<p>
|
||||||
|
<?php __("Enter the new TLD (without the first dot) and choose what check should be done."); ?><br />
|
||||||
|
<small><?php __("Warning : only some final tld are known in the whois function of AlternC, please check m_domains.php accordingly."); ?></small>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<form method="post" action="adm_tlddoadd.php">
|
||||||
|
|
||||||
|
<table border="0" cellpadding="4" cellspacing="0">
|
||||||
|
<tr><th><label for="tld"><?php __("TLD"); ?></label></th><td><input type="text" id="tld" name="tld" class="int" value="<?php echo $tld; ?>" size="20" maxlength="64" /></td></tr>
|
||||||
|
<tr><th><label for="mode"><?php __("Allowed Mode"); ?></label></th><td><select name="mode" id="mode" class="inl">
|
||||||
|
<?php $admin->selecttldmode($mode); ?>
|
||||||
|
</select></td></tr>
|
||||||
|
<tr><td colspan="2"><input type="submit" class="inb" value="<?php __("Add a new TLD"); ?>" /></td></tr>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,46 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: adm_tlddoadd.php,v 1.1.1.1 2003/03/26 17:41:29 root Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: Manage allowed TLD on the server
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
if (!$admin->enabled) {
|
||||||
|
__("This page is restricted to authorized staff");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!$admin->addtld($tld,$mode)) {
|
||||||
|
$error=$err->errstr();
|
||||||
|
include("adm_tldadd.php");
|
||||||
|
exit();
|
||||||
|
} else {
|
||||||
|
$error=_("The TLD has been successfully added");
|
||||||
|
include("adm_tld.php");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
?>
|
|
@ -0,0 +1,46 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: adm_tlddoedit.php,v 1.1.1.1 2003/03/26 17:41:29 root Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: Manage allowed TLD on the server
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
if (!$admin->enabled) {
|
||||||
|
__("This page is restricted to authorized staff");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!$admin->edittld($tld,$mode)) {
|
||||||
|
$error=$err->errstr();
|
||||||
|
include("adm_tldedit.php");
|
||||||
|
exit();
|
||||||
|
} else {
|
||||||
|
$error=_("The TLD has been successfully edited");
|
||||||
|
include("adm_tld.php");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
?>
|
|
@ -0,0 +1,67 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: adm_tldedit.php,v 1.2 2003/06/10 12:14:09 root Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: Manage allowed TLD on the server
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
if (!$admin->enabled) {
|
||||||
|
__("This page is restricted to authorized staff");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
$mode=$admin->gettld($tld);
|
||||||
|
if ($mode===false) {
|
||||||
|
$error=$err->errstr();
|
||||||
|
include("adm_tld.php");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
include("head.php");
|
||||||
|
?>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h3><?php __("Manage allowed domains (TLD)"); ?></h3>
|
||||||
|
<?php
|
||||||
|
if ($error) {
|
||||||
|
echo "<p class=\"error\">$error</p>";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<h3><?php __("Edit a TLD"); ?></h3>
|
||||||
|
|
||||||
|
<form method="post" action="adm_tlddoedit.php">
|
||||||
|
<table border="0" cellpadding="4" cellspacing="0">
|
||||||
|
<tr><th><label for="tld"><?php __("TLD"); ?></label></th><td><code><?php echo $tld; ?></code><input type="hidden" name="tld" id="tld" value="<?php echo $tld; ?>" /></td></tr>
|
||||||
|
<tr><th><label for="mode"><?php __("Allowed Mode"); ?></label></th><td><select name="mode" class="inl" id="mode">
|
||||||
|
<?php $admin->selecttldmode($mode); ?>
|
||||||
|
</select></td></tr>
|
||||||
|
<tr><td colspan="2"><input type="submit" class="inb" value="<?php __("Edit this TLD"); ?>" /></td></tr>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,76 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: adm_variables.php,v 1.1 2005/01/19 06:09:36 anarcat Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: Manage allowed TLD on the server
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
if (!$admin->enabled) {
|
||||||
|
__("This page is restricted to authorized staff");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
$conf = variable_init();
|
||||||
|
foreach ($conf as $name => $val) {
|
||||||
|
if (isset($$name)) {
|
||||||
|
variable_set($name, $$name);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
include("head.php");
|
||||||
|
?>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h3><?php __("Configure AlternC variables"); ?></h3>
|
||||||
|
|
||||||
|
<p>
|
||||||
|
<?php __("Here are the internal AlternC variables that are currently being used."); ?>
|
||||||
|
</p>
|
||||||
|
|
||||||
|
<form method="post" action="adm_variables.php">
|
||||||
|
<table border="0" cellpadding="4" cellspacing="0">
|
||||||
|
<tr><th><?php __("Names"); ?></th><th><?php __("Value"); ?></th><th><?php __("Comment"); ?></th></tr>
|
||||||
|
<?php
|
||||||
|
$col=1;
|
||||||
|
$db->query("SELECT * FROM `variable` WHERE `comment` IS NOT NULL ORDER BY `name`");
|
||||||
|
|
||||||
|
while ($db->next_record()) {
|
||||||
|
$vars = $db->Record;
|
||||||
|
$col=3-$col;
|
||||||
|
?>
|
||||||
|
|
||||||
|
<tr class="lst<?php echo $col; ?>">
|
||||||
|
<td><?php echo $vars['name']; ?></td>
|
||||||
|
<td><input type="text" name="<?php echo $vars['name']?>" value="<?php echo $vars['value']?>" ></td>
|
||||||
|
<td><?php echo $vars['comment']; ?></td>
|
||||||
|
</tr>
|
||||||
|
<? } ?>
|
||||||
|
</table>
|
||||||
|
<input type="submit" class="inb" value="<?php __("Save variables"); ?>" />
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
</html>
|
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 14 KiB |
|
@ -0,0 +1 @@
|
||||||
|
Contient les fichiers utilisés par les pages sgml
|
After Width: | Height: | Size: 7.9 KiB |
After Width: | Height: | Size: 46 KiB |
After Width: | Height: | Size: 56 KiB |
|
@ -0,0 +1,60 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: help.php,v 1.3 2004/12/16 16:14:57 anonymous Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file:
|
||||||
|
Purpose of file:
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../../class/config.php");
|
||||||
|
|
||||||
|
$hlist=array(
|
||||||
|
100=>"c26.html",
|
||||||
|
0=>"book1.html"
|
||||||
|
);
|
||||||
|
|
||||||
|
if (!$hlist[$hid]) {
|
||||||
|
$hid=0;
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Aide en ligne <?php echo $host ?></title>
|
||||||
|
<link rel="stylesheet" href="styles/style.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>
|
||||||
|
ames
|
||||||
|
</noframes>
|
||||||
|
</html>
|
||||||
|
|
After Width: | Height: | Size: 717 B |
|
@ -0,0 +1,228 @@
|
||||||
|
<HTML
|
||||||
|
><HEAD
|
||||||
|
><TITLE
|
||||||
|
>AlternC, Documentation Utilisateur</TITLE
|
||||||
|
><META
|
||||||
|
NAME="GENERATOR"
|
||||||
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
|
||||||
|
"><LINK
|
||||||
|
REL="NEXT"
|
||||||
|
TITLE="Introduction"
|
||||||
|
HREF="c18.html"><META
|
||||||
|
NAME="KEYWORD"
|
||||||
|
CONTENT="AlternC"><META
|
||||||
|
NAME="KEYWORD"
|
||||||
|
CONTENT="Hébergement"><LINK
|
||||||
|
REL="STYLESHEET"
|
||||||
|
TYPE="text/css"
|
||||||
|
HREF="docbook.css"></HEAD
|
||||||
|
><BODY
|
||||||
|
CLASS="BOOK"
|
||||||
|
BGCOLOR="#FFFFFF"
|
||||||
|
TEXT="#000000"
|
||||||
|
LINK="#0000FF"
|
||||||
|
VLINK="#840084"
|
||||||
|
ALINK="#0000FF"
|
||||||
|
><DIV
|
||||||
|
CLASS="BOOK"
|
||||||
|
><A
|
||||||
|
NAME="AEN1"><DIV
|
||||||
|
CLASS="TITLEPAGE"
|
||||||
|
><H1
|
||||||
|
CLASS="TITLE"
|
||||||
|
><A
|
||||||
|
NAME="AEN2">AlternC, Documentation Utilisateur</H1
|
||||||
|
><H3
|
||||||
|
CLASS="AUTHOR"
|
||||||
|
><A
|
||||||
|
NAME="AEN5"> AlternC Development Team</H3
|
||||||
|
><DIV
|
||||||
|
CLASS="AFFILIATION"
|
||||||
|
><DIV
|
||||||
|
CLASS="ADDRESS"
|
||||||
|
><P
|
||||||
|
CLASS="ADDRESS"
|
||||||
|
>tech@alternc.org</P
|
||||||
|
></DIV
|
||||||
|
></DIV
|
||||||
|
><DIV
|
||||||
|
><DIV
|
||||||
|
CLASS="ABSTRACT"
|
||||||
|
><A
|
||||||
|
NAME="AEN13"><P
|
||||||
|
></P
|
||||||
|
><P
|
||||||
|
>Bienvenue dans l'aide en ligne d'AlternC.</P
|
||||||
|
><P
|
||||||
|
></P
|
||||||
|
></DIV
|
||||||
|
></DIV
|
||||||
|
><HR></DIV
|
||||||
|
><DIV
|
||||||
|
CLASS="TOC"
|
||||||
|
><DL
|
||||||
|
><DT
|
||||||
|
><B
|
||||||
|
>Table des matières</B
|
||||||
|
></DT
|
||||||
|
><DT
|
||||||
|
>1. <A
|
||||||
|
HREF="c18.html"
|
||||||
|
>Introduction</A
|
||||||
|
></DT
|
||||||
|
><DD
|
||||||
|
><DL
|
||||||
|
><DT
|
||||||
|
><A
|
||||||
|
HREF="c18.html#I1.1"
|
||||||
|
>Introduction à AlternC</A
|
||||||
|
></DT
|
||||||
|
><DT
|
||||||
|
><A
|
||||||
|
HREF="x23.html"
|
||||||
|
>Fonctionnement de l'aide en ligne</A
|
||||||
|
></DT
|
||||||
|
></DL
|
||||||
|
></DD
|
||||||
|
><DT
|
||||||
|
>2. <A
|
||||||
|
HREF="c26.html"
|
||||||
|
>Les Noms de Domaines</A
|
||||||
|
></DT
|
||||||
|
><DD
|
||||||
|
><DL
|
||||||
|
><DT
|
||||||
|
><A
|
||||||
|
HREF="c26.html#DOMAIN.1"
|
||||||
|
>Introduction / Installation d'un nouveau domaine</A
|
||||||
|
></DT
|
||||||
|
><DT
|
||||||
|
><A
|
||||||
|
HREF="x53.html"
|
||||||
|
>Configuration d'un domaine / sous-domaine</A
|
||||||
|
></DT
|
||||||
|
></DL
|
||||||
|
></DD
|
||||||
|
><DT
|
||||||
|
>3. <A
|
||||||
|
HREF="c72.html"
|
||||||
|
>Comptes FTP</A
|
||||||
|
></DT
|
||||||
|
><DD
|
||||||
|
><DL
|
||||||
|
><DT
|
||||||
|
><A
|
||||||
|
HREF="c72.html#FTP.1"
|
||||||
|
>Introduction</A
|
||||||
|
></DT
|
||||||
|
></DL
|
||||||
|
></DD
|
||||||
|
><DT
|
||||||
|
>4. <A
|
||||||
|
HREF="c84.html"
|
||||||
|
>Le gestionnaire de fichiers</A
|
||||||
|
></DT
|
||||||
|
><DD
|
||||||
|
><DL
|
||||||
|
><DT
|
||||||
|
><A
|
||||||
|
HREF="c84.html#BROWSER.1"
|
||||||
|
>Introduction / Description</A
|
||||||
|
></DT
|
||||||
|
><DT
|
||||||
|
><A
|
||||||
|
HREF="x105.html"
|
||||||
|
>Paramètres du gestionnaire de fichiers</A
|
||||||
|
></DT
|
||||||
|
></DL
|
||||||
|
></DD
|
||||||
|
><DT
|
||||||
|
>5. <A
|
||||||
|
HREF="c126.html"
|
||||||
|
>Les statistiques Web.</A
|
||||||
|
></DT
|
||||||
|
><DD
|
||||||
|
><DL
|
||||||
|
><DT
|
||||||
|
><A
|
||||||
|
HREF="c126.html#STATS.1"
|
||||||
|
>Introduction / Mode d'emploi</A
|
||||||
|
></DT
|
||||||
|
></DL
|
||||||
|
></DD
|
||||||
|
></DL
|
||||||
|
></DIV
|
||||||
|
><DIV
|
||||||
|
CLASS="LOT"
|
||||||
|
><DL
|
||||||
|
CLASS="LOT"
|
||||||
|
><DT
|
||||||
|
><B
|
||||||
|
>Liste des exemples</B
|
||||||
|
></DT
|
||||||
|
><DT
|
||||||
|
>2-1. <A
|
||||||
|
HREF="c26.html#AEN37"
|
||||||
|
>Exemple de registrar</A
|
||||||
|
></DT
|
||||||
|
><DT
|
||||||
|
>2-2. <A
|
||||||
|
HREF="c26.html#AEN46"
|
||||||
|
>Exemple de DNS</A
|
||||||
|
></DT
|
||||||
|
></DL
|
||||||
|
></DIV
|
||||||
|
></DIV
|
||||||
|
><DIV
|
||||||
|
CLASS="NAVFOOTER"
|
||||||
|
><HR
|
||||||
|
ALIGN="LEFT"
|
||||||
|
WIDTH="100%"><TABLE
|
||||||
|
SUMMARY="Footer navigation table"
|
||||||
|
WIDTH="100%"
|
||||||
|
BORDER="0"
|
||||||
|
CELLPADDING="0"
|
||||||
|
CELLSPACING="0"
|
||||||
|
><TR
|
||||||
|
><TD
|
||||||
|
WIDTH="33%"
|
||||||
|
ALIGN="left"
|
||||||
|
VALIGN="top"
|
||||||
|
> </TD
|
||||||
|
><TD
|
||||||
|
WIDTH="34%"
|
||||||
|
ALIGN="center"
|
||||||
|
VALIGN="top"
|
||||||
|
> </TD
|
||||||
|
><TD
|
||||||
|
WIDTH="33%"
|
||||||
|
ALIGN="right"
|
||||||
|
VALIGN="top"
|
||||||
|
><A
|
||||||
|
HREF="c18.html"
|
||||||
|
ACCESSKEY="N"
|
||||||
|
>Suivant</A
|
||||||
|
></TD
|
||||||
|
></TR
|
||||||
|
><TR
|
||||||
|
><TD
|
||||||
|
WIDTH="33%"
|
||||||
|
ALIGN="left"
|
||||||
|
VALIGN="top"
|
||||||
|
> </TD
|
||||||
|
><TD
|
||||||
|
WIDTH="34%"
|
||||||
|
ALIGN="center"
|
||||||
|
VALIGN="top"
|
||||||
|
> </TD
|
||||||
|
><TD
|
||||||
|
WIDTH="33%"
|
||||||
|
ALIGN="right"
|
||||||
|
VALIGN="top"
|
||||||
|
>Introduction</TD
|
||||||
|
></TR
|
||||||
|
></TABLE
|
||||||
|
></DIV
|
||||||
|
></BODY
|
||||||
|
></HTML
|
||||||
|
>
|
|
@ -0,0 +1,186 @@
|
||||||
|
<HTML
|
||||||
|
><HEAD
|
||||||
|
><TITLE
|
||||||
|
>Les statistiques Web.</TITLE
|
||||||
|
><META
|
||||||
|
NAME="GENERATOR"
|
||||||
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
|
||||||
|
"><LINK
|
||||||
|
REL="HOME"
|
||||||
|
TITLE="AlternC, Documentation Utilisateur"
|
||||||
|
HREF="book1.html"><LINK
|
||||||
|
REL="PREVIOUS"
|
||||||
|
TITLE="Paramètres du gestionnaire de fichiers"
|
||||||
|
HREF="x105.html"><LINK
|
||||||
|
REL="STYLESHEET"
|
||||||
|
TYPE="text/css"
|
||||||
|
HREF="docbook.css"></HEAD
|
||||||
|
><BODY
|
||||||
|
CLASS="CHAPTER"
|
||||||
|
BGCOLOR="#FFFFFF"
|
||||||
|
TEXT="#000000"
|
||||||
|
LINK="#0000FF"
|
||||||
|
VLINK="#840084"
|
||||||
|
ALINK="#0000FF"
|
||||||
|
><DIV
|
||||||
|
CLASS="NAVHEADER"
|
||||||
|
><TABLE
|
||||||
|
SUMMARY="Header navigation table"
|
||||||
|
WIDTH="100%"
|
||||||
|
BORDER="0"
|
||||||
|
CELLPADDING="0"
|
||||||
|
CELLSPACING="0"
|
||||||
|
><TR
|
||||||
|
><TH
|
||||||
|
COLSPAN="3"
|
||||||
|
ALIGN="center"
|
||||||
|
>AlternC, Documentation Utilisateur</TH
|
||||||
|
></TR
|
||||||
|
><TR
|
||||||
|
><TD
|
||||||
|
WIDTH="10%"
|
||||||
|
ALIGN="left"
|
||||||
|
VALIGN="bottom"
|
||||||
|
><A
|
||||||
|
HREF="x105.html"
|
||||||
|
ACCESSKEY="P"
|
||||||
|
>Précédent</A
|
||||||
|
></TD
|
||||||
|
><TD
|
||||||
|
WIDTH="80%"
|
||||||
|
ALIGN="center"
|
||||||
|
VALIGN="bottom"
|
||||||
|
></TD
|
||||||
|
><TD
|
||||||
|
WIDTH="10%"
|
||||||
|
ALIGN="right"
|
||||||
|
VALIGN="bottom"
|
||||||
|
> </TD
|
||||||
|
></TR
|
||||||
|
></TABLE
|
||||||
|
><HR
|
||||||
|
ALIGN="LEFT"
|
||||||
|
WIDTH="100%"></DIV
|
||||||
|
><DIV
|
||||||
|
CLASS="CHAPTER"
|
||||||
|
><H1
|
||||||
|
><A
|
||||||
|
NAME="STATS">Chapitre 5. Les statistiques Web.</H1
|
||||||
|
><DIV
|
||||||
|
CLASS="SECT1"
|
||||||
|
><H1
|
||||||
|
CLASS="SECT1"
|
||||||
|
><A
|
||||||
|
NAME="STATS.1">Introduction / Mode d'emploi</H1
|
||||||
|
><P
|
||||||
|
>Sur AlternC, vous pouvez héberger des domaines / sous-domaines, sur lesquels vous hébergez un ou
|
||||||
|
plusieurs sites web. Maintenant que votre site est en marche, vous souhaitez savoir qui va voir votre
|
||||||
|
site, d'où ils viennent, quelles pages sont les plus vues etc. Pour cela, vous pouvez utiliser l'outil
|
||||||
|
de génération de statistiques web.</P
|
||||||
|
><P
|
||||||
|
>Ce menu vous permet de demander la génération quotidienne de pages html dans un dossier de votre espace disque.
|
||||||
|
Pour créer un jeu de statistiques associé à votre site web, cliquez sur "Statistiques web" puis sur
|
||||||
|
"Créer un jeu de statistiques".
|
||||||
|
<P
|
||||||
|
><IMG
|
||||||
|
SRC="files/sta_add.png"></P
|
||||||
|
>
|
||||||
|
Ensuite, choisissez dans la liste le nom de domaine dont vous souhaitez obtenir des statistiques,
|
||||||
|
Choisissez la langue dans laquelle vous souhaitez que ces statistiques soit générées.
|
||||||
|
Enfin, Entrez le nom du dossier dans lequel vous voulez voir apparaitre les pages HTML de statistiques.</P
|
||||||
|
><DIV
|
||||||
|
CLASS="CAUTION"
|
||||||
|
><P
|
||||||
|
></P
|
||||||
|
><TABLE
|
||||||
|
CLASS="CAUTION"
|
||||||
|
BORDER="1"
|
||||||
|
WIDTH="100%"
|
||||||
|
><TR
|
||||||
|
><TD
|
||||||
|
ALIGN="CENTER"
|
||||||
|
><B
|
||||||
|
>Attention</B
|
||||||
|
></TD
|
||||||
|
></TR
|
||||||
|
><TR
|
||||||
|
><TD
|
||||||
|
ALIGN="LEFT"
|
||||||
|
>Notez qu'il faut attendre le lendemain pour voir apparaitre comme par magie les premiers
|
||||||
|
fichiers de statistique dans le dossier désigné. En effet, ceux-ci sont générés tous les matins.</TD
|
||||||
|
></TR
|
||||||
|
></TABLE
|
||||||
|
></DIV
|
||||||
|
><P
|
||||||
|
>Dès le lendemain, vous pourrez aller sur la page web du dossier contenant vos statistiques pour y retrouver
|
||||||
|
les pages générées:
|
||||||
|
<P
|
||||||
|
><IMG
|
||||||
|
SRC="files/sta_view1.png"></P
|
||||||
|
>
|
||||||
|
Une page index, contenant un résumé des visites par mois, ainsi qu'un graphique le représentant,
|
||||||
|
ainsi qu'une page par mois, détaillant les visites, les mots-clés utilisés sur les moteurs de recherche,
|
||||||
|
les liens vers le site etc.
|
||||||
|
<P
|
||||||
|
><IMG
|
||||||
|
SRC="files/sta_view2.png"></P
|
||||||
|
></P
|
||||||
|
></DIV
|
||||||
|
></DIV
|
||||||
|
><DIV
|
||||||
|
CLASS="NAVFOOTER"
|
||||||
|
><HR
|
||||||
|
ALIGN="LEFT"
|
||||||
|
WIDTH="100%"><TABLE
|
||||||
|
SUMMARY="Footer navigation table"
|
||||||
|
WIDTH="100%"
|
||||||
|
BORDER="0"
|
||||||
|
CELLPADDING="0"
|
||||||
|
CELLSPACING="0"
|
||||||
|
><TR
|
||||||
|
><TD
|
||||||
|
WIDTH="33%"
|
||||||
|
ALIGN="left"
|
||||||
|
VALIGN="top"
|
||||||
|
><A
|
||||||
|
HREF="x105.html"
|
||||||
|
ACCESSKEY="P"
|
||||||
|
>Précédent</A
|
||||||
|
></TD
|
||||||
|
><TD
|
||||||
|
WIDTH="34%"
|
||||||
|
ALIGN="center"
|
||||||
|
VALIGN="top"
|
||||||
|
><A
|
||||||
|
HREF="book1.html"
|
||||||
|
ACCESSKEY="H"
|
||||||
|
>Sommaire</A
|
||||||
|
></TD
|
||||||
|
><TD
|
||||||
|
WIDTH="33%"
|
||||||
|
ALIGN="right"
|
||||||
|
VALIGN="top"
|
||||||
|
> </TD
|
||||||
|
></TR
|
||||||
|
><TR
|
||||||
|
><TD
|
||||||
|
WIDTH="33%"
|
||||||
|
ALIGN="left"
|
||||||
|
VALIGN="top"
|
||||||
|
>Paramètres du gestionnaire de fichiers</TD
|
||||||
|
><TD
|
||||||
|
WIDTH="34%"
|
||||||
|
ALIGN="center"
|
||||||
|
VALIGN="top"
|
||||||
|
> </TD
|
||||||
|
><TD
|
||||||
|
WIDTH="33%"
|
||||||
|
ALIGN="right"
|
||||||
|
VALIGN="top"
|
||||||
|
> </TD
|
||||||
|
></TR
|
||||||
|
></TABLE
|
||||||
|
></DIV
|
||||||
|
></BODY
|
||||||
|
></HTML
|
||||||
|
>
|
|
@ -0,0 +1,171 @@
|
||||||
|
<HTML
|
||||||
|
><HEAD
|
||||||
|
><TITLE
|
||||||
|
>Introduction</TITLE
|
||||||
|
><META
|
||||||
|
NAME="GENERATOR"
|
||||||
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
|
||||||
|
"><LINK
|
||||||
|
REL="HOME"
|
||||||
|
TITLE="AlternC, Documentation Utilisateur"
|
||||||
|
HREF="book1.html"><LINK
|
||||||
|
REL="PREVIOUS"
|
||||||
|
TITLE="AlternC, Documentation Utilisateur"
|
||||||
|
HREF="book1.html"><LINK
|
||||||
|
REL="NEXT"
|
||||||
|
TITLE="Fonctionnement de l'aide en ligne"
|
||||||
|
HREF="x23.html"><LINK
|
||||||
|
REL="STYLESHEET"
|
||||||
|
TYPE="text/css"
|
||||||
|
HREF="docbook.css"></HEAD
|
||||||
|
><BODY
|
||||||
|
CLASS="CHAPTER"
|
||||||
|
BGCOLOR="#FFFFFF"
|
||||||
|
TEXT="#000000"
|
||||||
|
LINK="#0000FF"
|
||||||
|
VLINK="#840084"
|
||||||
|
ALINK="#0000FF"
|
||||||
|
><DIV
|
||||||
|
CLASS="NAVHEADER"
|
||||||
|
><TABLE
|
||||||
|
SUMMARY="Header navigation table"
|
||||||
|
WIDTH="100%"
|
||||||
|
BORDER="0"
|
||||||
|
CELLPADDING="0"
|
||||||
|
CELLSPACING="0"
|
||||||
|
><TR
|
||||||
|
><TH
|
||||||
|
COLSPAN="3"
|
||||||
|
ALIGN="center"
|
||||||
|
>AlternC, Documentation Utilisateur</TH
|
||||||
|
></TR
|
||||||
|
><TR
|
||||||
|
><TD
|
||||||
|
WIDTH="10%"
|
||||||
|
ALIGN="left"
|
||||||
|
VALIGN="bottom"
|
||||||
|
><A
|
||||||
|
HREF="book1.html"
|
||||||
|
ACCESSKEY="P"
|
||||||
|
>Précédent</A
|
||||||
|
></TD
|
||||||
|
><TD
|
||||||
|
WIDTH="80%"
|
||||||
|
ALIGN="center"
|
||||||
|
VALIGN="bottom"
|
||||||
|
></TD
|
||||||
|
><TD
|
||||||
|
WIDTH="10%"
|
||||||
|
ALIGN="right"
|
||||||
|
VALIGN="bottom"
|
||||||
|
><A
|
||||||
|
HREF="x23.html"
|
||||||
|
ACCESSKEY="N"
|
||||||
|
>Suivant</A
|
||||||
|
></TD
|
||||||
|
></TR
|
||||||
|
></TABLE
|
||||||
|
><HR
|
||||||
|
ALIGN="LEFT"
|
||||||
|
WIDTH="100%"></DIV
|
||||||
|
><DIV
|
||||||
|
CLASS="CHAPTER"
|
||||||
|
><H1
|
||||||
|
><A
|
||||||
|
NAME="SOMMAIRE">Chapitre 1. Introduction</H1
|
||||||
|
><DIV
|
||||||
|
CLASS="TOC"
|
||||||
|
><DL
|
||||||
|
><DT
|
||||||
|
><B
|
||||||
|
>Table des matières</B
|
||||||
|
></DT
|
||||||
|
><DT
|
||||||
|
><A
|
||||||
|
HREF="c18.html#I1.1"
|
||||||
|
>Introduction à AlternC</A
|
||||||
|
></DT
|
||||||
|
><DT
|
||||||
|
><A
|
||||||
|
HREF="x23.html"
|
||||||
|
>Fonctionnement de l'aide en ligne</A
|
||||||
|
></DT
|
||||||
|
></DL
|
||||||
|
></DIV
|
||||||
|
><DIV
|
||||||
|
CLASS="SECT1"
|
||||||
|
><H1
|
||||||
|
CLASS="SECT1"
|
||||||
|
><A
|
||||||
|
NAME="I1.1">Introduction à AlternC</H1
|
||||||
|
><P
|
||||||
|
>AlternC est un logiciel de gestion d'hébergeur de sites Internet, d'emails, de
|
||||||
|
noms de domaines et de tout service web disponible pour le public. Ce
|
||||||
|
logiciel utilise des programmes comme apache pour serveur web ou postfix
|
||||||
|
pour le courrier électronique. Il fournit une suite logicielle écrite en php4
|
||||||
|
qui permet de gérer intégralement un serveur depuis une interface web,
|
||||||
|
et permet d'allouer à chaque utilisateur un certain nombre de ressources
|
||||||
|
sur le serveur. </P
|
||||||
|
></DIV
|
||||||
|
></DIV
|
||||||
|
><DIV
|
||||||
|
CLASS="NAVFOOTER"
|
||||||
|
><HR
|
||||||
|
ALIGN="LEFT"
|
||||||
|
WIDTH="100%"><TABLE
|
||||||
|
SUMMARY="Footer navigation table"
|
||||||
|
WIDTH="100%"
|
||||||
|
BORDER="0"
|
||||||
|
CELLPADDING="0"
|
||||||
|
CELLSPACING="0"
|
||||||
|
><TR
|
||||||
|
><TD
|
||||||
|
WIDTH="33%"
|
||||||
|
ALIGN="left"
|
||||||
|
VALIGN="top"
|
||||||
|
><A
|
||||||
|
HREF="book1.html"
|
||||||
|
ACCESSKEY="P"
|
||||||
|
>Précédent</A
|
||||||
|
></TD
|
||||||
|
><TD
|
||||||
|
WIDTH="34%"
|
||||||
|
ALIGN="center"
|
||||||
|
VALIGN="top"
|
||||||
|
><A
|
||||||
|
HREF="book1.html"
|
||||||
|
ACCESSKEY="H"
|
||||||
|
>Sommaire</A
|
||||||
|
></TD
|
||||||
|
><TD
|
||||||
|
WIDTH="33%"
|
||||||
|
ALIGN="right"
|
||||||
|
VALIGN="top"
|
||||||
|
><A
|
||||||
|
HREF="x23.html"
|
||||||
|
ACCESSKEY="N"
|
||||||
|
>Suivant</A
|
||||||
|
></TD
|
||||||
|
></TR
|
||||||
|
><TR
|
||||||
|
><TD
|
||||||
|
WIDTH="33%"
|
||||||
|
ALIGN="left"
|
||||||
|
VALIGN="top"
|
||||||
|
>AlternC, Documentation Utilisateur</TD
|
||||||
|
><TD
|
||||||
|
WIDTH="34%"
|
||||||
|
ALIGN="center"
|
||||||
|
VALIGN="top"
|
||||||
|
> </TD
|
||||||
|
><TD
|
||||||
|
WIDTH="33%"
|
||||||
|
ALIGN="right"
|
||||||
|
VALIGN="top"
|
||||||
|
>Fonctionnement de l'aide en ligne</TD
|
||||||
|
></TR
|
||||||
|
></TABLE
|
||||||
|
></DIV
|
||||||
|
></BODY
|
||||||
|
></HTML
|
||||||
|
>
|
|
@ -0,0 +1,234 @@
|
||||||
|
<HTML
|
||||||
|
><HEAD
|
||||||
|
><TITLE
|
||||||
|
>Les Noms de Domaines</TITLE
|
||||||
|
><META
|
||||||
|
NAME="GENERATOR"
|
||||||
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
|
||||||
|
"><LINK
|
||||||
|
REL="HOME"
|
||||||
|
TITLE="AlternC, Documentation Utilisateur"
|
||||||
|
HREF="book1.html"><LINK
|
||||||
|
REL="PREVIOUS"
|
||||||
|
TITLE="Fonctionnement de l'aide en ligne"
|
||||||
|
HREF="x23.html"><LINK
|
||||||
|
REL="NEXT"
|
||||||
|
TITLE="Configuration d'un domaine / sous-domaine"
|
||||||
|
HREF="x53.html"><LINK
|
||||||
|
REL="STYLESHEET"
|
||||||
|
TYPE="text/css"
|
||||||
|
HREF="docbook.css"></HEAD
|
||||||
|
><BODY
|
||||||
|
CLASS="CHAPTER"
|
||||||
|
BGCOLOR="#FFFFFF"
|
||||||
|
TEXT="#000000"
|
||||||
|
LINK="#0000FF"
|
||||||
|
VLINK="#840084"
|
||||||
|
ALINK="#0000FF"
|
||||||
|
><DIV
|
||||||
|
CLASS="NAVHEADER"
|
||||||
|
><TABLE
|
||||||
|
SUMMARY="Header navigation table"
|
||||||
|
WIDTH="100%"
|
||||||
|
BORDER="0"
|
||||||
|
CELLPADDING="0"
|
||||||
|
CELLSPACING="0"
|
||||||
|
><TR
|
||||||
|
><TH
|
||||||
|
COLSPAN="3"
|
||||||
|
ALIGN="center"
|
||||||
|
>AlternC, Documentation Utilisateur</TH
|
||||||
|
></TR
|
||||||
|
><TR
|
||||||
|
><TD
|
||||||
|
WIDTH="10%"
|
||||||
|
ALIGN="left"
|
||||||
|
VALIGN="bottom"
|
||||||
|
><A
|
||||||
|
HREF="x23.html"
|
||||||
|
ACCESSKEY="P"
|
||||||
|
>Précédent</A
|
||||||
|
></TD
|
||||||
|
><TD
|
||||||
|
WIDTH="80%"
|
||||||
|
ALIGN="center"
|
||||||
|
VALIGN="bottom"
|
||||||
|
></TD
|
||||||
|
><TD
|
||||||
|
WIDTH="10%"
|
||||||
|
ALIGN="right"
|
||||||
|
VALIGN="bottom"
|
||||||
|
><A
|
||||||
|
HREF="x53.html"
|
||||||
|
ACCESSKEY="N"
|
||||||
|
>Suivant</A
|
||||||
|
></TD
|
||||||
|
></TR
|
||||||
|
></TABLE
|
||||||
|
><HR
|
||||||
|
ALIGN="LEFT"
|
||||||
|
WIDTH="100%"></DIV
|
||||||
|
><DIV
|
||||||
|
CLASS="CHAPTER"
|
||||||
|
><H1
|
||||||
|
><A
|
||||||
|
NAME="DOMAIN">Chapitre 2. Les Noms de Domaines</H1
|
||||||
|
><DIV
|
||||||
|
CLASS="TOC"
|
||||||
|
><DL
|
||||||
|
><DT
|
||||||
|
><B
|
||||||
|
>Table des matières</B
|
||||||
|
></DT
|
||||||
|
><DT
|
||||||
|
><A
|
||||||
|
HREF="c26.html#DOMAIN.1"
|
||||||
|
>Introduction / Installation d'un nouveau domaine</A
|
||||||
|
></DT
|
||||||
|
><DT
|
||||||
|
><A
|
||||||
|
HREF="x53.html"
|
||||||
|
>Configuration d'un domaine / sous-domaine</A
|
||||||
|
></DT
|
||||||
|
></DL
|
||||||
|
></DIV
|
||||||
|
><DIV
|
||||||
|
CLASS="SECT1"
|
||||||
|
><H1
|
||||||
|
CLASS="SECT1"
|
||||||
|
><A
|
||||||
|
NAME="DOMAIN.1">Introduction / Installation d'un nouveau domaine</H1
|
||||||
|
><P
|
||||||
|
>AlternC propose de l'hébergement de noms de domaine personnels sur votre compte.
|
||||||
|
Un nom de domaine est toujours de la forme quelquechose.tld. Exemple : <TT
|
||||||
|
CLASS="LITERAL"
|
||||||
|
>virtuel.org</TT
|
||||||
|
>, <TT
|
||||||
|
CLASS="LITERAL"
|
||||||
|
>masociete.com</TT
|
||||||
|
> etc.</P
|
||||||
|
><P
|
||||||
|
>Un nom de domaine, pour être hébergé chez un hébergeur de site, doit être proprement installé. Pour cela, il faut procéder par étape :
|
||||||
|
<P
|
||||||
|
></P
|
||||||
|
><OL
|
||||||
|
TYPE="1"
|
||||||
|
><LI
|
||||||
|
><P
|
||||||
|
>Acheter le nom de domaine voulu chez un registrar.</P
|
||||||
|
><DIV
|
||||||
|
CLASS="EXAMPLE"
|
||||||
|
><A
|
||||||
|
NAME="AEN37"><P
|
||||||
|
><B
|
||||||
|
>Exemple 2-1. Exemple de registrar</B
|
||||||
|
></P
|
||||||
|
><P
|
||||||
|
>On peut acheter par exemple un domaine en <TT
|
||||||
|
CLASS="LITERAL"
|
||||||
|
>.fr</TT
|
||||||
|
> auprès d'un partenaire de <A
|
||||||
|
HREF="http://www.nic.fr"
|
||||||
|
TARGET="_top"
|
||||||
|
>l'AFNIC</A
|
||||||
|
>,
|
||||||
|
ou un <TT
|
||||||
|
CLASS="LITERAL"
|
||||||
|
>.com .org .net</TT
|
||||||
|
> auprès de <A
|
||||||
|
HREF="http://www.gandi.net"
|
||||||
|
TARGET="_top"
|
||||||
|
>Gandi</A
|
||||||
|
>
|
||||||
|
</P
|
||||||
|
></DIV
|
||||||
|
></LI
|
||||||
|
><LI
|
||||||
|
><P
|
||||||
|
>Lors de l'achat du nom de domaine, préciser le nom des serveurs DNS d'AlternC au registrar.</P
|
||||||
|
><DIV
|
||||||
|
CLASS="EXAMPLE"
|
||||||
|
><A
|
||||||
|
NAME="AEN46"><P
|
||||||
|
><B
|
||||||
|
>Exemple 2-2. Exemple de DNS</B
|
||||||
|
></P
|
||||||
|
><P
|
||||||
|
>Chaque hébergeur dispose d'au moins 2 serveurs DNS. Votre hébergeur vous donnera les noms et adresse Internet des siens.</P
|
||||||
|
><P
|
||||||
|
>Exemple : ns1.alternc.net (80.67.172.5) et ns2.alternc.net (80.67.172.9)</P
|
||||||
|
></DIV
|
||||||
|
></LI
|
||||||
|
><LI
|
||||||
|
><P
|
||||||
|
>Installer le domaine sur AlternC.</P
|
||||||
|
><P
|
||||||
|
>Une fois acheté et ses DNS corrects, le domaine peut être installé sur
|
||||||
|
AlternC. Pour cela, cliquez sur le lien "Ajouter un domaine" dans le bureau virtuel.
|
||||||
|
</P
|
||||||
|
></LI
|
||||||
|
></OL
|
||||||
|
></P
|
||||||
|
></DIV
|
||||||
|
></DIV
|
||||||
|
><DIV
|
||||||
|
CLASS="NAVFOOTER"
|
||||||
|
><HR
|
||||||
|
ALIGN="LEFT"
|
||||||
|
WIDTH="100%"><TABLE
|
||||||
|
SUMMARY="Footer navigation table"
|
||||||
|
WIDTH="100%"
|
||||||
|
BORDER="0"
|
||||||
|
CELLPADDING="0"
|
||||||
|
CELLSPACING="0"
|
||||||
|
><TR
|
||||||
|
><TD
|
||||||
|
WIDTH="33%"
|
||||||
|
ALIGN="left"
|
||||||
|
VALIGN="top"
|
||||||
|
><A
|
||||||
|
HREF="x23.html"
|
||||||
|
ACCESSKEY="P"
|
||||||
|
>Précédent</A
|
||||||
|
></TD
|
||||||
|
><TD
|
||||||
|
WIDTH="34%"
|
||||||
|
ALIGN="center"
|
||||||
|
VALIGN="top"
|
||||||
|
><A
|
||||||
|
HREF="book1.html"
|
||||||
|
ACCESSKEY="H"
|
||||||
|
>Sommaire</A
|
||||||
|
></TD
|
||||||
|
><TD
|
||||||
|
WIDTH="33%"
|
||||||
|
ALIGN="right"
|
||||||
|
VALIGN="top"
|
||||||
|
><A
|
||||||
|
HREF="x53.html"
|
||||||
|
ACCESSKEY="N"
|
||||||
|
>Suivant</A
|
||||||
|
></TD
|
||||||
|
></TR
|
||||||
|
><TR
|
||||||
|
><TD
|
||||||
|
WIDTH="33%"
|
||||||
|
ALIGN="left"
|
||||||
|
VALIGN="top"
|
||||||
|
>Fonctionnement de l'aide en ligne</TD
|
||||||
|
><TD
|
||||||
|
WIDTH="34%"
|
||||||
|
ALIGN="center"
|
||||||
|
VALIGN="top"
|
||||||
|
> </TD
|
||||||
|
><TD
|
||||||
|
WIDTH="33%"
|
||||||
|
ALIGN="right"
|
||||||
|
VALIGN="top"
|
||||||
|
>Configuration d'un domaine / sous-domaine</TD
|
||||||
|
></TR
|
||||||
|
></TABLE
|
||||||
|
></DIV
|
||||||
|
></BODY
|
||||||
|
></HTML
|
||||||
|
>
|
|
@ -0,0 +1,177 @@
|
||||||
|
<HTML
|
||||||
|
><HEAD
|
||||||
|
><TITLE
|
||||||
|
>Comptes FTP</TITLE
|
||||||
|
><META
|
||||||
|
NAME="GENERATOR"
|
||||||
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
|
||||||
|
"><LINK
|
||||||
|
REL="HOME"
|
||||||
|
TITLE="AlternC, Documentation Utilisateur"
|
||||||
|
HREF="book1.html"><LINK
|
||||||
|
REL="PREVIOUS"
|
||||||
|
TITLE="Configuration d'un domaine / sous-domaine"
|
||||||
|
HREF="x53.html"><LINK
|
||||||
|
REL="NEXT"
|
||||||
|
TITLE="Le gestionnaire de fichiers"
|
||||||
|
HREF="c84.html"><LINK
|
||||||
|
REL="STYLESHEET"
|
||||||
|
TYPE="text/css"
|
||||||
|
HREF="docbook.css"></HEAD
|
||||||
|
><BODY
|
||||||
|
CLASS="CHAPTER"
|
||||||
|
BGCOLOR="#FFFFFF"
|
||||||
|
TEXT="#000000"
|
||||||
|
LINK="#0000FF"
|
||||||
|
VLINK="#840084"
|
||||||
|
ALINK="#0000FF"
|
||||||
|
><DIV
|
||||||
|
CLASS="NAVHEADER"
|
||||||
|
><TABLE
|
||||||
|
SUMMARY="Header navigation table"
|
||||||
|
WIDTH="100%"
|
||||||
|
BORDER="0"
|
||||||
|
CELLPADDING="0"
|
||||||
|
CELLSPACING="0"
|
||||||
|
><TR
|
||||||
|
><TH
|
||||||
|
COLSPAN="3"
|
||||||
|
ALIGN="center"
|
||||||
|
>AlternC, Documentation Utilisateur</TH
|
||||||
|
></TR
|
||||||
|
><TR
|
||||||
|
><TD
|
||||||
|
WIDTH="10%"
|
||||||
|
ALIGN="left"
|
||||||
|
VALIGN="bottom"
|
||||||
|
><A
|
||||||
|
HREF="x53.html"
|
||||||
|
ACCESSKEY="P"
|
||||||
|
>Précédent</A
|
||||||
|
></TD
|
||||||
|
><TD
|
||||||
|
WIDTH="80%"
|
||||||
|
ALIGN="center"
|
||||||
|
VALIGN="bottom"
|
||||||
|
></TD
|
||||||
|
><TD
|
||||||
|
WIDTH="10%"
|
||||||
|
ALIGN="right"
|
||||||
|
VALIGN="bottom"
|
||||||
|
><A
|
||||||
|
HREF="c84.html"
|
||||||
|
ACCESSKEY="N"
|
||||||
|
>Suivant</A
|
||||||
|
></TD
|
||||||
|
></TR
|
||||||
|
></TABLE
|
||||||
|
><HR
|
||||||
|
ALIGN="LEFT"
|
||||||
|
WIDTH="100%"></DIV
|
||||||
|
><DIV
|
||||||
|
CLASS="CHAPTER"
|
||||||
|
><H1
|
||||||
|
><A
|
||||||
|
NAME="FTP">Chapitre 3. Comptes FTP</H1
|
||||||
|
><DIV
|
||||||
|
CLASS="SECT1"
|
||||||
|
><H1
|
||||||
|
CLASS="SECT1"
|
||||||
|
><A
|
||||||
|
NAME="FTP.1">Introduction</H1
|
||||||
|
><P
|
||||||
|
>Le FTP est un moyen pratique de pouvoir échanger des fichiers entre un serveur et une
|
||||||
|
machine connectée à Internet. Pour cela, il faut disposer d'un compte FTP sur le serveur,
|
||||||
|
constitué d'un nom d'utilisateur et d'un mot de passe.</P
|
||||||
|
><P
|
||||||
|
>Sur AlternC, vous pouvez créer des comptes FTP, en précisant le nom d'utilisateur, le mot de passe,
|
||||||
|
et le dossier dans lequel sera connecté ce compte FTP. Ainsi, chaque compte pourra accéder à son dossier
|
||||||
|
et ses sous-dossiers, en lecture et en écriture.</P
|
||||||
|
><P
|
||||||
|
>Par exemple, si vous disposez des dossiers suivants dans votre compte :
|
||||||
|
<P
|
||||||
|
><IMG
|
||||||
|
SRC="files/ftp_list.png"></P
|
||||||
|
>
|
||||||
|
Vous pouvez créer, par exemple, un compte ftp pour philippe, que vous hébergez sur
|
||||||
|
<TT
|
||||||
|
CLASS="LITERAL"
|
||||||
|
>http://virtuel.org/philippe/</TT
|
||||||
|
>
|
||||||
|
Pour cela, il suffit de cliquer sur "Comptes FTP" puis "Créer un compte FTP" et enfin,
|
||||||
|
entrez les paramètres de connexion, à savoir, un nom d'utilisateur, un mot de passe, et un répertoire.
|
||||||
|
<P
|
||||||
|
><IMG
|
||||||
|
SRC="files/ftp_add.png"></P
|
||||||
|
></P
|
||||||
|
><P
|
||||||
|
>Philippe peut donc modifier les fichiers de son dossier en utilisant les paramètres suivants :
|
||||||
|
<PRE
|
||||||
|
CLASS="PROGRAMLISTING"
|
||||||
|
>Serveur ftp : "virtuel.org"
|
||||||
|
Nom d'utilisateur : "virtuel.org_philippe"
|
||||||
|
Mot de passe : "philpas"</PRE
|
||||||
|
></P
|
||||||
|
></DIV
|
||||||
|
></DIV
|
||||||
|
><DIV
|
||||||
|
CLASS="NAVFOOTER"
|
||||||
|
><HR
|
||||||
|
ALIGN="LEFT"
|
||||||
|
WIDTH="100%"><TABLE
|
||||||
|
SUMMARY="Footer navigation table"
|
||||||
|
WIDTH="100%"
|
||||||
|
BORDER="0"
|
||||||
|
CELLPADDING="0"
|
||||||
|
CELLSPACING="0"
|
||||||
|
><TR
|
||||||
|
><TD
|
||||||
|
WIDTH="33%"
|
||||||
|
ALIGN="left"
|
||||||
|
VALIGN="top"
|
||||||
|
><A
|
||||||
|
HREF="x53.html"
|
||||||
|
ACCESSKEY="P"
|
||||||
|
>Précédent</A
|
||||||
|
></TD
|
||||||
|
><TD
|
||||||
|
WIDTH="34%"
|
||||||
|
ALIGN="center"
|
||||||
|
VALIGN="top"
|
||||||
|
><A
|
||||||
|
HREF="book1.html"
|
||||||
|
ACCESSKEY="H"
|
||||||
|
>Sommaire</A
|
||||||
|
></TD
|
||||||
|
><TD
|
||||||
|
WIDTH="33%"
|
||||||
|
ALIGN="right"
|
||||||
|
VALIGN="top"
|
||||||
|
><A
|
||||||
|
HREF="c84.html"
|
||||||
|
ACCESSKEY="N"
|
||||||
|
>Suivant</A
|
||||||
|
></TD
|
||||||
|
></TR
|
||||||
|
><TR
|
||||||
|
><TD
|
||||||
|
WIDTH="33%"
|
||||||
|
ALIGN="left"
|
||||||
|
VALIGN="top"
|
||||||
|
>Configuration d'un domaine / sous-domaine</TD
|
||||||
|
><TD
|
||||||
|
WIDTH="34%"
|
||||||
|
ALIGN="center"
|
||||||
|
VALIGN="top"
|
||||||
|
> </TD
|
||||||
|
><TD
|
||||||
|
WIDTH="33%"
|
||||||
|
ALIGN="right"
|
||||||
|
VALIGN="top"
|
||||||
|
>Le gestionnaire de fichiers</TD
|
||||||
|
></TR
|
||||||
|
></TABLE
|
||||||
|
></DIV
|
||||||
|
></BODY
|
||||||
|
></HTML
|
||||||
|
>
|
|
@ -0,0 +1,206 @@
|
||||||
|
<HTML
|
||||||
|
><HEAD
|
||||||
|
><TITLE
|
||||||
|
>Le gestionnaire de fichiers</TITLE
|
||||||
|
><META
|
||||||
|
NAME="GENERATOR"
|
||||||
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
|
||||||
|
"><LINK
|
||||||
|
REL="HOME"
|
||||||
|
TITLE="AlternC, Documentation Utilisateur"
|
||||||
|
HREF="book1.html"><LINK
|
||||||
|
REL="PREVIOUS"
|
||||||
|
TITLE="Comptes FTP"
|
||||||
|
HREF="c72.html"><LINK
|
||||||
|
REL="NEXT"
|
||||||
|
TITLE="Paramètres du gestionnaire de fichiers"
|
||||||
|
HREF="x105.html"><LINK
|
||||||
|
REL="STYLESHEET"
|
||||||
|
TYPE="text/css"
|
||||||
|
HREF="docbook.css"></HEAD
|
||||||
|
><BODY
|
||||||
|
CLASS="CHAPTER"
|
||||||
|
BGCOLOR="#FFFFFF"
|
||||||
|
TEXT="#000000"
|
||||||
|
LINK="#0000FF"
|
||||||
|
VLINK="#840084"
|
||||||
|
ALINK="#0000FF"
|
||||||
|
><DIV
|
||||||
|
CLASS="NAVHEADER"
|
||||||
|
><TABLE
|
||||||
|
SUMMARY="Header navigation table"
|
||||||
|
WIDTH="100%"
|
||||||
|
BORDER="0"
|
||||||
|
CELLPADDING="0"
|
||||||
|
CELLSPACING="0"
|
||||||
|
><TR
|
||||||
|
><TH
|
||||||
|
COLSPAN="3"
|
||||||
|
ALIGN="center"
|
||||||
|
>AlternC, Documentation Utilisateur</TH
|
||||||
|
></TR
|
||||||
|
><TR
|
||||||
|
><TD
|
||||||
|
WIDTH="10%"
|
||||||
|
ALIGN="left"
|
||||||
|
VALIGN="bottom"
|
||||||
|
><A
|
||||||
|
HREF="c72.html"
|
||||||
|
ACCESSKEY="P"
|
||||||
|
>Précédent</A
|
||||||
|
></TD
|
||||||
|
><TD
|
||||||
|
WIDTH="80%"
|
||||||
|
ALIGN="center"
|
||||||
|
VALIGN="bottom"
|
||||||
|
></TD
|
||||||
|
><TD
|
||||||
|
WIDTH="10%"
|
||||||
|
ALIGN="right"
|
||||||
|
VALIGN="bottom"
|
||||||
|
><A
|
||||||
|
HREF="x105.html"
|
||||||
|
ACCESSKEY="N"
|
||||||
|
>Suivant</A
|
||||||
|
></TD
|
||||||
|
></TR
|
||||||
|
></TABLE
|
||||||
|
><HR
|
||||||
|
ALIGN="LEFT"
|
||||||
|
WIDTH="100%"></DIV
|
||||||
|
><DIV
|
||||||
|
CLASS="CHAPTER"
|
||||||
|
><H1
|
||||||
|
><A
|
||||||
|
NAME="BROWSER">Chapitre 4. Le gestionnaire de fichiers</H1
|
||||||
|
><DIV
|
||||||
|
CLASS="TOC"
|
||||||
|
><DL
|
||||||
|
><DT
|
||||||
|
><B
|
||||||
|
>Table des matières</B
|
||||||
|
></DT
|
||||||
|
><DT
|
||||||
|
><A
|
||||||
|
HREF="c84.html#BROWSER.1"
|
||||||
|
>Introduction / Description</A
|
||||||
|
></DT
|
||||||
|
><DT
|
||||||
|
><A
|
||||||
|
HREF="x105.html"
|
||||||
|
>Paramètres du gestionnaire de fichiers</A
|
||||||
|
></DT
|
||||||
|
></DL
|
||||||
|
></DIV
|
||||||
|
><DIV
|
||||||
|
CLASS="SECT1"
|
||||||
|
><H1
|
||||||
|
CLASS="SECT1"
|
||||||
|
><A
|
||||||
|
NAME="BROWSER.1">Introduction / Description</H1
|
||||||
|
><P
|
||||||
|
>Sur AlternC, vous disposez d'un espace disque personnel sur lequel vous pouvez installer vos
|
||||||
|
domaines, sous-domaines, comptes ftp, statistiques web etc. Cet espace est en fait un dossier
|
||||||
|
sur le serveur, dans lequel vous pouvez stocker des fichiers, mais aussi des sous-dossiers,
|
||||||
|
afin d'organiser au mieux votre espace disponible.</P
|
||||||
|
><P
|
||||||
|
>Afin de pouvoir modifier facilement vos fichiers, vous pouvez utiliser le FTP, en créant un
|
||||||
|
compte sur votre bureau virtuel. Plus d'info sur le FTP dans la section FTP de l'Aide..
|
||||||
|
Vous pouvez aussi utiliser le gestionnaire de fichier pour gérer vos fichiers directement depuis le
|
||||||
|
bureau virtuel. Pour cela, dans le menu principal, cliquez sur "Gestionnaire de fichiers"</P
|
||||||
|
><P
|
||||||
|
>Le gestionnaire de fichier permet de gérer l'ensemble de vos fichiers, à savoir :
|
||||||
|
<P
|
||||||
|
></P
|
||||||
|
><UL
|
||||||
|
><LI
|
||||||
|
><P
|
||||||
|
>Créer Supprimer et Renommer des fichiers</P
|
||||||
|
></LI
|
||||||
|
><LI
|
||||||
|
><P
|
||||||
|
>Créer Supprimer et Renommer des dossiers / Sous-dossiers</P
|
||||||
|
></LI
|
||||||
|
><LI
|
||||||
|
><P
|
||||||
|
>Editer les fichiers présents dans le compte (fichiers textes, html ...)</P
|
||||||
|
></LI
|
||||||
|
><LI
|
||||||
|
><P
|
||||||
|
>Visualiser les fichiers du compte (html, images, document ...)</P
|
||||||
|
></LI
|
||||||
|
><LI
|
||||||
|
><P
|
||||||
|
>Télécharger l'ensemble de votre compte dans un fichier compressé (plusieurs formats supportés)</P
|
||||||
|
></LI
|
||||||
|
><LI
|
||||||
|
><P
|
||||||
|
>Accéder aux autres fonctions du bureau, tels la création de comptes FTP ou la protection de
|
||||||
|
dossier par nom d'utilisateur et mot de passe.
|
||||||
|
</P
|
||||||
|
></LI
|
||||||
|
></UL
|
||||||
|
></P
|
||||||
|
></DIV
|
||||||
|
></DIV
|
||||||
|
><DIV
|
||||||
|
CLASS="NAVFOOTER"
|
||||||
|
><HR
|
||||||
|
ALIGN="LEFT"
|
||||||
|
WIDTH="100%"><TABLE
|
||||||
|
SUMMARY="Footer navigation table"
|
||||||
|
WIDTH="100%"
|
||||||
|
BORDER="0"
|
||||||
|
CELLPADDING="0"
|
||||||
|
CELLSPACING="0"
|
||||||
|
><TR
|
||||||
|
><TD
|
||||||
|
WIDTH="33%"
|
||||||
|
ALIGN="left"
|
||||||
|
VALIGN="top"
|
||||||
|
><A
|
||||||
|
HREF="c72.html"
|
||||||
|
ACCESSKEY="P"
|
||||||
|
>Précédent</A
|
||||||
|
></TD
|
||||||
|
><TD
|
||||||
|
WIDTH="34%"
|
||||||
|
ALIGN="center"
|
||||||
|
VALIGN="top"
|
||||||
|
><A
|
||||||
|
HREF="book1.html"
|
||||||
|
ACCESSKEY="H"
|
||||||
|
>Sommaire</A
|
||||||
|
></TD
|
||||||
|
><TD
|
||||||
|
WIDTH="33%"
|
||||||
|
ALIGN="right"
|
||||||
|
VALIGN="top"
|
||||||
|
><A
|
||||||
|
HREF="x105.html"
|
||||||
|
ACCESSKEY="N"
|
||||||
|
>Suivant</A
|
||||||
|
></TD
|
||||||
|
></TR
|
||||||
|
><TR
|
||||||
|
><TD
|
||||||
|
WIDTH="33%"
|
||||||
|
ALIGN="left"
|
||||||
|
VALIGN="top"
|
||||||
|
>Comptes FTP</TD
|
||||||
|
><TD
|
||||||
|
WIDTH="34%"
|
||||||
|
ALIGN="center"
|
||||||
|
VALIGN="top"
|
||||||
|
> </TD
|
||||||
|
><TD
|
||||||
|
WIDTH="33%"
|
||||||
|
ALIGN="right"
|
||||||
|
VALIGN="top"
|
||||||
|
>Paramètres du gestionnaire de fichiers</TD
|
||||||
|
></TR
|
||||||
|
></TABLE
|
||||||
|
></DIV
|
||||||
|
></BODY
|
||||||
|
></HTML
|
||||||
|
>
|
|
@ -0,0 +1,42 @@
|
||||||
|
|
||||||
|
BODY {
|
||||||
|
font-size: 12px;
|
||||||
|
font-family: Verdana, Helvetica, Sans-Serif;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Titres de chapitres : */
|
||||||
|
H1 {
|
||||||
|
font-size: 18px;
|
||||||
|
font-family: Bookman Old Style, Times, Serif;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* En-tete haut cache */
|
||||||
|
.navheader {
|
||||||
|
position: absolute;
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* En-tete bas : petite police */
|
||||||
|
.navfooter td, .navfooter {
|
||||||
|
font-size: 10px;
|
||||||
|
font-family: Verdana, Helvetica, Sans-Serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Police standard pour le code */
|
||||||
|
.literal, .programlisting, .screen {
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Listes a puce pour la table des matieres : */
|
||||||
|
.toc {
|
||||||
|
list-style-image: url(tiret.gif);
|
||||||
|
padding-left: 4px;
|
||||||
|
margin-left: 2px;
|
||||||
|
}
|
||||||
|
.toc2 {
|
||||||
|
list-style-image: url(plus.gif);
|
||||||
|
padding-left: 4px;
|
||||||
|
margin-left: 2px;
|
||||||
|
}
|
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 12 KiB |
After Width: | Height: | Size: 14 KiB |
|
@ -0,0 +1 @@
|
||||||
|
Contient les fichiers utilisés par les pages sgml
|
After Width: | Height: | Size: 7.9 KiB |
After Width: | Height: | Size: 46 KiB |
After Width: | Height: | Size: 56 KiB |
|
@ -0,0 +1,14 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Documentation développeur d'AlternC</title>
|
||||||
|
</head>
|
||||||
|
<frameset COLS="30%,*">
|
||||||
|
<frame SRC="toc.htm" NAME="left">
|
||||||
|
<frame SRC="book1.html" NAME="right">
|
||||||
|
<noframes>
|
||||||
|
<body>
|
||||||
|
Your browser does not support frames.
|
||||||
|
</body>
|
||||||
|
</noframes>
|
||||||
|
</frameset>
|
||||||
|
</html>
|
After Width: | Height: | Size: 91 B |
After Width: | Height: | Size: 90 B |
|
@ -0,0 +1,144 @@
|
||||||
|
<HTML
|
||||||
|
><HEAD
|
||||||
|
><TITLE
|
||||||
|
>DocBook TOC</TITLE
|
||||||
|
><META
|
||||||
|
NAME="GENERATOR"
|
||||||
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
|
||||||
|
"><LINK
|
||||||
|
REL="HOME"
|
||||||
|
TITLE="AlternC, Documentation Utilisateur"
|
||||||
|
HREF="book1.html"><LINK
|
||||||
|
REL="STYLESHEET"
|
||||||
|
TYPE="text/css"
|
||||||
|
HREF="docbook.css"></HEAD
|
||||||
|
><BODY
|
||||||
|
><NOBR
|
||||||
|
><A
|
||||||
|
HREF="book1.html"
|
||||||
|
TARGET="right"
|
||||||
|
>AlternC, Documentation Utilisateur</A
|
||||||
|
><BR><UL
|
||||||
|
CLASS="TOC"
|
||||||
|
><LI><NOBR
|
||||||
|
><A
|
||||||
|
HREF="c18.html"
|
||||||
|
TARGET="right"
|
||||||
|
>Introduction</A
|
||||||
|
></NOBR
|
||||||
|
><UL
|
||||||
|
CLASS="TOC2"
|
||||||
|
><LI><NOBR
|
||||||
|
><A
|
||||||
|
HREF="c18.html#I1.1"
|
||||||
|
TARGET="right"
|
||||||
|
>Introduction à AlternC</A
|
||||||
|
></NOBR
|
||||||
|
><UL
|
||||||
|
CLASS="TOC2"
|
||||||
|
></UL
|
||||||
|
><LI><NOBR
|
||||||
|
><A
|
||||||
|
HREF="x23.html"
|
||||||
|
TARGET="right"
|
||||||
|
>Fonctionnement de l'aide en ligne</A
|
||||||
|
></NOBR
|
||||||
|
><UL
|
||||||
|
CLASS="TOC2"
|
||||||
|
></UL
|
||||||
|
></UL
|
||||||
|
><LI><NOBR
|
||||||
|
><A
|
||||||
|
HREF="c26.html"
|
||||||
|
TARGET="right"
|
||||||
|
>Les Noms de Domaines</A
|
||||||
|
></NOBR
|
||||||
|
><UL
|
||||||
|
CLASS="TOC2"
|
||||||
|
><LI><NOBR
|
||||||
|
><A
|
||||||
|
HREF="c26.html#DOMAIN.1"
|
||||||
|
TARGET="right"
|
||||||
|
>Introduction / Installation d'un nouveau domaine</A
|
||||||
|
></NOBR
|
||||||
|
><UL
|
||||||
|
CLASS="TOC2"
|
||||||
|
></UL
|
||||||
|
><LI><NOBR
|
||||||
|
><A
|
||||||
|
HREF="x53.html"
|
||||||
|
TARGET="right"
|
||||||
|
>Configuration d'un domaine / sous-domaine</A
|
||||||
|
></NOBR
|
||||||
|
><UL
|
||||||
|
CLASS="TOC2"
|
||||||
|
></UL
|
||||||
|
></UL
|
||||||
|
><LI><NOBR
|
||||||
|
><A
|
||||||
|
HREF="c72.html"
|
||||||
|
TARGET="right"
|
||||||
|
>Comptes FTP</A
|
||||||
|
></NOBR
|
||||||
|
><UL
|
||||||
|
CLASS="TOC2"
|
||||||
|
><LI><NOBR
|
||||||
|
><A
|
||||||
|
HREF="c72.html#FTP.1"
|
||||||
|
TARGET="right"
|
||||||
|
>Introduction</A
|
||||||
|
></NOBR
|
||||||
|
><UL
|
||||||
|
CLASS="TOC2"
|
||||||
|
></UL
|
||||||
|
></UL
|
||||||
|
><LI><NOBR
|
||||||
|
><A
|
||||||
|
HREF="c84.html"
|
||||||
|
TARGET="right"
|
||||||
|
>Le gestionnaire de fichiers</A
|
||||||
|
></NOBR
|
||||||
|
><UL
|
||||||
|
CLASS="TOC2"
|
||||||
|
><LI><NOBR
|
||||||
|
><A
|
||||||
|
HREF="c84.html#BROWSER.1"
|
||||||
|
TARGET="right"
|
||||||
|
>Introduction / Description</A
|
||||||
|
></NOBR
|
||||||
|
><UL
|
||||||
|
CLASS="TOC2"
|
||||||
|
></UL
|
||||||
|
><LI><NOBR
|
||||||
|
><A
|
||||||
|
HREF="x105.html"
|
||||||
|
TARGET="right"
|
||||||
|
>Paramètres du gestionnaire de fichiers</A
|
||||||
|
></NOBR
|
||||||
|
><UL
|
||||||
|
CLASS="TOC2"
|
||||||
|
></UL
|
||||||
|
></UL
|
||||||
|
><LI><NOBR
|
||||||
|
><A
|
||||||
|
HREF="c126.html"
|
||||||
|
TARGET="right"
|
||||||
|
>Les statistiques Web.</A
|
||||||
|
></NOBR
|
||||||
|
><UL
|
||||||
|
CLASS="TOC2"
|
||||||
|
><LI><NOBR
|
||||||
|
><A
|
||||||
|
HREF="c126.html#STATS.1"
|
||||||
|
TARGET="right"
|
||||||
|
>Introduction / Mode d'emploi</A
|
||||||
|
></NOBR
|
||||||
|
><UL
|
||||||
|
CLASS="TOC2"
|
||||||
|
></UL
|
||||||
|
></UL
|
||||||
|
></UL
|
||||||
|
></NOBR
|
||||||
|
></BODY
|
||||||
|
></HTML
|
||||||
|
>
|
|
@ -0,0 +1,190 @@
|
||||||
|
<HTML
|
||||||
|
><HEAD
|
||||||
|
><TITLE
|
||||||
|
>Paramètres du gestionnaire de fichiers</TITLE
|
||||||
|
><META
|
||||||
|
NAME="GENERATOR"
|
||||||
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
|
||||||
|
"><LINK
|
||||||
|
REL="HOME"
|
||||||
|
TITLE="AlternC, Documentation Utilisateur"
|
||||||
|
HREF="book1.html"><LINK
|
||||||
|
REL="UP"
|
||||||
|
TITLE="Le gestionnaire de fichiers"
|
||||||
|
HREF="c84.html"><LINK
|
||||||
|
REL="PREVIOUS"
|
||||||
|
TITLE="Le gestionnaire de fichiers"
|
||||||
|
HREF="c84.html"><LINK
|
||||||
|
REL="NEXT"
|
||||||
|
TITLE="Les statistiques Web."
|
||||||
|
HREF="c126.html"><LINK
|
||||||
|
REL="STYLESHEET"
|
||||||
|
TYPE="text/css"
|
||||||
|
HREF="docbook.css"></HEAD
|
||||||
|
><BODY
|
||||||
|
CLASS="SECT1"
|
||||||
|
BGCOLOR="#FFFFFF"
|
||||||
|
TEXT="#000000"
|
||||||
|
LINK="#0000FF"
|
||||||
|
VLINK="#840084"
|
||||||
|
ALINK="#0000FF"
|
||||||
|
><DIV
|
||||||
|
CLASS="NAVHEADER"
|
||||||
|
><TABLE
|
||||||
|
SUMMARY="Header navigation table"
|
||||||
|
WIDTH="100%"
|
||||||
|
BORDER="0"
|
||||||
|
CELLPADDING="0"
|
||||||
|
CELLSPACING="0"
|
||||||
|
><TR
|
||||||
|
><TH
|
||||||
|
COLSPAN="3"
|
||||||
|
ALIGN="center"
|
||||||
|
>AlternC, Documentation Utilisateur</TH
|
||||||
|
></TR
|
||||||
|
><TR
|
||||||
|
><TD
|
||||||
|
WIDTH="10%"
|
||||||
|
ALIGN="left"
|
||||||
|
VALIGN="bottom"
|
||||||
|
><A
|
||||||
|
HREF="c84.html"
|
||||||
|
ACCESSKEY="P"
|
||||||
|
>Précédent</A
|
||||||
|
></TD
|
||||||
|
><TD
|
||||||
|
WIDTH="80%"
|
||||||
|
ALIGN="center"
|
||||||
|
VALIGN="bottom"
|
||||||
|
>Chapitre 4. Le gestionnaire de fichiers</TD
|
||||||
|
><TD
|
||||||
|
WIDTH="10%"
|
||||||
|
ALIGN="right"
|
||||||
|
VALIGN="bottom"
|
||||||
|
><A
|
||||||
|
HREF="c126.html"
|
||||||
|
ACCESSKEY="N"
|
||||||
|
>Suivant</A
|
||||||
|
></TD
|
||||||
|
></TR
|
||||||
|
></TABLE
|
||||||
|
><HR
|
||||||
|
ALIGN="LEFT"
|
||||||
|
WIDTH="100%"></DIV
|
||||||
|
><DIV
|
||||||
|
CLASS="SECT1"
|
||||||
|
><H1
|
||||||
|
CLASS="SECT1"
|
||||||
|
><A
|
||||||
|
NAME="BROWSER.2">Paramètres du gestionnaire de fichiers</H1
|
||||||
|
><P
|
||||||
|
>Vous pouvez régler les préférences du gestionnaire de fichier en cliquant sur "Régler mes préférences"
|
||||||
|
en bas du gestionnaire.
|
||||||
|
<P
|
||||||
|
><IMG
|
||||||
|
SRC="files/browser_set.png"></P
|
||||||
|
>
|
||||||
|
Les éléments ci-dessous peuvent être réglés :
|
||||||
|
<P
|
||||||
|
></P
|
||||||
|
><UL
|
||||||
|
><LI
|
||||||
|
><P
|
||||||
|
>Type d'affichage du gestionnaire (1 colonne de fichiers, 2 colonnes, 3 colonnes)</P
|
||||||
|
></LI
|
||||||
|
><LI
|
||||||
|
><P
|
||||||
|
>L'affichage ou pas des icones des fichiers</P
|
||||||
|
></LI
|
||||||
|
><LI
|
||||||
|
><P
|
||||||
|
>L'affichage ou pas des types des fichiers (image jpeg, page html, ...)</P
|
||||||
|
></LI
|
||||||
|
><LI
|
||||||
|
><P
|
||||||
|
>Le format de compression utilisé pour téléchargé tout le site au format compressé. (zip, tgz, tar.z, tar.bz2 supportés)</P
|
||||||
|
></LI
|
||||||
|
><LI
|
||||||
|
><P
|
||||||
|
>La largeur et la hauteur de la fenêtre de l'éditeur de fichiers.</P
|
||||||
|
></LI
|
||||||
|
><LI
|
||||||
|
><P
|
||||||
|
>Si vous préférer aller à l'éditeur de fichiers ou au gestionnaire après la création d'un nouveau fichier.</P
|
||||||
|
></LI
|
||||||
|
></UL
|
||||||
|
></P
|
||||||
|
><P
|
||||||
|
></P
|
||||||
|
><P
|
||||||
|
></P
|
||||||
|
><P
|
||||||
|
></P
|
||||||
|
><P
|
||||||
|
></P
|
||||||
|
></DIV
|
||||||
|
><DIV
|
||||||
|
CLASS="NAVFOOTER"
|
||||||
|
><HR
|
||||||
|
ALIGN="LEFT"
|
||||||
|
WIDTH="100%"><TABLE
|
||||||
|
SUMMARY="Footer navigation table"
|
||||||
|
WIDTH="100%"
|
||||||
|
BORDER="0"
|
||||||
|
CELLPADDING="0"
|
||||||
|
CELLSPACING="0"
|
||||||
|
><TR
|
||||||
|
><TD
|
||||||
|
WIDTH="33%"
|
||||||
|
ALIGN="left"
|
||||||
|
VALIGN="top"
|
||||||
|
><A
|
||||||
|
HREF="c84.html"
|
||||||
|
ACCESSKEY="P"
|
||||||
|
>Précédent</A
|
||||||
|
></TD
|
||||||
|
><TD
|
||||||
|
WIDTH="34%"
|
||||||
|
ALIGN="center"
|
||||||
|
VALIGN="top"
|
||||||
|
><A
|
||||||
|
HREF="book1.html"
|
||||||
|
ACCESSKEY="H"
|
||||||
|
>Sommaire</A
|
||||||
|
></TD
|
||||||
|
><TD
|
||||||
|
WIDTH="33%"
|
||||||
|
ALIGN="right"
|
||||||
|
VALIGN="top"
|
||||||
|
><A
|
||||||
|
HREF="c126.html"
|
||||||
|
ACCESSKEY="N"
|
||||||
|
>Suivant</A
|
||||||
|
></TD
|
||||||
|
></TR
|
||||||
|
><TR
|
||||||
|
><TD
|
||||||
|
WIDTH="33%"
|
||||||
|
ALIGN="left"
|
||||||
|
VALIGN="top"
|
||||||
|
>Le gestionnaire de fichiers</TD
|
||||||
|
><TD
|
||||||
|
WIDTH="34%"
|
||||||
|
ALIGN="center"
|
||||||
|
VALIGN="top"
|
||||||
|
><A
|
||||||
|
HREF="c84.html"
|
||||||
|
ACCESSKEY="U"
|
||||||
|
>Niveau supérieur</A
|
||||||
|
></TD
|
||||||
|
><TD
|
||||||
|
WIDTH="33%"
|
||||||
|
ALIGN="right"
|
||||||
|
VALIGN="top"
|
||||||
|
>Les statistiques Web.</TD
|
||||||
|
></TR
|
||||||
|
></TABLE
|
||||||
|
></DIV
|
||||||
|
></BODY
|
||||||
|
></HTML
|
||||||
|
>
|
|
@ -0,0 +1,149 @@
|
||||||
|
<HTML
|
||||||
|
><HEAD
|
||||||
|
><TITLE
|
||||||
|
>Fonctionnement de l'aide en ligne</TITLE
|
||||||
|
><META
|
||||||
|
NAME="GENERATOR"
|
||||||
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
|
||||||
|
"><LINK
|
||||||
|
REL="HOME"
|
||||||
|
TITLE="AlternC, Documentation Utilisateur"
|
||||||
|
HREF="book1.html"><LINK
|
||||||
|
REL="UP"
|
||||||
|
TITLE="Introduction"
|
||||||
|
HREF="c18.html"><LINK
|
||||||
|
REL="PREVIOUS"
|
||||||
|
TITLE="Introduction"
|
||||||
|
HREF="c18.html"><LINK
|
||||||
|
REL="NEXT"
|
||||||
|
TITLE="Les Noms de Domaines"
|
||||||
|
HREF="c26.html"><LINK
|
||||||
|
REL="STYLESHEET"
|
||||||
|
TYPE="text/css"
|
||||||
|
HREF="docbook.css"></HEAD
|
||||||
|
><BODY
|
||||||
|
CLASS="SECT1"
|
||||||
|
BGCOLOR="#FFFFFF"
|
||||||
|
TEXT="#000000"
|
||||||
|
LINK="#0000FF"
|
||||||
|
VLINK="#840084"
|
||||||
|
ALINK="#0000FF"
|
||||||
|
><DIV
|
||||||
|
CLASS="NAVHEADER"
|
||||||
|
><TABLE
|
||||||
|
SUMMARY="Header navigation table"
|
||||||
|
WIDTH="100%"
|
||||||
|
BORDER="0"
|
||||||
|
CELLPADDING="0"
|
||||||
|
CELLSPACING="0"
|
||||||
|
><TR
|
||||||
|
><TH
|
||||||
|
COLSPAN="3"
|
||||||
|
ALIGN="center"
|
||||||
|
>AlternC, Documentation Utilisateur</TH
|
||||||
|
></TR
|
||||||
|
><TR
|
||||||
|
><TD
|
||||||
|
WIDTH="10%"
|
||||||
|
ALIGN="left"
|
||||||
|
VALIGN="bottom"
|
||||||
|
><A
|
||||||
|
HREF="c18.html"
|
||||||
|
ACCESSKEY="P"
|
||||||
|
>Précédent</A
|
||||||
|
></TD
|
||||||
|
><TD
|
||||||
|
WIDTH="80%"
|
||||||
|
ALIGN="center"
|
||||||
|
VALIGN="bottom"
|
||||||
|
>Chapitre 1. Introduction</TD
|
||||||
|
><TD
|
||||||
|
WIDTH="10%"
|
||||||
|
ALIGN="right"
|
||||||
|
VALIGN="bottom"
|
||||||
|
><A
|
||||||
|
HREF="c26.html"
|
||||||
|
ACCESSKEY="N"
|
||||||
|
>Suivant</A
|
||||||
|
></TD
|
||||||
|
></TR
|
||||||
|
></TABLE
|
||||||
|
><HR
|
||||||
|
ALIGN="LEFT"
|
||||||
|
WIDTH="100%"></DIV
|
||||||
|
><DIV
|
||||||
|
CLASS="SECT1"
|
||||||
|
><H1
|
||||||
|
CLASS="SECT1"
|
||||||
|
><A
|
||||||
|
NAME="AEN23">Fonctionnement de l'aide en ligne</H1
|
||||||
|
><P
|
||||||
|
>Cette aide en ligne est accessible par le lien "aide en ligne" du bureau virtuel.
|
||||||
|
vous pouvez aussi cliquer sur les "?" situés dans le bureau virtuel pour avoir
|
||||||
|
une aide contextuelle sur la page en cours.</P
|
||||||
|
></DIV
|
||||||
|
><DIV
|
||||||
|
CLASS="NAVFOOTER"
|
||||||
|
><HR
|
||||||
|
ALIGN="LEFT"
|
||||||
|
WIDTH="100%"><TABLE
|
||||||
|
SUMMARY="Footer navigation table"
|
||||||
|
WIDTH="100%"
|
||||||
|
BORDER="0"
|
||||||
|
CELLPADDING="0"
|
||||||
|
CELLSPACING="0"
|
||||||
|
><TR
|
||||||
|
><TD
|
||||||
|
WIDTH="33%"
|
||||||
|
ALIGN="left"
|
||||||
|
VALIGN="top"
|
||||||
|
><A
|
||||||
|
HREF="c18.html"
|
||||||
|
ACCESSKEY="P"
|
||||||
|
>Précédent</A
|
||||||
|
></TD
|
||||||
|
><TD
|
||||||
|
WIDTH="34%"
|
||||||
|
ALIGN="center"
|
||||||
|
VALIGN="top"
|
||||||
|
><A
|
||||||
|
HREF="book1.html"
|
||||||
|
ACCESSKEY="H"
|
||||||
|
>Sommaire</A
|
||||||
|
></TD
|
||||||
|
><TD
|
||||||
|
WIDTH="33%"
|
||||||
|
ALIGN="right"
|
||||||
|
VALIGN="top"
|
||||||
|
><A
|
||||||
|
HREF="c26.html"
|
||||||
|
ACCESSKEY="N"
|
||||||
|
>Suivant</A
|
||||||
|
></TD
|
||||||
|
></TR
|
||||||
|
><TR
|
||||||
|
><TD
|
||||||
|
WIDTH="33%"
|
||||||
|
ALIGN="left"
|
||||||
|
VALIGN="top"
|
||||||
|
>Introduction</TD
|
||||||
|
><TD
|
||||||
|
WIDTH="34%"
|
||||||
|
ALIGN="center"
|
||||||
|
VALIGN="top"
|
||||||
|
><A
|
||||||
|
HREF="c18.html"
|
||||||
|
ACCESSKEY="U"
|
||||||
|
>Niveau supérieur</A
|
||||||
|
></TD
|
||||||
|
><TD
|
||||||
|
WIDTH="33%"
|
||||||
|
ALIGN="right"
|
||||||
|
VALIGN="top"
|
||||||
|
>Les Noms de Domaines</TD
|
||||||
|
></TR
|
||||||
|
></TABLE
|
||||||
|
></DIV
|
||||||
|
></BODY
|
||||||
|
></HTML
|
||||||
|
>
|
|
@ -0,0 +1,206 @@
|
||||||
|
<HTML
|
||||||
|
><HEAD
|
||||||
|
><TITLE
|
||||||
|
>Configuration d'un domaine / sous-domaine</TITLE
|
||||||
|
><META
|
||||||
|
NAME="GENERATOR"
|
||||||
|
CONTENT="Modular DocBook HTML Stylesheet Version 1.76b+
|
||||||
|
"><LINK
|
||||||
|
REL="HOME"
|
||||||
|
TITLE="AlternC, Documentation Utilisateur"
|
||||||
|
HREF="book1.html"><LINK
|
||||||
|
REL="UP"
|
||||||
|
TITLE="Les Noms de Domaines"
|
||||||
|
HREF="c26.html"><LINK
|
||||||
|
REL="PREVIOUS"
|
||||||
|
TITLE="Les Noms de Domaines"
|
||||||
|
HREF="c26.html"><LINK
|
||||||
|
REL="NEXT"
|
||||||
|
TITLE="Comptes FTP"
|
||||||
|
HREF="c72.html"><LINK
|
||||||
|
REL="STYLESHEET"
|
||||||
|
TYPE="text/css"
|
||||||
|
HREF="docbook.css"></HEAD
|
||||||
|
><BODY
|
||||||
|
CLASS="SECT1"
|
||||||
|
BGCOLOR="#FFFFFF"
|
||||||
|
TEXT="#000000"
|
||||||
|
LINK="#0000FF"
|
||||||
|
VLINK="#840084"
|
||||||
|
ALINK="#0000FF"
|
||||||
|
><DIV
|
||||||
|
CLASS="NAVHEADER"
|
||||||
|
><TABLE
|
||||||
|
SUMMARY="Header navigation table"
|
||||||
|
WIDTH="100%"
|
||||||
|
BORDER="0"
|
||||||
|
CELLPADDING="0"
|
||||||
|
CELLSPACING="0"
|
||||||
|
><TR
|
||||||
|
><TH
|
||||||
|
COLSPAN="3"
|
||||||
|
ALIGN="center"
|
||||||
|
>AlternC, Documentation Utilisateur</TH
|
||||||
|
></TR
|
||||||
|
><TR
|
||||||
|
><TD
|
||||||
|
WIDTH="10%"
|
||||||
|
ALIGN="left"
|
||||||
|
VALIGN="bottom"
|
||||||
|
><A
|
||||||
|
HREF="c26.html"
|
||||||
|
ACCESSKEY="P"
|
||||||
|
>Précédent</A
|
||||||
|
></TD
|
||||||
|
><TD
|
||||||
|
WIDTH="80%"
|
||||||
|
ALIGN="center"
|
||||||
|
VALIGN="bottom"
|
||||||
|
>Chapitre 2. Les Noms de Domaines</TD
|
||||||
|
><TD
|
||||||
|
WIDTH="10%"
|
||||||
|
ALIGN="right"
|
||||||
|
VALIGN="bottom"
|
||||||
|
><A
|
||||||
|
HREF="c72.html"
|
||||||
|
ACCESSKEY="N"
|
||||||
|
>Suivant</A
|
||||||
|
></TD
|
||||||
|
></TR
|
||||||
|
></TABLE
|
||||||
|
><HR
|
||||||
|
ALIGN="LEFT"
|
||||||
|
WIDTH="100%"></DIV
|
||||||
|
><DIV
|
||||||
|
CLASS="SECT1"
|
||||||
|
><H1
|
||||||
|
CLASS="SECT1"
|
||||||
|
><A
|
||||||
|
NAME="DOMAIN.2">Configuration d'un domaine / sous-domaine</H1
|
||||||
|
><P
|
||||||
|
>Lorsque vous avez installé un domaine sur AlternC, vous pouvez choisir dans quel dossier
|
||||||
|
de votre espace disque vous souhaitez connecter ce domaine, ou tout sous-domaine associé.
|
||||||
|
Pour cela, Cliquez sur le domaine dans le menu de gauche. Cela affiche l'ensemble des
|
||||||
|
sous-domaines installé. Vous pouvez ensuite modifier l'emplacement de ces sous-domaines,
|
||||||
|
ou en créer de nouveaux.</P
|
||||||
|
><P
|
||||||
|
>Par défaut, les sous-domaines suivants sont installés : (exemple pour <TT
|
||||||
|
CLASS="LITERAL"
|
||||||
|
>virtuel.org</TT
|
||||||
|
>)
|
||||||
|
<P
|
||||||
|
></P
|
||||||
|
><UL
|
||||||
|
><LI
|
||||||
|
><P
|
||||||
|
><TT
|
||||||
|
CLASS="LITERAL"
|
||||||
|
>virtuel.org</TT
|
||||||
|
> Ce sous-domaine est en fait le domaine
|
||||||
|
lui-même. Vous pouvez choisir comment vous voulez rediriger le domaine lui-même.
|
||||||
|
Le plus simple est de le rediriger vers l'URL http://www.virtuel.org ou vers
|
||||||
|
le même dossier que www.virtuel.org</P
|
||||||
|
></LI
|
||||||
|
><LI
|
||||||
|
><P
|
||||||
|
><TT
|
||||||
|
CLASS="LITERAL"
|
||||||
|
>www.virtuel.org</TT
|
||||||
|
> Ce sosu-domaine correspond à l'adresse
|
||||||
|
qu'utiliseront la plupart des internautes, l'adresse www de votre site web. Vous pouvez donc
|
||||||
|
l'héberger sur un dossier local. Par défaut, c'est la racine (nommé /) de votre espace
|
||||||
|
disque qui recoit ce domaine.</P
|
||||||
|
></LI
|
||||||
|
><LI
|
||||||
|
><P
|
||||||
|
><TT
|
||||||
|
CLASS="LITERAL"
|
||||||
|
>mail.virtuel.org</TT
|
||||||
|
> Ce sous-domaine particulier recoit le webmail
|
||||||
|
de votre domaine. Vous pouvez donc accéder à votre mail par l'adresse <TT
|
||||||
|
CLASS="LITERAL"
|
||||||
|
>http://mail.virtuel.org</TT
|
||||||
|
>
|
||||||
|
Si vous souhaitez connecter le webmail sur un autre nom, détruisez ce sous-domaine et recréez-en un
|
||||||
|
en lui affectant le type "webmail".
|
||||||
|
</P
|
||||||
|
></LI
|
||||||
|
><LI
|
||||||
|
><P
|
||||||
|
><TT
|
||||||
|
CLASS="LITERAL"
|
||||||
|
>admin.virtuel.org</TT
|
||||||
|
> Ce sous-domaine particulier recoit l'interface
|
||||||
|
du bureau virtuel. Ainsi, vous pouvez administrer votre domaine directement depuis le domaine lui-même.
|
||||||
|
Si vous souhaitez connecter le bureau d'administration sur un autre nom, détruisez ce sous-domaine et recréez-en un
|
||||||
|
en lui affectant le type "bureau virtuel".
|
||||||
|
</P
|
||||||
|
></LI
|
||||||
|
></UL
|
||||||
|
></P
|
||||||
|
></DIV
|
||||||
|
><DIV
|
||||||
|
CLASS="NAVFOOTER"
|
||||||
|
><HR
|
||||||
|
ALIGN="LEFT"
|
||||||
|
WIDTH="100%"><TABLE
|
||||||
|
SUMMARY="Footer navigation table"
|
||||||
|
WIDTH="100%"
|
||||||
|
BORDER="0"
|
||||||
|
CELLPADDING="0"
|
||||||
|
CELLSPACING="0"
|
||||||
|
><TR
|
||||||
|
><TD
|
||||||
|
WIDTH="33%"
|
||||||
|
ALIGN="left"
|
||||||
|
VALIGN="top"
|
||||||
|
><A
|
||||||
|
HREF="c26.html"
|
||||||
|
ACCESSKEY="P"
|
||||||
|
>Précédent</A
|
||||||
|
></TD
|
||||||
|
><TD
|
||||||
|
WIDTH="34%"
|
||||||
|
ALIGN="center"
|
||||||
|
VALIGN="top"
|
||||||
|
><A
|
||||||
|
HREF="book1.html"
|
||||||
|
ACCESSKEY="H"
|
||||||
|
>Sommaire</A
|
||||||
|
></TD
|
||||||
|
><TD
|
||||||
|
WIDTH="33%"
|
||||||
|
ALIGN="right"
|
||||||
|
VALIGN="top"
|
||||||
|
><A
|
||||||
|
HREF="c72.html"
|
||||||
|
ACCESSKEY="N"
|
||||||
|
>Suivant</A
|
||||||
|
></TD
|
||||||
|
></TR
|
||||||
|
><TR
|
||||||
|
><TD
|
||||||
|
WIDTH="33%"
|
||||||
|
ALIGN="left"
|
||||||
|
VALIGN="top"
|
||||||
|
>Les Noms de Domaines</TD
|
||||||
|
><TD
|
||||||
|
WIDTH="34%"
|
||||||
|
ALIGN="center"
|
||||||
|
VALIGN="top"
|
||||||
|
><A
|
||||||
|
HREF="c26.html"
|
||||||
|
ACCESSKEY="U"
|
||||||
|
>Niveau supérieur</A
|
||||||
|
></TD
|
||||||
|
><TD
|
||||||
|
WIDTH="33%"
|
||||||
|
ALIGN="right"
|
||||||
|
VALIGN="top"
|
||||||
|
>Comptes FTP</TD
|
||||||
|
></TR
|
||||||
|
></TABLE
|
||||||
|
></DIV
|
||||||
|
></BODY
|
||||||
|
></HTML
|
||||||
|
>
|
|
@ -0,0 +1,42 @@
|
||||||
|
|
||||||
|
BODY {
|
||||||
|
font-size: 12px;
|
||||||
|
font-family: Verdana, Helvetica, Sans-Serif;
|
||||||
|
font-weight: normal;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Titres de chapitres : */
|
||||||
|
H1 {
|
||||||
|
font-size: 18px;
|
||||||
|
font-family: Bookman Old Style, Times, Serif;
|
||||||
|
font-weight: bold;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* En-tete haut cache */
|
||||||
|
.navheader {
|
||||||
|
position: absolute;
|
||||||
|
visibility: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* En-tete bas : petite police */
|
||||||
|
.navfooter td, .navfooter {
|
||||||
|
font-size: 10px;
|
||||||
|
font-family: Verdana, Helvetica, Sans-Serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Police standard pour le code */
|
||||||
|
.literal, .programlisting, .screen {
|
||||||
|
font-size: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Listes a puce pour la table des matieres : */
|
||||||
|
.toc {
|
||||||
|
list-style-image: url(tiret.gif);
|
||||||
|
padding-left: 4px;
|
||||||
|
margin-left: 2px;
|
||||||
|
}
|
||||||
|
.toc2 {
|
||||||
|
list-style-image: url(plus.gif);
|
||||||
|
padding-left: 4px;
|
||||||
|
margin-left: 2px;
|
||||||
|
}
|
|
@ -0,0 +1,14 @@
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Documentation développeur d'AlternC</title>
|
||||||
|
</head>
|
||||||
|
<frameset COLS="30%,*">
|
||||||
|
<frame SRC="toc.htm" NAME="left">
|
||||||
|
<frame SRC="book1.html" NAME="right">
|
||||||
|
<noframes>
|
||||||
|
<body>
|
||||||
|
Your browser does not support frames.
|
||||||
|
</body>
|
||||||
|
</noframes>
|
||||||
|
</frameset>
|
||||||
|
</html>
|
After Width: | Height: | Size: 91 B |
After Width: | Height: | Size: 90 B |
After Width: | Height: | Size: 4.6 KiB |
|
@ -0,0 +1,80 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: bro_editor.php,v 1.5 2005/05/03 14:49:06 anarcat Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: Editor of the browser
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
$file=ssla($file);
|
||||||
|
$texte=ssla($texte);
|
||||||
|
|
||||||
|
$R=$bro->convertabsolute($R,1);
|
||||||
|
$p=$bro->GetPrefs();
|
||||||
|
|
||||||
|
if ($cancel) {
|
||||||
|
include("bro_main.php");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
if ($saveret) {
|
||||||
|
$bro->Save($file,$R,$texte);
|
||||||
|
$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("bro_main.php");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
if ($save) {
|
||||||
|
$bro->Save($file,$R,$texte);
|
||||||
|
$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");
|
||||||
|
?>
|
||||||
|
<script src="/admin/js/wz_dragdrop.js" type="text/javascript"></script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<p>
|
||||||
|
<?php if ($error) echo "<font color=\"red\">$error</font><br />"; ?>
|
||||||
|
<?php echo _("File editing")." <code>$R/<b>$file</b></code><br />"; ?>
|
||||||
|
</p>
|
||||||
|
<form action="bro_editor.php" method="post"><p>
|
||||||
|
<div id="resizer" style="left: 0px; top: 0px; z-index: 54; width: 646px; height: 252px; cursor: auto;"><textarea class="int" style="font-family: <?php echo $p["editor_font"]; ?>; font-size: <?php echo $p["editor_size"]; ?>; width: 90%; height: 90%;" cols="<?php echo $p["editsizex"]; ?>" rows="<?php echo $p["editsizey"]; ?>" name="texte"><?php
|
||||||
|
$bro->content($R,$file);
|
||||||
|
?></textarea><img src="/admin/icon/winresize.gif" alt="shift+click and drag to resize textarea" title="shift+click and drag to resize textarea" height="20" width="20"></div><br />
|
||||||
|
<input type="hidden" name="file" value="<?php echo str_replace("\"",""",$file); ?>" />
|
||||||
|
<input type="hidden" name="R" value="<?php echo str_replace("\"",""",$R); ?>" />
|
||||||
|
|
||||||
|
<input type="submit" class="inb" value="<?php __("Save"); ?>" name="save" />
|
||||||
|
<input type="submit" class="inb" value="<?php __("Save & Quit"); ?>" name="saveret" />
|
||||||
|
<input type="submit" class="inb" value="<?php __("Quit"); ?>" name="cancel" />
|
||||||
|
</p>
|
||||||
|
<script type="text/javascript">
|
||||||
|
<!--
|
||||||
|
SET_DHTML("resizer"+RESIZABLE);
|
||||||
|
//-->
|
||||||
|
</script>
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,417 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: bro_main.php,v 1.11 2004/09/06 18:14:36 anonymous Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag, Remi
|
||||||
|
Purpose of file: Online file Browser of AlternC
|
||||||
|
TODO : Voir ??? + Déplacer / Copier
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
$p=$bro->GetPrefs();
|
||||||
|
if (!$R && $p["golastdir"]) {
|
||||||
|
$R=$p["lastdir"];
|
||||||
|
}
|
||||||
|
$R=$bro->convertabsolute($R,1);
|
||||||
|
// on fait ?
|
||||||
|
if ($formu) {
|
||||||
|
switch ($formu) {
|
||||||
|
case 1: // Créer le répertoire $R.$nomfich
|
||||||
|
$bro->CreateDir($R,$nomfich);
|
||||||
|
$p=$bro->GetPrefs();
|
||||||
|
break;
|
||||||
|
case 6: // Créer le fichier $R.$nomfich
|
||||||
|
$bro->CreateFile($R,$nomfich);
|
||||||
|
$p=$bro->GetPrefs();
|
||||||
|
if ($p["createfile"]==1) {
|
||||||
|
$file=$nomfich;
|
||||||
|
include("bro_editor.php");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 2: // act vaut Supprimer Copier ou Renommer.
|
||||||
|
if ($actdel) {
|
||||||
|
$bro->DeleteFile($d,$R);
|
||||||
|
}
|
||||||
|
if ($actmove) {
|
||||||
|
$bro->MoveFile($d,$R,$actmoveto);
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
case 4: // Renommage Effectif...
|
||||||
|
$bro->RenameFile($R,$o,$d); // Rename $R (directory) $o (old) $d (new) names
|
||||||
|
break;
|
||||||
|
case 3: // Upload de fichier...
|
||||||
|
$bro->UploadFile($R);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Creation de la liste des fichiers courants */
|
||||||
|
$c=$bro->filelist($R);
|
||||||
|
if ($c===false) $error=$err->errstr();
|
||||||
|
|
||||||
|
include("head.php");
|
||||||
|
?>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
|
||||||
|
<table border="0" width="100%" cellspacing="0">
|
||||||
|
<tr><td>
|
||||||
|
|
||||||
|
<hr />
|
||||||
|
<table width="100%"><tr><td valign="top">
|
||||||
|
<a href="bro_main.php?R=/"><?php echo $mem->user["login"]; ?></a> / <?php echo $bro->PathList($R,"bro_main.php") ?><br />
|
||||||
|
<small>
|
||||||
|
<?php if ($error) echo "<font color=\"red\">$error</font>"; ?>
|
||||||
|
</td><td valign="top" align="right">
|
||||||
|
<h3><?php __("File browser"); ?></h3>
|
||||||
|
|
||||||
|
<form action="bro_main.php" method="post" name="nn" id="nn">
|
||||||
|
<input type="hidden" name="R" value="<?php echo $R; ?>" />
|
||||||
|
<table><tr>
|
||||||
|
<td><input type="text" class="int" name="nomfich" size="22" maxlength="255" /></td>
|
||||||
|
<td><input type="submit" class="inb" value="<?php __("Create"); ?>" /></td>
|
||||||
|
</tr><tr><td>
|
||||||
|
<input type="radio" class="inc" id="nfile" onclick="document.nn.nomfich.focus();" name="formu" value="6" <?php if (!$p["crff"]) echo "checked=\"checked\""; ?> /><label for="nfile"> <?php __("File"); ?></label>
|
||||||
|
<input type="radio" class="inc" id="nfold" onclick="document.nn.nomfich.focus();" name="formu" value="1" <?php if ($p["crff"]) echo "checked=\"checked\""; ?> /><label for="nfold"> <?php __("Folder"); ?></label>
|
||||||
|
</td><td></td></tr></table>
|
||||||
|
</form>
|
||||||
|
</td></tr>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
</td></tr>
|
||||||
|
<tr><td valign="top">
|
||||||
|
|
||||||
|
<?php
|
||||||
|
/* Renommer / Copier / Déplacer les fichiers : */
|
||||||
|
if ($formu==2 && $actrename && count($d)) {
|
||||||
|
echo "<table cellpadding=\"6\">\n";
|
||||||
|
echo "<form action=\"bro_main.php\" method=\"post\">\n";
|
||||||
|
echo "<input type=\"hidden\" name=\"R\" value=\"$R\" />\n";
|
||||||
|
echo "<input type=\"hidden\" name=\"formu\" value=\"4\" />\n";
|
||||||
|
echo "<tr><th colspan=\"2\">"._("Rename")."</th></tr>";
|
||||||
|
for ($i=0;$i<count($d);$i++) {
|
||||||
|
$d[$i]=ssla($d[$i]);
|
||||||
|
echo "<tr><td><input type=\"hidden\" name=\"o[$i]\" value=\"".$d[$i]."\" />".$d[$i]."</td>";
|
||||||
|
echo "<td><input type=\"text\" class=\"int\" name=\"d[$i]\" value=\"".$d[$i]."\" /></td></tr>";
|
||||||
|
}
|
||||||
|
echo "<tr><td colspan=\"2\" align=\"center\"><input type=\"submit\" class=\"inb\" name=\"submit\" value=\""._("Rename")."\" /></td></tr>";
|
||||||
|
echo "</table></form>\n";
|
||||||
|
echo "<hr />\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
/* We draw the file list and button bar only if there is files here ! */
|
||||||
|
if (count($c)) {
|
||||||
|
|
||||||
|
?>
|
||||||
|
<form action="bro_main.php" method="post" name="main" id="main">
|
||||||
|
<input type="hidden" name="R" value="<?php echo $R; ?>" />
|
||||||
|
<input type="hidden" name="formu" value="2" />
|
||||||
|
<hr />
|
||||||
|
<script type="text/javascript">
|
||||||
|
<!--
|
||||||
|
document.write("<input type=\"button\" value=\"<?php __("all/none"); ?>\" class=\"inb\" onclick=\"CheckAll();\" />");
|
||||||
|
// -->
|
||||||
|
</script>
|
||||||
|
<input type="submit" class="inb" name="actdel" value="<?php __("Delete"); ?>" />
|
||||||
|
|
||||||
|
<input type="submit" class="inb" name="actrename" value="<?php __("Rename"); ?>" />
|
||||||
|
|
||||||
|
<input type="submit" class="inb" name="actmove" value="<?php __("Move"); ?>" /> : <input type="text" class="int" name="actmoveto" value="" />
|
||||||
|
<script type="text/javascript">
|
||||||
|
<!--
|
||||||
|
document.write("<input type=\"button\" name=\"bff\" onclick=\"browseforfolder('main.actmoveto');\" value=\" ... \" class=\"inb\" />");
|
||||||
|
// -->
|
||||||
|
</script>
|
||||||
|
<hr />
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
<?php
|
||||||
|
switch ($p["listmode"]) {
|
||||||
|
case 0:
|
||||||
|
/* AFFICHE 1 COLONNE DETAILLEE */
|
||||||
|
reset($c);
|
||||||
|
echo "<table width=\"100%\" style=\"border: 0px\" cellpadding=\"0\" cellspacing=\"0\">";
|
||||||
|
$col=1;
|
||||||
|
for($i=0;$i<count($c);$i++) {
|
||||||
|
$col=3-$col;
|
||||||
|
echo "<tr class=\"lst$col\">\n";
|
||||||
|
if ($c[$i]["type"]) {
|
||||||
|
echo " <td width=\"28\"><input type=\"checkbox\" class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\" /></td>";
|
||||||
|
if ($p["showicons"]) {
|
||||||
|
echo "<td width=\"28\"><img src=\"icon/".$bro->icon($c[$i]["name"])."\" width=\"16\" height=\"16\" alt=\"\" /></td>";
|
||||||
|
}
|
||||||
|
echo "<td><a href=\"";
|
||||||
|
echo "bro_editor.php?file=".urlencode($c[$i]["name"])."&R=".urlencode($R);
|
||||||
|
echo "\">".$c[$i]["name"]."</a></td>\n";
|
||||||
|
echo " <td>".format_size($c[$i]["size"])."</td>";
|
||||||
|
echo "<td>".format_date('%3$d-%2$d-%1$d %4$d:%5$d',date("Y-m-d H:i:s",$c[$i]["date"]))."<br /></td>";
|
||||||
|
if ($p["showtype"]) {
|
||||||
|
echo "<td>".$bro->mime($c[$i]["name"])."</td>";
|
||||||
|
}
|
||||||
|
$vu=$bro->viewurl($R,$c[$i]["name"]);
|
||||||
|
if ($vu) {
|
||||||
|
echo "<td><a href=\"$vu\">"._("View")."</a>";
|
||||||
|
} else {
|
||||||
|
echo "<td> ";
|
||||||
|
}
|
||||||
|
echo "</td>\n";
|
||||||
|
} else { // DOSSIER :
|
||||||
|
echo " <td width=\"28\"><input type=\"checkbox\" class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\" /></td>";
|
||||||
|
if ($p["showicons"]) {
|
||||||
|
echo "<td width=\"28\"><img src=\"icon/folder.png\" width=\"16\" height=\"16\" alt=\"\" /></td>";
|
||||||
|
}
|
||||||
|
echo "<td><b><a href=\"";
|
||||||
|
echo "bro_main.php?R=".urlencode($R."/".$c[$i]["name"]);
|
||||||
|
echo "\">".$c[$i]["name"]."/</a></b></td>\n";
|
||||||
|
echo " <td>".format_size($c[$i]["size"])."</td>";
|
||||||
|
echo "<td>".format_date('%3$d-%2$d-%1$d %4$d:%5$d',date("Y-m-d h:i:s",$c[$i]["date"]))."<br /></td>";
|
||||||
|
if ($p["showtype"]) {
|
||||||
|
echo "<td>Dossier</td>";
|
||||||
|
}
|
||||||
|
echo "<td> ";
|
||||||
|
echo "</td>\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
echo "</tr>\n";
|
||||||
|
}
|
||||||
|
echo "</table>";
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
/* AFFICHE 2 COLONNES COURTES */
|
||||||
|
reset($c);
|
||||||
|
echo "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>";
|
||||||
|
echo "<tr><td valign=\"top\" width=\"50%\">";
|
||||||
|
echo "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>";
|
||||||
|
$col=1;
|
||||||
|
for($i=0;$i<round(count($c)/2);$i++) {
|
||||||
|
$col=3-$col;
|
||||||
|
echo "<tr class=\"lst$col\">\n";
|
||||||
|
if ($c[$i]["type"]) {
|
||||||
|
echo " <td width=\"28\"><input type=\"checkbox\" class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\" /></td><td><a href=\"";
|
||||||
|
echo "bro_editor.php?file=".urlencode($c[$i]["name"])."&R=".urlencode($R);
|
||||||
|
echo "\">".$c[$i]["name"]."</a></td>\n";
|
||||||
|
echo " <td>".format_size($c[$i]["size"])."</td><td>";
|
||||||
|
$vu=$bro->viewurl($R,$c[$i]["name"]);
|
||||||
|
if ($vu) {
|
||||||
|
echo "<td><a href=\"$vu\">"._("V")."</a>";
|
||||||
|
} else {
|
||||||
|
echo "<td> ";
|
||||||
|
}
|
||||||
|
echo "</td>\n";
|
||||||
|
} else {
|
||||||
|
echo " <td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><b><a href=\"";
|
||||||
|
echo "bro_main.php?R=".urlencode($R."/".$c[$i]["name"]);
|
||||||
|
echo "\">".$c[$i]["name"]."/</a></b></td>\n";
|
||||||
|
echo " <td>".format_size($c[$i]["size"])."</td><td>";
|
||||||
|
echo " ";
|
||||||
|
echo "</td>\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
echo "</tr>\n";
|
||||||
|
}
|
||||||
|
echo "</table>";
|
||||||
|
echo "</td><td valign=\"top\" width=\"50%\">";
|
||||||
|
echo "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>";
|
||||||
|
$col=1;
|
||||||
|
for($i=round(count($c)/2);$i<count($c);$i++) {
|
||||||
|
$col=3-$col;
|
||||||
|
echo "<tr class=\"lst$col\">\n";
|
||||||
|
if ($c[$i]["type"]) {
|
||||||
|
echo " <td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><a href=\"";
|
||||||
|
echo "bro_editor.php?file=".urlencode($c[$i]["name"])."&R=".urlencode($R);
|
||||||
|
echo "\">".$c[$i]["name"]."</a></td>\n";
|
||||||
|
echo " <td>".format_size($c[$i]["size"])."</td><td>";
|
||||||
|
$vu=$bro->viewurl($R,$c[$i]["name"]);
|
||||||
|
if ($vu) {
|
||||||
|
echo "<td><a href=\"$vu\">"._("V")."</a>";
|
||||||
|
} else {
|
||||||
|
echo "<td> ";
|
||||||
|
}
|
||||||
|
echo "</td>\n";
|
||||||
|
} else {
|
||||||
|
echo " <td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><b><a href=\"";
|
||||||
|
echo "bro_main.php?R=".urlencode($R."/".$c[$i]["name"]);
|
||||||
|
echo "\">".$c[$i]["name"]."/</a></b></td>\n";
|
||||||
|
echo " <td>".format_size($c[$i]["size"])."</td><td>";
|
||||||
|
echo " ";
|
||||||
|
echo "</td>\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
echo "</tr>\n";
|
||||||
|
}
|
||||||
|
echo "</table>";
|
||||||
|
echo "</td></tr>";
|
||||||
|
echo "</table>";
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
/* AFFICHE 3 COLONNES COURTES */
|
||||||
|
reset($c);
|
||||||
|
echo "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>";
|
||||||
|
echo "<tr><td valign=\"top\" width=\"33%\">";
|
||||||
|
echo "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>";
|
||||||
|
$col=1;
|
||||||
|
for($i=0;$i<round(count($c)/3);$i++) {
|
||||||
|
$col=3-$col;
|
||||||
|
echo "<tr class=\"lst$col\">\n";
|
||||||
|
if ($c[$i]["type"]) {
|
||||||
|
echo " <td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><a href=\"";
|
||||||
|
echo "bro_editor.php?file=".urlencode($c[$i]["name"])."&R=".urlencode($R);
|
||||||
|
echo "\">".$c[$i]["name"]."</a></td>\n";
|
||||||
|
echo " <td>".format_size($c[$i]["size"])."</td><td>";
|
||||||
|
$vu=$bro->viewurl($R,$c[$i]["name"]);
|
||||||
|
if ($vu) {
|
||||||
|
echo "<td><a href=\"$vu\">"._("V")."</a>";
|
||||||
|
} else {
|
||||||
|
echo "<td> ";
|
||||||
|
}
|
||||||
|
echo "</td>\n";
|
||||||
|
} else {
|
||||||
|
echo " <td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><b><a href=\"";
|
||||||
|
echo "bro_main.php?R=".urlencode($R."/".$c[$i]["name"]);
|
||||||
|
echo "\">".$c[$i]["name"]."/</a></b></td>\n";
|
||||||
|
echo " <td>".format_size($c[$i]["size"])."</td><td>";
|
||||||
|
echo " ";
|
||||||
|
echo "</td>\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
echo "</tr>\n";
|
||||||
|
}
|
||||||
|
echo "</table>";
|
||||||
|
echo "</td><td valign=\"top\" width=\"33%\">";
|
||||||
|
echo "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>";
|
||||||
|
$col=1;
|
||||||
|
for($i=round(count($c)/3);$i<round(2*count($c)/3);$i++) {
|
||||||
|
$col=3-$col;
|
||||||
|
echo "<tr class=\"lst$col\">\n";
|
||||||
|
if ($c[$i]["type"]) {
|
||||||
|
echo " <td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><a href=\"";
|
||||||
|
echo "bro_editor.php?file=".urlencode($c[$i]["name"])."&R=".urlencode($R);
|
||||||
|
echo "\">".$c[$i]["name"]."</a></td>\n";
|
||||||
|
echo " <td>".format_size($c[$i]["size"])."</td><td>";
|
||||||
|
$vu=$bro->viewurl($R,$c[$i]["name"]);
|
||||||
|
if ($vu) {
|
||||||
|
echo "<td><a href=\"$vu\">"._("V")."</a>";
|
||||||
|
} else {
|
||||||
|
echo "<td> ";
|
||||||
|
}
|
||||||
|
|
||||||
|
echo "</td>\n";
|
||||||
|
} else {
|
||||||
|
echo " <td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><b><a href=\"";
|
||||||
|
echo "bro_main.php?R=".urlencode($R."/".$c[$i]["name"]);
|
||||||
|
echo "\">".$c[$i]["name"]."/</a></b></td>\n";
|
||||||
|
echo " <td>".format_size($c[$i]["size"])."</td><td>";
|
||||||
|
echo " ";
|
||||||
|
echo "</td>\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
echo "</tr>\n";
|
||||||
|
}
|
||||||
|
echo "</table>";
|
||||||
|
echo "</td><td valign=\"top\" width=\"33%\">";
|
||||||
|
echo "<table width=\"100%\" border=0 cellpadding=0 cellspacing=0>";
|
||||||
|
$col=1;
|
||||||
|
for($i=round(2*count($c)/3);$i<count($c);$i++) {
|
||||||
|
$col=3-$col;
|
||||||
|
echo "<tr class=\"lst$col\">\n";
|
||||||
|
if ($c[$i]["type"]) {
|
||||||
|
echo " <td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><a href=\"";
|
||||||
|
echo "bro_editor.php?file=".urlencode($c[$i]["name"])."&R=".urlencode($R);
|
||||||
|
echo "\">".$c[$i]["name"]."</a></td>\n";
|
||||||
|
echo " <td>".format_size($c[$i]["size"])."</td><td>";
|
||||||
|
$vu=$bro->viewurl($R,$c[$i]["name"]);
|
||||||
|
if ($vu) {
|
||||||
|
echo "<td><a href=\"$vu\">"._("View")."</a>";
|
||||||
|
} else {
|
||||||
|
echo "<td> ";
|
||||||
|
}
|
||||||
|
echo "</td>\n";
|
||||||
|
} else {
|
||||||
|
echo " <td width=\"28\"><input TYPE=checkbox class=\"inc\" name=\"d[]\" value=\"".$c[$i]["name"]."\"></td><td><b><a href=\"";
|
||||||
|
echo "bro_main.php?R=".urlencode($R."/".$c[$i]["name"]);
|
||||||
|
echo "\">".$c[$i]["name"]."/</a></b></td>\n";
|
||||||
|
echo " <td>".format_size($c[$i]["size"])."</td><td>";
|
||||||
|
echo " ";
|
||||||
|
echo "</td>\n";
|
||||||
|
}
|
||||||
|
|
||||||
|
echo "</tr>\n";
|
||||||
|
}
|
||||||
|
echo "</table>";
|
||||||
|
echo "</td></tr>";
|
||||||
|
echo "</table>";
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</form>
|
||||||
|
<?php
|
||||||
|
} // is there any files here ?
|
||||||
|
else {
|
||||||
|
echo "<p class=\"error\">"._("No files in this folder")."</p>";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
|
||||||
|
</td></tr>
|
||||||
|
<tr><td colspan="2">
|
||||||
|
|
||||||
|
|
||||||
|
<form action="bro_main.php" enctype="multipart/form-data" method="post">
|
||||||
|
<input type="hidden" name="R" value="<?php echo $R; ?>" />
|
||||||
|
<input type="hidden" name="formu" value="3" />
|
||||||
|
<hr />
|
||||||
|
<?php __("Import this file"); ?> <input class="int" name="userfile" type="file" />
|
||||||
|
<input type="hidden" name="MAX_FILE_SIZE" value="10000000" />
|
||||||
|
<input type="submit" class="inb" value="<?php __("Send"); ?>" />
|
||||||
|
<hr />
|
||||||
|
</form>
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<?php
|
||||||
|
|
||||||
|
|
||||||
|
if ($id=$ftp->is_ftp($R)) {
|
||||||
|
echo _("There is an ftp account in this folder")." <a href=\"ftp_edit?id=".urlencode($id)."\">"._("Click here to edit this ftp account.")."</a><br />";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
echo "<a href=\"ftp_add.php?dir=".urlencode($R)."\">"._("Click here to create an ftp account in this folder.")."</a><br />";
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($hta->is_protected($R)) {
|
||||||
|
echo "<a href=\"hta_edit?dir=$R\">"._("This folder has restricted access")."</a><br />";
|
||||||
|
}
|
||||||
|
else {
|
||||||
|
echo "<a href=\"hta_add.php?value=$R\">"._("Click here to protect this folder with login/password")."</a><br />";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<br />
|
||||||
|
<a href="bro_tgzdown.php?dir=<?php echo $R; ?>"><?php __("Download"); ?></a> <?php __("this folder and its subfolders as a compressed file"); ?> (<?php echo $bro->l_tgz[$p["downfmt"]]; ?>)<br />
|
||||||
|
<a href="bro_pref.php"><?php __("Configure the file browser"); ?></a><br />
|
||||||
|
|
||||||
|
</td></tr></table>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,143 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: bro_pref.php,v 1.2 2003/06/10 06:45:16 root Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: Configuration of the file browser
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
if ($submit) {
|
||||||
|
$bro->SetPrefs($editsizex, $editsizey, $listmode, $showicons, $downfmt, $createfile, $showtype, $editor_font, $editor_size, $golastdir);
|
||||||
|
$error=_("Your preferences have been updated.");
|
||||||
|
include("bro_main.php");
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
$p=$bro->GetPrefs();
|
||||||
|
|
||||||
|
include("head.php");
|
||||||
|
?>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<?php if ($error) echo "<font color=\"red\">$error</font><br />"; ?>
|
||||||
|
<h3><?php __("File editor preferences"); ?></h3>
|
||||||
|
<form action="bro_pref.php" method="post">
|
||||||
|
|
||||||
|
<table cellpadding="6" border="1" cellspacing="0">
|
||||||
|
<tr><td colspan="2"><h4><?php __("File editor preferences"); ?></h4></td></tr>
|
||||||
|
<tr><td><?php __("Horizontal window size"); ?></td><td><select class="inl" name="editsizex">
|
||||||
|
<?php
|
||||||
|
for($i=10;$i<=200;$i+=10) {
|
||||||
|
echo "<option";
|
||||||
|
if ($p["editsizex"]==$i) echo " selected";
|
||||||
|
echo ">$i";
|
||||||
|
}
|
||||||
|
?></select></td></tr>
|
||||||
|
<tr><td><?php __("Vertical window size"); ?></td><td><select class="inl" name="editsizey">
|
||||||
|
<?php
|
||||||
|
for($i=4;$i<=60;$i+=2) {
|
||||||
|
echo "<option";
|
||||||
|
if ($p["editsizey"]==$i) echo " selected";
|
||||||
|
echo ">$i";
|
||||||
|
}
|
||||||
|
?></select></td></tr>
|
||||||
|
<tr><td><?php __("File editor font name"); ?></td><td><select class="inl" name="editor_font">
|
||||||
|
<?php
|
||||||
|
for($i=0;$i<count($bro->l_editor_font);$i++) {
|
||||||
|
echo "<option";
|
||||||
|
if ($p["editor_font"]==$bro->l_editor_font[$i]) echo " selected";
|
||||||
|
echo ">"._($bro->l_editor_font[$i]);
|
||||||
|
}
|
||||||
|
?></select></td></tr>
|
||||||
|
<tr><td><?php __("File editor font size"); ?></td><td><select class="inl" name="editor_size">
|
||||||
|
<?php
|
||||||
|
for($i=0;$i<count($bro->l_editor_size);$i++) {
|
||||||
|
echo "<option";
|
||||||
|
if ($p["editor_size"]==$bro->l_editor_size[$i]) echo " selected";
|
||||||
|
echo ">"._($bro->l_editor_size[$i]);
|
||||||
|
}
|
||||||
|
?></select></td></tr>
|
||||||
|
</table>
|
||||||
|
<p> </p>
|
||||||
|
|
||||||
|
<table cellpadding="6" border="1" cellspacing="0">
|
||||||
|
<tr><td colspan="2"><h4><?php __("File browser preferences"); ?></h4></td></tr>
|
||||||
|
<tr><td><?php __("File list view"); ?></td><td><select class="inl" name="listmode">
|
||||||
|
<?php
|
||||||
|
for($i=0;$i<count($bro->l_mode);$i++) {
|
||||||
|
echo "<option";
|
||||||
|
if ($p["listmode"]==$i) echo " selected";
|
||||||
|
echo " value=\"$i\">"._($bro->l_mode[$i])."</option>";
|
||||||
|
}
|
||||||
|
?></select></td></tr>
|
||||||
|
<tr><td><?php __("Downloading file format"); ?></td><td><select class="inl" name="downfmt">
|
||||||
|
<?php
|
||||||
|
for($i=0;$i<count($bro->l_tgz);$i++) {
|
||||||
|
echo "<option";
|
||||||
|
if ($p["downfmt"]==$i) echo " selected";
|
||||||
|
echo " value=\"$i\">"._($bro->l_tgz[$i])."</option>";
|
||||||
|
}
|
||||||
|
?></select></td></tr>
|
||||||
|
<tr><td><?php __("What to do after creating a file"); ?></td><td><select class="inl" name="createfile">
|
||||||
|
<?php
|
||||||
|
for($i=0;$i<count($bro->l_createfile);$i++) {
|
||||||
|
echo "<option";
|
||||||
|
if ($p["createfile"]==$i) echo " selected";
|
||||||
|
echo " value=\"$i\">"._($bro->l_createfile[$i])."</option>";
|
||||||
|
}
|
||||||
|
?></select></td></tr>
|
||||||
|
<tr><td><?php __("Show icons?"); ?></td><td><select class="inl" name="showicons">
|
||||||
|
<?php
|
||||||
|
for($i=0;$i<count($bro->l_icons);$i++) {
|
||||||
|
echo "<option";
|
||||||
|
if ($p["showicons"]==$i) echo " selected";
|
||||||
|
echo " value=\"$i\">"._($bro->l_icons[$i])."</option>";
|
||||||
|
}
|
||||||
|
?></select></td></tr>
|
||||||
|
<tr><td><?php __("Show file types?"); ?></td><td><select class="inl" name="showtype">
|
||||||
|
<?php
|
||||||
|
for($i=0;$i<count($bro->l_icons);$i++) {
|
||||||
|
echo "<option";
|
||||||
|
if ($p["showtype"]==$i) echo " selected";
|
||||||
|
echo " value=\"$i\">"._($bro->l_icons[$i])."</option>";
|
||||||
|
}
|
||||||
|
?></select></td></tr>
|
||||||
|
<tr><td><?php __("Remember last visited directory?"); ?></td><td><select class="inl" name="golastdir">
|
||||||
|
<?php
|
||||||
|
for($i=0;$i<count($bro->l_icons);$i++) {
|
||||||
|
echo "<option";
|
||||||
|
if ($p["golastdir"]==$i) echo " selected";
|
||||||
|
echo " value=\"$i\">"._($bro->l_icons[$i])."</option>";
|
||||||
|
}
|
||||||
|
?></select></td></tr>
|
||||||
|
|
||||||
|
</table>
|
||||||
|
<p><input type="submit" name="submit" class="inb" value="<?php __("Change my settings"); ?>"></p>
|
||||||
|
|
||||||
|
</form>
|
||||||
|
<p> </p>
|
||||||
|
<a href="bro_main.php"><?php __("Back to the file browser"); ?></a>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,47 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: bro_tgzdown.php,v 1.2 2004/09/06 18:14:36 anonymous Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Sonntag Benjamin
|
||||||
|
Purpose of file: Return the current folder in a compressed file
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
$p=$bro->GetPrefs();
|
||||||
|
switch ($p["downfmt"]) {
|
||||||
|
case 0:
|
||||||
|
$bro->DownloadTGZ($dir);
|
||||||
|
break;
|
||||||
|
case 1:
|
||||||
|
$bro->DownloadTBZ($dir);
|
||||||
|
break;
|
||||||
|
case 2:
|
||||||
|
$bro->DownloadZIP($dir);
|
||||||
|
break;
|
||||||
|
case 3:
|
||||||
|
$bro->DownloadZ($dir);
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
?>
|
|
@ -0,0 +1,35 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: bro_view.php,v 1.1.1.1 2003/03/26 17:41:29 root Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: Show a file passed in the URL Name...
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
$bro->content_send(dirname($PATH_INFO),basename($PATH_INFO));
|
||||||
|
|
||||||
|
?>
|
||||||
|
|
|
@ -0,0 +1,168 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
Navigateur de dossiers en php. (BrowseForFolder in win32 api :)
|
||||||
|
Version 1.0
|
||||||
|
Notes :
|
||||||
|
Benjamin Sonntag 23/12/2001 Version initiale: n'utilise qu'un seul uid : 1...
|
||||||
|
Fichier :
|
||||||
|
browseforfolder.php3 : Dialogue de navigation BrowseForFolder
|
||||||
|
$caller = composant form appelant (de la forme forms['main'].component )
|
||||||
|
|
||||||
|
function browseforfolder(caller) {
|
||||||
|
eval("file=document."+caller+".value");
|
||||||
|
w=window.open("browseforfolder.php?caller="+caller+"&file="+file,"browseforfolder","width=300,height=400,scrollbars,left=100,top=100");
|
||||||
|
}
|
||||||
|
|
||||||
|
requires : ife($test,$iftrue,$iffalse) function :
|
||||||
|
|
||||||
|
function ife($test,$true,$false="") {
|
||||||
|
if ($test)
|
||||||
|
return $true;
|
||||||
|
else
|
||||||
|
return $false;
|
||||||
|
}
|
||||||
|
|
||||||
|
BrowseForFolder($curdir); Retourne le tableau avec la liste des dossiers à afficher dans
|
||||||
|
la fonction browseforfolder sachant que le dossier actuel et curdir
|
||||||
|
retourne un tableau de tableau de la forme :
|
||||||
|
dir => "directory" Nom du dossier
|
||||||
|
level => 0-n Niveau du dossier (0=racine 1,2 ...)
|
||||||
|
put => "/sub/sub/directory" Contenu de la variable post à ajouter pour la balise A si ="" c'est le dossier courant.
|
||||||
|
Si probleme, positionne $errbrowsefold
|
||||||
|
Sinon, retourne le tableau et $maxlevel contient le nombre maximum de sous-dossiers.
|
||||||
|
*/
|
||||||
|
include("../class/config.php");
|
||||||
|
|
||||||
|
function _subbrowse($curdir,$pos,$level) {
|
||||||
|
global $maxlevel,$root,$brlist;
|
||||||
|
if ($level>$maxlevel)
|
||||||
|
$maxlevel=$level;
|
||||||
|
$rot=substr($curdir,0,$pos);
|
||||||
|
$next=@strpos($curdir,"/",$pos+1);
|
||||||
|
$nextstr=substr($curdir,$pos+1,$next-$pos-1);
|
||||||
|
$c=opendir($root.$rot);
|
||||||
|
$i=0; $tmp = array();
|
||||||
|
while ($r=readdir($c)) {
|
||||||
|
if (is_dir($root.$rot."/".$r) && $r!="." && $r!="..") { $tmp[$i++]=$r; }
|
||||||
|
}
|
||||||
|
sort($tmp);
|
||||||
|
foreach ($tmp as $r) {
|
||||||
|
/* Ajout */
|
||||||
|
$brlist[]=array("dir"=>$r,"level"=>$level,"put"=> ife($curdir==$rot."/".$r."/","",$rot."/".$r));
|
||||||
|
if ($r==$nextstr) {
|
||||||
|
_subbrowse($curdir,$next,$level+1);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
function browseforfolder($curdir) {
|
||||||
|
global $maxlevel,$root,$brlist;
|
||||||
|
$maxlevel=0;
|
||||||
|
$pat=explode("/",$curdir);
|
||||||
|
$brlist=array(array("dir"=>"/","level"=>0,"put"=> ife($curdir=="/","","/") ));
|
||||||
|
_subbrowse($curdir,0,1);
|
||||||
|
return $brlist;
|
||||||
|
}
|
||||||
|
|
||||||
|
$root="/var/alternc/html/".substr($mem->user["login"],0,1)."/".$mem->user["login"]."/";
|
||||||
|
// pour utiliser 'la ou est browseforfolder', mettre dirname($HTTP_SERVER_VARS["PATH_TRANSLATED"]);
|
||||||
|
|
||||||
|
if (substr($file,0,1)!="/") $file="/".$file;
|
||||||
|
if (substr($file,-1)!="/") $file.="/";
|
||||||
|
if (!$file) $file="/";
|
||||||
|
|
||||||
|
$errbrowsefold=0; /* Erreur lors de la création d'un dossier */
|
||||||
|
$brlist=array(); /* Liste des dossiers ... */
|
||||||
|
$maxlevel=0;
|
||||||
|
|
||||||
|
|
||||||
|
if ($select) {
|
||||||
|
/* Go ahead, let's send the javascript ...*/
|
||||||
|
?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
|
||||||
|
<head>
|
||||||
|
<title>Browser for folder</title>
|
||||||
|
<link rel="stylesheet" href="styles/style.css" type="text/css" />
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
||||||
|
|
||||||
|
<?php
|
||||||
|
echo "<head><script type=\"text/javascript\">\n";
|
||||||
|
echo "window.opener.document.".$caller.".value='".addslashes($file)."';\n";
|
||||||
|
echo "window.opener.window.focus();\n";
|
||||||
|
echo "window.close();\n";
|
||||||
|
echo "</script>\n";
|
||||||
|
echo "</head><body></body></html>";
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
|
||||||
|
<head>
|
||||||
|
<title>Recherche d'un dossier</title>
|
||||||
|
<link rel="stylesheet" href="styles/style.css" type="text/css" />
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
||||||
|
<script type="text/javascript">
|
||||||
|
/* Fonction appellée lors du lancement d'un popup Fichier : */
|
||||||
|
function popupfile() {
|
||||||
|
window.focus();
|
||||||
|
if (document.forms["main"].file)
|
||||||
|
document.forms["main"].file.focus();
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body onload="popupfile();">
|
||||||
|
<h3><?php __("Searching for a folder"); ?></h3>
|
||||||
|
<?php
|
||||||
|
|
||||||
|
$ar=browseforfolder($file);
|
||||||
|
if ($errbrowsefold) {
|
||||||
|
/* Si le dossier spécifié n'existe pas ou est un fichier : */
|
||||||
|
echo _("Error, cannot find this folder")."<br />";
|
||||||
|
/* Retour : */
|
||||||
|
echo "<a href=\"browseforfolder.php?caller=".urlencode($caller)."&curdir=".$root."\">"._("Back to the root folder")."</a><br />";
|
||||||
|
} else {
|
||||||
|
/* Sinon, tout va bien, on affiche le tableau */
|
||||||
|
reset($ar);
|
||||||
|
?>
|
||||||
|
<form method="post" id="main" name="main" action="browseforfolder.php">
|
||||||
|
<p>
|
||||||
|
<input type="hidden" name="caller" value="<?php echo $caller; ?>" />
|
||||||
|
<input type="hidden" name="lastcurdir" value="<?php echo $curdir; ?>" />
|
||||||
|
|
||||||
|
<input type="text" class="int" name="file" size="20" value="<?php echo $file ?>" /><input class="inb" type="submit" name="submit" value="..." /><br />
|
||||||
|
|
||||||
|
<input type="submit" name="select" value="<?php __("Select"); ?>" class="inb" />
|
||||||
|
<input type="button" name="cancel" value="<?php __("Cancel"); ?>" class="inb" onclick="window.close();" />
|
||||||
|
</p>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<table style="border: 0" cellspacing="2" cellpadding="0">
|
||||||
|
|
||||||
|
<?php
|
||||||
|
while (list($key,$val)=each($ar)) {
|
||||||
|
echo "<tr>\n";
|
||||||
|
for ($i=0;$i<$val["level"];$i++)
|
||||||
|
echo "<td width=\"16\"></td>";
|
||||||
|
if ($val["put"]!="") {
|
||||||
|
?>
|
||||||
|
<td width="16"><img src="icon/folder.png" width="16" height="16" alt="" /></td>
|
||||||
|
<?php
|
||||||
|
} else {
|
||||||
|
?>
|
||||||
|
<td width="16"><img src="icon/openfold.png" width="16" height="16" alt="" /></td>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
echo "<td colspan=\"".($maxlevel-$val["level"]+1)."\">";
|
||||||
|
if ($val["put"]!="") {
|
||||||
|
echo "<a href=\"browseforfolder.php?caller=".urlencode($caller)."&file=".urlencode($val["put"])."\">".$val["dir"]."</a>";
|
||||||
|
} else {
|
||||||
|
echo "<b>".$val["dir"]."</b>";
|
||||||
|
}
|
||||||
|
echo "</td>\n</tr>\n";
|
||||||
|
}
|
||||||
|
} // OK ?
|
||||||
|
?>
|
||||||
|
</table>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,54 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: direct.php,v 1.2 2003/06/10 06:45:16 root Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: Redirect the user (show the main frameset) after a
|
||||||
|
form submit
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
if (!$mem->checkid()) {
|
||||||
|
$error=$err->errstr();
|
||||||
|
include("index.php");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Frameset//EN">
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Administration de <?php echo $host ?></title>
|
||||||
|
<link rel="stylesheet" href="style.css" type="text/css">
|
||||||
|
</head>
|
||||||
|
<frameset cols="225px,*">
|
||||||
|
<frame src="menu.php" name="left">
|
||||||
|
<frame src="<?php echo $page ?>" name="right">
|
||||||
|
<noframes>
|
||||||
|
Votre navigateur doit supporter les cadres.<br />
|
||||||
|
Your browser must support frames
|
||||||
|
</noframes>
|
||||||
|
</frameset>
|
||||||
|
</html>
|
|
@ -0,0 +1,72 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: dom_add.php,v 1.5 2003/06/10 13:16:11 root Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: Add a new domain
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
if (!isSet($dns)) $dns="1";
|
||||||
|
|
||||||
|
include("head.php");
|
||||||
|
?>
|
||||||
|
</head>
|
||||||
|
<body onload="document.forms['main'].newdomain.focus();">
|
||||||
|
<h3><?php __("Domain hosting"); ?></h3>
|
||||||
|
<?php
|
||||||
|
if (!$quota->cancreate("dom")) { ?>
|
||||||
|
<p class="error"><?php echo _("You cannot add any new domain, your quota is over.")." "._("Contact your administrator for more information."); ?></p>
|
||||||
|
<?php
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
if ($error) echo "<p class=\"error\">$error</p>";
|
||||||
|
?>
|
||||||
|
<form method="post" action="dom_doadd.php" id="main">
|
||||||
|
<table><tr><td>
|
||||||
|
<b><label for="newdomain"><?php __("Domain name"); ?> : www.</label></b></td><td><input type="text" class="int" id="newdomain" name="newdomain" value="<?php echo $newdomain ?>" size="32" maxlength="255" />
|
||||||
|
</td></tr><tr><td></td><td><input type="submit" class="inb" name="submit" value="<?php __("Add this domain"); ?>" /></td></tr>
|
||||||
|
</table>
|
||||||
|
<p>
|
||||||
|
<input type="checkbox" name="dns" class="inc" value="1" id="yndns" <?php if ($dns=="1") echo "checked=\"checked\""; ?> /><br />
|
||||||
|
<label for="yndns"><?php __("host my dns here"); ?></label>
|
||||||
|
</p>
|
||||||
|
<p class="error">
|
||||||
|
<small>
|
||||||
|
<?php __("If you don't want to host in our server the DNS of your domain, don't check the box 'host my dns here'. If you don't know what it mean, leave it checked."); ?></small></p>
|
||||||
|
<?php $mem->show_help("add_domain"); ?>
|
||||||
|
</form>
|
||||||
|
<?php
|
||||||
|
if (is_array($dom->dns)) {
|
||||||
|
echo "<br />"._("Whois result on the domain")." : <pre>";
|
||||||
|
reset($dom->dns);
|
||||||
|
while (list($key,$val)=each($dom->dns)) {
|
||||||
|
echo "nameserver: $val\n";
|
||||||
|
}
|
||||||
|
echo "</pre>";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,64 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: dom_doadd.php,v 1.3 2003/06/10 11:18:27 root Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: Add a new domain to a member's account
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
$dom->lock();
|
||||||
|
|
||||||
|
if (!$dom->add_domain($newdomain,$dns)) {
|
||||||
|
$error=$err->errstr();
|
||||||
|
include("dom_add.php");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
$dom->unlock();
|
||||||
|
|
||||||
|
include("head.php");
|
||||||
|
?>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h3><?php __("Add a domain"); ?></h3>
|
||||||
|
<p>
|
||||||
|
<?php printf(_("Your new domain %s has been successfully installed"),$newdomain); ?><br />
|
||||||
|
<a href="login.php" target="_top"><?php __("Click here to continue"); ?></a><br />
|
||||||
|
<?php $mem->show_help("add_domain"); ?>
|
||||||
|
<br />
|
||||||
|
<?php
|
||||||
|
if (is_array($dom->dns)) {
|
||||||
|
echo "<br />"._("Whois result on the domain")." : <pre>";
|
||||||
|
reset($dom->dns);
|
||||||
|
while (list($key,$val)=each($dom->dns)) {
|
||||||
|
echo "nameserver: $val\n";
|
||||||
|
}
|
||||||
|
echo "</pre>";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,73 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: dom_dodel.php,v 1.3 2003/06/10 11:18:27 root Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: Delete a domain, confirm the deletion
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
$dom->lock();
|
||||||
|
if ($del_confirm=="y")
|
||||||
|
if (!$dom->del_domain($domain)) {
|
||||||
|
$error=$err->errstr();
|
||||||
|
include("dom_edit.php");
|
||||||
|
$dom->unlock();
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
$dom->unlock();
|
||||||
|
if ($del_confirm!="y") {
|
||||||
|
|
||||||
|
include("head.php");
|
||||||
|
?>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h3><?php printf(_("Confirm the deletion of domain %s"),$domain); ?></h3>
|
||||||
|
<p class="error"><?php __("WARNING"); ?><br /><?php printf(_("Confirm the deletion of domain %s"),$domain); ?><br />
|
||||||
|
<?php __("This will delete the related sub-domains too."); ?></p>
|
||||||
|
<form method="post" action="dom_dodel.php" id="main">
|
||||||
|
<p>
|
||||||
|
<input type="hidden" name="del_confirm" value="y" />
|
||||||
|
<input type="hidden" name="domain" value="<?php echo $domain ?>" />
|
||||||
|
<input type="submit" class="inb" name="submit" value="<?php __("Yes"); ?>" /> - <input type="button" class="inb" name="non" value="<?php __("No"); ?>" onclick="history.back()" />
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
|
<?php
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
include("head.php");
|
||||||
|
?>
|
||||||
|
</head>
|
||||||
|
<body bgcolor="#FFFFF0">
|
||||||
|
<h3><?php printf(_("Domain %s deleted"),$domain); ?></h3>
|
||||||
|
<p>
|
||||||
|
<?php printf(_("The domain %s has been successfully deleted."),$domain); ?><br />
|
||||||
|
<a href="login.php" target="_parent"><?php __("Click here to continue"); ?></a>
|
||||||
|
<?php $mem->show_help("del_domain"); ?>
|
||||||
|
</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,176 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: dom_edit.php,v 1.8 2006/02/17 18:20:08 olivier Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: Edit a domain parameters
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
$dom->lock();
|
||||||
|
if (!$r=$dom->get_domain_all($domain)) {
|
||||||
|
$error=$err->errstr();
|
||||||
|
}
|
||||||
|
$dom->unlock();
|
||||||
|
|
||||||
|
include("head.php");
|
||||||
|
?>
|
||||||
|
<script type="text/javascript">
|
||||||
|
function dnson() {
|
||||||
|
// Active les composants DNS :
|
||||||
|
if (document.forms["dns"].mx.disabled!=null)
|
||||||
|
document.forms["dns"].mx.disabled=false;
|
||||||
|
if (document.forms["dns"].mail.disabled!=null)
|
||||||
|
document.forms["dns"].mail.disabled=true;
|
||||||
|
}
|
||||||
|
function dnsoff() {
|
||||||
|
// Active les composants DNS :
|
||||||
|
if (document.forms["dns"].mx.disabled!=null)
|
||||||
|
document.forms["dns"].mx.disabled=true;
|
||||||
|
if (document.forms["dns"].mail.disabled!=null)
|
||||||
|
document.forms["dns"].mail.disabled=false;
|
||||||
|
}
|
||||||
|
</script>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h3><?php printf(_("Editing domain %s"),$domain); ?> : </h3>
|
||||||
|
<?php
|
||||||
|
if ($error) {
|
||||||
|
echo "<p class=\"error\">$error</p>";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<hr />
|
||||||
|
<!-- *****************************************
|
||||||
|
gestion des sous-domaines
|
||||||
|
-->
|
||||||
|
<h3><?php __("Subdomains"); ?></h3>
|
||||||
|
<table cellspacing="0" cellpadding="3">
|
||||||
|
<?php
|
||||||
|
$col=1;
|
||||||
|
for($i=0;$i<$r["nsub"];$i++) {
|
||||||
|
$col=3-$col;
|
||||||
|
?>
|
||||||
|
<tr class="lst<?php echo $col; ?>">
|
||||||
|
<td align="center">
|
||||||
|
<a href="dom_subedit.php?domain=<?php echo urlencode($r["name"]) ?>&sub=<?php echo urlencode($r["sub"][$i]["name"]) ?>"><?php __("Edit"); ?></a>
|
||||||
|
|
||||||
|
</td>
|
||||||
|
<td align="center"><a href="dom_subdel.php?domain=<?php echo urlencode($r["name"]) ?>&sub=<?php echo urlencode($r["sub"][$i]["name"]) ?>"><?php __("Delete"); ?></a></td>
|
||||||
|
<td><a href="http://<?php ecif($r["sub"][$i]["name"],$r["sub"][$i]["name"]."."); echo $r["name"] ?>" target="_blank"><?php ecif($r["sub"][$i]["name"],$r["sub"][$i]["name"]."."); echo $r["name"] ?></a></td>
|
||||||
|
<td><?php echo $r["sub"][$i]['type'] === '0' ? '<a href="/admin/bro_main.php?R='.urlencode($r["sub"][$i]["dest"]).'">'.htmlspecialchars($r["sub"][$i]["dest"]).'</a>' : htmlspecialchars($r["sub"][$i]["dest"]); ?> </td>
|
||||||
|
</tr>
|
||||||
|
<?php } ?>
|
||||||
|
</table>
|
||||||
|
<br />
|
||||||
|
<form action="dom_subdoedit.php?" method="post" name="main">
|
||||||
|
<table border="0">
|
||||||
|
<tr>
|
||||||
|
<td>
|
||||||
|
<input type="hidden" name="domain" value="<?php echo $r["name"]; ?>" />
|
||||||
|
<input type="hidden" name="action" value="add" />
|
||||||
|
<?php __("Create a subdomain:"); ?>
|
||||||
|
<input type="text" class="int" name="sub" style="text-align:right" value="" size="22" id="sub" /><code>.<?php echo $domain; ?></code></td>
|
||||||
|
<td><input type="submit" class="inb" name="add" value="<?php __("Add a subdomain"); ?>" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><input type="radio" id="local" class="inc" name="type" value="<?php echo $dom->type_local; ?>" checked="checked" onclick="document.main.sub_local.focus();" />
|
||||||
|
<label for="local"><?php __("Locally managed"); ?></label></td>
|
||||||
|
<td><input type="text" class="int" name="sub_local" id="sub_local" value="/" size="40" />
|
||||||
|
<script type="text/javascript">
|
||||||
|
<!--
|
||||||
|
document.write(" <input type=\"button\" name=\"bff\" onclick=\"browseforfolder('main.sub_local');\" value=\" ... \" class=\"inb\">");
|
||||||
|
// -->
|
||||||
|
</script>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><input type="radio" id="url" class="inc" name="type" value="<?php echo $dom->type_url; ?>" onclick="document.main.sub_url.focus();" />
|
||||||
|
<label for="url" ><?php __("URL redirection"); ?></label></td>
|
||||||
|
<td><input type="text" class="int" name="sub_url" id="sub_url" value="http://" size="50" /></td>
|
||||||
|
</tr>
|
||||||
|
<?php if ($r["dns"]) { // show only if dns is enabled ?>
|
||||||
|
<tr>
|
||||||
|
<td><input type="radio" id="ip" class="inc" name="type" value="<?php echo $dom->type_ip; ?>" onclick="document.main.sub_ip.focus();" />
|
||||||
|
<label for="ip"><?php __("IP redirection"); ?></label></td>
|
||||||
|
<td><input type="text" class="int" name="sub_ip" id="sub_ip" value="xxx.xxx.xxx.xxx" size="16" /></td>
|
||||||
|
</tr>
|
||||||
|
<? } ?>
|
||||||
|
<tr>
|
||||||
|
<td><input type="radio" id="webmail" class="inc" name="type" value="<?php echo $dom->type_webmail; ?>" />
|
||||||
|
<label for="webmail"><?php __("Webmail access"); ?></label></td>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
<?php $mem->show_help("edit_domain"); ?>
|
||||||
|
<p> </p>
|
||||||
|
<p> </p>
|
||||||
|
<!-- *****************************************
|
||||||
|
modification des parametres dns
|
||||||
|
-->
|
||||||
|
<?php
|
||||||
|
if (!$r[noerase]) {
|
||||||
|
?>
|
||||||
|
|
||||||
|
<hr />
|
||||||
|
<h3><?php __("DNS parameters"); ?></h3>
|
||||||
|
<form action="dom_editdns.php?domain=<?php echo urlencode($r["name"]) ?>" method="post" id="dns">
|
||||||
|
<table border="1" cellpadding="6" cellspacing="0">
|
||||||
|
<tr><td colspan="2"><?php __("Manage the DNS on the server ?"); ?></td></tr>
|
||||||
|
<tr>
|
||||||
|
<td align="center" width="65%"><label for="yesdns"><?php __("Yes"); ?></label><input type="radio" id="yesdns" class="inc" name="dns" value="1"<?php if ($r["dns"]) echo " checked=\"checked\"" ?> onclick="dnson();" /></td>
|
||||||
|
<td align="center" width="35%"><label for="nodns"><?php __("No"); ?></label><input type="radio" id="nodns" class="inc" name="dns" value="0"<?php if (!$r["dns"]) echo " checked=\"checked\"" ?> onclick="dnsoff();" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td width="65%" valign="top">
|
||||||
|
<p>
|
||||||
|
<?php printf(_("help_dns_mx %s %s"),$L_MX,$L_HOSTING); ?>
|
||||||
|
</p>
|
||||||
|
<label for="mx"><?php __("MX Field"); ?> : </label><input type="text" class="int" name="mx" id="mx" value="<?php echo $r["mx"] ?>" <?php if (!$r["dns"]) echo "disabled=\"disabled\""; ?> />
|
||||||
|
</td>
|
||||||
|
<td width="35%" valign="top">
|
||||||
|
<p>
|
||||||
|
<?php __("help_dns_mail"); ?></p>
|
||||||
|
<select class="inl" id="email" name="email" <?php if ($r["dns"]) echo "disabled=\"disabled\""; ?>><option value="1"<?php if ($r["mail"]) echo " selected=\"selected\"";?>><?php __("Yes"); ?></option><option value="0"<?php if (!$r["mail"]) echo " selected=\"selected\"";?>><?php __("No"); ?></option></select>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr><td colspan="2" align="center"><input type="submit" class="inb" name="submit" value="<?php __("Submit the changes"); ?>" /></td></tr>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<!-- *****************************************
|
||||||
|
destruction du domaine
|
||||||
|
-->
|
||||||
|
<br />
|
||||||
|
<?php printf(_("help_domain_del %s"),$domain); ?><br />
|
||||||
|
<form action="dom_dodel.php?domain=<?php echo urlencode($domain) ?>" method="post">
|
||||||
|
<p>
|
||||||
|
<input type="submit" class="inb" name="detruire" value="<?php printf(_("Delete %s"),$domain); ?>" />
|
||||||
|
</p>
|
||||||
|
</form>
|
||||||
|
<hr />
|
||||||
|
<?php } // noerase ?>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,60 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: dom_editdns.php,v 1.3 2003/06/10 11:18:27 root Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: Edit the dns parameters of a domain
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
$dom->lock();
|
||||||
|
if ($dns!="1") {
|
||||||
|
// On fixe mx :
|
||||||
|
if ($email=="1") {
|
||||||
|
$mx=$L_MX;
|
||||||
|
} else {
|
||||||
|
$mx="";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
if (!$dom->edit_domain($domain,$dns,$mx)) {
|
||||||
|
$error=$err->errstr();
|
||||||
|
include("dom_edit.php");
|
||||||
|
$dom->unlock();
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
$dom->unlock();
|
||||||
|
|
||||||
|
include("head.php");
|
||||||
|
?>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h3><?php printf(_("Editing domain %s"),$domain); ?></h3>
|
||||||
|
<p>
|
||||||
|
<?php printf(_("The domain %s has been changed. The modifications will take effect in 5 minutes."),$domain); ?><br />
|
||||||
|
<a href="login.php" target="_top"><?php __("Click here to continue"); ?></a>
|
||||||
|
</p>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,65 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: dom_subdel.php,v 1.3 2003/08/13 23:31:47 root Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: delete a subdomain
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
$dom->lock();
|
||||||
|
if (!$r=$dom->get_sub_domain_all($domain,$sub)) {
|
||||||
|
$error=$err->errstr();
|
||||||
|
}
|
||||||
|
$dom->unlock();
|
||||||
|
|
||||||
|
include("head.php");
|
||||||
|
?>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h3><?php printf(_("Deleting subdomain %s"),"http://".ife($sub,$sub.".").$domain); ?> : </h3>
|
||||||
|
<?php
|
||||||
|
if ($error) {
|
||||||
|
echo "<p class=\"error\">$error</p></body></html>";
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<hr />
|
||||||
|
<!-- *****************************************
|
||||||
|
gestion du sous-domaine
|
||||||
|
-->
|
||||||
|
<form action="dom_subdodel.php" method="post">
|
||||||
|
<p class="error">
|
||||||
|
<input type="hidden" name="domain" value="<?php echo $domain ?>" />
|
||||||
|
<input type="hidden" name="sub" value="<?php echo $sub ?>" />
|
||||||
|
<?php __("WARNING : Confirm the deletion of the subdomain"); ?> : </p>
|
||||||
|
<p><?php ecif($sub,$sub."."); echo $domain; ?></p>
|
||||||
|
<blockquote>
|
||||||
|
<input type="submit" class="inb" name="confirm" value="<?php __("Yes"); ?>" />
|
||||||
|
<input type="button" class="inb" name="cancel" value="<?php __("No"); ?>" onclick="history.back();" />
|
||||||
|
</blockquote>
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,55 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: dom_subdodel.php,v 1.2 2003/06/10 11:18:27 root Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file:
|
||||||
|
Purpose of file:
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
$dom->lock();
|
||||||
|
|
||||||
|
if (!$dom->del_sub_domain($domain,$sub)) {
|
||||||
|
$error=$err->errstr();
|
||||||
|
}
|
||||||
|
|
||||||
|
$dom->unlock();
|
||||||
|
|
||||||
|
include("head.php");
|
||||||
|
?>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h3>Suppression du sous-domaine http://<?php ecif($sub,$sub."."); echo $domain; ?> : </h3>
|
||||||
|
<?php
|
||||||
|
if ($error) {
|
||||||
|
echo "<p class=\"error\">$error</p></body></html>";
|
||||||
|
exit();
|
||||||
|
} else {
|
||||||
|
echo "<p class=\"error\">Le sous-domaine a ete supprime, les modifications seront prises en comptes dans 5 minutes.</p>";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<p><a href="dom_edit.php?domain=<?php echo urlencode($domain) ?>">Continuer</a></p>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,58 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: dom_subdoedit.php,v 1.1.1.1 2003/03/26 17:41:29 root Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: Edit a domain parameters
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
$dom->lock();
|
||||||
|
|
||||||
|
switch ($type) {
|
||||||
|
case $dom->type_local:
|
||||||
|
$r=$dom->set_sub_domain($domain,$sub,$type,$action,$sub_local);
|
||||||
|
break;
|
||||||
|
case $dom->type_url:
|
||||||
|
$r=$dom->set_sub_domain($domain,$sub,$type,$action,$sub_url);
|
||||||
|
break;
|
||||||
|
case $dom->type_ip:
|
||||||
|
$r=$dom->set_sub_domain($domain,$sub,$type,$action,$sub_ip);
|
||||||
|
break;
|
||||||
|
case $dom->type_webmail:
|
||||||
|
$r=$dom->set_sub_domain($domain,$sub,$type,$action,"");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
$dom->unlock();
|
||||||
|
|
||||||
|
if (!$r) {
|
||||||
|
$error=$err->errstr();
|
||||||
|
} else {
|
||||||
|
$error=_("The modifications will take effect in 5 minutes.");
|
||||||
|
}
|
||||||
|
include("dom_edit.php");
|
||||||
|
exit;
|
||||||
|
|
||||||
|
?>
|
|
@ -0,0 +1,93 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: dom_subedit.php,v 1.3 2003/08/13 23:01:45 root Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file:
|
||||||
|
Purpose of file:
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
$dom->lock();
|
||||||
|
if (!$r=$dom->get_sub_domain_all($domain,$sub)) {
|
||||||
|
$error=$err->errstr();
|
||||||
|
}
|
||||||
|
$dom->unlock();
|
||||||
|
|
||||||
|
include("head.php");
|
||||||
|
?>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h3>Edition du sous-domaine http://<?php ecif($sub,$sub."."); echo $domain; ?> : </h3>
|
||||||
|
<?php
|
||||||
|
if ($error) {
|
||||||
|
echo "<p class=\"erroe\">$error</p></body></html>";
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<hr />
|
||||||
|
<!-- *****************************************
|
||||||
|
gestion du sous-domaine
|
||||||
|
-->
|
||||||
|
<h3>Sous-domaine http://<?php ecif($sub,$sub."."); echo $domain; ?></h3>
|
||||||
|
<form action="dom_subdoedit.php" method="post" id="main" name="main">
|
||||||
|
<table border="0">
|
||||||
|
<tr>
|
||||||
|
<td> <input type="hidden" name="domain" value="<?php echo $domain ?>" />
|
||||||
|
<input type="hidden" name="sub" value="<?php echo $sub ?>" />
|
||||||
|
<input type="hidden" name="action" value="edit" />
|
||||||
|
|
||||||
|
<input type="radio" id="local" class="inc" name="type" value="<?php echo $dom->type_local; ?>" <?php cbox($r["type"]==$dom->type_local); ?> onclick="document.main.sub_local.focus();" />
|
||||||
|
<label for="local"><?php __("Locally managed"); ?></label></td>
|
||||||
|
<td><input type="text" class="int" name="sub_local" id="sub_local" value="<?php ecif($r["type"]==0,$r["dest"],"/"); ?>" size="40" />
|
||||||
|
<script type="text/javascript">
|
||||||
|
<!--
|
||||||
|
document.write(" <input type=\"button\" name=\"bff\" onclick=\"browseforfolder('main.sub_local');\" value=\" ... \" class=\"inb\">");
|
||||||
|
// -->
|
||||||
|
</script>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><input type="radio" id="url" class="inc" name="type" value="<?php echo $dom->type_url; ?>" <?php cbox($r["type"]==$dom->type_url); ?> onclick="document.main.sub_url.focus();" />
|
||||||
|
<label for="url"><?php __("URL redirection"); ?></label></td>
|
||||||
|
<td><input type="text" class="int" name="sub_url" id="sub_url" value="<?php ecif($r["type"]==1,$r["dest"],"http://"); ?>" size="50" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><input type="radio" id="ip" class="inc" name="type" value="<?php echo $dom->type_ip; ?>" <?php cbox($r["type"]==$dom->type_ip); ?> onclick="document.main.sub_ip.focus();" />
|
||||||
|
<label for="ip"><?php __("IP redirection"); ?></label></td>
|
||||||
|
<td><input type="text" class="int" name="sub_ip" id="sub_ip" value="<?php ecif($r["type"]==2,$r["dest"],"xxx.xxx.xxx.xxx"); ?>" size="16" /></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><input type="radio" id="webmail" class="inc" name="type" value="<?php echo $dom->type_webmail; ?>" <?php cbox($r["type"]==$dom->type_webmail); ?> />
|
||||||
|
<label for="webmail"><?php __("Webmail access"); ?></label></td>
|
||||||
|
<td> </td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><input type="submit" class="inb" name="submit" value="Valider les changements" /></td>
|
||||||
|
<td><input type="button" class="inb" name="back" value="Annuler" onclick="history.back();" /></td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,47 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: domlist.php,v 1.1 2004/06/02 13:23:45 anonymous Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file:
|
||||||
|
Purpose of file:
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config_nochk.php");
|
||||||
|
|
||||||
|
// Check for the http authentication
|
||||||
|
if (!isset($_SERVER['PHP_AUTH_USER'])) {
|
||||||
|
header('WWW-Authenticate: Basic realm="Domain List Authentication"');
|
||||||
|
header('HTTP/1.0 401 Unauthorized');
|
||||||
|
exit;
|
||||||
|
} else {
|
||||||
|
if ($dom->check_slave_account($_SERVER['PHP_AUTH_USER'],$_SERVER['PHP_AUTH_PW'])) {
|
||||||
|
$dom->echo_domain_list();
|
||||||
|
} else {
|
||||||
|
header('WWW-Authenticate: Basic realm="Domain List Authentication"');
|
||||||
|
header('HTTP/1.0 401 Unauthorized');
|
||||||
|
exit;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
|
@ -0,0 +1,70 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: ftp_add.php,v 1.5 2006/01/12 01:10:48 anarcat Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: Ask the required values to add a ftp account
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
if (!$quota->cancreate("ftp")) {
|
||||||
|
$error=_("You cannot add any new ftp account, your quota is over.");
|
||||||
|
$fatal=1;
|
||||||
|
}
|
||||||
|
include("head.php");
|
||||||
|
?>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h3><?php __("Create a new ftp account"); ?></h3>
|
||||||
|
<?php
|
||||||
|
if ($error) {
|
||||||
|
echo "<p class=\"error\">$error</p>";
|
||||||
|
if ($fatal) {
|
||||||
|
echo "</body></html>";
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<form method="post" action="ftp_doadd.php" name="main">
|
||||||
|
<table border="1" cellspacing="0" cellpadding="4">
|
||||||
|
<tr><th><input type="hidden" name="id" value="<?php echo $id ?>" />
|
||||||
|
<label for="login"><?php __("Username"); ?></label></th><td>
|
||||||
|
<select class="inl" name="prefixe"><?php $ftp->select_prefix_list($prefixe); ?></select> <b>_</b> <input type="text" class="int" name="login" id="login" value="<?php echo $login; ?>" size="20" maxlength="64" />
|
||||||
|
</td></tr>
|
||||||
|
<tr><th><label for="pass"><?php __("Password"); ?></label></th><td><input type="password" class="int" name="pass" id="pass" value="<?php echo $pass; ?>" size="20" maxlength="64" /></td></tr>
|
||||||
|
<tr><th><label for="passconf"><?php __("Confirm password"); ?></label></th><td><input type="password" class="int" name="passconf" id="passconf" value="<?php echo $passconf; ?>" size="20" maxlength="64" /></td></tr>
|
||||||
|
<tr><th><label for="dir"><?php __("Folder"); ?></label></th><td><input type="text" class="int" name="dir" id="dir" value="<?php echo $dir; ?>" size="20" maxlength="255" />
|
||||||
|
<script type="text/javascript">
|
||||||
|
<!--
|
||||||
|
document.write(" <input type=\"button\" name=\"bff\" onclick=\"browseforfolder('main.dir');\" value=\" ... \" class=\"inb\">");
|
||||||
|
// -->
|
||||||
|
</script>
|
||||||
|
</td></tr>
|
||||||
|
<tr><td colspan="2"><input type="submit" class="inb" name="submit" value="<?php __("Create this new FTP account."); ?>" /></td></tr>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
<?php $mem->show_help("ftp_add"); ?>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,48 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: ftp_del.php,v 1.2 2003/06/10 06:45:16 root Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: Delete ftp accounts
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
$error="";
|
||||||
|
// On parcours les POST_VARS et on repere les del_.
|
||||||
|
reset($_POST);
|
||||||
|
while (list($key,$val)=each($_POST)) {
|
||||||
|
if (substr($key,0,4)=="del_") {
|
||||||
|
// Effacement du compte ftp $val
|
||||||
|
$r=$ftp->delete_ftp($val);
|
||||||
|
if (!$r) {
|
||||||
|
$error.=$err->errstr()."<br />";
|
||||||
|
} else {
|
||||||
|
$error.=sprintf(_("The ftp account %s has been successfully deleted"),$r)."<br />";
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
include("ftp_list.php");
|
||||||
|
exit();
|
||||||
|
?>
|
|
@ -0,0 +1,48 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: ftp_doadd.php,v 1.2 2006/01/12 01:10:48 anarcat Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: Create a new ftp account
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
if ($pass != $passconf) {
|
||||||
|
$error = _("Passwords do not match");
|
||||||
|
include("ftp_add.php");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
$r=$ftp->add_ftp($prefixe,$login,$pass,$dir);
|
||||||
|
if (!$r) {
|
||||||
|
$error=$err->errstr();
|
||||||
|
include("ftp_add.php");
|
||||||
|
exit();
|
||||||
|
} else {
|
||||||
|
$error=_("The FTP account has been successfully created");
|
||||||
|
include("ftp_list.php");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
?>
|
|
@ -0,0 +1,64 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: ftp_doedit.php,v 1.3 2006/01/12 01:10:48 anarcat Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: Editing an ftp account
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
if (!$id) {
|
||||||
|
$error=_("No account selected!");
|
||||||
|
} else {
|
||||||
|
if ($pass != $passconf) {
|
||||||
|
$error = _("Passwords do not match");
|
||||||
|
include("ftp_edit.php");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
$r=$ftp->put_ftp_details($id,$prefixe,$login,$pass,$rep);
|
||||||
|
if (!$r) {
|
||||||
|
$error=$err->errstr();
|
||||||
|
include("ftp_edit.php");
|
||||||
|
exit();
|
||||||
|
} else {
|
||||||
|
$error=_("The ftp account has been successfully changed");
|
||||||
|
include("ftp_list.php");
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
include("head.php");
|
||||||
|
?>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div align="center"><h3><?php __("Editing an FTP account"); ?></h3></div>
|
||||||
|
<?php
|
||||||
|
if ($error) {
|
||||||
|
echo "<p class=\"error\">$error</p></body></html>";
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,73 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: ftp_edit.php,v 1.5 2006/01/12 01:10:48 anarcat Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: Edit an FTP account
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
if (!$id) {
|
||||||
|
$error=_("No account selected!");
|
||||||
|
} else {
|
||||||
|
$r=$ftp->get_ftp_details($id);
|
||||||
|
if (!$r) {
|
||||||
|
$error=$err->errstr();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
include("head.php");
|
||||||
|
?>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h3><?php __("Editing an FTP account"); ?></h3>
|
||||||
|
<?php
|
||||||
|
if ($error) {
|
||||||
|
echo "<p class=\"error\">$error</p></body></html>";
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<form method="post" action="ftp_doedit.php" name="main">
|
||||||
|
<table border="1" cellspacing="0" cellpadding="4">
|
||||||
|
<tr><th><input type="hidden" name="id" value="<?php echo $id ?>" />
|
||||||
|
<label for="login"><?php __("Username"); ?></label></th><td>
|
||||||
|
<select class="inl" name="prefixe"><?php $ftp->select_prefix_list($r["prefixe"]); ?></select> <b>_</b> <input type="text" class="int" name="login" id="login" value="<?php echo $r["login"]; ?>" size="20" maxlength="64" />
|
||||||
|
</td></tr>
|
||||||
|
<tr><th><label for="pass"><?php __("Password"); ?></label></th><td><input type="password" class="int" name="pass" id="pass" size="20" maxlength="64" value="********"/></td></tr>
|
||||||
|
<tr><th><label for="passconf"><?php __("Confirm password"); ?></label></th><td><input type="password" class="int" name="passconf" id="passconf" size="20" maxlength="64" value="********"/></td></tr>
|
||||||
|
<tr><th><label for="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">
|
||||||
|
<!--
|
||||||
|
document.write(" <input type=\"button\" name=\"bff\" onclick=\"browseforfolder('main.rep');\" value=\" ... \" class=\"inb\">");
|
||||||
|
// -->
|
||||||
|
</script>
|
||||||
|
</td></tr>
|
||||||
|
|
||||||
|
<tr><td colspan="2"><input type="submit" class="inb" name="submit" value="<?php __("Change this FTP account"); ?>" /></td></tr>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,90 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: ftp_list.php,v 1.5 2003/06/10 13:16:11 root Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: List ftp accounts of the user.
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
require_once("../class/config.php");
|
||||||
|
|
||||||
|
$noftp=false;
|
||||||
|
if (!$r=$ftp->get_list($domain)) {
|
||||||
|
$noftp=true;
|
||||||
|
$error=$err->errstr();
|
||||||
|
}
|
||||||
|
|
||||||
|
include("head.php");
|
||||||
|
?>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<h3><?php __("FTP accounts list"); ?></h3>
|
||||||
|
<?php
|
||||||
|
if ($noftp) {
|
||||||
|
?>
|
||||||
|
<p class="error"><?php echo $error ?></p>
|
||||||
|
<a href="ftp_add.php"><?php __("Create a new ftp account") ?></a><br />
|
||||||
|
<?php $mem->show_help("ftp_list_no"); ?>
|
||||||
|
</body></html>
|
||||||
|
<?php
|
||||||
|
exit();
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($error) {
|
||||||
|
?>
|
||||||
|
<p class="error"><?php echo $error ?></p>
|
||||||
|
<?php } ?>
|
||||||
|
<form method="post" action="ftp_del.php">
|
||||||
|
<table cellspacing="0" cellpadding="4">
|
||||||
|
<tr><th colspan="2"> </th><th><?php __("Username"); ?></th><th><?php __("Folder"); ?></th></tr>
|
||||||
|
<?php
|
||||||
|
reset($r);
|
||||||
|
$col=1;
|
||||||
|
while (list($key,$val)=each($r))
|
||||||
|
{
|
||||||
|
$col=3-$col;
|
||||||
|
?>
|
||||||
|
<tr class="lst<?php echo $col; ?>">
|
||||||
|
<td align="center"><input type="checkbox" class="inc" id="del_<?php echo $val["id"]; ?>" name="del_<?php echo $val["id"]; ?>" value="<?php echo $val["id"]; ?>" /></td>
|
||||||
|
<td><a href="ftp_edit.php?id=<?php echo $val["id"] ?>"><?php __("Edit"); ?></a></td>
|
||||||
|
<td><label for="del_<?php echo $val["id"]; ?>"><?php echo $val["login"] ?></label></td>
|
||||||
|
<td><code>/<?php echo $val["dir"] ?></code></td>
|
||||||
|
</tr>
|
||||||
|
<?php
|
||||||
|
}
|
||||||
|
?>
|
||||||
|
<tr><td colspan="5"><input type="submit" name="submit" class="inb" value="<?php __("Delete checked accounts"); ?>" /></td></tr>
|
||||||
|
</table>
|
||||||
|
</form>
|
||||||
|
|
||||||
|
<?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");
|
||||||
|
?>
|
||||||
|
</body>
|
||||||
|
</html>
|
|
@ -0,0 +1,38 @@
|
||||||
|
<?php
|
||||||
|
/*
|
||||||
|
$Id: head.php,v 1.4 2005/05/03 14:36:34 anarcat Exp $
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
AlternC - Web Hosting System
|
||||||
|
Copyright (C) 2002 by the AlternC Development Team.
|
||||||
|
http://alternc.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Based on:
|
||||||
|
Valentin Lacambre's web hosting softwares: http://altern.org/
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
LICENSE
|
||||||
|
|
||||||
|
This program is free software; you can redistribute it and/or
|
||||||
|
modify it under the terms of the GNU General Public License (GPL)
|
||||||
|
as published by the Free Software Foundation; either version 2
|
||||||
|
of the License, or (at your option) any later version.
|
||||||
|
|
||||||
|
This program is distributed in the hope that it will be useful,
|
||||||
|
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||||
|
GNU General Public License for more details.
|
||||||
|
|
||||||
|
To read the license please visit http://www.gnu.org/copyleft/gpl.html
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
Original Author of file: Benjamin Sonntag
|
||||||
|
Purpose of file: Main header of all html files
|
||||||
|
----------------------------------------------------------------------
|
||||||
|
*/
|
||||||
|
?>
|
||||||
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||||
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
|
||||||
|
<head>
|
||||||
|
<title>Bureau</title>
|
||||||
|
<link rel="stylesheet" href="styles/style.css" type="text/css" />
|
||||||
|
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
|
||||||
|
<script type="text/javascript" language="javascript" src="/admin/js/alternc.js">
|
||||||
|
</script>
|