summaryrefslogtreecommitdiffstats
path: root/sql/import_db.php
blob: a54edcc4695e5f6aab5e4b5244baed31ed481043 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<?php
/**
* 
* 	Skripta, ki uvozi novo sql bazo oz. posodobi obstoječo
*
*/
	set_time_limit(1800); 	# Timeout 30 minut

	include_once('../function.php');
	include_once('class.ImportDB.php');


	echo '<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">';


	echo '<head>';
	echo '	<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />';
	echo '	<meta charset="utf-8" >';
		
	echo '	<title>EnKlikAnketa - uvoz baze</title>';
				
	echo '	<!-- FAVICON -->';
	echo '	<link rel="shortcut icon" type="image/ico" href="'.$site_url.'/favicon.ico" />';
	echo '</head>';


	echo '<body>';

	$import = new ImportDB();
	
	// Zaradi varnosti je po defaultu to omogoceno samo v debug nacinu oz. za prijavljene admine oz. ce je baza prazna
	if($debug == 1 || $admin_type == '0' || $import->checkDBEmpty()){
		$import->display();
	}
	else{
		die();
	}

	echo '</body>';


	echo '</html>';
?>