Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks
Author Message
blith
Client



Joined: Jul 18, 2003
Posts: 977

PostPosted: Wed Mar 29, 2006 1:19 pm Reply with quote

got some hits but none panned out to be correct block. I would like a Site Administrators block like the one shown here
http://www.nukescripts.net/. I even looked on that site to no avail. Does anyone know where I can get one? Thank you. .
 
View user's profile Send private message Visit poster's website
hitwalker
Sells PC To Pay For Divorce



Joined:
Posts: 5661

PostPosted: Wed Mar 29, 2006 2:19 pm Reply with quote

the dropdown menu on the left or the admin login block on the right?
 
View user's profile Send private message
blith







PostPosted: Wed Mar 29, 2006 3:42 pm Reply with quote

The admin login block that is titled Site Administrators
 
hitwalker







PostPosted: Wed Mar 29, 2006 3:47 pm Reply with quote

Well this is called : NSN_block-Admin_Login_690_EN
Last one i have ..

Code:
<?php


/********************************************************/
/* Admin Block for PHP-Nuke                             */
/* By: NukeScripts Network (webmaster@nukescripts.net)  */
/* http://www.nukescripts.net                           */
/* Copyright © 2000-2003 by NukeScripts Network         */
/********************************************************/

if (eregi("block-Admin_Login.php", $_SERVER['PHP_SELF'])) { Header("Location: index.php"); }
$content = "";
global $admin, $user_prefix, $prefix, $db;
get_lang(admin);
if(is_admin($admin)) {
    $content .= "<b><a href=\"admin.php?op=adminMain\">"._ADMINMENU."</a>:</b>\n";
    $content .= "<table border=0 cellpadding=0 cellspacing=0 ALIGN=center>\n";
    $content .= "<tr><form method=\"post\" action=\"admin.php\">\n";
    $content .= "<td><select name=\"admin\" size=\"10\" onChange=\"top.location.href=this.options[this.selectedIndex].value\">\n";
    $content .= "<OPTION VALUE=\"op=adminStory\">"._ADDSTORY."</OPTION>\n";
    $content .= "<OPTION VALUE=\"op=backup\">"._SAVEDATABASE."</OPTION>\n";
    $content .= "<OPTION VALUE=\"op=BannersAdmin\">"._BANNERS."</OPTION>\n";
    $content .= "<OPTION VALUE=\"op=BlocksAdmin\">"._BLOCKS."</OPTION>\n";
    $content .= "<OPTION VALUE=\"op=content\">"._CONTENT."</OPTION>\n";
    $content .= "<OPTION VALUE=\"op=downloads\">"._DOWNLOAD."</OPTION>\n";
    $content .= "<OPTION VALUE=\"op=mod_authors\">"._EDITADMINS."</OPTION>\n";
    $content .= "<OPTION VALUE=\"op=mod_users\">"._EDITUSERS."</OPTION>\n";
    $content .= "<OPTION VALUE=\"op=encyclopedia\">"._ENCYCLOPEDIA."</OPTION>\n";
    $content .= "<OPTION VALUE=\"op=Ephemerids\">"._EPHEMERIDS."</OPTION>\n";
    $content .= "<OPTION VALUE=\"op=FaqAdmin\">"._FAQ."</OPTION>\n";
    $content .= "<OPTION VALUE=\"op=forums\">"._BFORUM."</OPTION>\n";
    $content .= "<OPTION VALUE=\"op=messages\">"._MESSAGES."</OPTION>\n";
    $content .= "<OPTION VALUE=\"op=modules\">"._MODULES."</OPTION>\n";
    $content .= "<OPTION VALUE=\"op=newsletter\">"._NEWSLETTER."</OPTION>\n";
    $content .= "<OPTION VALUE=\"op=optimize\">"._BOPTI."</OPTION>\n";
    $content .= "<OPTION VALUE=\"op=Configure\">"._PREFERENCES."</OPTION>\n";
    $content .= "<OPTION VALUE=\"op=create\">"._ADMPOLLS."</OPTION>\n";
    $content .= "<OPTION VALUE=\"op=hreferer\">"._BREFE."</OPTION>\n";
    $content .= "<OPTION VALUE=\"op=reviews\">"._REVIEWS."</OPTION>\n";
    $content .= "<OPTION VALUE=\"op=sections\">"._SECTIONSMANAGER."</OPTION>\n";
    $content .= "<OPTION VALUE=\"op=submissions\">"._SUBMISSIONS."</OPTION>\n";
    $content .= "<OPTION VALUE=\"op=topicsmanager\">"._TOPICS."</OPTION>\n";
    $content .= "<OPTION VALUE=\"op=Links\">"._WEBLINKS."</OPTION>\n";
    $content .= "<OPTION VALUE=\"op=logout\">"._ADMINLOGOUT."</OPTION>\n";
    $content .= "</SELECT></td>\n";
    $content .= "</form></tr>\n";
    $content .= "</table>\n";
    $content .= "<hr noshade size\"1\">\n";

    $content .= "<b><u>"._WAITINGCONT."</u>:</b>\n";
    $content .= "<table border=0 cellpadding=0 cellspacing=0 ALIGN=center>\n";
    $content .= "<tr><form method=\"post\" action=\"admin.php\">\n";
    $content .= "<td><select name=\"wait\" size=\"5\" onChange=\"top.location.href=this.options[this.selectedIndex].value\">\n";
    $num = $db->sql_numrows($db->sql_query("select * from ".$prefix."_queue"));
    $content .= "<OPTION VALUE=\"op=submissions\">"._SUBMISSIONS.": $num</OPTION>\n";
    $num = $db->sql_numrows($db->sql_query("select * from ".$prefix."_reviews_add"));
    $content .= "<OPTION VALUE=\"op=reviews\">"._WREVIEWS.": $num</OPTION>\n";
    $num = $db->sql_numrows($db->sql_query("select * from ".$prefix."_links_newlink"));
    $content .= "<OPTION VALUE=\"op=Links\">"._WLINKS.": $num</OPTION>\n";
    $modreql = $db->sql_numrows($db->sql_query("select * from ".$prefix."_links_modrequest where brokenlink='0'"));
    $content .= "<OPTION VALUE=\"op=LinksListModRequests\">"._MODREQLINKS.": $modreql</OPTION>\n";
    $brokenl = $db->sql_numrows($db->sql_query("select * from ".$prefix."_links_modrequest where brokenlink='1'"));
    $content .= "<OPTION VALUE=\"op=LinksListBrokenLinks\">"._BROKENLINKS.": $brokenl</OPTION>\n";
    $num = $db->sql_numrows($db->sql_query("select * from ".$prefix."_downloads_newdownload"));
    $content .= "<OPTION VALUE=\"op=downloads\">"._UDOWNLOADS.": $num</OPTION>\n";
    $modreqd = $db->sql_numrows($db->sql_query("select * from ".$prefix."_downloads_modrequest where brokendownload='0'"));
    $content .= "<OPTION VALUE=\"op=DownloadsListModRequests\">"._MODREQDOWN.": $modreqd</OPTION>\n";
    $brokend = $db->sql_numrows($db->sql_query("select * from ".$prefix."_downloads_modrequest where brokendownload='1'"));
    $content .= "<OPTION VALUE=\"op=DownloadsListBrokenDownloads\">"._BROKENDOWN.": $brokend</OPTION>\n";
    $content .= "</SELECT></td>\n";
    $content .= "</form></tr>\n";
    $content .= "</table>\n";
} else {
    mt_srand ((double)microtime()*1000000);
    $maxran = 1000000;
    $random_num = mt_rand(0, $maxran);
    $content .= ""._BWEL.", <b>$anonymous</b><br>\n<br>\n";
    $content .= "<table border=0 cellpadding=0 cellspacing=0>\n";
    $content .= "<tr><form action=\"admin.php\" method=\"post\">\n";
    $content .= "<td>"._BADMIN.": <input type=\"text\" name=\"aid\" size=\"10\" maxlength=\"25\"><br>\n";
    $content .= ""._BPASS.": <input type=\"password\" name=\"pwd\" size=\"10\" maxlength=\"20\"><br>\n";
    if (extension_loaded("gd")) {
   $content .= ""._BCODE.": <img src='admin.php?op=gfx&random_num=$random_num' border='1' height='20' width='77' alt='"._BCODE."' title='"._BCODE."'><br>";
   $content .= ""._BTYPECODE.": <input type=\"text\" NAME=\"gfx_check\" SIZE=\"7\" MAXLENGTH=\"6\"><br>";
        $content .= "<input type=\"hidden\" NAME=\"random_num\" value=\"$random_num\">";
    }
    $content .= "<input type=\"hidden\" name=\"op\" value=\"login\">\n";
    $content .= "<input type=\"submit\" value=\""._BLOGIN."\">\n\n";
    $content .= "</td>\n";
    $content .= "</form></tr>\n";
    $content .= "</table>\n";
}
?>



and the lang that goes with it is :

Add these definitions to your langauge/lang-english.php file

/*****************************************************/
/* From file : blocks/block-Admin.php */
/*****************************************************/
define("_BLOGIN","Login");
define("_BFORUM","Forums");
define("_BOPTI","Optimize");
define("_BREFE","Referers");
define("_BADMIN","Admin ID");
define("_BPASS","Password");
define("_BWEL","Welcome");
define("_BCODE","Your Code");
define("_BTYPECODE","Enter Code");
 
blith







PostPosted: Wed Mar 29, 2006 4:51 pm Reply with quote

But I didn't want all the options I just wanted an admin log-in box on the front page... whose site is nukescripts? Bob Marion?
 
hitwalker







PostPosted: Wed Mar 29, 2006 5:23 pm Reply with quote

yes...you could easely strip out most things..
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Blocks

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©