clipbucket/upload/admin_area/ads_manager.php

49 lines
992 B
PHP
Raw Normal View History

2009-08-25 12:16:42 +00:00
<?php
/*
***************************************************************
| Copyright (c) 2007-2009 Clip-Bucket.com. All rights reserved.
| @ Author : ArslanHassan
| @ Software : ClipBucket , <EFBFBD> PHPBucket.com
***************************************************************
2009-08-25 12:16:42 +00:00
*/
require'../includes/admin_config.php';
$userquery->admin_login_check();
$userquery->login_check('admin_access');
2009-08-25 12:16:42 +00:00
$pages->page_redir();
//Adding
if(isset($_POST['add']))
{
$adsObj->AddAd();
2009-08-25 12:16:42 +00:00
}
//Updating
if(isset($_POST['update']))
{
$adsObj->EditAd($_POST['ad_id']);
2009-08-25 12:16:42 +00:00
}
//Deleting
if(isset($_GET['delete']))
{
$adsObj->DeleteAd($_GET['delete']);
}
2009-08-25 12:16:42 +00:00
//Editing Ad
if(isset($_GET['ad_id']))
{
$ad_id = mysql_clean($_GET['ad_id']);
$ad_data = $adsObj->get_ad_details($ad_id);
if(!$ad_data)
e("Ad does not exist");
else
assign('ad_data',$ad_data);
2009-08-25 12:16:42 +00:00
}
subtitle("Advertisments Manager");
template_files('ads_manager.html');
display_it();
2009-08-25 12:16:42 +00:00
?>