示例#1
0
<div id="dir-password">
	<h2>You need a password to view <strong><?php 
echo $relative ?: '/';
?>
</strong></h2>
	<form style="padding:8px 0" method="POST" action="<?php 
echo \dirp\app::get_request()->get_base_uri();
?>
/dir/login">
		<label for="password">password:</label>
		<input type="password" name="password" maxlength="256">
		<input type="submit" value="enter">
	</form>
</div>
示例#2
0
 /**
  * event_rendernav
  * adds the Index link to the navigation.
  *
  * @param \dirp\addon\event $nav
  */
 public function event_rendernav(\dirp\addon\event $nav)
 {
     $nav->links['Index'] = \dirp\app::get_request()->get_base_uri();
 }