theme_advanced_link_targets : "_something=My somthing;_something2=My somthing2;_something3=My somthing3;", paste_auto_cleanup_on_paste : true, paste_convert_headers_to_strong : false, paste_strip_class_attributes : "all", paste_remove_spans : false, paste_remove_styles : false }); </script> <!-- /tinyMCE --> '; $logged['admin'] = member_auth(1, true, true); TopCodeAdmin(); ContentBlockHead("Articles"); print getArticlesAdminContent($logged); ContentBlockFoot(); BottomCode(); function getArticlesAdminContent($logged) { global $site; global $sActionText; $oArticles = new BxDolArticles($logged); $sRet = ''; $sActions = $oArticles->ActionAddUpdateElements(); $sRet .= $sActions; switch ($_GET['action']) { case 'addcategory': $sRet .= $oArticles->getArticlesCategoryEditForm(); break; case 'categoryedit':
$smarty->assign("site_title", "Manage Profile Photos :: Admin Panel :: " . $gConfig['site_title']); $smarty->assign("page_header_text", "Manage Profile Photos"); if (isset($_GET['del']) && intval($_GET['ID']) > 0) { $ID = intval($_GET['ID']); $rMedia = mysql_query("SELECT * FROM Profiles WHERE `ID` = {$ID}"); $aMedia = mysql_fetch_assoc($rMedia); $medDir = "../media/images/profile/" . $ID . "/"; @unlink($medDir . 'icon_' . $aMedia['PrimPhoto']); @unlink($medDir . 'photo_' . $aMedia['PrimPhoto']); @unlink($medDir . 'thumb_' . $aMedia['PrimPhoto']); @unlink($medDir); mysql_query("update Profiles set PrimPhoto='' where ID=" . intval($_GET['ID'])); header("location: {$gConfig['site_url']}admin/pphoto.php"); } $action = $_GET['action']; $smarty->assign("page_content", getArticlesAdminContent()); $smarty->display('index.tpl'); function getArticlesAdminContent() { global $site; global $sActionText; global $action, $itemviewid; $ret = getList(); return $ret; } function getList($iArticleID = '') { global $site; $ret = '<a href="' . $gConfig['site_url'] . 'admin/pphoto.php">All</a> <br><form method="GET">Search by user ID or NickName: <input type="text" name="searchID"> <input type=submit name=find value="Find"></form><br><br> <table width=100%>'; $iDivis = 30;
theme_advanced_link_targets : "_something=My somthing;_something2=My somthing2;_something3=My somthing3;", paste_auto_cleanup_on_paste : true, paste_convert_headers_to_strong : false, paste_strip_class_attributes : "all", paste_remove_spans : false, paste_remove_styles : false }); </script> <!-- /tinyMCE --> '; $logged['admin'] = member_auth(1); TopCodeAdmin(); ContentBlockHead("Articles"); print getArticlesAdminContent(); ContentBlockFoot(); BottomCode(); function getArticlesAdminContent() { global $site; global $sActionText; $oArticles = new BxDolArticles(true); $sRet = ''; $sActions = $oArticles->ActionAddUpdateElements(); $sRet .= $sActions; switch ($_GET['action']) { case 'addcategory': $sRet .= $oArticles->getArticlesCategoryEditForm(); break; case 'categoryedit':