rpicms

A CMS for the Raspberry Pi
git clone git://archive.git.mtrnord.blog/RpicmsTeam/rpicms.git
Log | Files | Refs | README | LICENSE

commit be54f5fd023af57c76e42e249fb99520b12e990c
parent ec0258ab043618298e9ecfa21bb765ef2b0d34e7
Author: MTRNord <mtrnord1@gmail.com>
Date:   Fri, 16 Jan 2015 20:41:17 +0100

better idea (it will fail because it isn't an array ;))

Diffstat:
Mthemes/jumbotron/admin.php | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/themes/jumbotron/admin.php b/themes/jumbotron/admin.php @@ -21,8 +21,8 @@ if ($root_3[1] == 'core') { $user = "test"; $user_allowed = "test1"; - -if($user_allowed == $user) { +foreach ($user_allowed as $subarray){ +if(in_array($user, $subarray) { ####################### # flush browser cache # ####################### @@ -277,4 +277,5 @@ foreach($langs as $prio => $lang) { }else{ echo "You not logged in!"; } +} ?> \ No newline at end of file