vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Hacking adminfunctions.php (https://vborg.vbsupport.ru/showthread.php?t=33883)

Jawelin 01-07-2002 03:04 PM

Hi.
I was trying to modify the above file to make a simple hack:
I would use my left-side menu in AdminCP to link some external link, like phpMyAdmin and so on, like a bookmark keeper.

Well, as the standard makenavoption appends a '&s=session' to the link,
PHP Code:

// NOTE: '&s=$session[sessionhash]' will be AUTOMATICALLY added to the URL - do not add to your link! 

I would modify slightely the above file.

Well, I got an error because the adminfunctions.php file is somehow linked to functions.php one and to some other.

What's the solution to modify that (or similar) files ?

Thanks

dito 01-07-2002 06:19 PM

well if i get u right then ur in the wrong file.....

go to admin/index.php,

find;
Code:

<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2" id="navtable">
<?php maketableheader("Options"); ?>
</table>
<a href="options.php?s=<?php echo $session[sessionhash]; ?>&action=options"> Change options </a>
</td></tr>

now above that u can add ur own link like this:
Code:

<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2" id="navtable">
<?php maketableheader("phpmyadmin"); ?>
</table>
<a href="www.urdomain.com/phpmyadmin">use phpmyadmin </a>
</td></tr>


now if u want to make more links do it like this again and if u want to add more options within a certain group then just add this line and change it to ur needs:<a href="www.urdomain.com/phpmyadmin">use phpmyadmin </a>
but remember to add this "|"after each line so it looks like this;
Code:

<tr><td>
<table width="100%" border="0" cellspacing="0" cellpadding="2" id="navtable">
<?php maketableheader("phpmyadmin"); ?>
</table>
<a href="www.urdomain.com/phpmyadmin">usephpmyadmin</a> |
<a href="www.urdomain.com/phpmyadmin/tutorials">phpmyadmin tutorials</a>
</td></tr>


Jawelin 01-07-2002 07:27 PM

Wrong YOUR version, I think... :D
Thanks the same

I'm talking about v2.2.1 .... All the menu options are done by
makenavoption called in adminfunctions.php ...

What's yours ?
:stupid:

dito 01-07-2002 08:34 PM

ooh hehe:) well im using v2.1.0
so im not sure if that changed in v2.2.0
just check it to be sure....

dito 01-07-2002 08:38 PM

well anyway i think if u remove the sesion hash it will work fine look at the code that i showed
compare the one that i asked u to search for and the custom one i made under it ...on the top one u see sesion session hash and in the custom i replaced it cuz it only works if u make that page within the vb so then u would have to include it in misc.php if im not mistaken...

Psychdrone 01-07-2002 08:38 PM

version 2.1.0 eh??

dito 01-07-2002 09:12 PM

yes im using v2.1.0 but the guy in question uses 2.2.0
so i dont know that evrsion

Jawelin 01-08-2002 06:27 AM

2.2.1 ... ;)

Hwr, I didn't thought ver 2.1.0 would exist ... :)

Any way, my problem is in index.php reflecting functions defined in adminfunctions.php, AS REQUESTED in my first post in topic.

Nothing else... !

Thanks. Bye

Jawelin 01-11-2002 08:56 AM

Uhh? Nobody can help ?

Where in code that file is locked ?

Thanx


All times are GMT. The time now is 03:25 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01707 seconds
  • Memory Usage 1,727KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (9)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete