discourse-legacysite-perl/site/slowtwitch.com/www/adio/advertiser.php
2024-06-17 22:30:36 +10:00

66 lines
2.0 KiB
PHP

<?PHP include("config.php");
// need to update code so that users are automatically taken to the page for their individual account here.
if(!is_admin($user)){
header('Location:'.$site_url.'/');
}
// set the page title
$pagetitle = "Advertiser Accounts";
// set meta tags
$meta_keywords = "advert io";
$meta_description = "tool for requesting an ad isertion";
?>
<? include("include_common_head.php"); ?>
<body class="listings">
<? include($common_path . "/ads/ad_wallpaper.html"); ?>
<div class="container">
<? include($common_path . "/templates/include_header.php"); ?>
<div class="main">
<div class="contentwrapper clearfix">
<? include("include_breadcrumb.php"); ?>
<section class="section listings section-has-widgets section-static remove-sidebar">
<div class="sidebar-b">
<? include("include_sidebar.php"); ?>
</div>
<div class="content content-has-widgets">
<div class="grid">
<div class="clearfix">
<h1 class="float-left">Admin: Advertiser Accounts</h1>
<? /**if (is_logged_in($user)) { ?>
<a href="<? echo $site_url . '/add.php' ?>" class="btn btn-white float-right">Request IO</a>
<? }**/ ?>
<hr class="line" />
<h2>All Advertisers</h2>
<hr />
<?
$ad_sql = "SELECT * FROM io_account WHERE 1=1";
$ad_results = mysql_query($ad_sql) OR die(mysql_error());
while ($ad_row = mysql_fetch_array($ad_results)) {
include("include_advertiser.php");
}
?>
</div><!-- end col-2/3 -->
</div><!-- end grid -->
</div><!-- end content -->
</section>
</div><!-- end contentwrapper -->
</div> <!-- end main -->
<? include($common_path . "/templates/include_footer.php") ?>
</div> <!-- container -->
</body>
<? include($common_path . "/templates/include_global_js.php") ?>
</html>