This repository has been archived by the owner on Sep 29, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 42
/
ad-details.php
executable file
·55 lines (48 loc) · 1.74 KB
/
ad-details.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
55
<?php
/***************************************************************************
*
* PROJECT: eLitius Open Source Affiliate Software
* VERSION: 1.0
* LISENSE: GNU GPL (http://www.opensource.org/licenses/gpl-license.html)
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation.
*
* Link to eLitius.com can not be removed from the software pages without
* permission of the eLitius respective owners. It is the only requirement
* for using this software.
*
* Copyright 2009 Intelliants LLC
* http://www.intelliants.com/
*
***************************************************************************/
$gProtected = TRUE;
require_once('header.php');
$tid = (INT)$_GET['id'];
if($tid>0)
{
$banner = $gXpDb->getAdById($tid);
$title = $gXpLang['text_ads'];
$code = '<script type="text/javascript">
<!--
XP_BoxWidth = "220";
XP_BoxHeight = "80";
XP_OutlineColor = "#003366";
XP_TitleTextColor = "#FFFFFF";
XP_LinkColor = "#0033CC";
XP_TextColor = "#000000";
XP_TextBackgroundColor = "#F7F7F7";
//-->
</script>
<script language="JavaScript" type="text/javascript" src="'.$gXpConfig['base'].$gXpConfig['xpdir'].'ads.php?id='.$aff['id'].'&ad='.$banner['id'].'&pid='.$banner['pid'].'"></script>';
$description = $gXpLang['desc_ad_details'];
$keywords = $gXpLang['keyword_ad_details'];
$gXpSmarty->assign_by_ref('description', $description);
$gXpSmarty->assign_by_ref('keywords', $keywords);
$gXpSmarty->assign_by_ref('code', $code);
$gXpSmarty->assign_by_ref('ad', $banner);
$gXpSmarty->assign_by_ref('title', $title);
}
$gXpSmarty->display("ad-details.tpl");
?>