Migration
8
0.9.0/panel/.htaccess
Executable file
@@ -0,0 +1,8 @@
|
||||
RewriteEngine on
|
||||
|
||||
RewriteRule ^Page\.html$ mainpage.php [L]
|
||||
RewriteRule ^Page-([a-zA-Z]+)\.html$ mainpage.php?id=$1 [L]
|
||||
RewriteRule ^Page-([a-zA-Z]+)-([a-zA-Z0-9]+)\.html$ mainpage.php?id=$1&ids=$2 [L]
|
||||
RewriteRule ^resultat\.html$ resultat.php [L]
|
||||
|
||||
RewriteRule ^execution-([0-9]+)\.html$ traitement.php?id=$1 [L]
|
||||
256
0.9.0/panel/css/screen.css
Executable file
@@ -0,0 +1,256 @@
|
||||
/* -----------------------------------------------------------------------
|
||||
|
||||
|
||||
Blueprint CSS Framework 0.9
|
||||
http://blueprintcss.org
|
||||
|
||||
* Copyright (c) 2007-Present. See LICENSE for more info.
|
||||
* See README for instructions on how to use Blueprint.
|
||||
* For credits and origins, see AUTHORS.
|
||||
* This is a compressed file. See the sources in the 'src' directory.
|
||||
|
||||
----------------------------------------------------------------------- */
|
||||
|
||||
/* reset.css */
|
||||
html, body, div, span, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, code, del, dfn, em, img, q, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {margin:0;padding:0;border:0;font-weight:inherit;font-style:inherit;font-size:100%;font-family:inherit;vertical-align:baseline;}
|
||||
body {line-height:1.5;}
|
||||
table {border-collapse:separate;border-spacing:0;}
|
||||
caption, th, td {text-align:left;font-weight:normal;}
|
||||
table, td, th {vertical-align:middle;}
|
||||
blockquote:before, blockquote:after, q:before, q:after {content:"";}
|
||||
blockquote, q {quotes:"" "";}
|
||||
a img {border:none;}
|
||||
|
||||
/* typography.css */
|
||||
body {font-size:75%;color:#67694d;background:#447f00 url(../img/fond.png) repeat-x;font-family:"Helvetica Neue", Arial, Helvetica, sans-serif;}
|
||||
h1, h2, h3, h4, h5, h6 {font-weight:normal;color:#111;}
|
||||
h1 {font-size:3em;line-height:1;margin-bottom:0.5em;}
|
||||
h2 {font-size:2em;margin-bottom:0.75em;}
|
||||
h3 {font-size:1.5em;line-height:1;margin-bottom:1em;}
|
||||
h4 {font-size:1.2em;line-height:1.25;margin-bottom:1.25em;}
|
||||
h5 {font-size:1em;font-weight:bold;margin-bottom:;}
|
||||
h6 {font-size:1em;font-weight:bold;}
|
||||
h1 img, h2 img, h3 img, h4 img, h5 img, h6 img {margin:0;}
|
||||
p {margin:0 0 1.5em;}
|
||||
p img.left {float:left;margin:1.5em 1.5em 1.5em 0;padding:0;}
|
||||
p img.right {float:right;margin:1.5em 0 1.5em 1.5em;}
|
||||
a:focus, a:hover {color:#000;}
|
||||
a {color:#5e6041;text-decoration:underline;}
|
||||
blockquote {margin:1.5em;color:#666;font-style:italic;}
|
||||
strong {font-weight:bold;}
|
||||
em, dfn {font-style:italic;}
|
||||
dfn {font-weight:bold;}
|
||||
sup, sub {line-height:0;}
|
||||
abbr, acronym {border-bottom:1px dotted #666;}
|
||||
address {margin:0 0 1.5em;font-style:italic;}
|
||||
del {color:#666;}
|
||||
pre {margin:1.5em 0;white-space:pre;}
|
||||
pre, code, tt {font:1em 'andale mono', 'lucida console', monospace;line-height:1.5;}
|
||||
li ul, li ol {margin:0 1.5em;}
|
||||
ul, ol {margin:0 1.5em 1.5em 1.5em;}
|
||||
ul {list-style-type:disc;}
|
||||
ol {list-style-type:decimal;}
|
||||
dl {margin:0 0 1.5em 0;}
|
||||
dl dt {font-weight:bold;}
|
||||
dd {margin-left:1.5em;}
|
||||
table {margin-bottom:1.4em;width:100%;}
|
||||
th {font-weight:bold;}
|
||||
thead th {background:#c3d9ff;}
|
||||
th, td, caption {padding:4px 10px 4px 5px;}
|
||||
tr.even td {background:#e5ecf9;}
|
||||
tfoot {font-style:italic;}
|
||||
caption {background:#eee;}
|
||||
.small {font-size:.8em;margin-bottom:1.875em;line-height:1.875em;}
|
||||
.large {font-size:1.2em;line-height:2.5em;margin-bottom:1.25em;}
|
||||
.hide {display:none;}
|
||||
.quiet {color:#666;}
|
||||
.loud {color:#000;}
|
||||
.highlight {background:#ff0;}
|
||||
.added {background:#060;color:#fff;}
|
||||
.removed {background:#900;color:#fff;}
|
||||
.first {margin-left:0;padding-left:0;}
|
||||
.last {margin-right:0;padding-right:0;}
|
||||
.top {margin-top:0;padding-top:0;}
|
||||
.bottom {margin-bottom:0;padding-bottom:0;}
|
||||
|
||||
/* forms.css */
|
||||
label {font-weight:bold;}
|
||||
fieldset {padding:1.4em;margin:0 0 1.5em 0;border:1px solid #ccc;}
|
||||
legend {font-weight:bold;font-size:1.2em;}
|
||||
input[type=text], input[type=password], input.text, input.title, textarea, select {background-color:#fff;border:1px solid #bbb;}
|
||||
input[type=text]:focus, input[type=password]:focus, input.text:focus, input.title:focus, textarea:focus, select:focus {border-color:#666;}
|
||||
input[type=text], input[type=password], input.text, input.title, textarea, select {margin:0.5em 0;}
|
||||
input.text, input.title {width:300px;padding:5px;}
|
||||
input.title {font-size:1.5em;}
|
||||
textarea {width:390px;height:250px;padding:5px;}
|
||||
input[type=checkbox], input[type=radio], input.checkbox, input.radio {position:relative;top:.25em;}
|
||||
form.inline {line-height:3;}
|
||||
form.inline p {margin-bottom:0;}
|
||||
.error, .notice, .success {padding:.8em;margin-bottom:1em;border:2px solid #ddd;}
|
||||
.error {background:#FBE3E4;color:#8a1f11;border-color:#FBC2C4;}
|
||||
.notice {background:#FFF6BF;color:#514721;border-color:#FFD324;}
|
||||
.success {background:#E6EFC2;color:#264409;border-color:#C6D880;}
|
||||
.error a {color:#8a1f11;}
|
||||
.notice a {color:#514721;}
|
||||
.success a {color:#264409;}
|
||||
|
||||
/* grid.css */
|
||||
.container {width:950px;margin:0 auto;}
|
||||
.showgrid {background:url(src/grid.png);}
|
||||
.column, div.span-1, div.span-2, div.span-3, div.span-4, div.span-5, div.span-6, div.span-7, div.span-8, div.span-9, div.span-10, div.span-11, div.span-12, div.span-13, div.span-14, div.span-15, div.span-16, div.span-17, div.span-18, div.span-19, div.span-20, div.span-21, div.span-22, div.span-23, div.span-24 {float:left;margin-right:10px;}
|
||||
.last, div.last {margin-right:0;}
|
||||
.span-1 {width:30px;}
|
||||
.span-2 {width:70px;}
|
||||
.span-3 {width:110px;}
|
||||
.span-4 {width:150px;}
|
||||
.span-5 {width:190px;}
|
||||
.span-6 {width:230px;}
|
||||
.span-7 {width:270px;}
|
||||
.span-8 {width:310px;}
|
||||
.span-9 {width:350px;}
|
||||
.span-10 {width:390px;}
|
||||
.span-11 {width:430px;}
|
||||
.span-12 {width:470px;}
|
||||
.span-13 {width:510px;}
|
||||
.span-14 {width:550px;}
|
||||
.span-15 {width:590px;}
|
||||
.span-16 {width:630px;}
|
||||
.span-17 {width:670px;}
|
||||
.span-18 {width:710px;}
|
||||
.span-19 {width:750px;}
|
||||
.span-20 {width:790px;}
|
||||
.span-21 {width:830px;}
|
||||
.span-22 {width:870px;}
|
||||
.span-23 {width:910px;}
|
||||
.span-24, div.span-24 {width:950px;margin:0;}
|
||||
input.span-1, textarea.span-1, input.span-2, textarea.span-2, input.span-3, textarea.span-3, input.span-4, textarea.span-4, input.span-5, textarea.span-5, input.span-6, textarea.span-6, input.span-7, textarea.span-7, input.span-8, textarea.span-8, input.span-9, textarea.span-9, input.span-10, textarea.span-10, input.span-11, textarea.span-11, input.span-12, textarea.span-12, input.span-13, textarea.span-13, input.span-14, textarea.span-14, input.span-15, textarea.span-15, input.span-16, textarea.span-16, input.span-17, textarea.span-17, input.span-18, textarea.span-18, input.span-19, textarea.span-19, input.span-20, textarea.span-20, input.span-21, textarea.span-21, input.span-22, textarea.span-22, input.span-23, textarea.span-23, input.span-24, textarea.span-24 {border-left-width:1px!important;border-right-width:1px!important;padding-left:5px!important;padding-right:5px!important;}
|
||||
input.span-1, textarea.span-1 {width:18px!important;}
|
||||
input.span-2, textarea.span-2 {width:58px!important;}
|
||||
input.span-3, textarea.span-3 {width:98px!important;}
|
||||
input.span-4, textarea.span-4 {width:138px!important;}
|
||||
input.span-5, textarea.span-5 {width:178px!important;}
|
||||
input.span-6, textarea.span-6 {width:218px!important;}
|
||||
input.span-7, textarea.span-7 {width:258px!important;}
|
||||
input.span-8, textarea.span-8 {width:298px!important;}
|
||||
input.span-9, textarea.span-9 {width:338px!important;}
|
||||
input.span-10, textarea.span-10 {width:378px!important;}
|
||||
input.span-11, textarea.span-11 {width:418px!important;}
|
||||
input.span-12, textarea.span-12 {width:458px!important;}
|
||||
input.span-13, textarea.span-13 {width:498px!important;}
|
||||
input.span-14, textarea.span-14 {width:538px!important;}
|
||||
input.span-15, textarea.span-15 {width:578px!important;}
|
||||
input.span-16, textarea.span-16 {width:618px!important;}
|
||||
input.span-17, textarea.span-17 {width:658px!important;}
|
||||
input.span-18, textarea.span-18 {width:698px!important;}
|
||||
input.span-19, textarea.span-19 {width:738px!important;}
|
||||
input.span-20, textarea.span-20 {width:778px!important;}
|
||||
input.span-21, textarea.span-21 {width:818px!important;}
|
||||
input.span-22, textarea.span-22 {width:858px!important;}
|
||||
input.span-23, textarea.span-23 {width:898px!important;}
|
||||
input.span-24, textarea.span-24 {width:938px!important;}
|
||||
.append-1 {padding-right:40px;}
|
||||
.append-2 {padding-right:80px;}
|
||||
.append-3 {padding-right:120px;}
|
||||
.append-4 {padding-right:160px;}
|
||||
.append-5 {padding-right:200px;}
|
||||
.append-6 {padding-right:240px;}
|
||||
.append-7 {padding-right:280px;}
|
||||
.append-8 {padding-right:320px;}
|
||||
.append-9 {padding-right:360px;}
|
||||
.append-10 {padding-right:400px;}
|
||||
.append-11 {padding-right:440px;}
|
||||
.append-12 {padding-right:480px;}
|
||||
.append-13 {padding-right:520px;}
|
||||
.append-14 {padding-right:560px;}
|
||||
.append-15 {padding-right:600px;}
|
||||
.append-16 {padding-right:640px;}
|
||||
.append-17 {padding-right:680px;}
|
||||
.append-18 {padding-right:720px;}
|
||||
.append-19 {padding-right:760px;}
|
||||
.append-20 {padding-right:800px;}
|
||||
.append-21 {padding-right:840px;}
|
||||
.append-22 {padding-right:880px;}
|
||||
.append-23 {padding-right:920px;}
|
||||
.prepend-1 {padding-left:40px;}
|
||||
.prepend-2 {padding-left:80px;}
|
||||
.prepend-3 {padding-left:120px;}
|
||||
.prepend-4 {padding-left:160px;}
|
||||
.prepend-5 {padding-left:200px;}
|
||||
.prepend-6 {padding-left:240px;}
|
||||
.prepend-7 {padding-left:280px;}
|
||||
.prepend-8 {padding-left:320px;}
|
||||
.prepend-9 {padding-left:360px;}
|
||||
.prepend-10 {padding-left:400px;}
|
||||
.prepend-11 {padding-left:440px;}
|
||||
.prepend-12 {padding-left:480px;}
|
||||
.prepend-13 {padding-left:520px;}
|
||||
.prepend-14 {padding-left:560px;}
|
||||
.prepend-15 {padding-left:600px;}
|
||||
.prepend-16 {padding-left:640px;}
|
||||
.prepend-17 {padding-left:680px;}
|
||||
.prepend-18 {padding-left:720px;}
|
||||
.prepend-19 {padding-left:760px;}
|
||||
.prepend-20 {padding-left:800px;}
|
||||
.prepend-21 {padding-left:840px;}
|
||||
.prepend-22 {padding-left:880px;}
|
||||
.prepend-23 {padding-left:920px;}
|
||||
div.border {padding-right:4px;margin-right:5px;border-right:1px solid #eee;}
|
||||
div.colborder {padding-right:24px;margin-right:25px;border-right:1px solid #eee;}
|
||||
.pull-1 {margin-left:-40px;}
|
||||
.pull-2 {margin-left:-80px;}
|
||||
.pull-3 {margin-left:-120px;}
|
||||
.pull-4 {margin-left:-160px;}
|
||||
.pull-5 {margin-left:-200px;}
|
||||
.pull-6 {margin-left:-240px;}
|
||||
.pull-7 {margin-left:-280px;}
|
||||
.pull-8 {margin-left:-320px;}
|
||||
.pull-9 {margin-left:-360px;}
|
||||
.pull-10 {margin-left:-400px;}
|
||||
.pull-11 {margin-left:-440px;}
|
||||
.pull-12 {margin-left:-480px;}
|
||||
.pull-13 {margin-left:-520px;}
|
||||
.pull-14 {margin-left:-560px;}
|
||||
.pull-15 {margin-left:-600px;}
|
||||
.pull-16 {margin-left:-640px;}
|
||||
.pull-17 {margin-left:-680px;}
|
||||
.pull-18 {margin-left:-720px;}
|
||||
.pull-19 {margin-left:-760px;}
|
||||
.pull-20 {margin-left:-800px;}
|
||||
.pull-21 {margin-left:-840px;}
|
||||
.pull-22 {margin-left:-880px;}
|
||||
.pull-23 {margin-left:-920px;}
|
||||
.pull-24 {margin-left:-960px;}
|
||||
.pull-1, .pull-2, .pull-3, .pull-4, .pull-5, .pull-6, .pull-7, .pull-8, .pull-9, .pull-10, .pull-11, .pull-12, .pull-13, .pull-14, .pull-15, .pull-16, .pull-17, .pull-18, .pull-19, .pull-20, .pull-21, .pull-22, .pull-23, .pull-24 {float:left;position:relative;}
|
||||
.push-1 {margin:0 -40px 1.5em 40px;}
|
||||
.push-2 {margin:0 -80px 1.5em 80px;}
|
||||
.push-3 {margin:0 -120px 1.5em 120px;}
|
||||
.push-4 {margin:0 -160px 1.5em 160px;}
|
||||
.push-5 {margin:0 -200px 1.5em 200px;}
|
||||
.push-6 {margin:0 -240px 1.5em 240px;}
|
||||
.push-7 {margin:0 -280px 1.5em 280px;}
|
||||
.push-8 {margin:0 -320px 1.5em 320px;}
|
||||
.push-9 {margin:0 -360px 1.5em 360px;}
|
||||
.push-10 {margin:0 -400px 1.5em 400px;}
|
||||
.push-11 {margin:0 -440px 1.5em 440px;}
|
||||
.push-12 {margin:0 -480px 1.5em 480px;}
|
||||
.push-13 {margin:0 -520px 1.5em 520px;}
|
||||
.push-14 {margin:0 -560px 1.5em 560px;}
|
||||
.push-15 {margin:0 -600px 1.5em 600px;}
|
||||
.push-16 {margin:0 -640px 1.5em 640px;}
|
||||
.push-17 {margin:0 -680px 1.5em 680px;}
|
||||
.push-18 {margin:0 -720px 1.5em 720px;}
|
||||
.push-19 {margin:0 -760px 1.5em 760px;}
|
||||
.push-20 {margin:0 -800px 1.5em 800px;}
|
||||
.push-21 {margin:0 -840px 1.5em 840px;}
|
||||
.push-22 {margin:0 -880px 1.5em 880px;}
|
||||
.push-23 {margin:0 -920px 1.5em 920px;}
|
||||
.push-24 {margin:0 -960px 1.5em 960px;}
|
||||
.push-1, .push-2, .push-3, .push-4, .push-5, .push-6, .push-7, .push-8, .push-9, .push-10, .push-11, .push-12, .push-13, .push-14, .push-15, .push-16, .push-17, .push-18, .push-19, .push-20, .push-21, .push-22, .push-23, .push-24 {float:right;position:relative;}
|
||||
.prepend-top {margin-top:1.5em;}
|
||||
.append-bottom {margin-bottom:1.5em;}
|
||||
.box {padding:1.5em;margin-bottom:1.5em;background:#E5ECF9;}
|
||||
hr {background:#ddd;color:#ddd;clear:both;float:none;width:100%;height:.1em;margin:0 0 1.45em;border:none;}
|
||||
hr.space {background:#fff;color:#fff;}
|
||||
.clearfix:after, .container:after {content:"\0020";display:block;height:0;clear:both;visibility:hidden;overflow:hidden;}
|
||||
.clearfix, .container {display:block;}
|
||||
.clear {clear:both;}
|
||||
203
0.9.0/panel/css/style.css
Executable file
@@ -0,0 +1,203 @@
|
||||
/*
|
||||
feuille de style - kelio.asso.fr (panel)
|
||||
Auteur : Vinux (vinux at kelio.org)
|
||||
*/
|
||||
|
||||
#global_head {
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
width: 980px;
|
||||
text-align: left;
|
||||
margin-top: 24px;
|
||||
}
|
||||
|
||||
#global_contenu {
|
||||
background: url(../img/fond-menu.png) repeat-y 0 0;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
width: 980px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
#logo {
|
||||
background-image: url(../img/logo.png);
|
||||
width: 168px;
|
||||
height: 138px;
|
||||
}
|
||||
|
||||
#entete {
|
||||
background-image: url(../img/fond-entete.png);
|
||||
width: 780px;
|
||||
height: 134px;
|
||||
margin-left: 168px;
|
||||
margin-top: -134px;
|
||||
}
|
||||
|
||||
#sep {
|
||||
background-image: url(../img/sep.png);
|
||||
width: 2px;
|
||||
height: 49px;
|
||||
margin-top: 1px;
|
||||
}
|
||||
|
||||
#menu_v {
|
||||
display:block;
|
||||
margin-left: 2px;
|
||||
margin-top: -49px;
|
||||
float:left;
|
||||
}
|
||||
|
||||
#menu_v ul {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
list-style:none;
|
||||
}
|
||||
|
||||
#menu_v li {
|
||||
float:left;
|
||||
margin: 0;
|
||||
padding-top: 7px;
|
||||
background: url(../img/sep.png) no-repeat right top;
|
||||
padding-right: 2px;
|
||||
height: 42px;
|
||||
}
|
||||
|
||||
#menu_v a {
|
||||
padding: 15px 15px;
|
||||
color: white;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#menu_v a:hover {
|
||||
background: url(../img/fond-menu-hover.png) repeat-x;
|
||||
}
|
||||
|
||||
#fond {
|
||||
background-color: #f3f5e3;
|
||||
margin-top: 0px;
|
||||
margin-top: 5px !important;
|
||||
}
|
||||
|
||||
#menu_h_g {
|
||||
float: left;
|
||||
width: 168px;
|
||||
padding-top: 20px;
|
||||
padding-bottom: 20px;
|
||||
}
|
||||
|
||||
#menu_h_g h1 {
|
||||
background-color: #e4e6d4;
|
||||
width: 158px;
|
||||
height: 18px;
|
||||
padding-left: 8px;
|
||||
padding-top: 5px;
|
||||
font-size: small;
|
||||
font-weight: bold;
|
||||
margin-left: 2px;
|
||||
}
|
||||
|
||||
#menu_h_g li {
|
||||
list-style-image: url(../img/puce.png);
|
||||
color: #5e6041;
|
||||
}
|
||||
|
||||
#contenu {
|
||||
float: right;
|
||||
width: 780px;
|
||||
margin-top: 10px;
|
||||
background-color: #f3f5e3;
|
||||
}
|
||||
|
||||
#pied {
|
||||
background: url(../img/fond-pied.png) repeat-x;
|
||||
height: 76px;
|
||||
color: #8ec461;
|
||||
padding-top: 17px;
|
||||
clear: both;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
#pied a {
|
||||
color: #8ec461;
|
||||
}
|
||||
|
||||
#pied a:hover {
|
||||
color: #000;
|
||||
}
|
||||
|
||||
#contenu table {
|
||||
border: 1px #e4e6d4 solid;
|
||||
}
|
||||
|
||||
#contenu thead th, #contenu #accueil th {
|
||||
background-color: #e4e6d4;
|
||||
}
|
||||
|
||||
#contenu tr.special {
|
||||
background-color: #edefdc;
|
||||
}
|
||||
|
||||
/* other elements */
|
||||
|
||||
.b_validate {
|
||||
text-align: center;
|
||||
padding-top: 3px;
|
||||
padding-left: 5px;
|
||||
background: url(../img/icons/valider.png) no-repeat;
|
||||
width: 100px;
|
||||
height: 24px;
|
||||
}
|
||||
|
||||
.b_validate:hover {
|
||||
background: url(../img/icons/valider_on.png) no-repeat;
|
||||
}
|
||||
|
||||
.box_rounded {
|
||||
border-radius: 0 10px 0 10px;
|
||||
-moz-border-radius: 0 10px 0 10px;
|
||||
-webkit-border-radius: 0 10px 0 10px;
|
||||
background-color: #BEC78D;
|
||||
padding: 5px;
|
||||
width: 250px;
|
||||
margin-top: 50px;
|
||||
}
|
||||
|
||||
.box_rounded img {
|
||||
margin: 5px auto;
|
||||
padding: 10px;
|
||||
display: block;
|
||||
width: 200px;
|
||||
background-color: #D0D8A4;
|
||||
border-radius: 10px;
|
||||
-moz-border-radius: 10px;
|
||||
-webkit-border-radius: 10px;
|
||||
}
|
||||
|
||||
.box_rounded h4 {
|
||||
margin: 0;
|
||||
padding: 15px 0 0 50px;
|
||||
color: #5e6041;
|
||||
font-weight: bold;
|
||||
background-position:left top;
|
||||
background-image: url(../img/icons/confiance.png);
|
||||
background-repeat: no-repeat;
|
||||
height: 33px;
|
||||
}
|
||||
|
||||
.yes {
|
||||
background-image: url(../img/icons/yes.png);
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
.no {
|
||||
background-image: url(../img/icons/no.png);
|
||||
width: 16px;
|
||||
height: 16px;
|
||||
margin: auto;
|
||||
}
|
||||
|
||||
#table_offer td {
|
||||
text-align: center;
|
||||
}
|
||||
BIN
0.9.0/panel/img/favicon.png
Executable file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
0.9.0/panel/img/fond-entete.png
Executable file
|
After Width: | Height: | Size: 44 KiB |
BIN
0.9.0/panel/img/fond-menu-hover.png
Executable file
|
After Width: | Height: | Size: 2.9 KiB |
BIN
0.9.0/panel/img/fond-menu.png
Executable file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
0.9.0/panel/img/fond-pied.png
Executable file
|
After Width: | Height: | Size: 2.8 KiB |
BIN
0.9.0/panel/img/fond.png
Executable file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
0.9.0/panel/img/icons-panel/16-member-profile.png
Executable file
|
After Width: | Height: | Size: 398 B |
BIN
0.9.0/panel/img/icons-panel/active.png
Executable file
|
After Width: | Height: | Size: 512 B |
BIN
0.9.0/panel/img/icons-panel/application_home.png
Executable file
|
After Width: | Height: | Size: 685 B |
BIN
0.9.0/panel/img/icons-panel/arrow_refresh.png
Executable file
|
After Width: | Height: | Size: 685 B |
BIN
0.9.0/panel/img/icons-panel/book_open.png
Executable file
|
After Width: | Height: | Size: 622 B |
BIN
0.9.0/panel/img/icons-panel/cog.png
Executable file
|
After Width: | Height: | Size: 512 B |
BIN
0.9.0/panel/img/icons-panel/cube_green.png
Executable file
|
After Width: | Height: | Size: 313 B |
BIN
0.9.0/panel/img/icons-panel/database.png
Executable file
|
After Width: | Height: | Size: 390 B |
BIN
0.9.0/panel/img/icons-panel/delete.png
Executable file
|
After Width: | Height: | Size: 517 B |
BIN
0.9.0/panel/img/icons-panel/em-check.png
Executable file
|
After Width: | Height: | Size: 194 B |
BIN
0.9.0/panel/img/icons-panel/em-cross.png
Executable file
|
After Width: | Height: | Size: 177 B |
BIN
0.9.0/panel/img/icons-panel/em-plus.png
Executable file
|
After Width: | Height: | Size: 222 B |
BIN
0.9.0/panel/img/icons-panel/email.png
Executable file
|
After Width: | Height: | Size: 641 B |
BIN
0.9.0/panel/img/icons-panel/error.png
Executable file
|
After Width: | Height: | Size: 517 B |
BIN
0.9.0/panel/img/icons-panel/file-archive.png
Executable file
|
After Width: | Height: | Size: 293 B |
BIN
0.9.0/panel/img/icons-panel/group.png
Executable file
|
After Width: | Height: | Size: 753 B |
BIN
0.9.0/panel/img/icons-panel/house.png
Executable file
|
After Width: | Height: | Size: 806 B |
BIN
0.9.0/panel/img/icons-panel/house_go.png
Executable file
|
After Width: | Height: | Size: 861 B |
BIN
0.9.0/panel/img/icons-panel/message-info.png
Executable file
|
After Width: | Height: | Size: 746 B |
BIN
0.9.0/panel/img/icons-panel/message-warn.png
Executable file
|
After Width: | Height: | Size: 536 B |
BIN
0.9.0/panel/img/icons-panel/mutu.png
Executable file
|
After Width: | Height: | Size: 1.9 KiB |
BIN
0.9.0/panel/img/icons-panel/online.png
Executable file
|
After Width: | Height: | Size: 921 B |
BIN
0.9.0/panel/img/icons-panel/question.png
Executable file
|
After Width: | Height: | Size: 682 B |
BIN
0.9.0/panel/img/icons-panel/stop.png
Executable file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
0.9.0/panel/img/icons-panel/tick.png
Executable file
|
After Width: | Height: | Size: 537 B |
BIN
0.9.0/panel/img/icons-panel/user_comment.png
Executable file
|
After Width: | Height: | Size: 743 B |
BIN
0.9.0/panel/img/icons-panel/wait.png
Executable file
|
After Width: | Height: | Size: 517 B |
BIN
0.9.0/panel/img/icons-panel/wrench.png
Executable file
|
After Width: | Height: | Size: 610 B |
BIN
0.9.0/panel/img/logo.png
Executable file
|
After Width: | Height: | Size: 11 KiB |
BIN
0.9.0/panel/img/puce.png
Executable file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
0.9.0/panel/img/sep.png
Executable file
|
After Width: | Height: | Size: 2.9 KiB |
28
0.9.0/panel/index.php
Executable file
@@ -0,0 +1,28 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
require_once('system/core.php');
|
||||
|
||||
if($_SESSION['Utilisateur'] == 'test')
|
||||
{
|
||||
header('Location: Page.html');
|
||||
exit();
|
||||
}
|
||||
|
||||
header('Location: http://www.kelio.org');
|
||||
?>
|
||||
106
0.9.0/panel/mainpage.php
Executable file
@@ -0,0 +1,106 @@
|
||||
<?php
|
||||
$Temps["Debut"] = microtime ();
|
||||
|
||||
require ('system/core.php');
|
||||
VerifDroit ();
|
||||
?>
|
||||
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
|
||||
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="fr" lang="fr">
|
||||
<head>
|
||||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
||||
<title>Panel - Association Kelio</title>
|
||||
<link href="css/style.css" rel="stylesheet" type="text/css" />
|
||||
<link href="css/screen.css" rel="stylesheet" type="text/css" />
|
||||
<link rel="shortcut icon" type="image/png" href="img/favicon.png" />
|
||||
<script src="system/javascript.js" type="text/javascript"></script>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<!-- Header -->
|
||||
<div id="global_head">
|
||||
<div id="logo"></div>
|
||||
<div id="entete"></div>
|
||||
<div id="sep"></div>
|
||||
<div id="menu_v">
|
||||
<div class="large">
|
||||
<ul>
|
||||
<li><a href="http://www.kelio.asso.fr">Retour sur Kelio</a></li>
|
||||
<li><a href="http://www.kelio.asso.fr/nos-services.html">Nos services</a></li>
|
||||
<li><a href="http://www.kelio.asso.fr/communaute.html">Communauté</a></li>
|
||||
<li><a href="http://blog.kelio.asso.fr">Blog</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- End of Header -->
|
||||
|
||||
<!-- Content -->
|
||||
<div id="fond">
|
||||
<div id="global_contenu">
|
||||
|
||||
<!-- Sidebar -->
|
||||
<div id="menu_h_g">
|
||||
<div style="text-align: center; background-color: #E4E6D4;">
|
||||
<img src="img/icons-panel/mutu.png" alt="mutualise" style="vertical-align: middle;" />
|
||||
<p>Hébergement mutualisé</p>
|
||||
</div>
|
||||
<ul>
|
||||
<li><a href="Page.html">Accueil</a></li>
|
||||
<li><a href="Page-Divers-Contribuer.html">Nous soutenir</a></li>
|
||||
<li><a href="Page-Divers-Bridage.html">Bridage</a></li>
|
||||
<li><a href="http://doc.kelio.org">Documentation</a></li>
|
||||
</ul>
|
||||
<h1>Bases de données</h1>
|
||||
<ul>
|
||||
<li><a href="Page-MySql-Recapitulatif.html">Récapitulatif</a></li>
|
||||
<li><a href="Page-MySql-AjoutBdd.html">Ajouter</a></li>
|
||||
<li><a href="Page-MySql-SuppressionBdd.html">Supprimer</a></li>
|
||||
</ul>
|
||||
<h1>Comptes FTP</h1>
|
||||
<ul>
|
||||
<li><a href="Page-Ftp-Recapitulatif.html">Récapitulatif</a></li>
|
||||
<li><a href="Page-Ftp-AjoutCompte.html">Ajouter</a></li>
|
||||
<li><a href="Page-Ftp-SuppressionCompte.html">Supprimer</a></li>
|
||||
</ul>
|
||||
<h1>Messagerie</h1>
|
||||
<ul>
|
||||
<li><a href="Page-Email-Recapitulatif.html">Récapitulatif</a></li>
|
||||
<li><a href="Page-Email-AjoutCompte.html">Ajouter (compte)</a></li>
|
||||
<li><a href="Page-Email-AjoutAlias.html">Ajouter (alias)</a></li>
|
||||
<li><a href="Page-Email-Suppression.html">Supprimer</a></li>
|
||||
</ul>
|
||||
<h1>Noms de domaine</h1>
|
||||
<ul>
|
||||
<li><a href="Page-DNS-Recapitulatif.html">Récapitulatif</a></li>
|
||||
<li><a href="Page-DNS-AjoutDomaine.html">Ajouter (domaine)</a></li>
|
||||
<li><a href="Page-DNS-AjoutSousDomaine.html">Ajouter (sous domaine)</a></li>
|
||||
<li><a href="Page-DNS-Suppression.html">Supprimer</a></li>
|
||||
</ul>
|
||||
<h1>Votre compte</h1>
|
||||
<ul>
|
||||
<li><a href="Page-Compte-MotdePasse.html">Mot de passe</a></li>
|
||||
<li><a href="Page.html?action=deconnexion">Se déconnecter</a></li>
|
||||
</ul>
|
||||
</div>
|
||||
<!-- End of Sidebar -->
|
||||
|
||||
<div id="contenu">
|
||||
<p style="text-align: right;"><img src="img/icons-panel/online.png" style="vertical-align: middle;" alt="En ligne" /> Vous êtes connecté en tant que <strong><?php echo ucwords($_SESSION['Utilisateur']); ?></strong> | <a href="Page.html?action=deconnexion">Se déconnecter</a></p>
|
||||
<?php require ('system/librairie/lib.page.php'); ?>
|
||||
</div>
|
||||
<div class="clear"></div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- End of Content -->
|
||||
|
||||
<!-- Footer -->
|
||||
<div id="pied">
|
||||
© 2004 - 2010 <a href="http://www.kelio.asso.fr">kelio.asso.fr</a>
|
||||
Association Kelio | Mentions légales<br/>Graphismes par Germain - Développement par Mogui - Contenu par Vinux
|
||||
</div>
|
||||
<!-- End of Footer -->
|
||||
|
||||
</body>
|
||||
</html>
|
||||
191
0.9.0/panel/module/accueil.php
Executable file
@@ -0,0 +1,191 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
$SelectionQuota = $MySql->Select("*", "utilisateur", "Utilisateur='".$_SESSION['Utilisateur']."'", "", "", "", "");
|
||||
if ($SelectionQuota != FALSE)
|
||||
{
|
||||
$Espace = $SelectionQuota[0]["Espace"];
|
||||
$UtilisateurID = $SelectionQuota[0]['id'];
|
||||
}
|
||||
else
|
||||
$Espace = 0;
|
||||
?>
|
||||
|
||||
<p><strong>Bienvenue dans votre espace de gestion de votre hébergement Kelio.</strong>
|
||||
<br />Veuillez choisir une action à effectuer dans le menu ci-contre.</p>
|
||||
|
||||
<div style="background-image: url(img/icons-panel/message-info.png); background-repeat: no-repeat; padding-left: 35px; min-height: 24px;">
|
||||
<p>N'oubliez pas que notre hébergement vit grâce à vos dons et à la publicité ! Mettre une petite publicité sur votre site nous aidera à continuer ! Vous êtes satisfait du service que nous vous offrons ? Alors faites nous le savoir par votre contribution. <a href="./Page-Divers-Contribuer.html">En savoir plus</a></p>
|
||||
</div>
|
||||
|
||||
<div id="accueil">
|
||||
<table border="0" style="width: 25%; float: left; margin-right: 10px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2"><img src="img/icons-panel/cube_green.png" alt="info" style="padding-right: 5px;" />Accès rapide</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td><img alt="Bases de données" src="img/icons-panel/database.png" /></td>
|
||||
<td><a style=" cursor:pointer" onclick="Cache('JS_bdd');">Bases de données</a></td>
|
||||
</tr>
|
||||
<tr id="JS_bdd" style="display: none">
|
||||
<td colspan="2">
|
||||
<img src="img/icons-panel/em-plus.png" alt="info" style="padding-right: 5px;" /> <a href="Page-MySql-AjoutBdd.html">Ajouter</a><br />
|
||||
<img src="img/icons-panel/em-cross.png" alt="info" style="padding-right: 5px;" /> <a href="Page-MySql-SuppressionBdd.html">Supprimer</a><br/>
|
||||
<img src="img/icons-panel/em-check.png" alt="info" style="padding-right: 5px;" /> <a href="http://pma.kelio.org">phpMyAdmin</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="FTP" src="img/icons-panel/arrow_refresh.png" /></td>
|
||||
<td><a style=" cursor:pointer" onclick="Cache('JS_ftp');">Comptes FTP</a></td>
|
||||
</tr>
|
||||
<tr id="JS_ftp" style="display: none">
|
||||
<td colspan="2">
|
||||
<img src="img/icons-panel/em-plus.png" alt="info" style="padding-right: 5px;" /> <a href="Page-Ftp-AjoutCompte.html">Ajouter</a><br />
|
||||
<img src="img/icons-panel/em-cross.png" alt="info" style="padding-right: 5px;" /> <a href="Page-Ftp-SuppressionCompte.html">Supprimer</a><br/>
|
||||
<img src="img/icons-panel/em-check.png" alt="info" style="padding-right: 5px;" /> <a href="http://webftp.kelio.org">Webftp</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="Messagerie" src="img/icons-panel/email.png" /></td>
|
||||
<td><a style=" cursor:pointer" onclick="Cache('JS_email');">Comptes messagerie</a></td>
|
||||
</tr>
|
||||
<tr id="JS_email" style="display: none">
|
||||
<td colspan="2">
|
||||
<img src="img/icons-panel/em-plus.png" alt="info" style="padding-right: 5px;" /> <a href="Page-Email-AjoutCompte.html">Ajouter compte</a><br />
|
||||
<img src="img/icons-panel/em-plus.png" alt="info" style="padding-right: 5px;" /> <a href="Page-Email-AjoutAlias.html">Ajouter alias</a><br />
|
||||
<img src="img/icons-panel/em-cross.png" alt="info" style="padding-right: 5px;" /> <a href="Page-Email-Suppression.html">Supprimer compte</a><br/>
|
||||
<img src="img/icons-panel/em-check.png" alt="info" style="padding-right: 5px;" /> <a href="http://webmail.kelio.org">Webmail</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="DNS" src="img/icons-panel/house_go.png" /></td>
|
||||
<td><a style=" cursor:pointer" onclick="Cache('JS_dns');">Noms de domaine</a></td>
|
||||
</tr>
|
||||
<tr id="JS_dns" style="display: none">
|
||||
<td colspan="2">
|
||||
<img src="img/icons-panel/em-plus.png" alt="info" style="padding-right: 5px;" /> <a href="Page-DNS-AjoutDomaine.html">Ajouter (domaine)</a><br/>
|
||||
<img src="img/icons-panel/em-plus.png" alt="info" style="padding-right: 5px;" /> <a href="Page-DNS-AjoutSousDomaine.html">Ajouter (sous domaine)</a><br/>
|
||||
<img src="img/icons-panel/em-cross.png" alt="info" style="padding-right: 5px;" /> <a href="Page-DNS-Suppression.html">Supprimer</a><br/>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="Compte" src="img/icons-panel/16-member-profile.png" /></td>
|
||||
<td><a style=" cursor:pointer" onclick="Cache('JS_compte');">Votre compte</a></td>
|
||||
</tr>
|
||||
<tr id="JS_compte" style="display: none">
|
||||
<td colspan="2">
|
||||
<img src="img/icons-panel/em-check.png" alt="info" style="padding-right: 5px;" /> <a href="Page-Compte-MotdePasse.html">Mot de passe</a>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2"><img src="img/icons-panel/cube_green.png" alt="info" style="padding-right: 5px;" />Assistance</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="Documentation" src="img/icons-panel/book_open.png" /></td>
|
||||
<td><a href="http://doc.kelio.org">Documentation</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="assistance en ligne" src="img/icons-panel/user_comment.png" /></td>
|
||||
<td><a style=" cursor:pointer" onclick="Cache('JS_assistance');">Assistance en ligne</a></td>
|
||||
</tr>
|
||||
<tr id="JS_assistance" style="display: none">
|
||||
<td colspan="2">
|
||||
<img src="img/icons-panel/em-check.png" alt="info" style="padding-right: 5px;" /><a href="http://www.kelio.asso.fr/contact.html">Formulaire</a>
|
||||
<br />
|
||||
<img src="img/icons-panel/em-check.png" alt="info" style="padding-right: 5px;" /><a href="http://forum.kelio.asso.fr/viewforum.php?id=10">Forum</a>
|
||||
<br />
|
||||
<img src="img/icons-panel/em-check.png" alt="info" style="padding-right: 5px;" /><a href="irc://irc.freenode.net/kelio">Dialogue en ligne (IRC)</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img alt="Maintenances ou travaux" src="img/icons-panel/cog.png" /></td>
|
||||
<td><a href="http://suivi.kelio.asso.fr">Maintenances ou travaux</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
|
||||
<table border="0" style="width: 70%; margin-left 5px;">
|
||||
<thead>
|
||||
<tr>
|
||||
<th colspan="2"><img src="img/icons-panel/cube_green.png" alt="info" style="padding-right: 5px;" />Informations générales</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<tr>
|
||||
<td style="width: 45%">Version :</td>
|
||||
<td>Kelio Panel <strong>0.9.0</strong> (<a href="Page-Divers-Changelog.html">Changelog</a>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Mis en service :</td>
|
||||
<td>1 février 2010</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Développement par :</td>
|
||||
<td>- Benjamin Mercier<br />- Vincent Lemoine</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Version PHP :</td>
|
||||
<td>5.2 (<a href="http://www.kelio.asso.fr/phpinfo.php">phpinfo</a>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Version MySQL :</td>
|
||||
<td>5.1</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th><img src="img/icons-panel/group.png" alt="utilisateur" style="padding-right: 5px;" />Informations utilisateur</th>
|
||||
<th></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 45%">Offre : </td>
|
||||
<td><strong><?php echo $_SESSION['Offre']['Nom']; ?></strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td style="width: 45%">Votre nom de domaine : </td>
|
||||
<td><a href="http://<?php echo $_SESSION['Utilisateur']; ?>.kelio.org">http://<?php echo $_SESSION['Utilisateur']; ?>.kelio.org</a></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Chemin absolu :</td>
|
||||
<td>/var/www/web/<?php echo $_SESSION['Utilisateur']; ?>/</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Serveur de Stockage :</td>
|
||||
<td><?php echo $SelectionQuota[0]["ServeurFichier"] ; ?> (<?php echo gethostbyname ($SelectionQuota[0]["ServeurFichier"]); ?>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Serveur MySql :</td>
|
||||
<td><?php echo $SelectionQuota[0]["ServeurMysql"] ; ?> (<?php echo gethostbyname ($SelectionQuota[0]["ServeurMysql"]); ?>)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Espace disque :</td>
|
||||
<td><?php echo $Espace; ?> Mo<?php if ($_SESSION['Offre']['EspaceDisque'] != '-1'):?> sur <?php echo $_SESSION['Offre']['EspaceDisque']; ?>Mo autorisés<?php endif; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Numéro client :</td>
|
||||
<td><?php echo $UtilisateurID; ?></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th colspan="2"><img src="img/icons-panel/cube_green.png" alt="info" style="padding-right: 5px;" />Services complémentaires</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><img src="img/icons-panel/application_home.png" alt="technique" style="padding-right: 5px;" /><a href="http://www.azote.org">Noms de domaine gratuits Azote.org</a></td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
36
0.9.0/panel/module/compte/changepasswd.php
Executable file
@@ -0,0 +1,36 @@
|
||||
<h3>Modification mot de passe</h3>
|
||||
<p>Vous pouvez modifier à partir de cette page le mot de passe d'accès au panel.</p>
|
||||
<?php
|
||||
if ( (VerifPOST("pass-new", "#^[a-z0-9]+$#", 5, 9) == "ChaineValide" AND VerifPOST("pass-new-confirm", "#^[a-z0-9]+$#", 5, 9) == "ChaineValide") AND ($_POST['pass-new'] == $_POST['pass-new-confirm']))
|
||||
{
|
||||
$pass = md5(md5($_POST['pass-new']));
|
||||
$MajPanel = $MySql->Update ("utilisateur", "Password", "$pass", "Utilisateur='".$_SESSION['Utilisateur']."'");
|
||||
if ( $MajPanel != FALSE )
|
||||
{
|
||||
echo '<p>Mot de passe modifié avec succès</p>';
|
||||
$_SESSION['Hash'] = $pass;
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<p>Une erreur est survenue</p>';
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
echo '<div>
|
||||
<form action="Page-Compte-MotdePasse.html" method="post">
|
||||
<table cellpadding="5">
|
||||
<tr>
|
||||
<th>Nouveau mot de passe<br/><small>(5 à 9 caractères)</small></th>
|
||||
<td><input name="pass-new" type="password" maxlength="9" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Confirmation</th>
|
||||
<td><input name="pass-new-confirm" type="password" maxlength="9" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="submit" name="Submit" value="Valider" />
|
||||
</form>
|
||||
</div>';
|
||||
}
|
||||
?>
|
||||
79
0.9.0/panel/module/divers/bridage.php
Executable file
@@ -0,0 +1,79 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
$ListBDD = $MySql->Select("*", "domaine", "Utilisateur='".$_SESSION['Utilisateur']."' AND Status='2'", "", "", "", "");
|
||||
|
||||
|
||||
?>
|
||||
<h3>Bridage de vos sites Internet</h3>
|
||||
<p>
|
||||
Afin de favoriser les gens qui affichent notre publicité sur leurs sites, un bridage est imposé à tous les sites, sauf ceux dont notre pub est affichée.<br />
|
||||
Une limite est fixée uniquement pour le télechargement de fichiers, celle-ci est de 50Ko/sec pour tout le site. <br />
|
||||
Cependant, si notre publicité est affichée au moins sur l'accueil, le site sera totalement débridé et pourra ainsi bénéficier jusqu'à 12Mo/sec de bande passante (dans les limites de la charte).<br />
|
||||
Pour afficher notre publicité, veuillez en générer-une sur la page <a href="Page-Divers-Contribuer.html">"Nous soutenir"</a>. (publicités adsense seulement).<br />
|
||||
Notre robot passe une fois toutes les 24 heures, ne vous étonnez donc pas que le bridage soit toujours actif immédiatement après l'affichage de la publicité.<br />
|
||||
Notez que <?php echo $_SESSION['Utilisateur']; ?>.kelio.org ne peut être débridé.<br /><br />
|
||||
Ci-dessous un récapitulatif de tous les bridages sur vos domaines.
|
||||
</p><br />
|
||||
|
||||
<div>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Domaine</th>
|
||||
<th>Bridage</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
$TotalBDD = count($ListBDD);
|
||||
|
||||
if ( $ListBDD == FALSE )
|
||||
{
|
||||
echo '
|
||||
<tr>
|
||||
<td colspan="2" style="text-align: center; font-weight: bold;">Vous n\'avez aucun domaine actif</td>
|
||||
</tr>';
|
||||
}
|
||||
else
|
||||
{
|
||||
for ($i=0; $i < $TotalBDD; $i++)
|
||||
{
|
||||
if ( $ListBDD[$i]["Bridage"] == "Oui" )
|
||||
{
|
||||
$Bridage = "<img src=\"img/icons-panel/error.png\" style=\"vertical-align: middle;\" alt=\"bridé\" /> bridé";
|
||||
$Couleur = "#FF3333";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Bridage = "<img src=\"img/icons-panel/active.png\" style=\"vertical-align: middle;\" alt=\"débridé\" /> débridé";
|
||||
$Couleur = "#009933";
|
||||
}
|
||||
|
||||
echo '
|
||||
<tr>
|
||||
<td>'.$ListBDD[$i]["Adresse"].'</td>
|
||||
<td style="color: '.$Couleur.';">'.$Bridage.'</td>
|
||||
</tr>';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
108
0.9.0/panel/module/divers/changelog.php
Executable file
@@ -0,0 +1,108 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
?>
|
||||
<h3>Changelog Kelio Panel</h3><br />
|
||||
|
||||
<strong>Version : 0.9.0 (le xx octobre 2010)</strong>
|
||||
<ul>
|
||||
<li class="Liste">Panel - Gestion des DNS</li>
|
||||
</ul>
|
||||
<br /><br />
|
||||
|
||||
<strong>Version : 0.8.0 (le 03 octobre 2009)</strong>
|
||||
<ul>
|
||||
<li class="Liste">Panel - Prise en charge des offres</li>
|
||||
<li class="Liste">Robot - Mise en place de quotas</li>
|
||||
<li class="Liste">Panel - Correction de diverses erreurs</li>
|
||||
</ul>
|
||||
<br /><br />
|
||||
|
||||
<strong>Version : 0.7.1 (le 10 novembre 2007)</strong>
|
||||
<ul>
|
||||
<li class="Liste">Panel - Correction de bugs mineurs</li>
|
||||
<li class="Liste">Panel - Suppression de l'affichage de la bande passante utilisé</li>
|
||||
<li class="Liste">Robot - Correction du robot d'affichage des ressources utilisés</li>
|
||||
</ul>
|
||||
<br /><br />
|
||||
|
||||
<strong>Version : 0.7 (le 24 octobre 2007)</strong>
|
||||
<ul>
|
||||
<li class="Liste">Panel - Ajout logos pour les rubriques et nouvelle page d'accueil</li>
|
||||
<li class="Liste">Panel - Affichage des ressources utilisées (Bande passante et espace disque)</li>
|
||||
<li class="Liste">Panel - Modification majeure pour rendre le panel multi-serveurs</li>
|
||||
<li class="Liste">Panel - Ajout de la prise en charge des mails</li>
|
||||
<li class="Liste">Panel - Mode expert pour l'ajout d'un domaine</li>
|
||||
</ul>
|
||||
<br /><br />
|
||||
|
||||
<strong>Version : 0.6.5 (version abandonnée)</strong>
|
||||
<ul>
|
||||
<li class="Liste">Panel - Ajout logos pour les rubriques et nouvelle page d'accueil</li>
|
||||
<li class="Liste">Panel - Amelioration des coupures de chaines dans tous les modules ([...])</li>
|
||||
<li class="Liste">Panel - Ajout du dernier passage du robot sur l'accueil</li>
|
||||
<li class="Liste">Panel - Correction d'erreur de Validation Xhtml 1.0 Strict</li>
|
||||
<li class="Liste">Panel - Modification majeure pour rendre le panel multi-serveurs</li>
|
||||
<li class="Liste">Robot - Remplacement du module Compte->Creation</li>
|
||||
<li class="Liste">Robot - Remplacement du module MySql->Creation</li>
|
||||
<li class="Liste">Robot - Remplacement du module MySql->Suppression</li>
|
||||
<li class="Liste">Robot - Remplacement du module Domaine->Creation</li>
|
||||
<li class="Liste">Robot - Remplacement du module Domaine->Suppression</li>
|
||||
<li class="Liste">Robot - Remplacement du module Compte->Creation</li>
|
||||
</ul>
|
||||
|
||||
<br /><br />
|
||||
<strong>Version : 0.6 (le 29 mai 2007)</strong>
|
||||
<ul>
|
||||
<li class="Liste">Panel - Correction de la regex Commentaire du module Ftp->Ajouter</li>
|
||||
<li class="Liste">Panel - Création du module Divers->Contribuer</li>
|
||||
<li class="Liste">Robot - Correction des droits des utilisateurs MySql</li>
|
||||
<li class="Liste">Robot - Correction des domaines (autoriser l'url rewriting)</li>
|
||||
<li class="Liste">Robot - Correction du changement de date dans la zone dns</li>
|
||||
<li class="Liste">Robot - Changement de la disposition dans la zone dns</li>
|
||||
<li class="Liste">Serveur - Changement de la disposition dans la zone dns</li>
|
||||
<li class="Liste">Serveur - Mise en place d'un systeme de backup rsync</li>
|
||||
</ul>
|
||||
|
||||
<br /><br />
|
||||
<strong>Version : 0.5a (le 17 mai 2007)</strong>
|
||||
<ul>
|
||||
<li class="Liste">Panel - Création du Kelio Panel</li>
|
||||
<li class="Liste">Panel - Création du module Accueil</li>
|
||||
<li class="Liste">Panel - Création du module MySql->Récapitulatif</li>
|
||||
<li class="Liste">Panel - Création du module MySql->Ajout</li>
|
||||
<li class="Liste">Panel - Création du module MySql->Suppression</li>
|
||||
<li class="Liste">Panel - Création du module Ftp->Récapitulatif</li>
|
||||
<li class="Liste">Panel - Création du module Ftp->Ajout</li>
|
||||
<li class="Liste">Panel - Création du module Ftp->Suppression</li>
|
||||
<li class="Liste">Panel - Création du module Domaine->Récapitulatif</li>
|
||||
<li class="Liste">Panel - Création du module Domaine->Ajout</li>
|
||||
<li class="Liste">Panel - Création du module Domaine->Suppression</li>
|
||||
<li class="Liste">Admin - Création de l'admin Kelio Panel</li>
|
||||
<li class="Liste">Admin - Création du module ValidationCompte</li>
|
||||
<li class="Liste">Robot - Création du robot global</li>
|
||||
<li class="Liste">Robot - Création du module Compte->Creation</li>
|
||||
<li class="Liste">Robot - Création du module MySql->Creation</li>
|
||||
<li class="Liste">Robot - Création du module MySql->Suppression</li>
|
||||
<li class="Liste">Robot - Création du module Ftp->Creation</li>
|
||||
<li class="Liste">Robot - Création du module Ftp->Suppression</li>
|
||||
<li class="Liste">Robot - Création du module Domaine->Creation</li>
|
||||
<li class="Liste">Robot - Création du module Domaine->Suppression</li>
|
||||
<li class="Liste">Serveur - Remplacement de PhpMyAdmin par Eskuel</li>
|
||||
</ul>
|
||||
154
0.9.0/panel/module/divers/contribuer.php
Executable file
@@ -0,0 +1,154 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
?>
|
||||
<h3>Contribuer au projet Kelio.org</h3>
|
||||
<p>Afin d'assurer la pérénité des services offerts par l'association Kelio, nous avons besoin de votre soutien.<br />
|
||||
Vous pouvez y contribuer de différente manières :
|
||||
<ul>
|
||||
<li>Adhérer à l'association et bénéficier d'avantage sur les services.</li>
|
||||
<li>Faire un don à l'association.</li>
|
||||
<li>Parler de notre association et des services proposés autour de vous.</li>
|
||||
<li>Afficher les publicités de notre régie partenaire.</li>
|
||||
</ul>
|
||||
</p>
|
||||
<h4>Faire un don</h4>
|
||||
<p>Nous acceptons les dons par l'intérmédiaire de PayPal, paiements en ligne sécurisés.</p>
|
||||
<h4>Afficher une publicité sur votre site</h4>
|
||||
<p>Les publicités Adsense permettent de nous soutenir directement financièrement.</p>
|
||||
<form action="<?php echo $PHP_SELF ?>#code" method="post">
|
||||
<table>
|
||||
<tr>
|
||||
<td><strong>Format des annonces</strong></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>La taille des annonces</td>
|
||||
<td>
|
||||
<select name="format">
|
||||
<option value="728x90">Horizontal 728 x 90</option>
|
||||
<option value="468x60">Horizontal 468 x 60</option>
|
||||
<option value="234x60">Horizontal 234 x 60</option>
|
||||
<option value="120x600">Vertical 120 x 600</option>
|
||||
<option value="160x600">Vertical 160 x 600</option>
|
||||
<option value="120x240">Vertical 120 x 240</option>
|
||||
<option value="336x280">Grand rectangle 336 x 280</option>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td><strong>Couleurs</strong></td>
|
||||
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Bordure</td>
|
||||
<td>#<input type="text" name="bordure" value="FFFFFF" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Titre</td>
|
||||
|
||||
<td>#<input type="text" name="titre" value="0000FF" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>Fond</td>
|
||||
<td>#<input type="text" name="fond" value="FFFFFF" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
|
||||
<td>Texte</td>
|
||||
<td>#<input type="text" name="texte" value="000000" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>URL</td>
|
||||
<td>#<input type="text" name="url" value="008000" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<div><input type="submit" value="Valider" /></div>
|
||||
</form>
|
||||
|
||||
<?php
|
||||
$format = $_POST["format"];
|
||||
$bordure = $_POST["bordure"];
|
||||
$titre = $_POST["titre"];
|
||||
$fond = $_POST["fond"];
|
||||
$texte = $_POST["texte"];
|
||||
$url = $_POST["url"];
|
||||
$format2 = explode("x", $format);
|
||||
$width = $format2[0];
|
||||
$height = $format2[1];
|
||||
$format = $format."_as";
|
||||
$code = "<strong>Code à insérer sur votre site Internet :</strong><br/><br/>
|
||||
<textarea cols=\"50\" rows=\"15\" >
|
||||
<script type=\"text/javascript\"><!--
|
||||
google_ad_client = \"pub-3624271267101348\";
|
||||
google_ad_width = $width;
|
||||
google_ad_height = $height;
|
||||
google_ad_format = \"$format\";
|
||||
google_ad_type = \"text_image\";
|
||||
google_ad_channel = \"\";
|
||||
google_color_border = \"$bordure\";
|
||||
google_color_bg = \"$fond\";
|
||||
google_color_link = \"$url\";
|
||||
google_color_text = \"$texte\";
|
||||
google_color_url = \"$url\";
|
||||
//-->
|
||||
</script>
|
||||
<script type=\"text/javascript\"
|
||||
src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">
|
||||
</script>
|
||||
</textarea>
|
||||
<br/><br/>
|
||||
<strong>Aperçu visuel de la publicité qui sera sur votre site Internet :</strong><br /><br />
|
||||
<script type=\"text/javascript\"><!--
|
||||
google_ad_client = \"pub-3624271267101348\";
|
||||
google_ad_width = $width;
|
||||
google_ad_height = $height;
|
||||
google_ad_format = \"$format\";
|
||||
google_ad_type = \"text_image\";
|
||||
google_ad_channel = \"\";
|
||||
google_color_border = \"$bordure\";
|
||||
google_color_bg = \"$fond\";
|
||||
google_color_link = \"$url\";
|
||||
google_color_text = \"$texte\";
|
||||
google_color_url = \"$url\";
|
||||
//-->
|
||||
</script>
|
||||
<script type=\"text/javascript\"
|
||||
src=\"http://pagead2.googlesyndication.com/pagead/show_ads.js\">
|
||||
</script>"
|
||||
?>
|
||||
<?php
|
||||
if (isset($_POST["format"]))
|
||||
{ echo "<div id='code'>$code</div>"; }
|
||||
?><br/>
|
||||
<h4>Afficher nos bannières de promotion sur votre site</h4>
|
||||
<p><img src="img/icons-panel/em-plus.png" alt="info" style="padding-right: 5px;" /><a href="#JS_banniere" style="cursor:pointer" onclick="Cache('JS_banniere');">Voir nos bannières</a></p>
|
||||
<div id="JS_banniere" style="display: none">
|
||||
<br/>
|
||||
<strong>Bannière 1</strong> (468x60)<br/>
|
||||
<img src="http://www.kelio.asso.fr/image/logo/banniere46860-1.png" alt="Kelio.org - Faites vivre vos idées avec un hébergeur indépendant et alternatif" />
|
||||
<br/>Code à afficher<br/>
|
||||
<textarea style="width: 468px; height: 60px;">
|
||||
<a href="http://www.kelio.asso.fr"><img style="border: 0px;" src="http://kelio.org/image/logo/banniere46860-1.png" alt="Kelio.org - Faites vivre vos idées avec un hébergeur indépendant et alternatif" /> </a>
|
||||
</textarea><br/>
|
||||
<strong>Bannière 2</strong> (300x150)<br/>
|
||||
<img src="http://www.kelio.asso.fr/image/logo/banniere300150.png" alt="Kelio.org - Faites vivre vos idées avec un hébergeur indépendant et alternatif" />
|
||||
<br/>Code à afficher<br/>
|
||||
<textarea style="width: 468px; height: 60px;">
|
||||
<a href="http://www.kelio.asso.fr"><img style="border: 0px;" src="http://kelio.org/image/logo/banniere300150.png" alt="Kelio.org - Faites vivre vos idées avec un hébergeur indépendant et alternatif" /> </a>
|
||||
</textarea>
|
||||
</div>
|
||||
73
0.9.0/panel/module/dns/ajoutdomaine.php
Executable file
@@ -0,0 +1,73 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
$CountDNS = $MySql->Count('id', 'domainedns', "Utilisateur='{$_SESSION['Utilisateur']}'");
|
||||
|
||||
?><h3>Ajouter un nom de domaine</h3>
|
||||
<p>
|
||||
La Racine du site signifie le dossier dans lequel le domaine pointera.<br />
|
||||
L'OpenBaseDir signifie le dossier jusqu'auquel PHP peut remonter, vous pouvez par exemple faire communiquer plusieurs de vos sites entre eux. En général, celui-ci est identique à la racine.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Avant d'ajouter votre nom de domaine, vous devez l'avoir préalablement acheté auprès d'un registrar. Si ce n'est pas le cas, vous pouvez l'acheter auprès de <a href="http://www.gandi.net">Gandi</a>.<br />
|
||||
Notez que notre association peut se charger de la procédure d'achat et de configuration. Contactez-nous pour obtenir plus d'informations.
|
||||
</p>
|
||||
|
||||
<p>
|
||||
Pour utiliser nos serveurs DNS, configurez ceux-ci chez votre registrar pour pointer sur <b>ns1.kelio.org</b> et <b>ns2.kelio.org</b>.<br />
|
||||
Rendez-vous sur notre forum pour obtenir de l'aide.
|
||||
</p>
|
||||
|
||||
<?php if (($CountDNS < $_SESSION['Offre']['DomaineDns']) or ($_SESSION['Offre']['DomaineDns'] == '-1')): ?>
|
||||
<div>
|
||||
<form action="execution-11.html" method="post">
|
||||
<table cellpadding="5">
|
||||
<tr>
|
||||
<th>Domaine</th>
|
||||
<td><input name="Domaine" type="text" maxlength="80" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Racine</th>
|
||||
<td><input name="Racine" type="text" maxlength="80" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Open Basedir</th>
|
||||
<td><input name="OpenBasedir" type="text" maxlength="80" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Serveur Mail</th>
|
||||
<td>
|
||||
<input name="Mail" type="radio" value="mail.kelio.org" checked="checked"/> Utiliser le serveur mail de Kelio<br/>
|
||||
<input name="Mail" type="radio" value="autre" /> Utiliser un serveur mail externe: <input name="ServeurMail" type="text" maxlength="80" />
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Commentaire </th>
|
||||
<td><input name="Commentaire" type="text" maxlength="70" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="submit" name="Submit" value="Ajouter le nom de domaine" />
|
||||
</form>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<p>
|
||||
Désolé, votre offre ne vous permet pas d'ajouter plus de zone(s) DNS.<br />
|
||||
Veuillez en supprimer une ou utiliser un fournisseur de serveurs DNS externe.
|
||||
</p>
|
||||
<?php endif;?>
|
||||
100
0.9.0/panel/module/dns/ajoutsousdomaine.php
Executable file
@@ -0,0 +1,100 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
$CountDNS = $MySql->Count('id', 'sousdomainedns', "Utilisateur='{$_SESSION['Utilisateur']}'");
|
||||
|
||||
$ListDomaines = $MySql->Select ('*', 'domainedns', "Utilisateur='{$_SESSION['Utilisateur']}' AND Status!='".KELIO_DELETE."'", '', '', '', '');
|
||||
$CountDomaines = count ($ListDomaines);
|
||||
if ( $ListDomaines == FALSE ) { $CountDomaines = 0; }
|
||||
?>
|
||||
|
||||
<h3>Ajouter un sous domaine</h3>
|
||||
|
||||
<p class="notice">
|
||||
<b>TODO</b> Rédiger la description de cette page
|
||||
<?php echo $CountDNS."/".$_SESSION['Offre']['SousDomaineDns']; ?>
|
||||
</p>
|
||||
|
||||
<?php
|
||||
if($CountDNS > 0)
|
||||
{
|
||||
if (($CountDNS < $_SESSION['Offre']['SousDomaineDns']) or ($_SESSION['Offre']['SousDomaineDns'] == '-1')) { ?>
|
||||
<div>
|
||||
<form action="execution-13.html" method="post">
|
||||
<table cellpadding="5">
|
||||
<tr>
|
||||
<th>Sous-Domaine</th>
|
||||
<td>
|
||||
<input name="Donnee" type="text" maxlength="80" />
|
||||
<b>.</b>
|
||||
<select name="Domaine">
|
||||
<?php
|
||||
for($i = 0; $i < $CountDomaines; $i++)
|
||||
echo "<option>{$ListDomaines[$i]["Domaine"]}</option>";
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Type </th>
|
||||
<td>
|
||||
<input name="Type" type="radio" value="1" checked="checked" onclick="Montre_Form('JS_Racine'); Montre_Form('JS_OpenBasedir'); Cache_Form('JS_TypePointage'); Cache_Form('JS_Pointage');"> Ajouter sur les serveurs Kelio<br/>
|
||||
<input name="Type" type="radio" value="2" onclick="Cache_Form('JS_Racine'); Cache_Form('JS_OpenBasedir'); Montre_Form('JS_TypePointage'); Montre_Form('JS_Pointage');"> Faire pointer sur un serveur externe
|
||||
</td>
|
||||
</tr>
|
||||
<tr id="JS_Racine">
|
||||
<th>Racine</th>
|
||||
<td><input name="Racine" type="text" maxlength="80" /></td>
|
||||
</tr>
|
||||
<tr id="JS_OpenBasedir">
|
||||
<th>Open Basedir</th>
|
||||
<td><input name="OpenBasedir" type="text" maxlength="80" /></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_TypePointage">
|
||||
<th>Pointage </th>
|
||||
<td>
|
||||
<select name="TypePointage">
|
||||
<option value="2">CNAME (alias)</option>
|
||||
<option value="3">A (IPv4)</option>
|
||||
<?php /*<option value="4">AAAA (IPv6)</option>*/ ?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_Pointage">
|
||||
<th>Destination </th>
|
||||
<td><input name="Pointage" type="text" maxlength="70" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Commentaire </th>
|
||||
<td><input name="Commentaire" type="text" maxlength="70" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="submit" name="Submit" value="Ajouter la zone DNS" />
|
||||
</form>
|
||||
</div>
|
||||
<?php } else { ?>
|
||||
<p>
|
||||
Désolé, votre offre ne vous permet pas d'ajouter plus de sous domaines.
|
||||
</p>
|
||||
<?php }
|
||||
}
|
||||
else { ?>
|
||||
<p>
|
||||
<b>Avant d'ajouter votre sous domaine, vous devez avoir préalablement <a href="Page-DNS-AjoutDomaine.html">ajouté un nom de domaine sur nos serveur.<a></b><br />
|
||||
</p>
|
||||
<?php } ?>
|
||||
200
0.9.0/panel/module/dns/recapitulatif.php
Executable file
@@ -0,0 +1,200 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
$ListTable = $MySql->Select ("*", "domainedns", "Utilisateur='".$_SESSION['Utilisateur']."'", "", "", "", "");
|
||||
$CountEnregistrement = count ($ListTable);
|
||||
if ( $ListTable == FALSE ) { $CountEnregistrement = 0; }
|
||||
|
||||
$CountSousDomaines = $MySql->Count('id', 'sousdomainedns', "Utilisateur='{$_SESSION['Utilisateur']}'");
|
||||
|
||||
?>
|
||||
<h3>Récapitulatif de vos noms de domaine <a style="border: 0px;" href="http://doc.kelio.org/"><img style="vertical-align:middle; border: 0px;" src="img/icons-panel/question.png" alt="Aide" title="Aide" /></a></h3>
|
||||
|
||||
<p class="notice">
|
||||
Actuellement, vous avez <?php echo $CountEnregistrement; if ($_SESSION['Offre']['DomaineDns'] != '-1') echo " / {$_SESSION['Offre']['DomaineDns']}"; ?> domaine(s)
|
||||
et <?php echo $CountSousDomaines; if($_SESSION['Offre']['SousDomaineDns'] != -1) echo " / {$_SESSION['Offre']['SousDomaineDns']}"; ?> sous domaine(s).
|
||||
</p>
|
||||
<p>
|
||||
Pour rappel, une adresse IP est l'équivalent d'une adresse postale dans le domaine informatique. Chaque ordinateur ou équipement informatique connecté au réseau dispose d'une adresse IP.
|
||||
Le service DNS sert à répondre aux internautes "ce (sous) domaine correspond à cette adresse IP".
|
||||
</p>
|
||||
<p>Passez votre souris sur le commentaire pour le voir en entier.</p>
|
||||
<p>
|
||||
Le statut "En attente" signifie que votre nom de domaine ou votre sous domaine est en attente de création par notre robot. Normalement, cette opération prend moins d'une heure.<br />
|
||||
Il en est de même pour le statut "Suppression".
|
||||
</p>
|
||||
<p>Pour utiliser nos serveurs DNS, configurez ceux-ci chez votre registrar pour pointer sur <strong>ns1.kelio.org</strong> et <strong>ns2.kelio.org</strong>. <br />Rendez-vous sur notre forum pour obtenir de l'aide.</p>
|
||||
|
||||
<div>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>(Sous) domaine</th>
|
||||
<th>Date de création</th>
|
||||
<th>Statut</th>
|
||||
<th>Racine</th>
|
||||
<th>Basedir</th>
|
||||
<th>Mail</th>
|
||||
<th>Commentaire</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
|
||||
<?php
|
||||
if ( $ListTable == FALSE )
|
||||
echo '<tr><td style="text-align: center; font-weight: bold;" colspan="7">Aucun nom de domaine pour le moment</td></tr>';
|
||||
else
|
||||
{
|
||||
for ($i=0; $i < $CountEnregistrement; $i++)
|
||||
{
|
||||
if ( $ListTable[$i]["Status"] == KELIO_WAIT )
|
||||
$Status = "<img src='img/icons-panel/wait.png' style='vertical-align: middle;' alt='En Attente' /> En attente";
|
||||
elseif ( $ListTable[$i]["Status"] == KELIO_ACTIVE )
|
||||
$Status = "<img src='img/icons-panel/active.png' style='vertical-align: middle;' alt='Activé' /> Activé";
|
||||
elseif ( $ListTable[$i]["Status"] == KELIO_DELETE )
|
||||
$Status = "<img src='img/icons-panel/delete.png' style='vertical-align: middle;' alt='Suppresion' /> Suppression";
|
||||
else // KELIO_ERROR
|
||||
$Status = "<img src='img/icons-panel/error.png' style='vertical-align: middle;' alt='Erreur' /> Erreur";
|
||||
|
||||
// Commentaire
|
||||
if ( strlen($ListTable[$i]["Commentaire"]) > 16 )
|
||||
$Commentaire = substr ($ListTable[$i]["Commentaire"], 0, 16)."...";
|
||||
elseif ( strlen($ListTable[$i]["Commentaire"]) == 0 )
|
||||
$Commentaire = "-";
|
||||
else
|
||||
$Commentaire = $ListTable[$i]["Commentaire"];
|
||||
|
||||
// Domaine
|
||||
if ( strlen($ListTable[$i]["Domaine"]) > 15 )
|
||||
$Domaine = substr($ListTable[$i]["Domaine"], 0, 15)."...";
|
||||
else
|
||||
$Domaine = $ListTable[$i]["Domaine"];
|
||||
|
||||
// Racine
|
||||
if ( strlen($ListTable[$i]["Racine"]) > 15 )
|
||||
$Racine = substr($ListTable[$i]["Racine"], 0, 15)."...";
|
||||
else
|
||||
$Racine = $ListTable[$i]["Racine"];
|
||||
|
||||
// OpenBasedir
|
||||
if ( strlen($ListTable[$i]["OpenBasedir"]) > 15 )
|
||||
$OpenBasedir = substr($ListTable[$i]["OpenBasedir"], 0, 15)."...";
|
||||
else
|
||||
$OpenBasedir = $ListTable[$i]["OpenBasedir"];
|
||||
|
||||
// Mail
|
||||
if ( strlen($ListTable[$i]["Mail"]) > 15 )
|
||||
$Mail = substr($ListTable[$i]["Mail"], 0, 15)."...";
|
||||
else
|
||||
$Mail = $ListTable[$i]["Mail"];
|
||||
|
||||
echo '
|
||||
<tr>
|
||||
<th><span style="cursor: help;" title="'.$ListTable[$i]["Domaine"].'">'.$Domaine.'</span></th>
|
||||
<td><span style="cursor: help;" title="'.date ("d-m-Y H:i:s",$ListTable[$i]["DateDeCreation"]).'">'.date("d-m-Y", $ListTable[$i]["DateDeCreation"]).'</span></td>
|
||||
<td>'.$Status.'</td>
|
||||
<td><span style="cursor: help;" title="'.$ListTable[$i]["Racine"].'">'.$Racine.'</span></td>
|
||||
<td><span style="cursor: help;" title="'.$ListTable[$i]["OpenBasedir"].'">'.$OpenBasedir.'</span></td>
|
||||
<td><span style="cursor: help;" title="'.$ListTable[$i]["Mail"].'">'.$Mail.'</span></td>
|
||||
<td><span style="cursor: help;" title="'.$ListTable[$i]["Commentaire"].'">'.$Commentaire.'</span></td>
|
||||
</tr>';
|
||||
|
||||
$ListSousDomaine = $MySql->Select ("*", "sousdomainedns", "Domaine='".$ListTable[$i]["Domaine"]."'", "", "", "", "");
|
||||
if ( $ListSousDomaine == FALSE )
|
||||
echo '<tr><td style="text-align: center;" colspan="7">Aucun sous-domaine pour '.$ListTable[$i]["Domaine"].'</td></tr>';
|
||||
else
|
||||
{
|
||||
$CountSousDomaine = count ($ListSousDomaine);
|
||||
for ($o=0; $o < $CountSousDomaine; $o++)
|
||||
{
|
||||
if ( $ListSousDomaine[$o]["Status"] == KELIO_WAIT )
|
||||
$StatusSousDomaine = "<img src='img/icons-panel/wait.png' style='vertical-align: middle;' alt='En attente' /> En attente";
|
||||
elseif ( $ListSousDomaine[$o]["Status"] == KELIO_ACTIVE )
|
||||
$StatusSousDomaine = "<img src='img/icons-panel/active.png' style='vertical-align: middle;' alt='Activé' /> Activé";
|
||||
elseif ( $ListSousDomaine[$o]["Status"] == KELIO_DELETE )
|
||||
$StatusSousDomaine = "<img src='img/icons-panel/delete.png' style='vertical-align: middle;' alt='Suppresion' /> Suppression";
|
||||
else // KELIO_ERROR
|
||||
$StatusSousDomaine = "<img src='img/icons-panel/error.png' style='vertical-align: middle;' alt='Erreur' /> Erreur";
|
||||
|
||||
if ( strlen($ListSousDomaine[$o]["Commentaire"]) > 16 )
|
||||
$CommentaireSousDomaine = substr ($ListSousDomaine[$o]["Commentaire"], 0, 16)."...";
|
||||
elseif ( strlen($ListSousDomaine[$o]["Commentaire"]) == 0 )
|
||||
$CommentaireSousDomaine = "-";
|
||||
else
|
||||
$CommentaireSousDomaine = $ListSousDomaine[$o]["Commentaire"];
|
||||
|
||||
// Donnee
|
||||
if ( strlen($ListSousDomaine[$o]["Donnee"]) > 15 )
|
||||
$Donnee = substr($ListSousDomaine[$o]["Donnee"], 0, 15)."...";
|
||||
else
|
||||
$Donnee = $ListSousDomaine[$o]["Donnee"];
|
||||
|
||||
// Racine
|
||||
if ( strlen($ListSousDomaine[$o]["Racine"]) > 15 )
|
||||
$Racine = substr($ListSousDomaine[$o]["Racine"], 0, 15)."...";
|
||||
else
|
||||
$Racine = $ListSousDomaine[$o]["Racine"];
|
||||
|
||||
// OpenBasedir
|
||||
if ( strlen($ListSousDomaine[$o]["OpenBasedir"]) > 15 )
|
||||
$OpenBasedir = substr($ListSousDomaine[$o]["OpenBasedir"], 0, 15)."...";
|
||||
else
|
||||
$OpenBasedir = $ListSousDomaine[$o]["OpenBasedir"];
|
||||
|
||||
// Pointage
|
||||
if ( strlen($ListSousDomaine[$o]["Pointage"]) > 20 )
|
||||
$Pointage = substr($ListSousDomaine[$o]["Pointage"], 0, 20)."...";
|
||||
else
|
||||
$Pointage = $ListSousDomaine[$o]["Pointage"];
|
||||
|
||||
// Type de pointage
|
||||
switch($ListSousDomaine[$o]["Type"])
|
||||
{
|
||||
case 2: $TypePointage = "CNAME"; break;
|
||||
case 3: $TypePointage = "A"; break;
|
||||
case 4: $TypePointage = "AAAA"; break;
|
||||
}
|
||||
|
||||
echo '
|
||||
<tr class="special">
|
||||
<td style="padding-left: 30px;"><span style="cursor: help;" title="'.$ListSousDomaine[$o]['Donnee'].'">'.$Donnee.'</span></td>
|
||||
<td><span style="cursor: help;" title="'.date ("d-m-Y H:i:s",$ListSousDomaine[$o]["DateDeCreation"]).'">'.date("d-m-Y", $ListSousDomaine[$o]["DateDeCreation"]).'</span></td>
|
||||
<td>'.$StatusSousDomaine.'</td>';
|
||||
|
||||
if($ListSousDomaine[$o]['Type'] == 1)
|
||||
{
|
||||
echo '<td><span style="cursor: help;" title="'.$ListSousDomaine[$o]["Racine"].'">'.$Racine.'</span></td>';
|
||||
echo '<td colspan="2"><span style="cursor: help;" title="'.$ListSousDomaine[$o]["OpenBasedir"].'">'.$OpenBasedir.'</span></td>';
|
||||
}
|
||||
elseif( ($ListSousDomaine[$o]['Type'] > 1) || ($ListSousDomaine[$o]['Type'] < 5))
|
||||
echo '<td colspan="3"><b>Externe</b>: <span style="cursor: help;" title="'.$ListSousDomaine[$o]["Pointage"].'">'.$Pointage.'</span> ('.$TypePointage.')</td>';
|
||||
else
|
||||
echo '<td colspan="3" style="font-weight: bold;">Erreur de création</td>';
|
||||
|
||||
echo '
|
||||
<td><span style="cursor: help;" title="'.$ListSousDomaine[$o]["Commentaire"].'">'.$CommentaireSousDomaine.'</span></td>
|
||||
</tr>' ;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
68
0.9.0/panel/module/dns/suppression.php
Executable file
@@ -0,0 +1,68 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
$ListTable = $MySql->Select ("*", "domainedns", "Utilisateur='".$_SESSION['Utilisateur']."' AND Status='2'", "", "", "", "");
|
||||
?>
|
||||
|
||||
<h3>Supprimer un (sous) domaine</h3>
|
||||
<p>
|
||||
En cas d'erreur, vous devrez attendre que le (sous) domaine soit totalement supprimé du serveur pour pouvoir le recréer.<br />
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<form action="execution-12.html" method="post">
|
||||
<table cellpadding="5">
|
||||
<tr>
|
||||
<th>(Sous) domaine à supprimer :</th>
|
||||
<td>
|
||||
<select name="Domaine">
|
||||
<option selected="selected" value="">Sélectionnez</option>
|
||||
<?php
|
||||
if ( $ListTable == FALSE)
|
||||
{
|
||||
$TotalEnregistement = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
$TotalEnregistement = count ($ListTable);
|
||||
for ($i=0; $i < $TotalEnregistement; $i++)
|
||||
{
|
||||
echo "<option value='".$ListTable[$i]["Domaine"]."'>".$ListTable[$i]["Domaine"]."</option>\n";
|
||||
|
||||
$ListSousZones = $MySql->Select ("*", "sousdomainedns", "Utilisateur='{$_SESSION['Utilisateur']}' AND Domaine='{$ListTable[$i]["Domaine"]}' AND Status='2'", "", "", "", "");
|
||||
$CountSousZones = count ($ListSousZones);
|
||||
if ( $ListSousZones == FALSE ) { $CountSousZones = 0; }
|
||||
|
||||
for($j = 0; $j < $CountSousZones; $j++)
|
||||
{
|
||||
echo "<option value=' {$ListSousZones[$j]["Donnee"]}'> ".$ListSousZones[$j]["Donnee"]."</option>\n";
|
||||
}
|
||||
}
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Tapez "oui"</th>
|
||||
<td><input name="Confirmation" type="text" maxlength="3" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="submit" name="Submit" value="Supprimer le (sous) domaine" />
|
||||
</form>
|
||||
</div>
|
||||
115
0.9.0/panel/module/domaine/ajoutdomaine.php
Executable file
@@ -0,0 +1,115 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
$ListBDD = $MySql->Select ("*", "utilisateur", "Utilisateur='".$_SESSION['Utilisateur']."'", "", "", "", "");
|
||||
$CountDomaine = $MySql->Count('id', 'domaine', "Utilisateur='{$_SESSION['Utilisateur']}'");
|
||||
|
||||
?><h3>Ajouter un nom de domaine externe</h3>
|
||||
<p>
|
||||
La Racine du site signifie le dossier dans lequel le domaine pointera.<br />
|
||||
L'OpenBaseDir signifie le dossier jusqu'auquel PHP peut remonter, vous pouvez par exemple faire communiquer plusieurs de vos sites entre eux. En général, celui-ci est identique à la racine.
|
||||
</p>
|
||||
<p>Le domaine doit être déposé auprès d'un <abbr title="bureau d'enregistrement en français">registrar</abbr>.
|
||||
<br />Il vous faut aussi faire un pointage de type "A" ou "CNAME" sur l'adresse IP : <strong><?php echo gethostbyname ($ListBDD[0]["ServeurFichier"]) ; ?> (<?php echo $ListBDD[0]["ServeurFichier"]; ?>)</strong>
|
||||
<br /><br />Vous pouvez aussi utiliser des sous-domaines.<br />
|
||||
N'hesitez pas à poster sur notre <a href="http://forum.kelio.asso.fr">forum</a> afin d'obtenir de l'aide à la configuration.<br />Tous les champs marqués d'une étoile sont obligatoires.
|
||||
</p>
|
||||
|
||||
<?php if ( ($CountDomaine < $_SESSION['Offre']['Domaine']) or ($_SESSION['Offre']['Domaine'] == '-1') ): ?>
|
||||
<div>
|
||||
<form action="execution-6.html" method="post">
|
||||
<table cellpadding="5">
|
||||
<tr>
|
||||
<th colspan="2" style="text-align: center;"><a style=" cursor:pointer" onclick="Cache('JS_ModExpert1'); Cache('JS_ModExpert2'); Cache('JS_ModExpert3'); Cache('JS_ModExpert4'); Cache('JS_ModExpert5'); Cache('JS_ModExpert6'); Cache('JS_ModExpert7'); Cache('JS_ModExpert8'); Cache('JS_ModExpert9'); Cache('JS_ModExpert10'); Cache('JS_ModExpert11'); Cache('JS_ModExpert12');">Mode expert / Mode normal</a></th>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>*Adresse (sans http://)</th>
|
||||
<td style="width:350px"><input name="Adresse" type="text" maxlength="120" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>*Racine </th>
|
||||
<td><input name="Racine" type="text" maxlength="120" value="/public/" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>*Open BaseDir :</th>
|
||||
<td><input name="BaseDir" type="text" maxlength="120" value="/public/" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Commentaire</th>
|
||||
<td><input name="Commentaire" type="text" maxlength="50" /></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert1">
|
||||
<th><span style="cursor: help" title="Host par défaut en cas de champs vide pour la fonction mysql_connect ()">Mysq.ldefault_host</span></th>
|
||||
<td><input name="mysqldefault_host" type="text" maxlength="100" value="<?php echo $ListBDD[0]["ServeurMysql"]; ?>" /></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert2">
|
||||
<th><span style="cursor: help" title="Utilisateur par défaut en cas de champs vide pour la fonction mysql_connect ()">Mysql.default_user</span></th>
|
||||
<td><input name="mysqldefault_user" type="text" maxlength="16" /></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert3">
|
||||
<th><span style="cursor: help" title="Password par défaut en cas de champs vide pour la fonction mysql_connect ()">Mysql.default_password</span></th>
|
||||
<td><input name="mysqldefault_password" type="text" maxlength="16" /></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert4">
|
||||
<th><span style="cursor: help" title="Dossier contenant toute les données temporaires du domaine">Temporaire</span></th>
|
||||
<td><input name="temporaire" type="text" maxlength="120" /></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert5">
|
||||
<th><span style="cursor: help" title="Dossier contenant toute les sessions du domaine">Sessions</span></th>
|
||||
<td><input name="sessions" type="text" maxlength="120" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>*Listage du dossier :</th>
|
||||
<td><label><input name="Listage" type="radio" value="Oui" checked="checked" /> Oui</label> - <label><input name="Listage" type="radio" value="Non" /> Non</label></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert6">
|
||||
<th><span style="cursor: help" title="Autoriser l'ouvrture de fichier distant via la fonction fopen(), file_get_contents(), etc.">*Allow_url_fopen</span></th>
|
||||
<td><label><input name="allow_url_fopen" type="radio" value="Oui" /> Oui</label> - <label><input name="allow_url_fopen" type="radio" value="Non" checked="checked" /> Non</label></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert7">
|
||||
<th><span style="cursor: help" title="Autoriser l'inclusion de fichier distant via la fonction include(), etc.">*Allow_url_include</span></th>
|
||||
<td><label><input name="allow_url_include" type="radio" value="Oui" /> Oui</label> - <label><input name="allow_url_include" type="radio" value="Non" checked="checked" /> Non</label></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert8">
|
||||
<th><span style="cursor: help" title="Voir les erreurs génerés par php">*Display_errors</span></th>
|
||||
<td><label><input name="display_errors" type="radio" value="Oui" checked="checked" /> Oui</label> - <label><input name="display_errors" type="radio" value="Non" /> Non</label></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert9">
|
||||
<th><span style="cursor: help" title="Permettre l'utilisation de <? ?>">*Short_open_tag</span></th>
|
||||
<td><label><input name="short_open_tag" type="radio" value="Oui" checked="checked" /> Oui</label> - <label><input name="short_open_tag" type="radio" value="Non" /> Non</label></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert10">
|
||||
<th><span style="cursor: help" title="Demarrer les sessions en début de page sans utiliser session_start ()">*Session.auto_start</span></th>
|
||||
<td><label><input name="sessionauto_start" type="radio" value="Oui" /> Oui</label> - <label><input name="sessionauto_start" type="radio" value="Non" checked="checked" /> Non</label></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert11">
|
||||
<th><span style="cursor: help" title="Ajoute automatiquement des anti-slashs aux arrays $_POST, etc..">*Magic_quotes_gpc</span></th>
|
||||
<td><label><input name="magic_quotes_gpc" type="radio" value="Oui" /> Oui</label> - <label><input name="magic_quotes_gpc" type="radio" value="Non" checked="checked" /> Non</label></td>
|
||||
</tr>
|
||||
<tr style="display: none" id="JS_ModExpert12">
|
||||
<th><span style="cursor: help" title="Permet d'utiliser $_POST['var'] en $var">*Register_globals</span></th>
|
||||
<td><label><input name="register_globals" type="radio" value="Oui" /> Oui</label> - <label><input name="register_globals" type="radio" value="Non" checked="checked" /> Non</label></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="submit" name="Submit" value="Ajouter le domaine" />
|
||||
</form>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<p>Désolé, vous ne pouvez plus ajouter de nom(s) de domaine. Votre offre ne vous le permet pas.</p>
|
||||
<?php endif;?>
|
||||
137
0.9.0/panel/module/domaine/recapitulatif.php
Executable file
@@ -0,0 +1,137 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
$ListTable = $MySql->Select ("*", "domaine", "Utilisateur='".$_SESSION['Utilisateur']."'", "", "", "", "");
|
||||
$CountEnregistrement = count ($ListTable);
|
||||
if ( $ListTable == FALSE ) { $CountEnregistrement = 0; }
|
||||
|
||||
?>
|
||||
<h3>Récapitulatif de vos noms de domaine externes <a style="border: 0px;" href="http://doc.kelio.org/gerer_les_noms_de_domaine"><img style="vertical-align:middle; border: 0px;" src="img/icons-panel/question.png" alt="Aide" title="Aide" /></a></h3>
|
||||
<p class="notice">
|
||||
Actuellement, vous avez <?php echo $CountEnregistrement; ?> domaine(s)<?php if ($_SESSION['Offre']['Domaine'] != '-1'):?> sur <?php echo $_SESSION['Offre']['Domaine']; ?> autorisé(s)<?php endif;?>.
|
||||
</p>
|
||||
<p>
|
||||
Cette catégorie sert à indiquer au serveur web que tel nom de domaine (ou sous-somaine) doit se rendre dans tel dossier.
|
||||
<br />Ainsi, vous pouvez ajouter plusieurs noms de domaine (ou sous-domaine) et gérer en parralèle plusieurs sites web dans votre compte.
|
||||
<br />Exemple : <strong><?php echo $_SESSION['Utilisateur']; ?>.kelio.org</strong> est relié à votre dossier <strong>/var/www/web/<?php echo $_SESSION['Utilisateur']; ?>/public/</strong>. Les données que vous déposerez dans ce dossier apparaitront sur ce site.
|
||||
</p>
|
||||
|
||||
<p>Passez votre souris sur le commentaire pour le voir en entier.<br />Idem pour le chemin, ainsi que le basedir</p>
|
||||
<p>
|
||||
Le statut "Création" signifie que votre domaine est en attente de création par notre robot. <br />
|
||||
Normalement, cette opération prend moins d'une heure.<br />
|
||||
Il en est de même pour le statut "Suppression".
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Adresse</th>
|
||||
<th>Date</th>
|
||||
<th>Statut</th>
|
||||
<th>Racine</th>
|
||||
<th>Basedir</th>
|
||||
<th>Commentaire</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
|
||||
if ( $ListTable == FALSE )
|
||||
{
|
||||
echo '<tr><td style="text-align: center; font-weight: bold;" colspan="6">Aucun domaine pour le moment</td></tr>';
|
||||
}
|
||||
else
|
||||
{
|
||||
for ($i=0; $i < $CountEnregistrement; $i++)
|
||||
{
|
||||
if ( $ListTable[$i]["Status"] == "1" )
|
||||
{
|
||||
$Status = "<img src=\"img/icons-panel/wait.png\" style=\"vertical-align: middle;\" alt=\"Création\" /> Création";
|
||||
}
|
||||
elseif ( $ListTable[$i]["Status"] == "2" )
|
||||
{
|
||||
$Status = "<img src=\"img/icons-panel/active.png\" style=\"vertical-align: middle;\" alt=\"Activé\" /> Activé";
|
||||
}
|
||||
elseif ( $ListTable[$i]["Status"] == "3" )
|
||||
{
|
||||
$Status = "<img src=\"img/icons-panel/delete.png\" style=\"vertical-align: middle;\" alt=\"Suppresion\" /> Suppression";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Status = "<img src=\"img/icons-panel/error.png\" style=\"vertical-align: middle;\" alt=\"Erreur\" /> Erreur";
|
||||
}
|
||||
|
||||
if ( strlen($ListTable[$i]["Adresse"]) > 10 )
|
||||
{
|
||||
$Adresse = substr($ListTable[$i]["Adresse"], 0, 10)." ...";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Adresse = $ListTable[$i]["Adresse"];
|
||||
}
|
||||
|
||||
if ( strlen($ListTable[$i]["Racine"]) > 16 )
|
||||
{
|
||||
$Racine = substr($ListTable[$i]["Racine"], 0 ,16)." ...";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Racine = $ListTable[$i]["Racine"];
|
||||
}
|
||||
|
||||
if ( strlen ($ListTable[$i]["OpenBasedir"]) > 16 )
|
||||
{
|
||||
$Basedir = substr($ListTable[$i]["OpenBasedir"], 0 ,16)." ...";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Basedir = $ListTable[$i]["OpenBasedir"];
|
||||
}
|
||||
|
||||
if ( strlen ($ListTable[$i]["Commentaire"]) > 13 )
|
||||
{
|
||||
$Commentaire = substr($ListTable[$i]["Commentaire"], 0 ,16)." ...";
|
||||
}
|
||||
elseif ( strlen ($ListTable[$i]["Commentaire"]) == 0)
|
||||
{
|
||||
$Commentaire = "-";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Commentaire = $ListTable[$i]["Commentaire"];
|
||||
}
|
||||
|
||||
|
||||
echo '
|
||||
<tr>
|
||||
<td><span style="cursor: help;" title="'.$ListTable[$i]["Adresse"].'">'.$Adresse.'</span></td>
|
||||
<td><span style="cursor: help;" title="'.date ("d-m-Y H:i:s",$ListTable[$i]["DateDeCreation"]).'">'.date("d-m-Y", $ListTable[$i]["DateDeCreation"]).'</span></td>
|
||||
<td>'.$Status.'</td>
|
||||
<td><span style="cursor: help;" title="'.$ListTable[$i]["Racine"].'">'.$Racine.'</span></td>
|
||||
<td><span style="cursor: help;" title="'.$ListTable[$i]["OpenBasedir"].'">'.$Basedir.'</span></td>
|
||||
<td><span style="cursor: help;" title="'.$ListTable[$i]["Commentaire"].'">'.$Commentaire.'</span></td>
|
||||
</tr>';
|
||||
|
||||
}
|
||||
}
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
60
0.9.0/panel/module/domaine/suppressiondomaine.php
Executable file
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
$ListTable = $MySql->Select ("*", "domaine", "Utilisateur='".$_SESSION['Utilisateur']."' AND Status='2'", "", "", "", "");
|
||||
|
||||
?>
|
||||
<h3>Supprimer un nom de domaine externe</h3>
|
||||
<p>
|
||||
En cas d'erreur, vous devrez attendre que l'adresse soit totalement supprimée du serveur pour pouvoir la recréer.<br />
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<form action="execution-7.html" method="post">
|
||||
<table cellpadding="5">
|
||||
<tr>
|
||||
<th>Domaine à supprimer :</th>
|
||||
<td>
|
||||
<select name="Domaine">
|
||||
<option selected="selected" value="">Sélectionnez</option>
|
||||
<?php
|
||||
if ( $ListTable == FALSE)
|
||||
{
|
||||
$TotalEnregistement = 0;
|
||||
}
|
||||
else {
|
||||
$TotalEnregistement = count ($ListTable);
|
||||
for ($i=0; $i < $TotalEnregistement; $i++)
|
||||
{
|
||||
echo "<option value='".$ListTable[$i]["Adresse"]."'>".$ListTable[$i]["Adresse"]."</option>\n";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Tapez "oui"</th>
|
||||
<td><input name="Confirmation" type="text" maxlength="3" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="submit" name="Submit" value="Supprimer le site web" />
|
||||
</form>
|
||||
</div>
|
||||
57
0.9.0/panel/module/email/ajoutalias.php
Executable file
@@ -0,0 +1,57 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
$CountAlias = $MySql->Count('id', 'email', "Utilisateur = '{$_SESSION['Utilisateur']}' AND Type = 'alias'");
|
||||
?>
|
||||
<h3>Ajouter un alias email</h3>
|
||||
<p>
|
||||
Un alias est une adresse email qui redirige tout le courriel vers un autre.
|
||||
</p>
|
||||
<p>
|
||||
Les alias emails sont compatible uniquement avec les domaines externes.<br />
|
||||
Avant d'ajouter un alias, veuillez au préalable lui définir une redirection de <strong>type MX</strong> pointant vers <strong><?php echo gethostbyname('mail.kelio.org'); ?> (mail.kelio.org)</strong>. Dans le cas contraire, il vous sera impossible d'ajouter de compte.
|
||||
</p>
|
||||
<p>
|
||||
L'alias sera créé dans l'heure qui suit.
|
||||
</p>
|
||||
|
||||
<?php if ( ($CountAlias < $_SESSION['Offre']['AliasEmail']) or ($_SESSION['Offre']['AliasEmail'] == '-1')): ?>
|
||||
<div>
|
||||
<form action="execution-9.html" method="post">
|
||||
<table cellpadding="5">
|
||||
<tr>
|
||||
<th>Courriel</th>
|
||||
<td><input name="Nom" type="text" maxlength="60" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Pointage</th>
|
||||
<td><input name="Pointage" type="text" maxlength="60" /></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Commentaire </th>
|
||||
<td><input name="Commentaire" type="text" maxlength="50" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<input type="submit" name="Submit" value="Créer l'alias email" />
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<p>Désolé, vous ne pouvez plus ajouter d'alias. Votre offre ne vous le permet pas.</p>
|
||||
<?php endif;?>
|
||||
59
0.9.0/panel/module/email/ajoutcompte.php
Executable file
@@ -0,0 +1,59 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
$CountMailbox = $MySql->Count('id', 'email', "Utilisateur = '{$_SESSION['Utilisateur']}' AND Type = 'compte'");
|
||||
?>
|
||||
<h3>Ajouter un compte email</h3>
|
||||
<p>
|
||||
Le compte sera hebergé par Kelio, vous pourrez y accéder par <a href="http://webmail.kelio.org">notre webmail</a> ou via les protocoles IMAP/POP3 en utilisant le serveur <strong>mail.kelio.org</strong>.<br />
|
||||
Vous pourrez envoyer des emails depuis votre client de messagerie en utilisant le protocole SMTP sans authentification (principe "pop before smtp") via le serveur <strong>mail.kelio.fr</strong>.<br />
|
||||
Notez que notre système de messagerie est équipé d'un système anti-spam (technologie : greylisting), de ce fait, la réception des emails peut accuser d'un retard d'environ une heure.</p>
|
||||
<p>
|
||||
Les comptes emails sont compatible uniquement avec les domaines externes.<br />
|
||||
Avant d'ajouter un compte, veuillez au préalable lui définir une redirection de <strong>type MX</strong> pointant vers <strong>mail.kelio.org</strong>. Dans le cas contraire, il vous sera impossible d'ajouter de compte.<br />
|
||||
N'hésitez pas à consulter notre forum pour trouver de l'aide.
|
||||
</p>
|
||||
<p>
|
||||
Le compte sera créé dans l'heure qui suit.
|
||||
</p>
|
||||
|
||||
<?php if ( ($CountMailbox < $_SESSION['Offre']['CompteEmail']) or ($_SESSION['Offre']['CompteEmail'] == '-1')): ?>
|
||||
<div>
|
||||
<form action="execution-8.html" method="post">
|
||||
<table cellpadding="5">
|
||||
<tr>
|
||||
<th>Courriel</th>
|
||||
<td style="width:400px"><input type="text" name="Nom" maxlength="60"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Mot de passe</th>
|
||||
<td><input type="text" name="MotDePasse" maxlength="9"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Commentaire</th>
|
||||
<td><input type="text" name="Commentaire" maxlength="50"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<input type="submit" name="Submit" value="Créer le compte email" />
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<p>Désolé, vous ne pouvez plus ajouter de compte. Votre offre ne vous le permet pas.</p>
|
||||
<?php endif;?>
|
||||
214
0.9.0/panel/module/email/recapitulatif.php
Executable file
@@ -0,0 +1,214 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
$ListCompte = $MySql->Select ("*", "email", "Utilisateur='".$_SESSION['Utilisateur']."' AND Type='compte'", "", "", "", "");
|
||||
$ListAlias = $MySql->Select ("*", "email", "Utilisateur='".$_SESSION['Utilisateur']."' AND Type='alias'", "", "", "", "");
|
||||
|
||||
$CountCompte = count($ListCompte);
|
||||
$CountAlias = count ($ListAlias);
|
||||
|
||||
if ( $ListCompte == FALSE ) { $CountCompte = 0; }
|
||||
if ( $ListAlias == FALSE ) { $CountAlias = 0; }
|
||||
|
||||
?>
|
||||
<h3>Récapitulatif de comptes et alias e-mail <a style="border: 0px;" href="http://doc.kelio.org/utiliser_la_messagerie"><img style="vertical-align:middle; border: 0px;" src="img/icons-panel/question.png" alt="Aide" title="Aide" /></a></h3>
|
||||
<p class="notice">
|
||||
Actuellement, vous avez <?php echo $CountCompte; ?><?php if ($_SESSION['Offre']['CompteEmail'] != '-1'):?>/<?php echo $_SESSION['Offre']['CompteEmail']?><?php endif; ?> compte(s) email et <?php echo $CountAlias; ?><?php if ($_SESSION['Offre']['AliasEmail'] != '-1'):?>/<?php echo $_SESSION['Offre']['AliasEmail']; ?><?php endif;?> alias.
|
||||
</p>
|
||||
<p>
|
||||
Passez votre souris sur le commentaire pour le voir en entier.<br /><br />
|
||||
Le statut "Création" signifie que votre compte/alias est en attente de création par notre robot. <br />
|
||||
Normalement, cette opération prend moins d'une heure.<br />
|
||||
Il en est de meme pour le statut "Suppression".
|
||||
</p>
|
||||
<h4>Liste des comptes email</h4>
|
||||
<div>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nom</th>
|
||||
<th>Date</th>
|
||||
<th>Statut</th>
|
||||
<th>Mot de passe</th>
|
||||
<th>Commentaire</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
|
||||
if ( $ListCompte == FALSE )
|
||||
{
|
||||
echo '
|
||||
<tr>
|
||||
<td colspan="6" style="text-align:center; font-weight: bold;">Il n\'y a aucun email pour le moment.</td>
|
||||
</tr>';
|
||||
}
|
||||
else
|
||||
{
|
||||
for ($i=0; $i < $CountCompte; $i++)
|
||||
{
|
||||
|
||||
if ( $ListCompte[$i]["Status"] == "1" )
|
||||
{
|
||||
$Status = "<img src=\"img/icons-panel/wait.png\" style=\"vertical-align: middle;\" alt=\"Création\" /> Création";
|
||||
}
|
||||
elseif ( $ListCompte[$i]["Status"] == "2" )
|
||||
{
|
||||
$Status = "<img src=\"img/icons-panel/active.png\" style=\"vertical-align: middle;\" alt=\"Activé\" /> Activé";
|
||||
}
|
||||
elseif ( $ListCompte[$i]["Status"] == "3" )
|
||||
{
|
||||
$Status = "<img src=\"img/icons-panel/delete.png\" style=\"vertical-align: middle;\" alt=\"Suppresion\" /> Suppression";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Status = "<img src=\"img/icons-panel/error.png\" style=\"vertical-align: middle;\" alt=\"Erreur\" /> Erreur";
|
||||
}
|
||||
|
||||
if ( strlen($ListCompte[$i]["Commentaire"]) > 19 )
|
||||
{
|
||||
$Commentaire = substr ($ListCompte[$i]["Commentaire"], 0, 19)." ...";
|
||||
}
|
||||
elseif ( strlen($ListCompte[$i]["Commentaire"]) == 0 )
|
||||
{
|
||||
$Commentaire = "-";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Commentaire = $ListCompte[$i]["Commentaire"];
|
||||
}
|
||||
|
||||
if ( strlen($ListCompte[$i]["Nom"]) > 16 )
|
||||
{
|
||||
$Nom = substr ($ListCompte[$i]["Nom"], 0, 16)." ...";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Nom = $ListCompte[$i]["Nom"];
|
||||
}
|
||||
|
||||
echo '
|
||||
<tr>
|
||||
<td><span style="cursor:help;" title="'.$ListCompte[$i]["Nom"].'">'.$Nom.'</span></td>
|
||||
<td><span style="cursor:help;" title="'.date ("d-m-Y H:i:s",$ListCompte[$i]["DateDeCreation"]).'">'.date("d-m-Y", $ListCompte[$i]["DateDeCreation"]).'</span></td>
|
||||
<td>'.$Status.'</td>
|
||||
<td>'.$ListCompte[$i]["Password"].'</td>
|
||||
<td>'.$Commentaire.'</td>
|
||||
</tr>';
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
<br />
|
||||
|
||||
<h4>Liste des alias email</h4>
|
||||
<div>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nom</th>
|
||||
<th>Date</th>
|
||||
<th>Statut</th>
|
||||
<th>Destination</th>
|
||||
<th>Commentaire</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
|
||||
if ( $ListAlias == FALSE )
|
||||
{
|
||||
echo '
|
||||
<tr>
|
||||
<td colspan="6" style="text-align:center; font-weight: bold;">Il n\'y a aucun alias pour le moment.</td>
|
||||
</tr>';
|
||||
}
|
||||
else
|
||||
{
|
||||
|
||||
for ($i=0; $i < $CountAlias; $i++)
|
||||
{
|
||||
|
||||
if ( $ListAlias[$i]["Status"] == "1" )
|
||||
{
|
||||
$Status = "<img src=\"img/icons-panel/wait.png\" style=\"vertical-align: middle;\" alt=\"Création\" /> Création";
|
||||
}
|
||||
elseif ( $ListAlias[$i]["Status"] == "2" )
|
||||
{
|
||||
$Status = "<img src=\"img/icons-panel/active.png\" style=\"vertical-align: middle;\" alt=\"Activé\" /> Activé";
|
||||
}
|
||||
elseif ( $ListAlias[$i]["Status"] == "3" )
|
||||
{
|
||||
$Status = "<img src=\"img/icons-panel/delete.png\" style=\"vertical-align: middle;\" alt=\"Suppresion\" /> Suppression";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Status = "<img src=\"img/icons-panel/error.png\" style=\"vertical-align: middle;\" alt=\"Erreur\" /> Erreur";
|
||||
}
|
||||
|
||||
if ( strlen($ListAlias[$i]["Nom"]) > 16 )
|
||||
{
|
||||
$Nom = substr ($ListAlias[$i]["Nom"], 0, 16)." ...";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Nom = $ListAlias[$i]["Nom"];
|
||||
}
|
||||
|
||||
if ( strlen($ListAlias[$i]["Pointage"]) > 16 )
|
||||
{
|
||||
$Pointage = substr ($ListAlias[$i]["Pointage"], 0, 16)." ...";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Pointage = $ListAlias[$i]["Pointage"];
|
||||
}
|
||||
|
||||
if ( strlen($ListAlias[$i]["Commentaire"]) > 16 )
|
||||
{
|
||||
$Commentaire = substr ($ListCompte[$i]["Commentaire"], 0, 16)." ...";
|
||||
}
|
||||
elseif ( strlen($ListAlias[$i]["Commentaire"]) == 0 )
|
||||
{
|
||||
$Commentaire = "-";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Commentaire = $ListAlias[$i]["Commentaire"];
|
||||
}
|
||||
|
||||
echo '
|
||||
<tr>
|
||||
<td><span style="cursor:help;" title="'.$ListAlias[$i]["Nom"].'">'.$Nom.'</span></td>
|
||||
<td><span style="cursor:help;" title="'.date ("d-m-Y H:i:s",$ListAlias[$i]["DateDeCreation"]).'">'.date("d-m-Y", $ListAlias[$i]["DateDeCreation"]).'</span></td>
|
||||
<td>'.$Status.'</td>
|
||||
<td><span style="cursor:help;" title="'.$ListAlias[$i]["Pointage"].'">'.$Pointage.'</span></td>
|
||||
<td><span style="cursor:help;" title="'.$ListAlias[$i]["Commentaire"].'">'.$Commentaire.'</span></td>
|
||||
</tr>';
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
64
0.9.0/panel/module/email/suppression.php
Executable file
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
$ListTable = $MySql->Select ("*", "email", "Utilisateur='".$_SESSION['Utilisateur']."' AND Status='2'", "", "", "", "");
|
||||
|
||||
?>
|
||||
<h3>Supprimer un compte ou un alias</h3>
|
||||
<p>
|
||||
Avant de supprimer un compte email, assurez vous d'avoir fais une backup de toute vos données.
|
||||
</p>
|
||||
<p>
|
||||
Une fois la suppression effectuée, le compte/alias ne sera plus actif, et le serveur refusera alors tous courriels.
|
||||
</p>
|
||||
|
||||
|
||||
<div>
|
||||
<form action="execution-10.html" method="post">
|
||||
<table cellpadding="5">
|
||||
<tr>
|
||||
<th>Email à supprimer</th>
|
||||
<td>
|
||||
<select name="Nom">
|
||||
<option selected="selected" value="">Sélectionnez</option>
|
||||
<?php
|
||||
if ( $ListTable == FALSE)
|
||||
{
|
||||
$TotalEnregistement = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
$TotalEnregistement = count ($ListTable);
|
||||
}
|
||||
|
||||
for ($i=0; $i < $TotalEnregistement; $i++)
|
||||
{
|
||||
echo "<option value='".$ListTable[$i]["Nom"]."'>".$ListTable[$i]["Nom"]." (".$ListTable[$i]["Type"].")</option>\n";
|
||||
}
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Tapez "oui"</th>
|
||||
<td><input name="Confirmation" type="text" maxlength="3" /></td>
|
||||
</tr>
|
||||
</table>
|
||||
<input type="submit" name="Submit" value="Supprimer l'email" />
|
||||
</form>
|
||||
</div>
|
||||
22
0.9.0/panel/module/erreur/desactive.php
Executable file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
?>
|
||||
<h3><img src="img/icons-panel/message-warn.png" style="vertical-align: middle;" alt="erreur" /> Cette page est désactivée.</h3>
|
||||
<p>Un administrateur a désactivé cette page. Pour plus d'information, contactez les administrateurs.</p>
|
||||
<p>Veuillez nous excuser pour la gêne occasionnée</p>
|
||||
22
0.9.0/panel/module/erreur/inconnu.php
Executable file
@@ -0,0 +1,22 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
?>
|
||||
<h3><img src="img/icons-panel/message-warn.png" style="vertical-align: middle;" alt="erreur" /> Cette page est inconnue sur le serveur</h3>
|
||||
<p>Si vous vouliez accéder à cette page en suivant un lien, veuillez le signaler aux administrateurs.</p>
|
||||
<p>Veuillez nous excuser pour la gêne occasionnée</p>
|
||||
60
0.9.0/panel/module/ftp/ajoutcompte.php
Executable file
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
$CountFTP = $MySql->Count('id', 'ftp', "Utilisateur='{$_SESSION['Utilisateur']}'");
|
||||
|
||||
?><h3>Ajouter un compte Ftp</h3>
|
||||
<p>
|
||||
Le nom de votre compte ftp ne doit contenir que les caractères a-z et 0-9 (3 caractères minimum et 9 maximum).<br />
|
||||
Au nom de votre compte ftp, sera rajouté automatiquement le préfixe : "<?php echo $_SESSION['Utilisateur'] ; ?>_" <br />
|
||||
Le mot de passe pour accéder à ce compte ne sera pas crypté, et accessible depuis le récapitulatif.<br />
|
||||
Le mot de passe, tout comme le nom, ne doit contenir que les caractères a-z et 0-9 (3 caractères minimim et 9 maximim).<br/>
|
||||
<strong>Le répertoire de publication par défaut de votre domaine <?php echo $_SESSION['Utilisateur'] ; ?>.kelio.org est /public</strong><br/>
|
||||
<br/>
|
||||
<strong>Votre dossier virtuel sera créé si il n'existe pas dans votre espace web.</strong>
|
||||
</p>
|
||||
|
||||
<?php if (($CountFTP < $_SESSION['Offre']['Ftp']) or ($_SESSION['Offre']['Ftp'] == '-1')): ?>
|
||||
<div>
|
||||
<form action="execution-4.html" method="post">
|
||||
<table cellpadding="5">
|
||||
<tr>
|
||||
<th>Nom du compte</th>
|
||||
<td><?php echo $_SESSION['Utilisateur'] ; ?>_<input type="text" name="Nom" maxlength="9"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Mot de passe</th>
|
||||
<td><input type="text" name="MotDePasse" maxlength="9"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Chemin</th>
|
||||
<td><input type="text" name="Chemin" value="/" maxlength="70"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Commentaire</th>
|
||||
<td><input type="text" name="Commentaire" maxlength="50"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<input type="submit" name="Submit" value="Créer le compte ftp" />
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<p>Désolé, vous ne pouvez plus ajouter de compte(s) FTP. Votre offre ne vous le permet pas.</p>
|
||||
<?php endif;?>
|
||||
116
0.9.0/panel/module/ftp/recapitulatif.php
Executable file
@@ -0,0 +1,116 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
$ListTable = $MySql->Select ("*", "ftp", "Utilisateur='".$_SESSION['Utilisateur']."'", "", "", "", "");
|
||||
$CountEnregistrement = count ($ListTable);
|
||||
if ( $ListTable == FALSE ) { $CountEnregistrement = 0; }
|
||||
|
||||
?>
|
||||
<h3>Récapitulatif de vos comptes Ftp <a style="border: 0px;" href="http://doc.kelio.org/publier_ses_fichiers"><img style="vertical-align:middle; border: 0px;" src="img/icons-panel/question.png" alt="Aide" title="Aide" /></a></h3>
|
||||
<p class="notice">
|
||||
Actuellement, vous avez <?php echo $CountEnregistrement ; ?> compte(s)<?php if ($_SESSION['Offre']['Ftp'] != '-1'):?> ftp sur <?php echo $_SESSION['Offre']['Ftp']; ?> autorisé(s)<?php endif;?>.
|
||||
</p>
|
||||
<p>
|
||||
Passez votre souris sur le commentaire pour le voir en entier.<br />
|
||||
Idem pour le chemin</p>
|
||||
<p>
|
||||
Le statut "Création ..." signifie que votre compte FTP est en attente de création par notre robot. <br />
|
||||
Normalement, cette opération prend moins d'une heure.<br />
|
||||
Il en est de meme pour le statut "Suppression ...".
|
||||
</p>
|
||||
<p><strong>Le dossier de publication de votre domaine <?php echo $_SESSION['Utilisateur']; ?>.kelio.org est /public</strong></p>
|
||||
|
||||
<div>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nom</th>
|
||||
<th>Date</th>
|
||||
<th>Statut</th>
|
||||
<th>Mot de passe</th>
|
||||
<th>Chemin</th>
|
||||
<th>Commentaire</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
|
||||
if ( $ListTable == FALSE )
|
||||
{
|
||||
echo '<tr><td style="text-align: center; font-weight: bold;" colspan="6">Aucun compte ftp pour le moment</td></tr>';
|
||||
}
|
||||
else
|
||||
{
|
||||
for ($i=0; $i < $CountEnregistrement; $i++)
|
||||
{
|
||||
if ( $ListTable[$i]["Status"] == "1" )
|
||||
{
|
||||
$Status = "<img src=\"img/icons-panel/wait.png\" style=\"vertical-align: middle;\" alt=\"Création\" /> Création";
|
||||
}
|
||||
elseif ( $ListTable[$i]["Status"] == "2" )
|
||||
{
|
||||
$Status = "<img src=\"img/icons-panel/active.png\" style=\"vertical-align: middle;\" alt=\"Activé\" /> Activé";
|
||||
}
|
||||
elseif ( $ListTable[$i]["Status"] == "3" )
|
||||
{
|
||||
$Status = "<img src=\"img/icons-panel/delete.png\" style=\"vertical-align: middle;\" alt=\"Suppresion\" /> Suppression";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Status = "<img src=\"img/icons-panel/error.png\" style=\"vertical-align: middle;\" alt=\"Erreur\" /> Erreur";
|
||||
}
|
||||
|
||||
if ( strlen($ListTable[$i]["Chemin"]) > 16 )
|
||||
{
|
||||
$Chemin = substr ($ListTable[$i]["Chemin"], 0, 16)." ...";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Chemin = $ListTable[$i]["Chemin"];
|
||||
}
|
||||
|
||||
if ( strlen($ListTable[$i]["Commentaire"]) > 16 )
|
||||
{
|
||||
$Commentaire = substr ($ListTable[$i]["Commentaire"], 0, 16)." ...";
|
||||
}
|
||||
elseif ( strlen($ListTable[$i]["Commentaire"]) == 0 )
|
||||
{
|
||||
$Commentaire = "-";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Commentaire = $ListTable[$i]["Commentaire"];
|
||||
}
|
||||
|
||||
echo '
|
||||
<tr>
|
||||
<td>'.$ListTable[$i]["Nom"].'</td>
|
||||
<td><span style="cursor: help;" title="'.date ("d-m-Y H:i:s",$ListTable[$i]["DateDeCreation"]).'">'.date("d-m-Y", $ListTable[$i]["DateDeCreation"]).'</span></td>
|
||||
<td>'.$Status.'</td>
|
||||
<td>'.$ListTable[$i]["Password"].'</td>
|
||||
<td><span style="cursor: help;" title="'.$ListTable[$i]["Chemin"].'">'.$Chemin.'</span></td>
|
||||
<td><span style="cursor: help;" title="'.$ListTable[$i]["Commentaire"].'">'.$Commentaire.'</span></td>
|
||||
</tr>' ;
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
65
0.9.0/panel/module/ftp/suppressioncompte.php
Executable file
@@ -0,0 +1,65 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
$ListTable = $MySql->Select ("*", "ftp", "Utilisateur='".$_SESSION['Utilisateur']."' AND Status='2'", "", "", "", "");
|
||||
|
||||
?>
|
||||
<h3>Supprimer un compte ftp</h3>
|
||||
<p>
|
||||
En cas d'erreur, vous devrez attendre que le compte soit totalement supprimé du serveur pour pouvoir le recréer.<br />
|
||||
Afin d'éviter toute erreur, vous devrez entrer le mot de passe du compte. (vous pouvez le voir sur la page "Récapitulatif").
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<form action="execution-5.html" method="post">
|
||||
<table cellpadding="5">
|
||||
<tr>
|
||||
<th>Compte à supprimer</th>
|
||||
<td>
|
||||
<select name="Nom">
|
||||
<option selected="selected" value="">Sélectionnez</option>
|
||||
<?php
|
||||
if ( $ListTable == FALSE)
|
||||
{
|
||||
$TotalEnregistement = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
$TotalEnregistement = count ($ListTable);
|
||||
}
|
||||
|
||||
for ($i=0; $i < $TotalEnregistement; $i++)
|
||||
{
|
||||
echo "<option value='".$ListTable[$i]["Nom"]."'>".$ListTable[$i]["Nom"]."</option>\n";
|
||||
}
|
||||
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Mot de passe</th>
|
||||
<td><input type="text" name="MotDePasse" maxlength="9"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<input type="submit" name="Submit" value="Supprimer le compte FTP" />
|
||||
|
||||
</form>
|
||||
</div>
|
||||
53
0.9.0/panel/module/mysql/ajoutbdd.php
Executable file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
$CountDB = $MySql->Count('id', 'basededonnee', "Utilisateur='{$_SESSION['Utilisateur']}'");
|
||||
?>
|
||||
<h3>Ajouter une base de données</h3>
|
||||
<p>
|
||||
Le nom de votre base de données ne doit contenir que les caractères a-z et 0-9 (3 caractères minimum et 6 maximum).<br />
|
||||
Au nom de votre base de données, sera rajouté automatiquement le préfixe : "<?php echo $_SESSION['Utilisateur'] ; ?>_" <br />
|
||||
Le mot de passe pour accéder à cette nouvelle base de données ne sera pas crypté, et accessible depuis le récapitulatif.<br />
|
||||
Le mot de passe, tout comme le nom, ne doit contenir que les caractères a-z et 0-9 (3 caractères minimum et 9 maximum).
|
||||
</p>
|
||||
|
||||
<?php if (($CountDB < $_SESSION['Offre']['BaseDeDonnees']) or ($_SESSION['Offre']['BaseDeDonnees'] == '-1')): ?>
|
||||
<div>
|
||||
<form action="execution-2.html" method="post">
|
||||
<table cellpadding="5">
|
||||
<tr>
|
||||
<th>Nom</th>
|
||||
<td style="width:400px"><?php echo $_SESSION['Utilisateur'] ; ?>_<input type="text" name="Nom" maxlength="6"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Mot de passe</th>
|
||||
<td><input type="text" name="MotDePasse" maxlength="9"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Commentaire</th>
|
||||
<td><input type="text" name="Commentaire" maxlength="50"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<input type="submit" name="Submit" value="Créer la base de données" />
|
||||
|
||||
</form>
|
||||
</div>
|
||||
<?php else: ?>
|
||||
<p>Désolé, vous ne pouvez plus ajouter de base(s) de données. Votre offre ne vous le permet pas.</p>
|
||||
<?php endif;?>
|
||||
102
0.9.0/panel/module/mysql/recapitulatif.php
Executable file
@@ -0,0 +1,102 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
$ListTable = $MySql->Select ("*", "basededonnee", "Utilisateur='".$_SESSION['Utilisateur']."'", "", "", "", "");
|
||||
$CountTable = count ($ListTable);
|
||||
if ( $ListTable == FALSE ) { $CountTable = 0; }
|
||||
?>
|
||||
<h3>Récapitulatif de vos bases de données MySql <a style="border: 0px;" href="http://doc.kelio.org/gerer_les_bases_de_donnees"><img style="vertical-align:middle; border: 0px;" src="img/icons-panel/question.png" alt="Aide" title="Aide" /></a></h3>
|
||||
<p class="notice">
|
||||
Actuellement, vous avez <?php echo $CountTable; ?> base(s) de données<?php if ($_SESSION['Offre']['BaseDeDonnees'] != '-1'):?> sur <?php echo $_SESSION['Offre']['BaseDeDonnees']; ?> autorisée(s)<?php endif;?>.
|
||||
</p>
|
||||
<p>
|
||||
Passez votre souris sur le commentaire pour le voir en entier.<br /><br />
|
||||
Le statut "Création" signifie que votre base de données est en attente de création par notre robot. <br />
|
||||
Normalement, cette opération prend moins d'une heure.<br />
|
||||
Il en est de meme pour le statut "Suppression".
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<table>
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Nom</th>
|
||||
<th>Date</th>
|
||||
<th>Statut</th>
|
||||
<th>Mot de passe</th>
|
||||
<th>Commentaire</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php
|
||||
|
||||
if ( $ListTable == FALSE )
|
||||
{
|
||||
echo '
|
||||
<tr><td style="text-align: center; font-weight: bold; colspan="5">Aucune base de données pour le moment</td></tr>' ;
|
||||
}
|
||||
else
|
||||
{
|
||||
for ($i=0; $i < $CountTable; $i++)
|
||||
{
|
||||
if ( $ListTable[$i]["Status"] == "1" )
|
||||
{
|
||||
$Status = "<img src=\"img/icons-panel/wait.png\" style=\"vertical-align: middle;\" alt=\"Création\" /> Création";
|
||||
}
|
||||
elseif ( $ListTable[$i]["Status"] == "2" )
|
||||
{
|
||||
$Status = "<img src=\"img/icons-panel/active.png\" style=\"vertical-align: middle;\" alt=\"Activé\" /> Activé";
|
||||
}
|
||||
elseif ( $ListTable[$i]["Status"] == "3" )
|
||||
{
|
||||
$Status = "<img src=\"img/icons-panel/delete.png\" style=\"vertical-align: middle;\" alt=\"Suppresion\" /> Suppression";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Status = "<img src=\"img/icons-panel/error.png\" style=\"vertical-align: middle;\" alt=\"Erreur\" /> Erreur";
|
||||
}
|
||||
|
||||
if ( strlen($ListTable[$i]["Commentaire"]) > 16 )
|
||||
{
|
||||
$Commentaire = substr ($ListTable[$i]["Commentaire"], 0, 16)." ...";
|
||||
}
|
||||
elseif ( strlen($ListTable[$i]["Commentaire"]) == 0 )
|
||||
{
|
||||
$Commentaire = "-";
|
||||
}
|
||||
else
|
||||
{
|
||||
$Commentaire = $ListTable[$i]["Commentaire"];
|
||||
}
|
||||
|
||||
echo '
|
||||
<tr>
|
||||
<td>'.$ListTable[$i]["Nom"].'</td>
|
||||
<td><span style="cursor: help;" title="'.date ("d-m-Y H:i:s",$ListTable[$i]["DateDeCreation"]).'">'.date("d-m-Y", $ListTable[$i]["DateDeCreation"]).'</span></td>
|
||||
<td>'.$Status.'</td>
|
||||
<td>'.$ListTable[$i]["Password"].'</td>
|
||||
<td><span style="cursor: help;" title="'.$ListTable[$i]["Commentaire"].'">'.$Commentaire.'</span></td>
|
||||
</tr>';
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
66
0.9.0/panel/module/mysql/suppressionbdd.php
Executable file
@@ -0,0 +1,66 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
$ListTable = $MySql->Select ("*", "basededonnee", "Utilisateur='".$_SESSION['Utilisateur']."' AND Status='2'", "", "", "", "");
|
||||
|
||||
?>
|
||||
<h3>Supprimer une base de données</h3>
|
||||
<p>
|
||||
Attention, une fois votre base de données supprimée, vous ne pourrez plus revenir sur votre choix.<br />
|
||||
Pensez à faire une sauvegarde avant de la mettre en attente de suppression.
|
||||
<br /> Seules les bases de données ayant leur statut "activé" peuvent être supprimées. Si ce n'est pas le cas, veuillez attendre que leur statut passe à "activé"<br />
|
||||
Afin d'éviter toute erreur, vous devrez entrer le mot de passe de celle-ci. (vous pouvez le voir sur la page "Récapitulatif").
|
||||
</p>
|
||||
|
||||
<div>
|
||||
<form action="execution-3.html" method="post">
|
||||
<table cellpadding="5">
|
||||
<tr>
|
||||
<th>Base à supprimer</th>
|
||||
<td>
|
||||
<select name="Base">
|
||||
<option selected="selected" value="">Sélectionnez</option>
|
||||
<?php
|
||||
if ( $ListTable == FALSE)
|
||||
{
|
||||
$TotalEnregistement = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
$TotalEnregistement = count ($ListTable);
|
||||
}
|
||||
|
||||
for ($i=0; $i < $TotalEnregistement; $i++)
|
||||
{
|
||||
echo "<option value='".$ListTable[$i]["Nom"]."'>".$ListTable[$i]["Nom"]."</option>\n";
|
||||
}
|
||||
|
||||
?>
|
||||
</select>
|
||||
</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th>Mot de passe</th>
|
||||
<td><input type="text" name="MotDePasse" maxlength="9"></td>
|
||||
</tr>
|
||||
</table>
|
||||
|
||||
<input type="submit" name="Submit" value="Supprimer la base de données" />
|
||||
|
||||
</form>
|
||||
</div>
|
||||
62
0.9.0/panel/resultat.php
Executable file
@@ -0,0 +1,62 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
session_start ();
|
||||
|
||||
// Inclusion du core
|
||||
require ('system/core.php');
|
||||
|
||||
|
||||
if ( isset($_SESSION['Resultat']) )
|
||||
{
|
||||
$Message = $_SESSION['Resultat'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$Message = "Aucun message a afficher";
|
||||
}
|
||||
|
||||
if ( isset($_SESSION['Lien']) )
|
||||
{
|
||||
$Lien = $_SESSION['Lien'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$Lien = "Page.html";
|
||||
}
|
||||
|
||||
?>
|
||||
<!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">
|
||||
<head>
|
||||
<meta http-equiv="content-type" content="text/html; charset=UTF-8" >
|
||||
<title>panel.kelio.org : information</title>
|
||||
<link href="css/screen.css" rel="stylesheet" type="text/css" />
|
||||
</head>
|
||||
|
||||
<body style="background-color: #ddd;">
|
||||
<div style="margin: auto; width: 50%;">
|
||||
<p class="error" style="margin: 100px; text-align: center; font-size: large;">
|
||||
<img alt="stop" src="img/icons-panel/stop.png" /><br/><br/>
|
||||
<?php echo $Message; ?>
|
||||
<br/><br/>
|
||||
<a style="font-size: small;" href="<?php echo $Lien; ?>">Retour à la page précédente</a>
|
||||
</p>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
261
0.9.0/panel/system/class/mysql.php
Executable file
@@ -0,0 +1,261 @@
|
||||
<?php
|
||||
// +----------------------------------------------------------------------+
|
||||
// | Class de connexion Base de donn?es MySQL |
|
||||
// +----------------------------------------------------------------------+
|
||||
// | 5 Septembre 2004 |
|
||||
// +----------------------------------------------------------------------+
|
||||
// | Ceci est une classe pour la cr?ation d'objet de connexion ? une |
|
||||
// | base de donn?e MySQL, ainsi que des m?thodes pour la gestion |
|
||||
// | et les diff?rentes possibilit?s de s?lection. |
|
||||
// +----------------------------------------------------------------------+
|
||||
// | Auteur: Nottet Thomas |
|
||||
// +----------------------------------------------------------------------+
|
||||
// | Remarque: Tous les arguments des m?thodes sont de types STRING |
|
||||
// +----------------------------------------------------------------------+
|
||||
//
|
||||
|
||||
class Mysql
|
||||
{
|
||||
function Mysql($srv,$db,$usr,$pwd) //Constructeur
|
||||
{
|
||||
/* Ouverture d'une connexion ? un serveur MySQL et
|
||||
selection de la table ? utiliser
|
||||
|
||||
$srv = nom du serveur MySQL
|
||||
$db = Base de donn?es ? utiliser
|
||||
$usr = nom d'utlisateur du serveur MySQL
|
||||
$pwd = mot de passe de cette utilisateur
|
||||
*/
|
||||
|
||||
$this->db=$db;
|
||||
$this->id_connect=@mysql_connect($srv,$usr,$pwd);
|
||||
$dbselect=@mysql_select_db($this->db, $this->id_connect);
|
||||
if(!$dbselect)
|
||||
{
|
||||
$this->Close();
|
||||
$this->id_connect=false;
|
||||
}
|
||||
}
|
||||
|
||||
public function Close()
|
||||
{
|
||||
@mysql_close($this->id_connect);
|
||||
}
|
||||
|
||||
public function Select($champs,$tables,$conditions,$group,$order,$nbrec,$liminf)
|
||||
/* Effectue une requ?te SELECT sur la table choisie
|
||||
|
||||
RETOUR: une matrice (nbre de records X nbre de champs)
|
||||
false en cas d'?chec ou 0 enregistrement
|
||||
|
||||
$champs = une liste des champs s?par?s par ,
|
||||
$tables = une liste des tables s?par?es par , avec alias si n?cessaire
|
||||
$conditions = liste des conditions s?par?s par des op?rateurs logiques
|
||||
$group = champ(s) sur le(s)quel(s) sera effectu? un regroupement
|
||||
$order = champ(s) sur le(s)quel(s) seront tri?s les enregistrements
|
||||
(+ ASC pour croissant et DESC pour d?croissant)
|
||||
$liminf = index du premier enregistrement de l'intervalle ? retourner
|
||||
$nbrec = nombre d'enregistrements ? retourner
|
||||
*/
|
||||
{
|
||||
$this->total_req++;
|
||||
|
||||
$query="SELECT ".$champs." FROM ".$tables;
|
||||
if(!empty($conditions))
|
||||
{
|
||||
$query=$query." WHERE ".$conditions;
|
||||
}
|
||||
if(!empty($group))
|
||||
{
|
||||
$query=$query." GROUP BY ".$group;
|
||||
}
|
||||
if(!empty($order))
|
||||
{
|
||||
$query=$query." ORDER BY ".$order;
|
||||
}
|
||||
if(!empty($nbrec))
|
||||
{
|
||||
if(!empty($liminf))
|
||||
{
|
||||
$query=$query." LIMIT ".$liminf.", ".$nbrec;
|
||||
}
|
||||
else
|
||||
{
|
||||
$query=$query." LIMIT ".$nbrec;
|
||||
}
|
||||
}
|
||||
if($this->id_connect != false)
|
||||
{
|
||||
$res=@mysql_query($query, $this->id_connect);
|
||||
if (empty($res))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
$nbRows=@mysql_num_rows($res);
|
||||
if ($nbRows==0)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
for($i=0;$i<$nbRows;$i++)
|
||||
{
|
||||
$enregs[$i]=@mysql_fetch_array($res, MYSQL_ASSOC);
|
||||
}
|
||||
return $enregs;
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
public function Count($champs,$tables,$conditions) {
|
||||
$this->total_req++;
|
||||
$query = "SELECT COUNT(".$champs.") AS count FROM ".$tables;
|
||||
if(!empty($conditions)) {
|
||||
$query.= " WHERE ".$conditions;
|
||||
}
|
||||
$res = @mysql_query($query, $this->id_connect);
|
||||
|
||||
if($res) {
|
||||
$res2 = mysql_fetch_array($res);
|
||||
return $res2['count'];
|
||||
}
|
||||
else {
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
|
||||
public function Insert($champs,$valeurs,$table)
|
||||
/* Effectue une requ?te INSERT sur une table de la
|
||||
base s?lectionn?e
|
||||
|
||||
RETOUR : True en cas de r?ussite
|
||||
False en cas d'?chec
|
||||
|
||||
$champs = une liste des champs s?par?s par ,
|
||||
$valeurs = une liste de valeurs pour les champs correspondant s?par?s par ,
|
||||
$table = la table dans laquelle il faut ins?rer les enregistrements
|
||||
*/
|
||||
{
|
||||
$this->total_req++;
|
||||
|
||||
$query="INSERT INTO ".$table." (".$champs.")
|
||||
VALUES (".$valeurs.")";
|
||||
if($this->id_connect != false)
|
||||
{
|
||||
$res= @mysql_query($query, $this->id_connect);
|
||||
if ($res)
|
||||
{
|
||||
return true;
|
||||
}
|
||||
else
|
||||
{
|
||||
return mysql_error();
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return mysql_error();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public function Delete($table,$conditions)
|
||||
/* Effectue une requ?te DELETE sur une table de la
|
||||
base s?lectionn?e
|
||||
|
||||
RETOUR : Le nombre d'enregistrements supprim?s
|
||||
False en cas d'?chec
|
||||
|
||||
$table = la table dans laquelle il faut ins?rer les enregistrements
|
||||
$conditions = liste des conditions s?par?s par des op?rateurs logiques
|
||||
*/
|
||||
{
|
||||
$this->total_req++;
|
||||
|
||||
$query="DELETE FROM ".$table;
|
||||
if(!empty($conditions))
|
||||
{
|
||||
$query=$query." WHERE ".$conditions;
|
||||
}
|
||||
|
||||
if($this->id_connect != false)
|
||||
{
|
||||
$res=@mysql_query($query, $this->id_connect);
|
||||
if (empty($res))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
return mysql_affected_rows($this->id_connect);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public function Update($tables,$champs,$valeurs,$conditions)
|
||||
/* Effectue une requ?te UPDATE sur une table de la
|
||||
base s?lectionn?e
|
||||
|
||||
RETOUR : Le nombre d'enregistrements mis ? jour
|
||||
False en cas d'?chec
|
||||
|
||||
$tables = listes de tables dans lesquelles il faut mettre ? jour les enregistrements
|
||||
$champs = Champs ? mettre ? jour : soit une valeur
|
||||
soit un vecteur si il y a plusieurs champs
|
||||
$valeurs = Valeurs pour mettre ? jour : soit une valeur
|
||||
soit un vecteur si il y a plusieurs champs
|
||||
$conditions = liste des conditions s?par?s par des op?rateurs logiques
|
||||
*/
|
||||
{
|
||||
$this->total_req++;
|
||||
|
||||
$query="UPDATE ".$tables." ";
|
||||
$nbchamps=count($champs);
|
||||
if ($nbchamps!=0)
|
||||
{
|
||||
if ($nbchamps==1)
|
||||
{
|
||||
$query=$query."SET ".$champs."='".$valeurs."' ";
|
||||
}
|
||||
else
|
||||
{
|
||||
$query=$query."SET ".$champs[0]."='".$valeurs[0]."'";
|
||||
for($i=1;$i<$nbchamps;$i++)
|
||||
{
|
||||
$query=$query.", ".$champs[$i]."=".$valeurs[$i];
|
||||
}
|
||||
}
|
||||
}
|
||||
if(!empty($conditions))
|
||||
{
|
||||
$query=$query." WHERE ".$conditions;
|
||||
}
|
||||
if($this->id_connect != false)
|
||||
{
|
||||
$res=@mysql_query($query, $this->id_connect);
|
||||
if (empty($res))
|
||||
{
|
||||
return false;
|
||||
}
|
||||
else
|
||||
{
|
||||
return @mysql_affected_rows($this->id_connect);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
private $db;
|
||||
public $id_connect;
|
||||
public $total_req = 0;
|
||||
}
|
||||
|
||||
?>
|
||||
53
0.9.0/panel/system/core.php
Executable file
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
// Page core du systeme
|
||||
// Elle contient toute les pages a inclures
|
||||
|
||||
// Demarrage de la session
|
||||
session_start ();
|
||||
$_SESSION['Utilisateur'] = 'test';
|
||||
$_SESSION['Hash'] = '098f6bcd4621d373cade4e832627b4f6'; // MD5: test
|
||||
$_SESSION['Offre'] = 8;
|
||||
|
||||
// Inclusion de la classe MySql
|
||||
require ('system/class/mysql.php');
|
||||
$MySql = new MySql ('localhost', 'root', 'keliopanel', '');
|
||||
if ( $MySql->id_connect == FALSE ) { die ("Erreur d'execution (01)"); }
|
||||
|
||||
// Différents états des composants du panel
|
||||
define("KELIO_WAIT", "1");
|
||||
define("KELIO_ACTIVE", "2");
|
||||
define("KELIO_DELETE", "3");
|
||||
define("KELIO_ERROR", "4");
|
||||
|
||||
// Inclusion des functions
|
||||
require ('system/function.php');
|
||||
|
||||
|
||||
// Verification des autorisations sur la page
|
||||
require ('system/librairie/lib.securite.php');
|
||||
|
||||
//deconnexion
|
||||
if ( isset($_GET['action']) && $_GET['action'] == 'deconnexion' )
|
||||
{
|
||||
disconnect();
|
||||
}
|
||||
|
||||
?>
|
||||
102
0.9.0/panel/system/function.php
Executable file
@@ -0,0 +1,102 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
// Page contenant toute les functions
|
||||
|
||||
// Function de redirection
|
||||
function Redirect ($Destination)
|
||||
{
|
||||
header ('Location: '.$Destination);
|
||||
die ("Fin des op<6F>rations");
|
||||
}
|
||||
|
||||
// Function de verificatio des form GET avec regex
|
||||
function VerifGET ($Get, $Regex, $TailleMIN, $TailleMAX)
|
||||
{
|
||||
if ( !empty($_GET[$Get]) )
|
||||
{
|
||||
if ( preg_match ($Regex, $_GET[$Get]) )
|
||||
{
|
||||
$Taille = strlen($_GET[$Get]);
|
||||
if ( ($Taille >= $TailleMIN) or ($TailleMIN == 0) )
|
||||
{
|
||||
if ( ($Taille <= $TailleMAX) or ($TailleMAX == 0) )
|
||||
{
|
||||
return "ChaineValide";
|
||||
}
|
||||
else
|
||||
{
|
||||
return "ChaineLongue";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return "ChaineCourte";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return "ChaineInvalide";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return "ChaineVide";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Function de verificatio des form POST avec regex
|
||||
function VerifPOST ($Get, $Regex, $TailleMIN, $TailleMAX)
|
||||
{
|
||||
if ( !empty($_POST[$Get]) )
|
||||
{
|
||||
if ( preg_match ($Regex, $_POST[$Get]) )
|
||||
{
|
||||
$Taille = strlen($_POST[$Get]);
|
||||
if ( ($Taille >= $TailleMIN) or ($TailleMIN == 0) )
|
||||
{
|
||||
if ( ($Taille <= $TailleMAX) or ($TailleMAX == 0) )
|
||||
{
|
||||
return "ChaineValide";
|
||||
}
|
||||
else
|
||||
{
|
||||
return "ChaineLongue";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return "ChaineCourte";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return "ChaineInvalide";
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
return "ChaineVide";
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
||||
?>
|
||||
104
0.9.0/panel/system/javascript.js
Executable file
@@ -0,0 +1,104 @@
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
h = 0;
|
||||
id = 0;
|
||||
c = 0;
|
||||
Menu = 1;
|
||||
|
||||
|
||||
function Derouler()
|
||||
{
|
||||
if(h != 0 && id != 0)
|
||||
{
|
||||
if(c <= h)
|
||||
{
|
||||
if(document.getElementById(id))
|
||||
{
|
||||
document.getElementById(id).style.height=c+'px';
|
||||
c++;
|
||||
setTimeout("Derouler()", 20);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
function Voir(div, taille)
|
||||
{
|
||||
if(document.getElementById(div))
|
||||
{
|
||||
document.getElementById(div).style.display = 'block';
|
||||
id = div;
|
||||
h = taille;
|
||||
Derouler();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
function Cache (div)
|
||||
{
|
||||
if ( document.getElementById(div).style.display == "" )
|
||||
{
|
||||
document.getElementById(div).style.display = "none";
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById(div).style.display = "";
|
||||
}
|
||||
}
|
||||
|
||||
function CacheMenu ()
|
||||
{
|
||||
if ( Menu == 0 )
|
||||
{
|
||||
document.getElementById('JS_menu').style.display = '';
|
||||
document.getElementById('contenu').style.width = '82%;';
|
||||
Menu = 1;
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById('JS_menu').style.display = 'none';
|
||||
document.getElementById('contenu').style.width = '100%;';
|
||||
Menu = 0;
|
||||
}
|
||||
}
|
||||
|
||||
function ChangeVision (id1, id2)
|
||||
{
|
||||
// alert ("DEBUG NOW");
|
||||
if ( document.getElementById(id1).style.display == '' )
|
||||
{
|
||||
document.getElementById(id1).style.display = 'none';
|
||||
document.getElementById(id2).style.display = '';
|
||||
}
|
||||
else
|
||||
{
|
||||
document.getElementById(id1).style.display = '';
|
||||
document.getElementById(id2).style.display = 'none';
|
||||
}
|
||||
}
|
||||
|
||||
/* Affiche ou cache une partie d'un formulaire */
|
||||
function Montre_Form (div)
|
||||
{
|
||||
document.getElementById(div).style.display = "";
|
||||
}
|
||||
function Cache_Form (div)
|
||||
{
|
||||
document.getElementById(div).style.display = "none";
|
||||
}
|
||||
76
0.9.0/panel/system/librairie/dns/ajoutdomaine.php
Executable file
@@ -0,0 +1,76 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
// Librairie contenant l'ajout de zone DNS
|
||||
|
||||
if ( VerifPOST('Domaine', '#^[a-z0-9.-]+\.[a-z]+$#', 3, 50) != 'ChaineValide' ){
|
||||
$_SESSION['Resultat'] = "La syntaxe du nom de domaine est invalide";
|
||||
$_SESSION['Lien'] = "Page-DNS-AjoutDomaine.html";
|
||||
Redirect ('resultat.html');
|
||||
} elseif ( VerifPOST("Domaine", "#kelio\.org#", 5, 120) == "ChaineValide") {
|
||||
$_SESSION['Resultat'] = "Vous ne pouvez ajouter kelio.org";
|
||||
$_SESSION['Lien'] = "Page-DNS-AjoutDomaine.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
$Commentaire = htmlspecialchars($_POST['Commentaire']);
|
||||
|
||||
if ( (VerifPOST("Racine", "#^/[.a-z0-9/_-]+/$#", 1, 120) != "ChaineValide") and (VerifPOST("Racine", "#^/$#", 1, 120) != "ChaineValide") ) {
|
||||
$_SESSION['Resultat'] = "La racine du nom de domaine est invalide";
|
||||
$_SESSION['Lien'] = "Page-DNS-AjoutDomaine.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
|
||||
if ( (VerifPOST("OpenBasedir", "#^/[.a-z0-9/_-]+/$#", 1, 120) != "ChaineValide") and (VerifPOST("OpenBasedir", "#^/$#", 1, 120) != "ChaineValide") ) {
|
||||
$_SESSION['Resultat'] = "L'Open Basedir du nom de domaine est invalide";
|
||||
$_SESSION['Lien'] = "Page-DNS-AjoutDomaine.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
|
||||
$VerifExistence = $MySql->Count('id', 'domaineinterdit', "Adresse='{$_POST['Domaine']}'", '', '', '', '');
|
||||
if ($VerifExistence >= 1) {
|
||||
$_SESSION['Resultat'] = "Ce nom de domaine ne vous appartient pas !";
|
||||
$_SESSION['Lien'] = "Page-DNS-AjoutDomaine.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
|
||||
$VerifExistence = $MySql->Count('id', 'domainedns', "Domaine='{$_POST['Domaine']}'", '', '', '', '');
|
||||
if ($VerifExistence >= 1) {
|
||||
$_SESSION['Resultat'] = "Ce nom de domaine existe deja sur Kelio";
|
||||
$_SESSION['Lien'] = "Page-DNS-AjoutDomaine.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
|
||||
$CountDns = $MySql->Count('id', 'domainedns', "Utilisateur='{$_SESSION['Utilisateur']}'");
|
||||
if ( ($_SESSION['Offre']['DomaineDns'] != '-1') and ($CountDns >= $_SESSION['Offre']['DomaineDns']) ) {
|
||||
$_SESSION['Resultat'] = "Votre offre ne vous permet pas d'ajouter plus de noms de domaine";
|
||||
$_SESSION['Lien'] = "Page-DNS-AjoutDomaine.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
|
||||
if($_POST['Mail'] == "autre")
|
||||
$Mail = $_POST['ServeurMail'];
|
||||
else
|
||||
$Mail = $_POST['Mail'];
|
||||
|
||||
$conteneur = 'Domaine, Utilisateur, Racine, OpenBasedir, Mail, Commentaire, DateDeCreation, Status';
|
||||
$contenu = "'{$_POST['Domaine']}', '{$_SESSION['Utilisateur']}', '{$_POST['Racine']}', '{$_POST['OpenBasedir']}', '{$Mail}', '{$Commentaire}', '".time()."', 1";
|
||||
$MySql->Insert ($conteneur,$contenu, "domainedns");
|
||||
Redirect ('Page-DNS-Recapitulatif.html');
|
||||
|
||||
?>
|
||||
143
0.9.0/panel/system/librairie/dns/ajoutsousdomaine.php
Executable file
@@ -0,0 +1,143 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
// Librairie contenant l'ajout de sous-zone DNS
|
||||
|
||||
if ( VerifPOST('Donnee', '#^[a-z0-9.-]+$#', 1, 50) != 'ChaineValide' ){
|
||||
$_SESSION['Resultat'] = "La syntaxe du sous domaine est invalide";
|
||||
$_SESSION['Lien'] = "Page-DNS-AjoutSousDomaine.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
|
||||
if ( VerifPOST('Domaine', "#kelio\.org#", 5, 120) == 'ChaineValide') {
|
||||
$_SESSION['Resultat'] = "Vous ne pouvez ajouter de sous domaine kelio.org";
|
||||
$_SESSION['Lien'] = "Page-DNS-AjoutSousDomaine.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
|
||||
$Commentaire = htmlspecialchars($_POST['Commentaire']);
|
||||
|
||||
// Un sous domaine peut-il être ajouté
|
||||
$CountDns = $MySql->Count('id', 'sousdomainedns', "Utilisateur='{$_SESSION['Utilisateur']}'");
|
||||
if ( ($_SESSION['Offre']['SousDomaineDns'] != '-1') and ($CountDns >= $_SESSION['Offre']['SousDomaineDns']) ) {
|
||||
$_SESSION['Resultat'] = "Votre offre ne vous permet pas d'ajouter plus de sous domaines";
|
||||
$_SESSION['Lien'] = "Page-DNS-AjoutSousDomaine.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
|
||||
// Le domaine appartient-il à quelqu'un d'autre
|
||||
$VerifExistence = $MySql->Count('id', 'domaineinterdit', "Adresse='{$_POST['Domaine']}'", '', '', '', '');
|
||||
if ($VerifExistence >= 1) {
|
||||
$_SESSION['Resultat'] = "Ce nom de domaine ne vous appartient pas !";
|
||||
$_SESSION['Lien'] = "Page-DNS-AjoutSousDomaine.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
|
||||
$VerifExistence = $MySql->Count('id', 'domaineinterdit', "Adresse='{$_POST['Donnee']}.{$_POST['Domaine']}'", '', '', '', '');
|
||||
if ($VerifExistence >= 1) {
|
||||
$_SESSION['Resultat'] = "Ce nom de domaine ne vous appartient pas !";
|
||||
$_SESSION['Lien'] = "Page-DNS-AjoutSousDomaine.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
|
||||
// Le nom de domaine existe-t-il
|
||||
$VerifZone = $MySql->Count('id', 'domainedns', "Utilisateur='{$_SESSION['Utilisateur']}' AND Domaine='{$_POST['Domaine']}' AND Status!='3'");
|
||||
if ($VerifZone == 0) {
|
||||
$_SESSION['Resultat'] = "Ce nom de domaine n'existe pas sur Kelio ou est en cours de suppression";
|
||||
$_SESSION['Lien'] = "Page-DNS-AjoutSousDomaine.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
|
||||
// Le sous domaine existe déjà
|
||||
$VerifExistence = $MySql->Count('id', 'sousdomainedns', "Type='{$_POST['Type']}' AND Donnee='{$_POST['Donnee']}' AND Domaine='{$_POST['Domaine']}'");
|
||||
if ($VerifExistence > 0) {
|
||||
$_SESSION['Resultat'] = "Ce sous domaine existe deja sur Kelio";
|
||||
$_SESSION['Lien'] = "Page-DNS-AjoutSousDomaine.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
|
||||
// Domaine pointant sur les serveurs Kerio
|
||||
if($_POST['Type'] == 1)
|
||||
{
|
||||
// Test de la racine
|
||||
if ( (VerifPOST("Racine", "#^/[.a-z0-9/_-]+/$#", 1, 120) != "ChaineValide") and (VerifPOST("Racine", "#^/$#", 1, 120) != "ChaineValide") ) {
|
||||
$_SESSION['Resultat'] = "La racine du sous domaine est invalide";
|
||||
$_SESSION['Lien'] = "Page-DNS-AjoutSousDomaine.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
|
||||
// Test de l'Open Basedir
|
||||
if ( (VerifPOST("OpenBasedir", "#^/[.a-z0-9/_-]+/$#", 1, 120) != "ChaineValide") and (VerifPOST("OpenBasedir", "#^/$#", 1, 120) != "ChaineValide") ) {
|
||||
$_SESSION['Resultat'] = "L'Open Basedir du sous domaine est invalide";
|
||||
$_SESSION['Lien'] = "Page-DNS-AjoutSousDomaine.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
|
||||
// Construction des données SQL
|
||||
$Racine = $_POST['Racine'];
|
||||
$OpenBasedir = $_POST['OpenBasedir'];
|
||||
$Type = 1;
|
||||
$Pointage = "";
|
||||
}
|
||||
// Domaine pointant à l'extérieur (de type CNAME, A ou AAAA)
|
||||
elseif(($_POST['Type'] == 2) && ($_POST['TypePointage'] > 0) && ($_POST['TypePointage'] < 4))
|
||||
{
|
||||
// Vérification pour un CNAME
|
||||
if(($_POST['TypePointage'] == 2) && (VerifPOST('Pointage', '#^[a-z0-9.-]+\.[a-z]+$#', 3, 50) == 'ChaineValide'))
|
||||
{
|
||||
// Construction des données SQL
|
||||
$Pointage = $_POST['Pointage'];
|
||||
}
|
||||
// Vérification pour A
|
||||
elseif(($_POST['TypePointage'] == 3) && (VerifPOST('Pointage', '#^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$#', 7, 15) == 'ChaineValide'))
|
||||
{
|
||||
// Construction des données SQL
|
||||
$Pointage = $_POST['Pointage'];
|
||||
}
|
||||
// Vérification pour AAAA
|
||||
/*elseif(($_POST['TypePointage'] == 4) && (VerifPOST('Pointage', '#^[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+$#', 7, 15) == 'ChaineValide'))
|
||||
{
|
||||
// Construction des données SQL
|
||||
$Pointage = $_POST['Pointage'];
|
||||
}*/
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Impossible de déterminer le pointage de ce sous domaine ".$POST['TypePointage'];
|
||||
$_SESSION['Lien'] = "Page-DNS-AjoutSousDomaine.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
|
||||
// Construction des données SQL
|
||||
$Racine = "";
|
||||
$OpenBasedir = "";
|
||||
$Type = $_POST['TypePointage'];
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Impossible de déterminer le pointage de ce sous domaine";
|
||||
$_SESSION['Lien'] = "Page-DNS-AjoutSousDomaine.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
|
||||
$conteneur = 'Domaine, Donnee, Utilisateur, Racine, OpenBasedir, Type, Pointage, Commentaire, DateDeCreation, Status';
|
||||
$contenu = "'{$_POST['Domaine']}', '{$_POST['Donnee']}', '{$_SESSION['Utilisateur']}', '{$Racine}', '{$OpenBasedir}', '{$Type}', '{$_POST['Pointage']}', '{$Commentaire}', '".time()."', 1";
|
||||
$MySql->Insert ($conteneur,$contenu, "sousdomainedns");
|
||||
Redirect ('Page-DNS-Recapitulatif.html');
|
||||
|
||||
?>
|
||||
70
0.9.0/panel/system/librairie/dns/suppression.php
Executable file
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
// Librairie contenant la suppression des zones / sous-zones
|
||||
if ( VerifPOST("Domaine", "# #", 3, 120) == "ChaineValide" )
|
||||
{
|
||||
// On est peut être en présence d'une sous-zone
|
||||
$base = "sousdomainedns";
|
||||
$champ = "Donnee";
|
||||
$_POST['Domaine'] = substr($_POST['Domaine'], 3, (strlen($_POST['Domaine']) - 3));
|
||||
}
|
||||
else
|
||||
{
|
||||
$base = "domainedns";
|
||||
$champ = "Domaine";
|
||||
}
|
||||
|
||||
if ( VerifPOST("Domaine", "#^[a-z0-9.-]+$#", 1, 120) != "ChaineValide" )
|
||||
{
|
||||
$_SESSION['Resultat'] = "'".$_POST['Domaine']."' Aucun (sous-) domaine n'a été selectionné";
|
||||
$_SESSION['Lien'] = "Page-Dns-Suppression.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
|
||||
if ( VerifPOST("Confirmation", "#^oui$#", 3, 3) != "ChaineValide" )
|
||||
{
|
||||
$_SESSION['Resultat'] = "Le code de confirmation est incorrect";
|
||||
$_SESSION['Lien'] = "Page-Dns-Suppression.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
|
||||
$VerifExistence = $MySql->Select ("*", $base, $champ."='".$_POST['Domaine']."'", "", "", "", "");
|
||||
if ( $VerifExistence == FALSE )
|
||||
{
|
||||
$_SESSION['Resultat'] = "Ce (sous-) domaine n'existe pas";
|
||||
$_SESSION['Lien'] = "Page-Dns-Suppression.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
|
||||
if ( $VerifExistence[0]["Status"] != "2" )
|
||||
{
|
||||
$_SESSION['Resultat'] = "Ce (sous-) domaine n'est pas activé (ou deja en cours de suppression)";
|
||||
$_SESSION['Lien'] = "Page-Dns-Suppression.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
|
||||
$MySql->Update ($base, "Status", "3", $champ."='".$_POST['Domaine']."'");
|
||||
if($champ == "Domaine")
|
||||
{
|
||||
$MySql->Update ("sousdomainedns", "Status", "3", "Domaine='".$_POST['Domaine']."'");
|
||||
}
|
||||
|
||||
Redirect ('Page-Dns-Recapitulatif.html');
|
||||
|
||||
?>
|
||||
231
0.9.0/panel/system/librairie/domaine/ajoutdomaine.php
Executable file
@@ -0,0 +1,231 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
// Librairie contenant l'ajout de domaine
|
||||
|
||||
if ( VerifPOST("Adresse", "#^[a-z0-9.-]+\.[a-z]+$#", 5, 120) == "ChaineValide" )
|
||||
{
|
||||
if ( VerifPOST("Adresse", "#kelio\.org#", 5, 120) == "ChaineValide")
|
||||
{
|
||||
$_SESSION['Resultat'] = "Vous ne pouvez pas utiliser Kelio dans vos domaines !!!";
|
||||
$_SESSION['Lien'] = "Page-Domaine-AjoutDomaineExterne.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
else
|
||||
{
|
||||
if ( (VerifPOST("Racine", "#^/[.a-z0-9/_-]+/$#", 1, 120) == "ChaineValide") or
|
||||
(VerifPOST("Racine", "#^/$#", 1, 120) == "ChaineValide") )
|
||||
{
|
||||
if ( (VerifPOST("BaseDir", "#^/[.a-z0-9/_-]+/$#", 1, 120) == "ChaineValide") or
|
||||
(VerifPOST("BaseDir", "#^/$#", 1, 120) == "ChaineValide") )
|
||||
{
|
||||
if ( (VerifPOST("Commentaire", "#^[a-z0-9 ]+$#i", 1, 50) == "ChaineValide") or
|
||||
(VerifPOST("Commentaire", "#^[a-z0-9]+$#i", 1, 50) == "ChaineVide") )
|
||||
{
|
||||
if ( VerifPOST("Listage", "#^Oui|Non$#", 3, 3) == "ChaineValide" )
|
||||
{
|
||||
if ( (VerifPOST("mysqldefault_host", "#^[a-z0-9.-]+\.[a-z]+$#", 5, 50) == "ChaineValide") or
|
||||
(VerifPOST("mysqldefault_host", "#^[a-z0-9.-]+\.[a-z]+$#", 5, 50) == "ChaineVide") )
|
||||
{
|
||||
if ( (VerifPOST("mysqldefault_user", "#^[a-z0-9_]+$#", 3, 16) == "ChaineValide") or
|
||||
(VerifPOST("mysqldefault_user", "#^[a-z0-9_]+$#", 3, 16) == "ChaineVide") )
|
||||
{
|
||||
if ( (VerifPOST("mysqldefault_password", "#^[a-z0-9]+$#", 3, 16) == "ChaineValide") or
|
||||
(VerifPOST("mysqldefault_password", "#^[a-z0-9]+$#", 3, 16) == "ChaineVide") )
|
||||
{
|
||||
if ( (VerifPOST("temporaire", "#^/[a-z0-9/_-]+/$#", 1, 120) == "ChaineValide") or
|
||||
(VerifPOST("temporaire", "#^/[a-z0-9/_-]+/$#", 1, 120) == "ChaineVide") )
|
||||
{
|
||||
if ( (VerifPOST("sessions", "#^/[a-z0-9/_-]+/$#", 1, 120) == "ChaineValide") or
|
||||
(VerifPOST("sessions", "#^/[a-z0-9/_-]+/$#", 1, 120) == "ChaineVide") )
|
||||
{
|
||||
if ( VerifPOST("allow_url_fopen", "#^Oui|Non$#", 3, 3) == "ChaineValide" )
|
||||
{
|
||||
if ( VerifPOST("allow_url_include", "#^Oui|Non$#", 3, 3) == "ChaineValide" )
|
||||
{
|
||||
if ( VerifPOST("display_errors", "#^Oui|Non$#", 3, 3) == "ChaineValide" )
|
||||
{
|
||||
if ( VerifPOST("short_open_tag", "#^Oui|Non$#", 3, 3) == "ChaineValide" )
|
||||
{
|
||||
if ( VerifPOST("sessionauto_start", "#^Oui|Non$#", 3, 3) == "ChaineValide" )
|
||||
{
|
||||
if ( VerifPOST("magic_quotes_gpc", "#^Oui|Non$#", 3, 3) == "ChaineValide" )
|
||||
{
|
||||
if ( VerifPOST("register_globals", "#^Oui|Non$#", 3, 3) == "ChaineValide" )
|
||||
{
|
||||
$DetecteServeur = $MySql->Select ("*", "utilisateur", "Utilisateur='".$_SESSION['Utilisateur']."'", "", "", "", "");
|
||||
$VerificatinIP = gethostbyname ($_POST['Adresse']);
|
||||
//if ( $VerificatinIP == gethostbyname($DetecteServeur[0]["ServeurFichier"]) )
|
||||
// {
|
||||
$VerificationExistance = $MySql->Select ("*", "domaine", "Adresse='".$_POST["Adresse"]."'", "", "", "", "");
|
||||
if ( $VerificationExistance == FALSE )
|
||||
{
|
||||
$ListTable = $MySql->Select ("*", "domaine", "Utilisateur='".$_SESSION['Utilisateur']."'", "", "", "", "");
|
||||
$CountEnregistrement = count ($ListTable);
|
||||
if ( ($CountEnregistrement >= $_SESSION['Offre']['Domaine']) and ($_SESSION['Offre']['Domaine'] != '-1') ) {
|
||||
$_SESSION['Resultat'] = "D<EFBFBD>sol<EFBFBD>, votre offre ne vous permet pas d'ajouter plus de domaine(s).";
|
||||
$_SESSION['Lien'] = "Page-Domaine-SuppressionDomaineExterne.html";
|
||||
Redirect ('resultat.html');
|
||||
} else {
|
||||
$Conteneur = "Utilisateur, Adresse, OpenBasedir, Racine, Status, Listage, Commentaire, DateDeCreation, MysqlDefaultHost, MysqlDefaultUser, MysqlDefaultPassword, tmp, sessions, Allow_url_fopen, Allow_url_include, Session_auto_start, Magic_quotes_gpc, Register_globals, DisplayErrors, Short_Open_Tag";
|
||||
$Contenu = "'".$_SESSION['Utilisateur']."', '".$_POST['Adresse']."', '".$_POST['BaseDir']."', '".$_POST['Racine']."', '1', '".$_POST['Listage']."', '".$_POST['Commentaire']."', '".time()."', '".$_POST['mysqldefault_host']."', '".$_POST['mysqldefault_user']."', '".$_POST['mysqldefault_password']."', '".$_POST['temporaire']."', '".$_POST['sessions']."', '".$_POST['allow_url_fopen']."', '".$_POST['allow_url_include']."', '".$_POST['sessionauto_start']."', '".$_POST['magic_quotes_gpc']."', '".$_POST['register_globals']."', '".$_POST['display_errors']."', '".$_POST['short_open_tag']."'";
|
||||
|
||||
$MySql->Insert($Conteneur, $Contenu, 'domaine');
|
||||
Redirect ('Page-Domaine-Recapitulatif.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Le domaine existe deja sur un des serveurs";
|
||||
$_SESSION['Lien'] = "Page-Domaine-AjoutDomaineExterne.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
// }
|
||||
//else
|
||||
// {
|
||||
// $_SESSION['Resultat'] = "Le domaine ne pointe pas sur le serveur";
|
||||
// $_SESSION['Lien'] = "Page-Domaine-AjoutDomaineExterne.html";
|
||||
// Redirect ('resultat.html');
|
||||
// }
|
||||
} // Fin de la verif register_globals
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "L'option php 'register_globals' est incorrecte.";
|
||||
$_SESSION['Lien'] = "Page-Domaine-AjoutDomaineExterne.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
} // Fin de la verif magic_quotes_gpc
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "L'option php 'magic_quotes_gpc' est incorrecte.";
|
||||
$_SESSION['Lien'] = "Page-Domaine-AjoutDomaineExterne.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
} // Fin de la verif sessionauto_start
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "L'option php 'session.auto_start' est incorrecte.";
|
||||
$_SESSION['Lien'] = "Page-Domaine-AjoutDomaineExterne.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
} // Fin de la verif short_open_tag
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "L'option php 'short_open_tag' est incorrecte.";
|
||||
$_SESSION['Lien'] = "Page-Domaine-AjoutDomaineExterne.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
} // Fin de la verif display_errors
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "L'option php 'display_errors' est incorrecte.";
|
||||
$_SESSION['Lien'] = "Page-Domaine-AjoutDomaineExterne.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
} // Fin de la verif allow_url_include
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "L'option php 'allow_url_include' est incorrecte.";
|
||||
$_SESSION['Lien'] = "Page-Domaine-AjoutDomaineExterne.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
} // Fin de la verif du allow_url_fopen
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "L'option php 'allow_url_fopen' est incorrecte.";
|
||||
$_SESSION['Lien'] = "Page-Domaine-AjoutDomaineExterne.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
} // Fin de la verif du dossier sessions
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Le dossier sessions est invalide. (il doit commencer et finir par /)";
|
||||
$_SESSION['Lien'] = "Page-Domaine-AjoutDomaineExterne.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
} // Fin de la verif du dossier temporaire
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Le dossier temporaire est invalide. (il doit commencer et finir par /)";
|
||||
$_SESSION['Lien'] = "Page-Domaine-AjoutDomaineExterne.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
} // Fin de la verif sql pass
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Le mot de passe pour la base de donn<6E>es mysql est invalide.";
|
||||
$_SESSION['Lien'] = "Page-Domaine-AjoutDomaineExterne.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
} // Fin de la verif sql user
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "L'utilisateur pour la base de donn<6E>es mysql est invalide.";
|
||||
$_SESSION['Lien'] = "Page-Domaine-AjoutDomaineExterne.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
} // Fin de la verif sql adresse
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "L'adresse du serveur mysql est invalide.";
|
||||
$_SESSION['Lien'] = "Page-Domaine-AjoutDomaineExterne.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Le listage est incorrect.";
|
||||
$_SESSION['Lien'] = "Page-Domaine-AjoutDomaineExterne.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Le commentaire est incorrect.";
|
||||
$_SESSION['Lien'] = "Page-Domaine-AjoutDomaineExterne.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Le BaseDir est incorrect (il doit commencer et finir par /)";
|
||||
$_SESSION['Lien'] = "Page-Domaine-AjoutDomaineExterne.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "La racine est incorrecte (il doit commencer et finir par /)";
|
||||
$_SESSION['Lien'] = "Page-Domaine-AjoutDomaineExterne.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "L'adresse est incorrecte";
|
||||
$_SESSION['Lien'] = "Page-Domaine-AjoutDomaineExterne.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
69
0.9.0/panel/system/librairie/domaine/suppressiondomaine.php
Executable file
@@ -0,0 +1,69 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
// Librairie contenant la suppression des domaines
|
||||
if ( VerifPOST("Domaine", "#^[a-z0-9.-]+\.[a-z]+$#", 3, 120) == "ChaineValide" )
|
||||
{
|
||||
if ( VerifPOST("Confirmation", "#^oui$#", 3, 3) == "ChaineValide" )
|
||||
{
|
||||
$VerifExistence = $MySql->Select ("*", "domaine", "Adresse='".$_POST['Domaine']."'", "", "", "", "");
|
||||
if ( $VerifExistence != FALSE )
|
||||
{
|
||||
if ( $VerifExistence[0]["Utilisateur"] == $_SESSION['Utilisateur'] )
|
||||
{
|
||||
if ( $VerifExistence[0]["Status"] == "2" )
|
||||
{
|
||||
$UpdateDB = $MySql->Update ("domaine", "Status", "3", "Adresse='".$_POST['Domaine']."'");
|
||||
Redirect ('Page-Domaine-Recapitulatif.html');
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Ce domaine n'est pas activ<69> (ou deja en cours de suppression)";
|
||||
$_SESSION['Lien'] = "Page-Domaine-SuppressionDomaineExterne.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Monsieur veut la jouer h4X00R ?";
|
||||
$_SESSION['Lien'] = "Page-Domaine-SuppressionDomaineExterne.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Ce domaine n'existe pas";
|
||||
$_SESSION['Lien'] = "Page-Domaine-SuppressionDomaineExterne.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Le code de confirmation est incorrect";
|
||||
$_SESSION['Lien'] = "Page-Domaine-SuppressionDomaineExterne.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Aucun domaine n'est selection<6F>";
|
||||
$_SESSION['Lien'] = "Page-Domaine-SuppressionDomaineExterne.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
|
||||
?>
|
||||
112
0.9.0/panel/system/librairie/email/ajoutalias.php
Executable file
@@ -0,0 +1,112 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
// Librairie d'ajout d'un alias
|
||||
|
||||
if ( VerifPOST("Nom", "#^[a-z0-9._-]+@[a-z0-9._-]{2,25}\.[a-z]{2,4}$#", 7, 60) == "ChaineValide" )
|
||||
{
|
||||
if ( VerifPOST("Pointage", "#^[a-z0-9._-]+@[a-z0-9._-]{2,15}\.[a-z]{2,4}$#", 7, 60) == "ChaineValide" )
|
||||
{
|
||||
if ( ( VerifPOST("Commentaire", "#^[a-z0-9 ]+$#i", 0, 50) == "ChaineValide") or ( VerifPOST("Commentaire", "#^[a-z0-9]+$#i", 0, 50) == "ChaineVide"))
|
||||
{
|
||||
if ( VerifPOST("Nom", "#@kelio\.org#i", 0, 0) != "ChaineValide" )
|
||||
{
|
||||
$VerifExistente = $MySql->Select ("*", "email", "Nom='".$_POST['Nom']."'", "", "", "", "");
|
||||
if ( $VerifExistente == FALSE )
|
||||
{
|
||||
$Email = explode ('@', $_POST['Nom']);
|
||||
$Domaine = $Email[1];
|
||||
$Login = $Email[0];
|
||||
$VerifMX = getmxrr($Domaine, $Mxhost, $MxWeight);
|
||||
|
||||
if ( $VerifMX != FALSE )
|
||||
{
|
||||
$i=0;
|
||||
foreach ($Mxhost as $key => $value)
|
||||
{
|
||||
$ServeurMail[$value] = $MxWeight[$i];
|
||||
$i++;
|
||||
}
|
||||
asort($ServeurMail);
|
||||
|
||||
if ( (current(array_keys($ServeurMail)) == "mail.kelio.org") or (gethostbyname(current(array_keys($ServeurMail))) == gethostbyname("mail.kelio.org")) )
|
||||
{
|
||||
$CountAlias = $MySql->Count('id', 'email', "Utilisateur = '{$_SESSION['Utilisateur']}' AND Type = 'alias'");
|
||||
if ( ($CountAlias < $_SESSION['Offre']['AliasEmail']) or ($_SESSION['Offre']['AliasEmail'] == '-1') ) {
|
||||
$Conteneur = "Utilisateur, Nom, Type, Pointage, Status, Commentaire, DateDeCreation";
|
||||
$Contenu = "'".$_SESSION['Utilisateur']."', '".$_POST['Nom']."', 'alias', '".$_POST['Pointage']."', '1', '".$_POST['Commentaire']."', '".time()."'";
|
||||
$MySql->Insert ($Conteneur, $Contenu, "email");
|
||||
Redirect ('Page-Email-Recapitulatif.html');
|
||||
} else {
|
||||
$_SESSION['Resultat'] = "Désolé, votre offre ne vous permet pas d'ajouter plus d'alias.";
|
||||
$_SESSION['Lien'] = "Page-Email-Suppression.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Le MX prioritaire ne pointe pas vers mail.kelio.org.<br />Il pointe actuellement vers ".current(array_keys($ServeurMail));
|
||||
$_SESSION['Lien'] = "Page-Email-AjoutAlias.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Ce domaine n'a aucune redirection MX.";
|
||||
$_SESSION['Lien'] = "Page-Email-AjoutAlias.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Cet email existe deja.";
|
||||
$_SESSION['Lien'] = "Page-Email-AjoutAlias.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Vous ne pouvez pas utiliser le domaine kelio.org";
|
||||
$_SESSION['Lien'] = "Page-Email-AjoutAlias.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Le commentaire est incorrect";
|
||||
$_SESSION['Lien'] = "Page-Email-AjoutAlias.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "L'email de pointage de passe est incorrect";
|
||||
$_SESSION['Lien'] = "Page-Email-AjoutAlias.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "L'email est incorrect";
|
||||
$_SESSION['Lien'] = "Page-Email-AjoutAlias.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
113
0.9.0/panel/system/librairie/email/ajoutcompte.php
Executable file
@@ -0,0 +1,113 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
// Librairie d'ajout d'un compte email
|
||||
|
||||
if ( VerifPOST("Nom", "#^[a-z0-9._-]+@[a-z0-9._-]{2,25}\.[a-z]{2,4}$#", 7, 60) == "ChaineValide" )
|
||||
{
|
||||
if ( VerifPOST("MotDePasse", "#^[a-z0-9]+$#", 3, 9) == "ChaineValide" )
|
||||
{
|
||||
if ( ( VerifPOST("Commentaire", "#^[a-z0-9 ]+$#i", 0, 50) == "ChaineValide") or ( VerifPOST("Commentaire", "#^[a-z0-9]+$#i", 0, 50) == "ChaineVide"))
|
||||
{
|
||||
if ( VerifPOST("Nom", "#@kelio\.org#i", 0, 0) != "ChaineValide" )
|
||||
{
|
||||
$VerifExistente = $MySql->Select ("*", "email", "Nom='".$_POST['Nom']."'", "", "", "", "");
|
||||
if ( $VerifExistente == FALSE )
|
||||
{
|
||||
$Email = explode ('@', $_POST['Nom']);
|
||||
$Domaine = $Email[1];
|
||||
$Login = $Email[0];
|
||||
$VerifMX = getmxrr($Domaine, $Mxhost, $MxWeight);
|
||||
|
||||
$ServeurMail = array();
|
||||
if ( $VerifMX != FALSE )
|
||||
{
|
||||
$i=0;
|
||||
foreach ($Mxhost as $key => $value)
|
||||
{
|
||||
$ServeurMail[$value] = $MxWeight[$i];
|
||||
$i++;
|
||||
}
|
||||
asort($ServeurMail);
|
||||
|
||||
if ( (current(array_keys($ServeurMail)) == "mail.kelio.org") or (gethostbyname(current(array_keys($ServeurMail))) == gethostbyname("mail.kelio.org")) )
|
||||
{
|
||||
$CountMailbox = $MySql->Count('id', 'email', "Utilisateur = '{$_SESSION['Utilisateur']}' AND Type = 'compte'");
|
||||
if ( ($CountMailbox < $_SESSION['Offre']['CompteEmail']) or ($_SESSION['Offre']['CompteEmail'] == '-1')) {
|
||||
$Conteneur = "Utilisateur, Nom, Type, Password, Status, Commentaire, DateDeCreation";
|
||||
$Contenu = "'".$_SESSION['Utilisateur']."', '".$_POST['Nom']."', 'compte', '".$_POST['MotDePasse']."', '1', '".$_POST['Commentaire']."', '".time()."'";
|
||||
$MySql->Insert ($Conteneur, $Contenu, "email");
|
||||
Redirect ('Page-Email-Recapitulatif.html');
|
||||
} else {
|
||||
$_SESSION['Resultat'] = "Désolé, votre offre ne vous permet pas d'ajouter plus de compte.";
|
||||
$_SESSION['Lien'] = "Page-Email-Suppression.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Le MX prioritaire ne pointe pas vers l'ip de mail.kelio.org.";
|
||||
$_SESSION['Lien'] = "Page-Email-AjoutCompte.html";
|
||||
Redirect ('resultat.html');
|
||||
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Ce domaine n'a aucune redirection MX.";
|
||||
$_SESSION['Lien'] = "Page-Email-AjoutCompte.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Cet email existe deja.";
|
||||
$_SESSION['Lien'] = "Page-Email-AjoutCompte.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Vous ne pouvez pas utiliser le domaine kelio.org";
|
||||
$_SESSION['Lien'] = "Page-Email-AjoutCompte.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Le commentaire est incorrect";
|
||||
$_SESSION['Lien'] = "Page-Email-AjoutCompte.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Le mot de passe est incorrect";
|
||||
$_SESSION['Lien'] = "Page-Email-AjoutCompte.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "L'email est incorrect";
|
||||
$_SESSION['Lien'] = "Page-Email-AjoutCompte.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
|
||||
|
||||
?>
|
||||
69
0.9.0/panel/system/librairie/email/suppression.php
Executable file
@@ -0,0 +1,69 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
// Librairie contenant la suppression des domaines
|
||||
if ( VerifPOST("Nom", "#^[a-z0-9._-]+@[a-z0-9._-]{2,15}\.[a-z]{2,4}$#", 7, 60) == "ChaineValide" )
|
||||
{
|
||||
if ( VerifPOST("Confirmation", "#^oui$#", 3, 3) == "ChaineValide" )
|
||||
{
|
||||
$VerifExistence = $MySql->Select ("*", "email", "Nom='".$_POST['Nom']."'", "", "", "", "");
|
||||
if ( $VerifExistence != FALSE )
|
||||
{
|
||||
if ( $VerifExistence[0]["Utilisateur"] == $_SESSION['Utilisateur'] )
|
||||
{
|
||||
if ( $VerifExistence[0]["Status"] == "2" )
|
||||
{
|
||||
$UpdateDB = $MySql->Update ("email", "Status", "3", "Nom='".$_POST['Nom']."'");
|
||||
Redirect ('Page-Email-Recapitulatif.html');
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Ce compte/alias n'est pas activé (ou deja en cours de suppression)";
|
||||
$_SESSION['Lien'] = "Page-Email-Suppression.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Email en cours de suppression<br />(Non, je plaisante :D)";
|
||||
$_SESSION['Lien'] = "http://www.perdu.com";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Cet email n'existe pas";
|
||||
$_SESSION['Lien'] = "Page-Email-Suppression.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Le code de confirmation est incorrect";
|
||||
$_SESSION['Lien'] = "Page-Email-Suppression.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Aucun compte/alias n'est selectioné";
|
||||
$_SESSION['Lien'] = "Page-Email-Suppression.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
|
||||
?>
|
||||
80
0.9.0/panel/system/librairie/ftp/ajoutcompte.php
Executable file
@@ -0,0 +1,80 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
// Librairie contenant l'ajout de compte ftp
|
||||
|
||||
if ( VerifPOST("Nom", "#^[a-z0-9]+$#", 3, 9) == "ChaineValide" )
|
||||
{
|
||||
if ( VerifPOST("MotDePasse", "#^[a-z0-9]+$#i", 3, 9) == "ChaineValide" )
|
||||
{
|
||||
if ( (VerifPOST("Chemin", "#^/[a-z0-9/_-]+/$#", 1, 70) == "ChaineValide") or (VerifPOST("Chemin", "#^/$#", 1, 70) == "ChaineValide") )
|
||||
{
|
||||
if ( (VerifPOST("Commentaire", "#^[a-z0-9 ]+$#i", 1, 50) == "ChaineValide") or (VerifPOST("Commentaire", "#^[a-z0-9]+$#i", 1, 50) == "ChaineVide") )
|
||||
{
|
||||
$VerifExistance = $MySql->Select ("*", "ftp", "Nom='".$_SESSION['Utilisateur']."_".$_POST['Nom']."'", "", "", "", "");
|
||||
if ( $VerifExistance == FALSE )
|
||||
{
|
||||
$CountFTP = $MySql->Count('id', 'ftp', "Utilisateur='{$_SESSION['Utilisateur']}'");
|
||||
if ( ($CountFTP >= $_SESSION['Offre']['Ftp']) and ($_SESSION['Offre']['Ftp'] != '-1')) {
|
||||
$_SESSION['Resultat'] = "Desole, votre offre ne vous permet pas d'ajouter plus de compte(s) FTP.";
|
||||
$_SESSION['Lien'] = "Page-Ftp-SuppressionCompte.html";
|
||||
Redirect ('resultat.html');
|
||||
} else {
|
||||
$Conteneur = "Utilisateur, Nom, Password, Status, Chemin, Commentaire, DateDeCreation";
|
||||
$Contenu = "'".$_SESSION['Utilisateur']."', '".$_SESSION['Utilisateur']."_".$_POST['Nom']."', '".$_POST['MotDePasse']."', '1', '".$_POST['Chemin']."', '".$_POST['Commentaire']."', '".time()."'";
|
||||
$MySql->Insert ($Conteneur,$Contenu, "ftp");
|
||||
Redirect ('Page-Ftp-Recapitulatif.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Ce compte existe deja.";
|
||||
$_SESSION['Lien'] = "Page-Ftp-AjoutCompte.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Le commentaire est incorrect.";
|
||||
$_SESSION['Lien'] = "Page-Domaine-AjoutDomaineExterne.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Le chemin est incorrect (il doit commencer et finir par /)";
|
||||
$_SESSION['Lien'] = "Page-Ftp-AjoutCompte.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Le mot de passe est incorrect";
|
||||
$_SESSION['Lien'] = "Page-Ftp-AjoutCompte.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Le nom du compte est incorrect";
|
||||
$_SESSION['Lien'] = "Page-Ftp-AjoutCompte.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
|
||||
?>
|
||||
70
0.9.0/panel/system/librairie/ftp/suppressioncompte.php
Executable file
@@ -0,0 +1,70 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
// Librairie contenant la suppresion d'un compte ftp
|
||||
|
||||
if ( VerifPOST("Nom", "#^[a-z0-9]+_[a-z0-9]+$#", 3, 25) == "ChaineValide" )
|
||||
{
|
||||
if ( VerifPOST("MotDePasse", "#^[a-z0-9]+$#", 3, 9) == "ChaineValide" )
|
||||
{
|
||||
$VerifExistence = $MySql->Select ("*", "ftp", "Nom='".$_POST['Nom']."'", "", "", "", "");
|
||||
if ( $VerifExistence != FALSE )
|
||||
{
|
||||
if ( $VerifExistence[0]["Utilisateur"] == $_SESSION['Utilisateur'] )
|
||||
{
|
||||
if ( $VerifExistence[0]["Status"] == "2" )
|
||||
{
|
||||
$UpdateDB = $MySql->Update ("ftp", "Status", "3", "Nom='".$_POST['Nom']."'");
|
||||
Redirect ('Page-Ftp-Recapitulatif.html');
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Ce compte n'est pas activé (ou deja en cours de suppression)";
|
||||
$_SESSION['Lien'] = "Page-Ftp-SuppressionCompte.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Monsieur veut la jouer h4X00R ?";
|
||||
$_SESSION['Lien'] = "Page-Ftp-SuppressionCompte.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Ce compte n'existe pas";
|
||||
$_SESSION['Lien'] = "Page-Ftp-SuppressionCompte.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Le mot de passe est incorrect";
|
||||
$_SESSION['Lien'] = "Page-Ftp-SuppressionCompte.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Aucun compte n'est selectioné";
|
||||
$_SESSION['Lien'] = "Page-Ftp-SuppressionCompte.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
|
||||
?>
|
||||
56
0.9.0/panel/system/librairie/lib.auth.php
Executable file
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
if ( VerifPOST("login", "#^[a-z0-9]+$#i", 3, 9) == "ChaineValide" )
|
||||
{
|
||||
if ( VerifPOST("pass", "#^[a-z0-9]+$#i", 3, 25) == "ChaineValide" )
|
||||
{
|
||||
$VerifLogin = $MySql->Select ("*", "utilisateur", "Utilisateur='".strtolower($_POST['login'])."'", "", "", "", "");
|
||||
if ( $VerifLogin != FALSE )
|
||||
{
|
||||
if ( $VerifLogin[0]["Password"] == md5(md5($_POST['pass'])) )
|
||||
{
|
||||
|
||||
$_SESSION['Utilisateur'] = $VerifLogin[0]["Utilisateur"];
|
||||
$_SESSION['Hash'] = $VerifLogin[0]["Password"];
|
||||
$Offre = $MySql->Select("*", "offre", "id='{$VerifLogin[0]["Offre_id"]}'", "", "", "", "");
|
||||
$_SESSION['Offre'] = $Offre[0];
|
||||
Redirect ('Page.html');
|
||||
}
|
||||
else
|
||||
{
|
||||
Redirect ('http://www.kelio.org#Mauvais_Password');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Redirect ('http://www.kelio.org#Login_Inexistant');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Redirect ('http://www.kelio.org#Syntaxe_Incorrecte');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
Redirect ('http://www.kelio.org#Syntaxe_Incorrecte');
|
||||
}
|
||||
|
||||
?>
|
||||
60
0.9.0/panel/system/librairie/lib.page.php
Executable file
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
// Page contenant la gestion des pages
|
||||
if ( VerifGET ("id", "#[a-z]+#i", 3, 30) == "ChaineValide" )
|
||||
{
|
||||
if ( VerifGET("ids", "#[a-z]+#i", 3, 30) == "ChaineValide" )
|
||||
{
|
||||
$SelectPage = $MySql->Select ("*", "page", "Page1='".$_GET['id']."' AND Page2='".$_GET['ids']."'", "", "", "", "");
|
||||
|
||||
if ( $SelectPage != FALSE )
|
||||
{
|
||||
if ( $SelectPage[0]["Activation"] == "oui" )
|
||||
{
|
||||
if(file_exists($SelectPage[0]["Chemin"]))
|
||||
{
|
||||
require ($SelectPage[0]["Chemin"]);
|
||||
}
|
||||
else
|
||||
{
|
||||
require ('module/erreur/inconnu.php');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
require ('module/erreur/desactive.php');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
require ('module/erreur/inconnu.php');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
require ('module/accueil.php');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
require ('module/accueil.php');
|
||||
}
|
||||
|
||||
?>
|
||||
69
0.9.0/panel/system/librairie/lib.securite.php
Executable file
@@ -0,0 +1,69 @@
|
||||
<?php
|
||||
// Page contenant la verification de l'existance du login
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
function VerifDroit ()
|
||||
{
|
||||
global $MySql;
|
||||
if ( isset($_SESSION['Utilisateur']) && isset($_SESSION['Hash']) )
|
||||
{
|
||||
$SelectUtilisateur = $MySql->Select ("*", "utilisateur", "Utilisateur='".$_SESSION['Utilisateur']."'", "", "", "", "");
|
||||
|
||||
if ( $SelectUtilisateur != FALSE )
|
||||
{
|
||||
if ( $SelectUtilisateur[0]["Password"] != $_SESSION['Hash'] OR $SelectUtilisateur[0]["Status"] == '5' )
|
||||
{
|
||||
//session_destroy ();
|
||||
Redirect ('http://www.kelio.asso.fr#s1');
|
||||
}
|
||||
else
|
||||
{
|
||||
$MySql->Update ("utilisateur", array("AdresseIP", "DernierLogin"), array($_SERVER['REMOTE_ADDR'], 'NOW()'), "Utilisateur='".$_SESSION['Utilisateur']."'");
|
||||
$Offre = $MySql->Select("*", "offre", "id='{$SelectUtilisateur[0]["Offre_id"]}'", "", "", "", "");
|
||||
$_SESSION['Offre'] = $Offre[0];
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
//session_destroy ();
|
||||
Redirect ('http://www.kelio.asso.fr#s2');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
//session_destroy ();
|
||||
Redirect ('http://www.kelio.asso.fr#s3');
|
||||
}
|
||||
}
|
||||
|
||||
function VerifProvenance ($Provenance)
|
||||
{
|
||||
if ( !preg_match("#".addslashes($Provenance)."#i", $_SERVER['HTTP_REFERER']) )
|
||||
{
|
||||
Redirect ('http://www.kelio.asso.fr#5');
|
||||
}
|
||||
}
|
||||
|
||||
function disconnect ()
|
||||
{
|
||||
session_start();
|
||||
$_SESSION=array();//on efface toutes les variables de la session
|
||||
session_destroy(); // Puis on détruit la session
|
||||
Redirect ('http://www.kelio.asso.fr#deconnexion'); // On renvoie ensuite sur la page d'accueil
|
||||
}
|
||||
?>
|
||||
76
0.9.0/panel/system/librairie/mysql/ajoutbdd.php
Executable file
@@ -0,0 +1,76 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
// Librairie d'ajout de base de donnée
|
||||
|
||||
if ( VerifPOST("Nom", "#^[a-z0-9]+$#", 3, 6) == "ChaineValide" )
|
||||
{
|
||||
if ( VerifPOST("MotDePasse", "#^[a-z0-9]+$#", 3, 9) == "ChaineValide" )
|
||||
{
|
||||
if ( ( VerifPOST("Commentaire", "#^[a-z0-9 ]+$#i", 0, 50) == "ChaineValide") or ( VerifPOST("Commentaire", "#^[a-z0-9]+$#i", 0, 50) == "ChaineVide"))
|
||||
{
|
||||
$NomBase = str_replace('_','',$_POST['Nom']);
|
||||
$NomBase = str_replace(' ','',$NomBase);
|
||||
|
||||
$MdpBase = str_replace('_','',$_POST['MotDePasse']);
|
||||
$MdpBase = str_replace(' ','',$MdpBase);
|
||||
|
||||
$VerificationExistance = $MySql->Select ("*", "basededonnee", "Nom='".$_SESSION['Utilisateur']."_".$NomBase."'", "", "", "", "");
|
||||
if ( $VerificationExistance == FALSE )
|
||||
{
|
||||
$CountDB = $MySql->Count('id', 'basededonnee', "Utilisateur='{$_SESSION['Utilisateur']}'");
|
||||
if ( ($CountDB >= $_SESSION['Offre']['BaseDeDonnees']) and ($_SESSION['Offre']['BaseDeDonnees'] != '-1')) {
|
||||
$_SESSION['Resultat'] = "Désolé, votre offre ne vous permet pas d'ajouter plus de base(s) de données.";
|
||||
$_SESSION['Lien'] = "Page-MySql-SuppressionBdd.html";
|
||||
Redirect ('resultat.html');
|
||||
} else {
|
||||
$Conteneur = "Utilisateur, Nom, Password, Commentaire, DateDeCreation";
|
||||
$Contenu = "'".$_SESSION['Utilisateur']."', '".$_SESSION['Utilisateur']."_".$NomBase."', '".$MdpBase."', '".$_POST['Commentaire']."', '".time()."'";
|
||||
$MySql->Insert ($Conteneur,$Contenu, "basededonnee");
|
||||
Redirect ('Page-MySql-Recapitulatif.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Cette base de données existe deja";
|
||||
$_SESSION['Lien'] = "Page-MySql-AjoutBdd.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Le commentaire est incorrect";
|
||||
$_SESSION['Lien'] = "Page-MySql-AjoutBdd.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Le mot de passe est incorrect";
|
||||
$_SESSION['Lien'] = "Page-MySql-AjoutBdd.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Le nom de la base de données est incorrect";
|
||||
$_SESSION['Lien'] = "Page-MySql-AjoutBdd.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
|
||||
?>
|
||||
73
0.9.0/panel/system/librairie/mysql/suppressionbdd.php
Executable file
@@ -0,0 +1,73 @@
|
||||
<?php
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
// Librairie de suppression de base de données
|
||||
|
||||
if ( VerifPOST("Base", "#^[a-z0-9]+_[a-z0-9]+$#", 3, 25) == "ChaineValide" )
|
||||
{
|
||||
if ( VerifPOST("MotDePasse", "#^[a-z0-9]+$#", 3, 9) == "ChaineValide" )
|
||||
{
|
||||
$VerifExistence = $MySql->Select ("*", "basededonnee", "Nom='".$_POST['Base']."'", "", "", "", "");
|
||||
if ( $VerifExistence != FALSE )
|
||||
{
|
||||
if ( $VerifExistence[0]["Utilisateur"] == $_SESSION['Utilisateur'] )
|
||||
{
|
||||
if ( $VerifExistence[0]["Status"] == "2" )
|
||||
{
|
||||
$UpdateDB = $MySql->Update ("basededonnee", "Status", "3", "Nom='".$_POST['Base']."'");
|
||||
Redirect ('Page-MySql-Recapitulatif.html');
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Cette base de donnée n'est pas activée (ou deja en cours de suppression)";
|
||||
$_SESSION['Lien'] = "Page-MySql-SuppressionBdd.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Monsieur veut la jouer h4X00R ?";
|
||||
$_SESSION['Lien'] = "Page-MySql-SuppressionBdd.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Cette base de données n'existe pas";
|
||||
$_SESSION['Lien'] = "Page-MySql-SuppressionBdd.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Le mot de passe est incorrect";
|
||||
$_SESSION['Lien'] = "Page-MySql-SuppressionBdd.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Aucune bdd n'a été sélectionnée";
|
||||
$_SESSION['Lien'] = "Page-MySql-SuppressionBdd.html";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
?>
|
||||
140
0.9.0/panel/traitement.php
Executable file
@@ -0,0 +1,140 @@
|
||||
<?php
|
||||
// Page de traitement des forms
|
||||
/*
|
||||
Copyright (C) 2007 Mercier Benjamin
|
||||
|
||||
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.,
|
||||
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
// Inclusion du core;
|
||||
|
||||
require ('system/core.php');
|
||||
|
||||
if ( VerifGET ("id", "#[0-9]+#i", 1, 5) == "ChaineValide" )
|
||||
{
|
||||
|
||||
// Login au panel
|
||||
if ( $_GET['id'] == '1' )
|
||||
{
|
||||
VerifProvenance ("www.kelio.asso.fr");
|
||||
require ('system/librairie/lib.auth.php');
|
||||
}
|
||||
|
||||
// Ajout d'une base de donn<6E>e
|
||||
elseif ( $_GET['id'] == '2' )
|
||||
{
|
||||
VerifDroit ();
|
||||
VerifProvenance("Page-MySql-AjoutBdd.html");
|
||||
require ('system/librairie/mysql/ajoutbdd.php');
|
||||
}
|
||||
|
||||
// Suppression d'une base de donn<6E>e
|
||||
elseif ( $_GET['id'] == '3' )
|
||||
{
|
||||
VerifDroit ();
|
||||
VerifProvenance("Page-MySql-SuppressionBdd.html");
|
||||
require ('system/librairie/mysql/suppressionbdd.php');
|
||||
}
|
||||
|
||||
// Ajout d'un compte ftp
|
||||
elseif ( $_GET['id'] == '4' )
|
||||
{
|
||||
VerifDroit ();
|
||||
VerifProvenance ("Page-Ftp-AjoutCompte.html");
|
||||
require ('system/librairie/ftp/ajoutcompte.php');
|
||||
}
|
||||
|
||||
// Suppression d'un compte ftp
|
||||
elseif ( $_GET['id'] == '5' )
|
||||
{
|
||||
VerifDroit ();
|
||||
VerifProvenance ("Page-Ftp-SuppressionCompte.html");
|
||||
require ('system/librairie/ftp/suppressioncompte.php');
|
||||
}
|
||||
|
||||
// Ajout d'un domaine externe
|
||||
elseif ( $_GET['id'] == '6' )
|
||||
{
|
||||
VerifDroit ();
|
||||
VerifProvenance ("Page-Domaine-AjoutDomaineExterne.html");
|
||||
require ('system/librairie/domaine/ajoutdomaine.php');
|
||||
}
|
||||
|
||||
// Suppression d'un domaine
|
||||
elseif ( $_GET['id'] == '7' )
|
||||
{
|
||||
VerifDroit ();
|
||||
VerifProvenance ("Page-Domaine-SuppressionDomaineExterne.html");
|
||||
require ('system/librairie/domaine/suppressiondomaine.php');
|
||||
}
|
||||
|
||||
// Ajout d'un compte email
|
||||
elseif ( $_GET['id'] == '8' )
|
||||
{
|
||||
VerifDroit ();
|
||||
VerifProvenance ("Page-Email-AjoutCompte.html");
|
||||
require ('system/librairie/email/ajoutcompte.php');
|
||||
}
|
||||
|
||||
// Ajout d'un alias
|
||||
elseif ( $_GET['id'] == '9' )
|
||||
{
|
||||
VerifDroit ();
|
||||
VerifProvenance ("Page-Email-AjoutAlias.html");
|
||||
require ('system/librairie/email/ajoutalias.php');
|
||||
}
|
||||
|
||||
// Suppression d'un compte ou d'un alias
|
||||
elseif ( $_GET['id'] == '10' )
|
||||
{
|
||||
VerifDroit ();
|
||||
VerifProvenance ("Page-Email-Suppression.html");
|
||||
require ('system/librairie/email/suppression.php');
|
||||
}
|
||||
|
||||
// Ajout d'une zone DNS
|
||||
elseif ( $_GET['id'] == '11' ) {
|
||||
VerifDroit();
|
||||
VerifProvenance("Page-DNS-AjoutDomaine.html");
|
||||
require('system/librairie/dns/ajoutdomaine.php');
|
||||
}
|
||||
|
||||
// Suppression d'une zone / sous-zone DNS
|
||||
elseif ( $_GET['id'] == '12' ) {
|
||||
VerifDroit();
|
||||
VerifProvenance("Page-DNS-Suppression.html");
|
||||
require('system/librairie/dns/suppression.php');
|
||||
}
|
||||
|
||||
// Ajout d'une sous-zone DNS
|
||||
elseif ( $_GET['id'] == '13' ) {
|
||||
VerifDroit();
|
||||
VerifProvenance("Page-DNS-AjoutSousDomaine.html");
|
||||
require('system/librairie/dns/ajoutsousdomaine.php');
|
||||
}
|
||||
|
||||
// Aucun form
|
||||
else
|
||||
{
|
||||
$_SESSION['Resultat'] = "Aucune action effectu<74>e";
|
||||
Redirect ('resultat.html');
|
||||
}
|
||||
|
||||
}
|
||||
else
|
||||
{
|
||||
Redirect ('http://www.kelio.asso.fr');
|
||||
}
|
||||
|
||||
?>
|
||||