Subversion-Projekte lars-tiefland.openvz_admin

Revision

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

Revision 122 Revision 123
Zeile 1... Zeile 1...
1
<?php
1
<?php
2
	//$Id: load.php 122 2008-05-22 13:48:04Z lars $
2
	//$Id: load.php 123 2008-05-22 13:48:49Z lars $
3
	/**
3
	/**
4
	 * 	@package	openvz_admin
4
	 * 	@package	openvz_admin
5
	 * 	@author		Lars Tiefland <ltiefland@gmail.com> 
5
	 * 	@author		Lars Tiefland <ltiefland@gmail.com> 
6
	 **/
6
	 **/
7
	require ("include/common.php");
7
	require ("include/common.php");
Zeile 34... Zeile 34...
34
		$cont = file("cfgs/$hn_id/$conf");
34
		$cont = file("cfgs/$hn_id/$conf");
35
		$cont[] = "v_id=\"" . substr($conf, 0, strpos($conf, '.')) . "\"";
35
		$cont[] = "v_id=\"" . substr($conf, 0, strpos($conf, '.')) . "\"";
36
		return $cont;
36
		return $cont;
37
	}
37
	}
Zeile 38... Zeile 38...
38
 
38
 
39
	function load_db($hn_id, $cfgs)
39
	function update_db($hn_id, $cfgs)
40
	{
40
	{
41
		foreach ($cfgs as $config)
41
		foreach ($cfgs as $config)
42
		{
42
		{
43
			$sql = "SELECT * FROM distributions WHERE dist_name='" . $config["DISTRIBUTION"] .
43
			$sql = "SELECT * FROM distributions WHERE dist_name='" . $config["DISTRIBUTION"] .