Welcome Guest [Log In] [Register]
Search Members Calendar | Rules ZB Code Index IF Code Index
ZBCode
  • Navigation
  • ZBCode
  • Coding Resources
  • Zetaboards Modifications
  • [SC] Quick Admin Login
Hey, welcome to ZBCode, the premier coding forum for ZB. Here you fill find some of the best Invisionfree and Zetaboards Codes on the network! Unfortunately, you're sorta hovering around in guest mode at the moment; why not join in on the fun? Register an account and you can start accessing the wealth of resources we have available here. Enjoy your stay at ZBCode, and remember to tell all your friends about us; the more members, the more codes available. ;)

Interested in joining? Click here.


If you are already a member of ZBCode, feel free to login right here:

Username:   Password:
Locked Topic
  • Pages:
  • 1
  • 2
[SC] Quick Admin Login
Tweet Topic Started: May 8 2009, 07:52 AM (1,514 Views)
Agent Moose May 8 2009, 07:52 AM Post #1
Member Avatar
SMF for Free Moderator

Posts:
838
Group:
Former Staff
Member
#14
Joined:
Jul 9, 2008
Place in (one of the following): Below Baord/Above Board/Above Copyright
Code:
 
<script type="text/javascript">function QuickAdmin(){/*==Created by Agent Moose (revolutionx.smfforfree3.com)==*/var User = $("#top_info strong a").text();$.get(main_url + "admin/",function(a){if($(a).find("a:contains('[Sign Out]')").html()){alert("Already logged in!");}else{var Pass1 = prompt("Enter your Password:","");var Pass2 = prompt("Enter your Password again:","");if(Pass1 == Pass2){$.post(main_url + "admin/?menu=login&theme=0",{name:User,pass:Pass2},function(){$.get(main_url + "admin/",function(b){if($(b).find("a:contains('[Sign Out]')").html()){alert("You are now logged in.");}else{alert("Incorrect Password");}});});}else{alert("Your passwords did not match!");};};});};if($("li#menu_acp").html()){$("a:contains('[Sign Out]')").after(" <a href='javascript:void(0);' onclick='QuickAdmin();'>[Quick Admin Login]</a>");};</script>


A simple code that adds a link next to the sign out link that says [Quick Admin Login] (only if your an admin of the board).

Anyway, enjoy :)
Edited by Reid, Jun 15 2009, 08:17 PM.
You could call me Troy :P | The World of Moosey | Newest Blog: SMF for Free Spam Code

Current Project: Zetaboard Javascript Tester (click on the link in the Submenu)

ZetaBoard Javascript Tester Features:
- Code Test box
- Counts how many open brackets/parentheses and closed brackets/parentheses you have in your code to make sure that your code will work.
- New: Inspect Element
Offline Profile Goto Top
 
Reid May 8 2009, 07:59 AM Post #2
Member Avatar
What? The land of the free? Whoever told you that was your enemy.

Posts:
1,790
Group:
Distinguished Coder
Member
#148
Joined:
Jul 20, 2008
Are you sure that's secure?
The Resource Board
Offline Profile Goto Top
 
Agent Moose May 8 2009, 10:28 AM Post #3
Member Avatar
SMF for Free Moderator

Posts:
838
Group:
Former Staff
Member
#14
Joined:
Jul 9, 2008
I don't see why it wouldn't be secure.

Its basically like choco's switch user code but it logs you into the ACP.
You could call me Troy :P | The World of Moosey | Newest Blog: SMF for Free Spam Code

Current Project: Zetaboard Javascript Tester (click on the link in the Submenu)

ZetaBoard Javascript Tester Features:
- Code Test box
- Counts how many open brackets/parentheses and closed brackets/parentheses you have in your code to make sure that your code will work.
- New: Inspect Element
Offline Profile Goto Top
 
slayer766 May 8 2009, 04:47 PM Post #4
Member Avatar
Hello all

Posts:
1,653
Group:
Distinguished Coder
Member
#12
Joined:
Jul 9, 2008
Coding language
PHP
:P Nice one Moose, and yeah Reid no need for security here on Moose's part.
Offline Profile Goto Top
 
