Subversion-Projekte lars-tiefland.webhosting

Revision

Revision 62 | Revision 79 | Zur aktuellen Revision | Ganze Datei anzeigen | Leerzeichen ignorieren | Details | Blame | Letzte Änderung | Log anzeigen | RSS feed

Revision 62 Revision 69
Zeile 1... Zeile 1...
1
<?
1
<?
2
	// $URL: file:///svn/repos/webhosting/trunk/functions.php $ last modified in Revision $Rev: 62 $ by $Author: lars $ at $Date: 2007-06-14 16:13:25 +0200 (Do, 14 Jun 2007) $
2
	// $URL: file:///svn/repos/webhosting/trunk/functions.php $ last modified in Revision $Rev: 69 $ by $Author: lars $ at $Date: 2007-07-14 17:24:18 +0200 (Sa, 14 Jul 2007) $
3
	mysql_connect("127.0.0.1","ltiefland","voyager");
3
	mysql_connect("127.0.0.1","ltiefland","voyager");
4
	mysql_select_db("webhosting");
4
	mysql_select_db("webhosting");
Zeile 5... Zeile 5...
5
 
5
 
Zeile 109... Zeile 109...
109
				return false;
109
				return false;
110
			}
110
			}
111
		}
111
		}
112
	}
112
	}
Zeile 113... Zeile 113...
113
	
113
	
114
	function speichern($name, $vname, $email, $domain, $emails, $email_type, $targets, $space, $traffic, $db_anz, $os, $webmail, $forum, $copper, $svn, $admin_name, $admin_pw, $repo, $svn_users)
114
	function speichern($name, $vname, $email, $domain, $emails, $email_type, $targets, $traffic, $os, $webmail, $forum, $copper, $svn, $admin_name, $admin_pw, $repo, $svn_users)
115
	{
115
	{
116
		$sql="";
116
		$sql="";
117
		mysql_query("SET AUTOCOMMIT=0");
117
		mysql_query("SET AUTOCOMMIT=0");
118
		mysql_query("START TRANSACTION");
118
		mysql_query("START TRANSACTION");
Zeile 121... Zeile 121...
121
			nname, 
121
			nname, 
122
			vname, 
122
			vname, 
123
			email, 
123
			email, 
124
			domain, 
124
			domain, 
125
			email_type, 
125
			email_type, 
126
			space, 
-
 
127
			traffic, 
126
			traffic 
128
			db_anz
-
 
129
		) 
127
		) 
130
		VALUES 
128
		VALUES 
131
		(
129
		(
132
			'$name', 
130
			'$name', 
133
			'$vname', 
131
			'$vname', 
134
			'$email', 
132
			'$email', 
135
			'$domain', 
133
			'$domain', 
136
			$email_type, 
134
			$email_type, 
137
			$space, 
-
 
138
			$traffic, 
135
			$traffic 
139
			$db_anz
-
 
140
		)";
136
		)";
141
		if(mysql_query($sql))
137
		if(mysql_query($sql))
142
		{
138
		{
143
			$k_id=sprintf("%03d",mysql_insert_id());
139
			$k_id=sprintf("%03d",mysql_insert_id());
144
			$i=0;
140
			$i=0;
Zeile 341... Zeile 337...
341
			PDF_set_text_pos($pdf, 200, $y);
337
			PDF_set_text_pos($pdf, 200, $y);
342
			PDF_Show($pdf, "Nicht nötig");
338
			PDF_Show($pdf, "Nicht nötig");
343
			$y-=10;
339
			$y-=10;
344
		}
340
		}
345
		PDF_set_text_pos($pdf, 70, $y);
341
		PDF_set_text_pos($pdf, 70, $y);
346
		PDF_show($pdf, "Webspace: ");
-
 
347
		PDF_set_text_pos($pdf, 200, $y);
-
 
348
		PDF_show($pdf, number_format($row["space"],0,",",".")." MB");   
-
 
349
		$y-=10;
-
 
350
		PDF_set_text_pos($pdf, 70, $y);
-
 
351
		PDF_show($pdf, "Traffic / Monat: ");
342
		PDF_show($pdf, "Traffic / Monat: ");
352
		PDF_set_text_pos($pdf, 200, $y);
343
		PDF_set_text_pos($pdf, 200, $y);
353
		PDF_show($pdf, number_format($row["traffic"],0,",",".")." GB");   
344
		PDF_show($pdf, number_format($row["traffic"],0,",",".")." GB");   
354
		$y-=10;
345
		$y-=10;
355
		PDF_set_text_pos($pdf, 70, $y);
346
		PDF_set_text_pos($pdf, 70, $y);
356
		PDF_show($pdf, "Anzahl Datenbanken: ");
-
 
357
		PDF_set_text_pos($pdf, 200, $y);
-
 
358
		PDF_show($pdf, $row["db_anz"]);
-
 
359
		$y-=10;
-
 
360
		PDF_set_text_pos($pdf, 70, $y);
-
 
361
		PDF_show($pdf, "Betriebssystem:");
347
		PDF_show($pdf, "Betriebssystem:");
362
		PDF_set_text_pos($pdf, 200, $y);
348
		PDF_set_text_pos($pdf, 200, $y);
363
		switch($row_w["system"])
349
		switch($row_w["system"])
364
		{
350
		{
365
			case 1:
351
			case 1:
Zeile 558... Zeile 544...
558
			PDF_set_text_pos($pdf, 200, $y);
544
			PDF_set_text_pos($pdf, 200, $y);
559
			PDF_Show($pdf, "Nicht nötig");
545
			PDF_Show($pdf, "Nicht nötig");
560
			$y-=10;
546
			$y-=10;
561
		}
547
		}
562
		PDF_set_text_pos($pdf, 70, $y);
548
		PDF_set_text_pos($pdf, 70, $y);
563
		PDF_show($pdf, "Webspace: ");
-
 
564
		PDF_set_text_pos($pdf, 200, $y);
-
 
565
		PDF_show($pdf, number_format($row["space"],0,",",".")." MB");   
-
 
566
		$y-=10;
-
 
567
		PDF_set_text_pos($pdf, 70, $y);
-
 
568
		PDF_show($pdf, "Traffic / Monat: ");
549
		PDF_show($pdf, "Traffic / Monat: ");
569
		PDF_set_text_pos($pdf, 200, $y);
550
		PDF_set_text_pos($pdf, 200, $y);
570
		PDF_show($pdf, number_format($row["traffic"],0,",",".")." GB");   
551
		PDF_show($pdf, number_format($row["traffic"],0,",",".")." GB");   
571
		$y-=10;
552
		$y-=10;
572
		PDF_set_text_pos($pdf, 70, $y);
553
		PDF_set_text_pos($pdf, 70, $y);
573
		PDF_show($pdf, "Anzahl Datenbanken: ");
-
 
574
		PDF_set_text_pos($pdf, 200, $y);
-
 
575
		PDF_show($pdf, $row["db_anz"]);
-
 
576
		$y-=10;
-
 
577
		PDF_set_text_pos($pdf, 70, $y);
-
 
578
		PDF_show($pdf, "Betriebssystem:");
554
		PDF_show($pdf, "Betriebssystem:");
579
		PDF_set_text_pos($pdf, 200, $y);
555
		PDF_set_text_pos($pdf, 200, $y);
580
		switch($row_w["system"])
556
		switch($row_w["system"])
581
		{
557
		{
582
			case 1:
558
			case 1: