Location: PHPKode > projects > Caleb's Code > Cafe_Cart/admin/links/links.cafepress.php
<?php

$ModName = $ModName = basename( dirname(dirname(dirname( __FILE__ ))));
$LinkName = preg_replace("/_/i", " ", $ModName);
$ImageName = 'modules/'.$ModName.'/images/admin.gif';

global $PHP_SELF;

if($pnconfig[Version_Sub] == "Rogue")
{
    if (!eregi('admin.php', $PHP_SELF)) die ('Access Denied: You can\'t access this file directly.');
    if (!authorised(0, "$ModName::", '::', ACCESS_ADMIN)) die ('Access Denied: No permissions');
}
else
{
    if (!eregi("admin.php", $PHP_SELF)) die ("Access Denied");
    adminmenu("admin.php?op=admin_show_$ModName", $LinkName, $ImageName);
}
?>
Return current item: Caleb's Code