Vitality May 8 2009, 05:14 PM Post #5
Member Avatar
Tabula Rasa

Posts:
784
Group:
Former Staff
Member
#320
Joined:
Jul 26, 2008
Slightly bugged? I entered in false passwords, and as long as they matched the logged in alert popped up. It didn't log in (obviously).
Offline Profile Goto Top
 
Agent Moose May 8 2009, 06:20 PM Post #6
Member Avatar
SMF for Free Moderator

Posts:
838
Group:
Former Staff
Member
#14
Joined:
Jul 9, 2008
Problem fixed :)
You could call me Troy :P | The World of Moosey | Newest Blog: SMF for Free Spam Code

Current Project: Zetaboard Javascript Tester (click on the link in the Submenu)

ZetaBoard Javascript Tester Features:
- Code Test box
- Counts how many open brackets/parentheses and closed brackets/parentheses you have in your code to make sure that your code will work.
- New: Inspect Element
Offline Profile Goto Top
 
Vitality May 8 2009, 07:52 PM Post #7
Member Avatar
Tabula Rasa

Posts:
784
Group:
Former Staff
Member
#320
Joined:
Jul 26, 2008
Nice work Moose :D
Offline Profile Goto Top
 
DaMeiN May 10 2009, 08:25 AM Post #8
Member Avatar
Oo.SpawN.oO

Posts:
204
Group:
Member
Member
#2,589
Joined:
Mar 16, 2009
Coding language
HTML/CSS
Could I get a version that requires only one password input/no verification of the login?

Thanks.
Posted Image

† You fall to your knees, you beg you plead. Can I be someone else, for all the times I hate myself.. †
† You refuse to bend, so I keep bending until I break... †
Offline Profile Goto Top
 
Agent Moose May 10 2009, 05:16 PM Post #9
Member Avatar
SMF for Free Moderator

Posts:
838
Group:
Former Staff
Member
#14
Joined:
Jul 9, 2008
Here ya go:
Code:
 
<script type="text/javascript">function QuickAdmin(){/*==Created by Agent Moose (revolutionx.smfforfree3.com)==*/var User = $("#top_info strong a").text();$.get(main_url + "admin/",function(a){if($(a).find("a:contains('[Sign Out]')").html()){alert("Already logged in!");}else{var Pass1 = prompt("Enter your Password:","");$.post(main_url + "admin/?menu=login&theme=0",{name:User,pass:Pass1},function(){$.get(main_url + "admin/",function(b){if($(b).find("a:contains('[Sign Out]')").html()){alert("You are now logged in.");}else{alert("Incorrect Password");};});});};});};if($("li#menu_acp").html()){$("a:contains('[Sign Out]')").after(" <a href='javascript:void(0);' onclick='QuickAdmin();'>[Quick Admin Login]</a>");};</script>
You could call me Troy :P | The World of Moosey | Newest Blog: SMF for Free Spam Code

Current Project: Zetaboard Javascript Tester (click on the link in the Submenu)

ZetaBoard Javascript Tester Features:
- Code Test box
- Counts how many open brackets/parentheses and closed brackets/parentheses you have in your code to make sure that your code will work.
- New: Inspect Element
Offline Profile Goto Top
 
frs_zeta Mar 3 2011, 05:05 PM Post #10


Posts:
1
Group:
Member
Member
#4,068
Joined:
Mar 3, 2011
Coding language
HTML/CSS
Hey there Moose :) It's a great addition to a forum :) Only problem is that whenever I type in my ACP Password it just pops up Incorrect Password, Whats wrong mate?
Offline Profile Goto Top
 
1 user reading this topic (1 Guest and 0 Anonymous)
Go to Next Page
« Previous Topic · Zetaboards Modifications · Next Topic »
Locked Topic
  • Pages:
  • 1
  • 2

Track Topic · E-mail Topic Time: 7:39 PM Jul 10
Hosted for free by ZetaBoards · Privacy Policy