Random Logo PHP - Security Issue?
mdb Offline
Junior Member
**
Posts: 27
Joined: May 2012
Post: #1
Random Logo PHP - Security Issue?
Hey guys,
I'm trying to insert a random logo code into my header template (using Zingas awesome PHP in Templates plugin) but when trying to save the template, MyBB gives me an error about the code being a potential security risk.

Here is the code i'm using:

Code:
1
2
3
4
5
6
7
8
9
10
<?php
$Img1 = "{$theme['logo']}";

$Img2 = "/images/theme/logo2.png";

$num = rand (1,2);

$Image = ${'Img'.$num};

echo "<a href=\""{$mybb->settings['bburl']}/portal.php"\"><img src=\"".$Image."\" title=\""{$mybb->settings['bbname']}"\" width=\""700"\" height=\""150"\" alt=\""{$mybb->settings['bbname']}"\" /</a>"; ? >


Does anyone know how I could fix that?

05-13-2012 10:56 AM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
Random Logo PHP - Security Issue? - mdb - 05-13-2012 10:56 AM

 Standard Tools
Forum Jump: