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
#4
Hello,
thank you for response. That sounds good, but it don`t work for me.

At the moment, this is my script for the menu of the homepage:
<pre>
<pre>
Code:
<nav>
    <div class="wrapper">
      <ul id="menu" class="clearfix">
        <li><a href="/sani">Home</a></li>
        
<li><a href="#">Dienstpläne</a>
          <ul>
            <li class="purple"><a href="/sani/aktuell/kw38.php">Aktuell</a>
            </li>
            <li class="purple"><a href="#">Archiv</a>
              <ul>
                <li><a href="/sani/archiv/2016/september">September</a></li>
                
                <li><a href="/sani/archiv/2016/juli">Juli</a></li>
                <li><a href="#">Juni</a></li>
              </ul>
            </li>

            <li class="purple"><a href="#">Erstellen</a>
              <ul>
                <li><a href="/sani/admin/kw38_erstellen.php">KW38</a></li>
                <li><a href="#">KW39</a></li>
                <li><a href="#">KW40</a></li>
              </ul>
            </li>

          </ul>
        </li>
                <li><a href="/sani/termine.php">Termine</a></li>
                <li><a href="/sani/changelog.php">Changelog</a></li>

      </ul>
    </div>
  </nav>
</pre>

</pre>

Now, i wan't to hide the following:
<pre>
<pre>
Code:
<li class="purple"><a href="#">Erstellen</a>
              <ul>
                <li><a href="/sani/admin/kw38_erstellen.php">KW38</a></li>
                <li><a href="#">KW39</a></li>
                <li><a href="#">KW40</a></li>
              </ul>
            </li>
</pre>



So I did this:

<pre>
Code:
<?php if (checkMenu(2,$user->data()->id)){
            <li class="purple"><a href="#">Erstellen</a>
              <ul>
                <li><a href="/sani/admin/kw38_erstellen.php">KW38</a></li>
                <li><a href="#">KW39</a></li>
                <li><a href="#">KW40</a></li>
              </ul>
            </li>
} ?>
</pre>

</pre>

But now, there is the following Error in the Apache log: PHP Parse error: syntax error, unexpected '<' in /var/www/html/secret/sani/termine.php on line 35.


Thank you for your help!
  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)