-
Notifications
You must be signed in to change notification settings - Fork 0
/
profile.php
executable file
·52 lines (38 loc) · 1.28 KB
/
profile.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
51
52
<?php
session_start();
require_once "Cs/Post.php";
require_once "Cs/Database.php";
require_once "Cs/HTML.php";
require_once "Cs/Login.php";
require_once "Cs/Error.php";
// OBJECT FACTORY
$base = new Cs_Database;
$ht = new Cs_HTML; // Object for working with HTML tags
$post = new Cs_Post; // What is required to work with posts
$login = new Cs_Login;
$error = new Cs_Error;
// -- END OF OBJECT FACTORY
$base->conBase(); // Connect to database
$ht->htmlStart();
$ht->htmlHead();
echo "<div class=\"main\">";
echo "<div class=\"content\">";
echo "<div class=\"small_content\">";
(isset($_GET['u'])) ? $login->getUser($_GET['u']) : $error->erMod('profile');
echo "</div>";
echo "<div class=\"sidebar2\">";
// Elements in left sidebar - existing ones: search, recent_posts, recent_comments, tag_cloud, twitter, register
$elements2 = array('register','search');
$ht->sidebar($elements2);
echo "</div>";
$ht->cleaner();
echo "</div>";
echo "<div class=\"sidebar\">";
// Elements in right sidebar - existing ones: search, recent_posts, recent_comments, tag_cloud, twitter, register
$elements = array('popular','recent_posts','recent_comments','tag_cloud');
$ht->sidebar($elements);
echo "</div>";
$ht->cleaner();
echo "</div>";
$ht->htmlEnd();
?>