The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Permissions for pages
#7
When you make that change, you are essentially going from html here:
</li>
to php and then back to html and then back to php and back to html. Each time you need to make sure you close php and reopen it. So, instead of ...

Code:
<?php if (checkMenu(2,$user->data()->id)){
Code:
<li class="purple"><a href="/sani/admin/erstellen.php">Erstellen</a>
Code:
</li>
Code:
} ?>

It should be

Code:
<?php if (checkMenu(2,$user->data()->id)){ ?>
See how I closed php?
Code:
<li class="purple"><a href="/sani/admin/erstellen.php">Erstellen</a>
I went back to standard html
Code:
</li>
Code:
<?php } ?>
Then I opened php put a } and closed it to complete the if statement
Code:
</ul>
Then went back to regular html.

I hope that helps.
  Reply


Messages In This Thread
Permissions for pages - by kampfaffe - 09-22-2016, 01:49 PM
Permissions for pages - by brian - 09-22-2016, 04:53 PM
Permissions for pages - by mudmin - 09-22-2016, 10:19 PM
Permissions for pages - by kampfaffe - 09-23-2016, 08:49 AM
Permissions for pages - by mudmin - 09-23-2016, 11:11 AM
Permissions for pages - by kampfaffe - 09-23-2016, 02:39 PM
Permissions for pages - by mudmin - 09-24-2016, 11:31 AM

Forum Jump:


Users browsing this thread: 1 Guest(s)