* There is an error in your code. *
Can't call method "global" on an undefined value at (eval 31) line 1.
Code With Errors:
Can't call method "global" on an undefined value at (eval 31) line 1.
(Line number 1 has been highlighted below.)
Code With Errors:
| 1 | global $PAGE; |
| 2 | global $USER; |
| 3 | $rtn=''; |
| 4 | if((strlen($PAGE['leftside']) && $PAGE['leftside'] != 'NULL') || (strlen($PAGE['image']) && $PAGE['image'] != 'NULL')){ |
| 5 | $rtn .= '<div id="leftside">'."\n"; |
| 6 | if(strlen($PAGE['image'])){ |
| 7 | $rtn .= ' <div align="center"><img src="'.$PAGE['image'].'" border="0"></div>'."\n"; |
| 8 | } |
| 9 | if(isset($PAGE['leftside']) && $PAGE['leftside'] != 'NULL'){ |
| 10 | $rtn .= ' <div align="center">'.evalPHP($PAGE['leftside']).'</div>'."\n"; |
| 11 | } |
| 12 | $rtn .= '</div>'."\n"; |
| 13 | $rtn .= '<div id="rightside">'."\n"; |
| 14 | } |
| 15 | else{ |
| 16 | $rtn .= '<div id="rightside" style="margin-left:0px;padding:0px;">'."\n"; |
| 17 | } |
| 18 | $rtn .= evalPHP($PAGE['body']); |
| 19 | $rtn .= '</div>'."\n"; |
| 20 | return $rtn; |