-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconfig.php
50 lines (43 loc) · 1.83 KB
/
config.php
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
44
45
46
47
48
49
50
<?php
@session_start();
error_reporting(E_ALL);
ini_set("display_errors", 1);
setlocale (LC_ALL,'es_CO');
date_default_timezone_set ("America/Bogota");
require ("globals.php");
$dbhost = "localhost";
$dbname = "luisvela_abme";
$dbuser = "luisvela_mainabm";
$dbpass = "%~,RTv+7S9Hb";
mysql_connect ($dbhost, $dbuser, $dbpass);
if ( ! mysql_select_db($dbname) ) {
die($messages["general_site_error"]);
}
mysql_query("SET NAMES 'utf8'");
require ("class/application.class.php");
$application = new Application();
$dataAppPublic = $application->getInformationApp($_SESSION["lang"]);
$appMenuPublic = $application->getAppMenu(1, $_SESSION["lang"]);
//print_r($appMenuPublic);die;
$countMenuPublic = count ($appMenuPublic);
$app_background_public = '';
if ($dataAppPublic->app_background_type == 2) {//image
$path_bg = 'file_upload/background/'.$dataAppPublic->app_background;
if (file_exists ($path_bg)) {
$app_background_public = 'background-image: url(/'.$path_bg.'); ';
$app_background_public .= 'background-position: center top; ';
$app_background_public .= 'background-attachment: fixed; ';
$app_background_public .= 'background-repeat: no-repeat; ';
$app_background_public .= '-webkit-background-size: cover; ';
$app_background_public .= '-moz-background-size: cover; ';
$app_background_public .= '-o-background-size: cover; ';
$app_background_public .= 'background-size: cover; ';
}
} elseif ($dataAppPublic->app_background_type == 1 || $dataAppPublic->app_background_type == 3) {//color
$app_background_public = 'background-color: '.$dataAppPublic->app_background_color.';';
}
$meta_autor_value = "Sebastián Lara";
$meta_description_value = "";
$meta_keywords_value = $dataAppPublic->app_keywords;
$meta_bussiness_name = "topografia";
?>