| Zeile 1... |
Zeile 1... |
| 1 |
<?
|
1 |
<?
|
| 2 |
// $URL: file:///svn/repos/webhosting/trunk/order.php $ last modified in Revision $Rev: 68 $ by $Author: lars $ at $Date: 2007-07-12 13:57:49 +0200 (Do, 12 Jul 2007) $
|
2 |
// $URL: file:///svn/repos/webhosting/trunk/order.php $ last modified in Revision $Rev: 69 $ by $Author: lars $ at $Date: 2007-07-14 17:24:18 +0200 (Sa, 14 Jul 2007) $
|
| 3 |
define(MAX_EMAIL,10);
|
3 |
define(MAX_EMAIL,10);
|
| Zeile 4... |
Zeile 4... |
| 4 |
|
4 |
|
| Zeile 5... |
Zeile 5... |
| 5 |
require("functions.php");
|
5 |
require("functions.php");
|
| Zeile 43... |
Zeile 43... |
| 43 |
$emails.=($email10)?"$email10@$domain\n":"";
|
43 |
$emails.=($email10)?"$email10@$domain\n":"";
|
| 44 |
}
|
44 |
}
|
| 45 |
$emails=trim($emails);
|
45 |
$emails=trim($emails);
|
| 46 |
$email_type=intval((isset($_POST["email_type"]))?$_POST["email_type"]:-1);
|
46 |
$email_type=intval((isset($_POST["email_type"]))?$_POST["email_type"]:-1);
|
| 47 |
$targets=addslashes((isset($_POST["targets"]))?$_POST["targets"]:"");
|
47 |
$targets=addslashes((isset($_POST["targets"]))?$_POST["targets"]:"");
|
| 48 |
$space=intval((isset($_POST["space"]))?$_POST["space"]:0);
|
- |
|
| 49 |
$traffic=intval((isset($_POST["traffic"]))?$_POST["traffic"]:100);
|
48 |
$traffic=intval((isset($_POST["traffic"]))?$_POST["traffic"]:100);
|
| 50 |
$db_anz=intval((isset($_POST["db_anz"]))?$_POST["db_anz"]:0);
|
- |
|
| 51 |
$os=intval((isset($_POST["os"]))?$_POST["os"]:1);
|
49 |
$os=intval((isset($_POST["os"]))?$_POST["os"]:1);
|
| 52 |
$webmail=intval((isset($_POST["webmail"]))?$_POST["webmail"]:1);
|
50 |
$webmail=intval((isset($_POST["webmail"]))?$_POST["webmail"]:1);
|
| 53 |
$forum=intval((isset($_POST["forum"]))?$_POST["forum"]:1);
|
51 |
$forum=intval((isset($_POST["forum"]))?$_POST["forum"]:1);
|
| 54 |
$copper=intval((isset($_POST["copper"]))?$_POST["copper"]:0);
|
52 |
$copper=intval((isset($_POST["copper"]))?$_POST["copper"]:0);
|
| 55 |
$svn=intval((isset($_POST["svn"]))?$_POST["svn"]:0);
|
53 |
$svn=intval((isset($_POST["svn"]))?$_POST["svn"]:0);
|
| Zeile 193... |
Zeile 191... |
| 193 |
$smarty->assign("title", "Ich möchte auf dem Server von Lars Tiefland gehostet werden");
|
191 |
$smarty->assign("title", "Ich möchte auf dem Server von Lars Tiefland gehostet werden");
|
| 194 |
$tpl_file="order.tpl";
|
192 |
$tpl_file="order.tpl";
|
| 195 |
}
|
193 |
}
|
| 196 |
break;
|
194 |
break;
|
| 197 |
case "step3":
|
195 |
case "step3":
|
| 198 |
$smarty->assign("focus","space");
|
196 |
$smarty->assign("focus","traffic");
|
| 199 |
$smarty->assign("title","Konfiguration von Webspace und Datenbanken");
|
197 |
$smarty->assign("title","Konfiguration des Traffics");
|
| 200 |
$tpl_file="order3.tpl";
|
198 |
$tpl_file="order3.tpl";
|
| 201 |
break;
|
199 |
break;
|
| 202 |
case "step4":
|
200 |
case "step4":
|
| 203 |
$smarty->assign("title","Zu installierende Software");
|
201 |
$smarty->assign("title","Zu installierende Software");
|
| 204 |
$tpl_file="order4.tpl";
|
202 |
$tpl_file="order4.tpl";
|
| Zeile 218... |
Zeile 216... |
| 218 |
case "step6":
|
216 |
case "step6":
|
| 219 |
$smarty->assign("title","Bitte alle Daten noch einmal kotrollieren!");
|
217 |
$smarty->assign("title","Bitte alle Daten noch einmal kotrollieren!");
|
| 220 |
$tpl_file="order6.tpl";
|
218 |
$tpl_file="order6.tpl";
|
| 221 |
break;
|
219 |
break;
|
| 222 |
case "finish":
|
220 |
case "finish":
|
| 223 |
$save=speichern($name, $vname, $email, $domain, $email_arr, $email_type, $target_arr, $space, $traffic, $db_anz, $os, $webmail, $forum, $copper, $svn, $admin_name, $admin_pw, $repo, $svn_user_arr);
|
221 |
$save=speichern($name, $vname, $email, $domain, $email_arr, $email_type, $target_arr, $traffic, $os, $webmail, $forum, $copper, $svn, $admin_name, $admin_pw, $repo, $svn_user_arr);
|
| 224 |
if($save)
|
222 |
if($save)
|
| 225 |
{
|
223 |
{
|
| 226 |
$sql="SELECT k_id FROM kunden where email='$email'";
|
224 |
$sql="SELECT k_id FROM kunden where email='$email'";
|
| 227 |
$res=mysql_query($sql);
|
225 |
$res=mysql_query($sql);
|
| 228 |
$row=mysql_fetch_assoc($res);
|
226 |
$row=mysql_fetch_assoc($res);
|