-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsite.php
More file actions
34 lines (24 loc) · 773 Bytes
/
site.php
File metadata and controls
34 lines (24 loc) · 773 Bytes
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
<?php
/**
* @author loopByte
* @copyright 2014
*/
class Site{
public static function title(){
global $mysqli;
$query = "SELECT value FROM config WHERE name='title'";
$result = $mysqli->query($query);
$title = $result->fetch_object();
echo $title->value;
return true;
}
public static function description(){
global $mysqli;
$query = "SELECT value FROM config WHERE name='description'";
$result = $mysqli->query($query);
$description = $result->fetch_object();
echo $description->value;
return true;
}
}
?>