File: _arcdir.php

package info (click to toggle)
b2evolution 0.9.2-3
  • links: PTS
  • area: main
  • in suites: etch-m68k
  • size: 12,976 kB
  • ctags: 5,460
  • sloc: php: 58,989; sh: 298; makefile: 36
file content (34 lines) | stat: -rw-r--r-- 1,118 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
<?php 
	/**
	 * This is the template that displays the archive directory for a blog
	 *
	 * This file is not meant to be called directly.
	 * It is meant to be called by an include in the _main.php template.
	 * To display the archive directory, you should call a stub AND pass the right parameters
	 * For example: /blogs/index.php?disp=arcdir
	 *
	 * b2evolution - {@link http://b2evolution.net/}
	 * Released under GNU GPL License - {@link http://b2evolution.net/about/license.html}
	 * @copyright (c)2003-2005 by Francois PLANQUE - {@link http://fplanque.net/}
	 *
	 * @package evoskins
	 * @subpackage custom
	 */
	if( !defined('DB_USER') ) die( 'Please, do not access this page directly.' );

	if($disp == 'arcdir')  
	{ // We have asked to display full archives:
		echo '<ul>';
		/*
		 * This file is basically just a trick where we set the number of entries to display
		 * to "no limit"...
		 */
		$archive_limit = '';
		/**
		 * And then... call the default archive include.
		 */
		require dirname(__FILE__).'/_archives.php';
		unset( $archive_limit );
		echo '</ul>';
	}
?>