-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathlogout.php
54 lines (48 loc) · 1.7 KB
/
logout.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
53
54
<?php
include("extended-config.inc.php");
include($GLOBALS['admin_folder']."/config.inc.php");
includeClass("User");
includeClass("Template");
if($_COOKIE['io_type']==md5("Common"))
{
$user=new User("nesote_inoutscripts_users","id");
$user->logOut();
}
if($_COOKIE['io_type']==md5("advertiser"))
{
$user=new User("ppc_users");
$user->logOut();
}
if($_COOKIE['io_type']==md5("publisher"))
{
$user=new User("ppc_publishers");
$user->logOut();
}
$template=new Template();
$template->loadTemplate("common-templates/logout.tpl.html");
$template->includePage("{TABS}","common-header.php");
$template->includePage("{FOOTER}","common-footer.php");
//$template->setValue("{TABS}",$template->includePage($server_dir."ppc-page-header.php"));
$template->setValue("{ENGINE_NAME}",$template->checkComMsg(0001));
$selected_colorcode=array();
foreach ($color_code as $key=>$value)
{
if($key==$color_theme)
{
$selected_colorcode=$value;
break;
}
}
$template->setValue("{COLORTHEME3}","style=\" background-color:$selected_colorcode[2]\"");
$template->setValue("{COLORTHEME4}","style=\" color:$selected_colorcode[3]\"");
$template->setValue("{COLORTHEME5}","style=\" color:$selected_colorcode[4]\"");
$edtmess=$template->checkComMsg(1074);
$edtmess1=str_replace("{ENAME}",$template->checkComMsg(0001),$edtmess);
$template->setValue("{EDTMESS}",$edtmess1);
$edtmess5=$template->checkComMsg(1075);
$edtmess15=str_replace("{COLORTHEME5}","style=\" color:$selected_colorcode[4]\"",$edtmess5);
$template->setValue("{EDTMESS5}",$edtmess15);
$template->setValue("{PAGEWIDTH}",$page_width);
$template->setValue("{ENCODING}",$ad_display_char_encoding);
eval('?>'.$template->getPage().'<?php ');
?>