Go Back   vBulletin Setup > vBulletinSetup Information > vBulletin Questions


Please Register to get full access to the forums.
Post New Thread  Reply



#1   05-08-2007, 03:36 PM
harmor has a spectacular aura about Join Date: Oct 2006 Posts: 144
Help making code more secure


I thought of a great idea for a hack of mine but I'm afraid it's not a secure as it should be.
In the ACP there is an input box to type in a condition. For example you'd type in $vbulletin->userinfo[userid] == 1 and insert everything into table "links".
When calling the table "links" you would use
PHP Code:
if(!empty($result['condition']))
{
    if(eval(
$result['condition']))
    {
        
//code here
    
}
    else
    {
       
//other code here
    
}


--------------------
vHosting Pro
Manage you hosting requests easier

Xen Web Hosting
Offering ad-free hosting with features such as, cpanel, fantastico, PHP and MySQL support, and more
Quote   |  



#2   05-09-2007, 11:29 AM
Send a message via AIM to Brandon Send a message via MSN to Brandon Send a message via Yahoo to Brandon Brandon is a glorious beacon of lightBrandon is a glorious beacon of lightBrandon is a glorious beacon of lightBrandon is a glorious beacon of light Join Date: Jul 2006 Posts: 9,839 Location: Topeka, KS
Re: Help making code more secure


it's greek to me :p

maybe mike can help out
--------------------
Brandon Sheley / vBulletin Setup Staff
Check out our Newsletter for the latest vB and SEO news.
Are you looking for vBulletin work to be done on your forums ?
Would you like to Help Support vBulletin Setup.

Please do not PM me for support, that's what the forums are for.
Have you heard about Crowdgather?
Find it on Forums


Stay up to date by installing our Tool Bar
Quote   |  



#3   05-09-2007, 01:28 PM
harmor has a spectacular aura about Join Date: Oct 2006 Posts: 144
Re: Help making code more secure


I can't use that anyways. I have to eval out the whole if statement and not just the argument inbetween the parenthesis.
--------------------
vHosting Pro
Manage you hosting requests easier

Xen Web Hosting
Offering ad-free hosting with features such as, cpanel, fantastico, PHP and MySQL support, and more
Quote   |  
Post New Thread  Reply
vBulletin Setup > vBulletinSetup Information > vBulletin Questions


Thread Tools
Display Modes

 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
making new forums question jackni vBulletin Questions 4 11-29-2007 04:17 PM
Making a skin Barry vBulletin Questions 1 02-17-2007 12:16 PM
Making certain areas closed to... PC101 General Discussion 5 01-04-2007 12:12 PM
Why did you start making your own styles Brandon vBulletin Graphic Questions 6 10-09-2006 09:38 PM
Making Welcome Header an Image soultrader vBulletin Questions 8 10-01-2006 11:33 PM


All times are GMT -6. The time now is 09:45 PM.

vBulletin Setup, vBulletin Setup Forums, vBulletin Services, vBulletin Blogs, vBulletin SEO, vBulletin Questions, vBulletin Skins, Styles, Templates
vBulletin Hacks / Modifications, vBulletin Monetization, Blogs, vBulletin Link Directory,Quality Link Directory