Hereby, I solemnly declare "Administration area" the official designation for our backend. #39 shall be deemed to be settled :D
This commit is contained in:
		
							parent
							
								
									0cceecaa02
								
							
						
					
					
						commit
						e4f542d5cd
					
				| @ -1,23 +1,20 @@ | |||||||
| <?php | <?php | ||||||
|  | $lang ['admin'] ['panel'] ['main'] = 'Main'; | ||||||
| 
 | 
 | ||||||
| 	$lang['admin']['panel']['main'] = 'Main'; | $lang ['admin'] ['main'] ['default'] = array( | ||||||
| 	 | 	'head' => 'Welcome to the administration area!', | ||||||
| 	$lang['admin']['main']['default'] = array( | 	'descr' => 'Select an action', | ||||||
| 		'head'		=> 'Welcome to the control panel!', | 
 | ||||||
| 		'descr'		=> 'Select an action', | 	'op1' => 'New Entry', | ||||||
| 		 | 	'op1d' => 'Add a new entry', | ||||||
| 		'op1'		=> 'New Entry', | 	'op2' => 'Entries', | ||||||
| 		'op1d'		=> 'Add a new entry', | 	'op2d' => 'Show  and manage all the entries', | ||||||
| 		'op2'		=> 'Entries', | 	'op3' => 'Widgets', | ||||||
| 		'op2d'		=> 'Show  and manage all the entries', | 	'op3d' => 'Manage sidebar, bottombar and topbar widgets', | ||||||
| 		'op3'		=> 'Widgets', | 	'op4' => 'Plugins', | ||||||
| 		'op3d'		=> 'Manage sidebar, bottombar and topbar widgets', | 	'op4d' => 'Install, enable, disable plugins', | ||||||
| 		'op4'		=> 'Plugins', | 	'op5' => 'Configuration', | ||||||
| 		'op4d'		=> 'Install, enable, disable plugins', | 	'op5d' => 'Customize your flatpress', | ||||||
| 		'op5'		=> 'Configuration', | 	'op6' => 'Maintenance', | ||||||
| 		'op5d'		=> 'Customize your flatpress', | 	'op6d' => 'Clean and restore flatpress' | ||||||
| 		'op6'		=> 'Maintenance', | ); | ||||||
| 		'op6d'		=> 'Clean and restore flatpress', |  | ||||||
| 		 |  | ||||||
| 	); |  | ||||||
| ?>
 |  | ||||||
|  | |||||||
| @ -1,34 +1,32 @@ | |||||||
| <?php | <?php | ||||||
|  | $lang ['admin'] ['head'] = 'Administration area'; | ||||||
| 
 | 
 | ||||||
| 	$lang['admin']['head'] = 'Administration area'; | $lang ['admin'] ['panels'] = array( | ||||||
| 	 | 	'main' => 'Main', | ||||||
| 	$lang['admin']['panels'] = array( | 	'config' => 'Options', | ||||||
| 		'main'		=> 'Main', | 	// 'users' => 'Users',
 | ||||||
| 		'config'	=> 'Options', | 	'entry' => 'Entries', | ||||||
| 		//'users'		=> 'Users',
 | 	'static' => 'Statics', | ||||||
| 		'entry'		=> 'Entries', | 	'uploader' => 'Uploader', | ||||||
| 		'static'	=> 'Statics', | 	'widgets' => 'Widgets', | ||||||
| 		'uploader'	=> 'Uploader', | 	// 'add' => 'Add',
 | ||||||
| 		'widgets'	=> 'Widgets', | 	// 'edit' => 'Edit/Delete',
 | ||||||
| 		//'add'		=> 'Add',
 | 	'maintain' => 'Maintain', | ||||||
| 		//'edit'		=> 'Edit/Delete',
 | 	'plugin' => 'Plugins', | ||||||
| 		'maintain'	=> 'Maintain', | 	'themes' => 'Themes' | ||||||
| 		'plugin'	=> 'Plugins', | 	// 'updates' => 'Updates',
 | ||||||
| 		'themes'	=> 'Themes', | ); | ||||||
| 		//'updates'	=> 'Updates',
 | 
 | ||||||
| 	); | $lang ['admin'] ['general'] = array( | ||||||
| 	 | 	'id' => 'Id', // for entry ids
 | ||||||
| 	 | 	'name' => 'Name', // for file names
 | ||||||
| 	$lang['admin']['general'] = array( | 	'title' => 'Title', // for entry/posts/static titles
 | ||||||
| 		'id'		=> 'Id',	# for entry ids
 | 	'comments' => '#Comms', | ||||||
| 		'name'		=> 'Name', 	# for file names
 | 	'author' => 'Author', | ||||||
| 		'title'		=> 'Title', # for entry/posts/static titles
 | 	'actdel' => 'Delete', | ||||||
| 		'comments'	=> '#Comms', | 	'actedit' => 'Edit', | ||||||
| 		'author'	=> 'Author', | 	'actenable' => 'Enable', | ||||||
| 		'actdel'	=> 'Delete', | 	'actdisable' => 'Disable' | ||||||
| 		'actedit'	=> 'Edit', | ); | ||||||
| 		'actenable'	=> 'Enable', |  | ||||||
| 		'actdisable'=> 'Disable' |  | ||||||
| 	); |  | ||||||
| 
 | 
 | ||||||
| ?>
 | ?>
 | ||||||
|  | |||||||
| @ -1,201 +1,184 @@ | |||||||
| <?php | <?php | ||||||
|  | $lang = array(); | ||||||
| 
 | 
 | ||||||
| 	$lang = array(); | $lang ['main'] = array( | ||||||
| 
 | 
 | ||||||
| 	$lang['main'] = array( | 	'nextpage' => 'Next Page »', | ||||||
| 		 | 	'prevpage' => '« Previous Page', | ||||||
| 		'nextpage'		=> 'Next Page »', | 	'entry' => 'Entry', | ||||||
| 		'prevpage'		=> '« Previous Page', | 	'static' => 'Static page', | ||||||
| 		'entry'      	=> 'Entry', | 	'comment' => 'Comment', | ||||||
| 		'static'     	=> 'Static page', | 	'preview' => 'Edit/Preview', | ||||||
| 		'comment'    	=> 'Comment', |  | ||||||
| 		'preview'    	=> 'Edit/Preview', |  | ||||||
| 		 |  | ||||||
| 		'filed_under'	=> 'Filed under ',	 |  | ||||||
| 		 |  | ||||||
| 		'add_entry'  	=> 'Add Entry', |  | ||||||
| 		'add_comment'  	=> 'Add Comment', |  | ||||||
| 		'add_static'  	=> 'Add Static Page', |  | ||||||
| 		 |  | ||||||
| 		'btn_edit'     	=> 'Edit', |  | ||||||
| 		'btn_delete'   	=> 'Delete', |  | ||||||
| 		 |  | ||||||
| 		'nocomments'	=> 'Add a comment', |  | ||||||
| 		'comment'	=> '1 comment', |  | ||||||
| 		'comments'	=> 'comments', |  | ||||||
| 		 |  | ||||||
| 	); |  | ||||||
| 	 |  | ||||||
| 	$lang['search'] = array( |  | ||||||
| 		 |  | ||||||
| 		'head'	=> 'Search', |  | ||||||
| 		'fset1'	=> 'Insert search criteria', |  | ||||||
| 		'keywords'	=> 'Phrase', |  | ||||||
| 		'onlytitles'	=> 'Only titles', |  | ||||||
| 		'fulltext'	=> 'Full-text', |  | ||||||
| 		 |  | ||||||
| 		'fset2'	=> 'Date', |  | ||||||
| 		'datedescr'	=> 'You can bind your search to a specific date. You may select an year, an year and a month, or a full date. '. |  | ||||||
| 					'Leave blank to search the entire database.', |  | ||||||
| 		 |  | ||||||
| 		'fset3' 	=> 'Search in categories', |  | ||||||
| 		'catdescr'	=> 'Don\'t select any to search all', |  | ||||||
| 		 |  | ||||||
| 		'fset4'	=> 'Start Searching', |  | ||||||
| 		'submit'	=> 'Search', |  | ||||||
| 		 |  | ||||||
| 		'headres'	=> 'Search Results', |  | ||||||
| 		'descrres'	=> 'Searching for <strong>%s</strong> returned the following results:', |  | ||||||
| 		'descrnores'=> 'Searching for <strong>%s</strong> returned no results.', |  | ||||||
| 		 |  | ||||||
| 		'moreopts'	=> 'More options', |  | ||||||
| 		 |  | ||||||
| 		 |  | ||||||
| 		'searchag'	=> 'Search again', |  | ||||||
| 		 |  | ||||||
| 	); |  | ||||||
| 	 |  | ||||||
| 	$lang['search']['error'] = array( |  | ||||||
| 	 |  | ||||||
| 		'keywords'	=> 'You must specify at least one keyword' |  | ||||||
| 	 |  | ||||||
| 	); |  | ||||||
| 	 |  | ||||||
| 	 |  | ||||||
| 	 |  | ||||||
| 	 |  | ||||||
| 	 |  | ||||||
| 	$lang['entry'] = array(); |  | ||||||
| 	$lang['entry']['flags'] = array(); |  | ||||||
| 	 |  | ||||||
| 	$lang['entry']['flags']['long'] = array( |  | ||||||
| 		'draft' => '<strong>Draft entry</strong>: hidden, awaiting publication', |  | ||||||
| 		//'static' => '<strong>Static entry</strong>: normally hidden, to reach the entry put ?page=title-of-the-entry in url (experimental)',
 |  | ||||||
| 		'commslock' => '<strong>Comments locked</strong>: comments disallowed for this entry' |  | ||||||
| 	); |  | ||||||
| 	 |  | ||||||
| 	$lang['entry']['flags']['short'] = array( |  | ||||||
| 		'draft' => 'Draft', |  | ||||||
| 		//'static' => 'Static',
 |  | ||||||
| 		'commslock' => 'Comments locked' |  | ||||||
| 	); |  | ||||||
| 
 | 
 | ||||||
| 	$lang['404error'] = array( | 	'filed_under' => 'Filed under ', | ||||||
| 		'subject'	=> 'Not Found', |  | ||||||
| 		'content'	=> '<p>Sorry, we could not find the page you requested</p>' |  | ||||||
| 	); |  | ||||||
| 		 |  | ||||||
| 	// Login
 |  | ||||||
| 	$lang['login'] = array( |  | ||||||
| 		 |  | ||||||
| 		'head'		=> 'Login', |  | ||||||
| 		'fieldset1'	=> 'Insert your user name and password', |  | ||||||
| 		'user'		=> 'Username:', |  | ||||||
| 		'pass'		=> 'Password:', |  | ||||||
| 		'fieldset2'	=> 'Do login', |  | ||||||
| 		'submit'	=> 'Login', |  | ||||||
| 		'forgot'	=> 'Password lost' |  | ||||||
| 	); |  | ||||||
| 		 |  | ||||||
| 	$lang['login']['success'] = array( |  | ||||||
| 		'success'	=> 'You are now logged in.', |  | ||||||
| 		'logout'	=> 'You are now logged out.', |  | ||||||
| 		'redirect'	=> 'You will be redirected in 5 seconds.', |  | ||||||
| 		'opt1'		=> 'Back to index', |  | ||||||
| 		'opt2'		=> 'Go to Control Panel', |  | ||||||
| 		'opt3'		=> 'Add new entry' |  | ||||||
| 	); |  | ||||||
| 	 |  | ||||||
| 	$lang['login']['error'] = array( |  | ||||||
| 		'user'		=> 'You must enter a username.', |  | ||||||
| 		'pass'		=> 'You must enter a password.', |  | ||||||
| 		'match'		=> 'Password incorrect.' |  | ||||||
| 	); |  | ||||||
| 	 |  | ||||||
| 	 |  | ||||||
| 	$lang['comments'] = array( |  | ||||||
| 		'head'		=> 'Add comment', |  | ||||||
| 		'descr'		=> 'Fill out the form below to add your own comments', |  | ||||||
| 		'fieldset1'	=> 'User data', |  | ||||||
| 		'name'		=> 'Name (*)', |  | ||||||
| 		'email'		=> 'Email:', |  | ||||||
| 		'www'		=> 'Web:', |  | ||||||
| 		'cookie'	=> 'Remember me', |  | ||||||
| 		'fieldset2'	=> 'Add your comment', |  | ||||||
| 		'comment'	=> 'Comment (*):', |  | ||||||
| 		'fieldset3'	=> 'Send', |  | ||||||
| 		'submit'	=> 'Add', |  | ||||||
| 		'reset'		=> 'Reset', |  | ||||||
| 		'success'	=> 'Your comment was added successfully', |  | ||||||
| 		'nocomments'	=> 'This entry have not been commented yet', |  | ||||||
| 		'commslock'	=> 'Comments have been disabled for this entry', |  | ||||||
| 	); |  | ||||||
| 	 |  | ||||||
| 	$lang['comments']['error'] = array( |  | ||||||
| 		'name'		=> 'You must enter a name', |  | ||||||
| 		'email'		=> 'You must enter a valid email', |  | ||||||
| 		'www'		=> 'You must enter a valid URL', |  | ||||||
| 		'comment'	=> 'You must enter a comment', |  | ||||||
| 	); |  | ||||||
| 	 |  | ||||||
| 	$lang['date']['month'] = array( |  | ||||||
| 		 |  | ||||||
| 		'January', |  | ||||||
| 		'February', |  | ||||||
| 		'March', |  | ||||||
| 		'April', |  | ||||||
| 		'May', |  | ||||||
| 		'June', |  | ||||||
| 		'July', |  | ||||||
| 		'August', |  | ||||||
| 		'September', |  | ||||||
| 		'October', |  | ||||||
| 		'November', |  | ||||||
| 		'December' |  | ||||||
| 		 |  | ||||||
| 	); |  | ||||||
| 
 | 
 | ||||||
| 	$lang['date']['month_abbr'] = array( | 	'add_entry' => 'Add Entry', | ||||||
| 		 | 	'add_comment' => 'Add Comment', | ||||||
| 		'Jan', | 	'add_static' => 'Add Static Page', | ||||||
| 		'Feb', |  | ||||||
| 		'Mar', |  | ||||||
| 		'Apr', |  | ||||||
| 		'May', |  | ||||||
| 		'Jun', |  | ||||||
| 		'Jul', |  | ||||||
| 		'Aug', |  | ||||||
| 		'Sep', |  | ||||||
| 		'Oct', |  | ||||||
| 		'Nov', |  | ||||||
| 		'Dec' |  | ||||||
| 		 |  | ||||||
| 	); |  | ||||||
| 
 | 
 | ||||||
| 	$lang['date']['weekday'] = array( | 	'btn_edit' => 'Edit', | ||||||
| 		 | 	'btn_delete' => 'Delete', | ||||||
| 		'Sunday', |  | ||||||
| 		'Monday', |  | ||||||
| 		'Tuesday', |  | ||||||
| 		'Wednesday', |  | ||||||
| 		'Thursday', |  | ||||||
| 		'Friday', |  | ||||||
| 		'Saturday', |  | ||||||
| 		 |  | ||||||
| 	); |  | ||||||
| 
 | 
 | ||||||
| 	$lang['date']['weekday_abbr'] = array( | 	'nocomments' => 'Add a comment', | ||||||
| 		 | 	'comment' => '1 comment', | ||||||
| 		'Sun', | 	'comments' => 'comments' | ||||||
| 		'Mon', | ); | ||||||
| 		'Tue', |  | ||||||
| 		'Wed', |  | ||||||
| 		'Thu', |  | ||||||
| 		'Fri', |  | ||||||
| 		'Sat', |  | ||||||
| 		 |  | ||||||
| 	); |  | ||||||
| 
 | 
 | ||||||
|  | $lang ['search'] = array( | ||||||
| 
 | 
 | ||||||
|  | 	'head' => 'Search', | ||||||
|  | 	'fset1' => 'Insert search criteria', | ||||||
|  | 	'keywords' => 'Phrase', | ||||||
|  | 	'onlytitles' => 'Only titles', | ||||||
|  | 	'fulltext' => 'Full-text', | ||||||
|  | 
 | ||||||
|  | 	'fset2' => 'Date', | ||||||
|  | 	'datedescr' => 'You can bind your search to a specific date. You may select an year, an year and a month, or a full date. ' . 'Leave blank to search the entire database.', | ||||||
|  | 
 | ||||||
|  | 	'fset3' => 'Search in categories', | ||||||
|  | 	'catdescr' => 'Don\'t select any to search all', | ||||||
|  | 
 | ||||||
|  | 	'fset4' => 'Start Searching', | ||||||
|  | 	'submit' => 'Search', | ||||||
|  | 
 | ||||||
|  | 	'headres' => 'Search Results', | ||||||
|  | 	'descrres' => 'Searching for <strong>%s</strong> returned the following results:', | ||||||
|  | 	'descrnores' => 'Searching for <strong>%s</strong> returned no results.', | ||||||
|  | 
 | ||||||
|  | 	'moreopts' => 'More options', | ||||||
|  | 
 | ||||||
|  | 	'searchag' => 'Search again' | ||||||
|  | ); | ||||||
|  | 
 | ||||||
|  | $lang ['search'] ['error'] = array( | ||||||
|  | 
 | ||||||
|  | 	'keywords' => 'You must specify at least one keyword' | ||||||
|  | ); | ||||||
|  | 
 | ||||||
|  | $lang ['entry'] = array(); | ||||||
|  | $lang ['entry'] ['flags'] = array(); | ||||||
|  | 
 | ||||||
|  | $lang ['entry'] ['flags'] ['long'] = array( | ||||||
|  | 	'draft' => '<strong>Draft entry</strong>: hidden, awaiting publication', | ||||||
|  | 	// 'static' => '<strong>Static entry</strong>: normally hidden, to reach the entry put ?page=title-of-the-entry in url (experimental)',
 | ||||||
|  | 	'commslock' => '<strong>Comments locked</strong>: comments disallowed for this entry' | ||||||
|  | ); | ||||||
|  | 
 | ||||||
|  | $lang ['entry'] ['flags'] ['short'] = array( | ||||||
|  | 	'draft' => 'Draft', | ||||||
|  | 	// 'static' => 'Static',
 | ||||||
|  | 	'commslock' => 'Comments locked' | ||||||
|  | ); | ||||||
|  | 
 | ||||||
|  | $lang ['404error'] = array( | ||||||
|  | 	'subject' => 'Not Found', | ||||||
|  | 	'content' => '<p>Sorry, we could not find the page you requested</p>' | ||||||
|  | ); | ||||||
|  | 
 | ||||||
|  | // Login
 | ||||||
|  | $lang ['login'] = array( | ||||||
|  | 
 | ||||||
|  | 	'head' => 'Login', | ||||||
|  | 	'fieldset1' => 'Insert your user name and password', | ||||||
|  | 	'user' => 'Username:', | ||||||
|  | 	'pass' => 'Password:', | ||||||
|  | 	'fieldset2' => 'Do login', | ||||||
|  | 	'submit' => 'Login', | ||||||
|  | 	'forgot' => 'Password lost' | ||||||
|  | ); | ||||||
|  | 
 | ||||||
|  | $lang ['login'] ['success'] = array( | ||||||
|  | 	'success' => 'You are now logged in.', | ||||||
|  | 	'logout' => 'You are now logged out.', | ||||||
|  | 	'redirect' => 'You will be redirected in 5 seconds.', | ||||||
|  | 	'opt1' => 'Back to index', | ||||||
|  | 	'opt2' => 'Go to Admin Area', | ||||||
|  | 	'opt3' => 'Add new entry' | ||||||
|  | ); | ||||||
|  | 
 | ||||||
|  | $lang ['login'] ['error'] = array( | ||||||
|  | 	'user' => 'You must enter a username.', | ||||||
|  | 	'pass' => 'You must enter a password.', | ||||||
|  | 	'match' => 'Password incorrect.' | ||||||
|  | ); | ||||||
|  | 
 | ||||||
|  | $lang ['comments'] = array( | ||||||
|  | 	'head' => 'Add comment', | ||||||
|  | 	'descr' => 'Fill out the form below to add your own comments', | ||||||
|  | 	'fieldset1' => 'User data', | ||||||
|  | 	'name' => 'Name (*)', | ||||||
|  | 	'email' => 'Email:', | ||||||
|  | 	'www' => 'Web:', | ||||||
|  | 	'cookie' => 'Remember me', | ||||||
|  | 	'fieldset2' => 'Add your comment', | ||||||
|  | 	'comment' => 'Comment (*):', | ||||||
|  | 	'fieldset3' => 'Send', | ||||||
|  | 	'submit' => 'Add', | ||||||
|  | 	'reset' => 'Reset', | ||||||
|  | 	'success' => 'Your comment was added successfully', | ||||||
|  | 	'nocomments' => 'This entry have not been commented yet', | ||||||
|  | 	'commslock' => 'Comments have been disabled for this entry' | ||||||
|  | ); | ||||||
|  | 
 | ||||||
|  | $lang ['comments'] ['error'] = array( | ||||||
|  | 	'name' => 'You must enter a name', | ||||||
|  | 	'email' => 'You must enter a valid email', | ||||||
|  | 	'www' => 'You must enter a valid URL', | ||||||
|  | 	'comment' => 'You must enter a comment' | ||||||
|  | ); | ||||||
|  | 
 | ||||||
|  | $lang ['date'] ['month'] = array( | ||||||
|  | 
 | ||||||
|  | 	'January', | ||||||
|  | 	'February', | ||||||
|  | 	'March', | ||||||
|  | 	'April', | ||||||
|  | 	'May', | ||||||
|  | 	'June', | ||||||
|  | 	'July', | ||||||
|  | 	'August', | ||||||
|  | 	'September', | ||||||
|  | 	'October', | ||||||
|  | 	'November', | ||||||
|  | 	'December' | ||||||
|  | ); | ||||||
|  | 
 | ||||||
|  | $lang ['date'] ['month_abbr'] = array( | ||||||
|  | 
 | ||||||
|  | 	'Jan', | ||||||
|  | 	'Feb', | ||||||
|  | 	'Mar', | ||||||
|  | 	'Apr', | ||||||
|  | 	'May', | ||||||
|  | 	'Jun', | ||||||
|  | 	'Jul', | ||||||
|  | 	'Aug', | ||||||
|  | 	'Sep', | ||||||
|  | 	'Oct', | ||||||
|  | 	'Nov', | ||||||
|  | 	'Dec' | ||||||
|  | ); | ||||||
|  | 
 | ||||||
|  | $lang ['date'] ['weekday'] = array( | ||||||
|  | 
 | ||||||
|  | 	'Sunday', | ||||||
|  | 	'Monday', | ||||||
|  | 	'Tuesday', | ||||||
|  | 	'Wednesday', | ||||||
|  | 	'Thursday', | ||||||
|  | 	'Friday', | ||||||
|  | 	'Saturday' | ||||||
|  | ); | ||||||
|  | 
 | ||||||
|  | $lang ['date'] ['weekday_abbr'] = array( | ||||||
|  | 
 | ||||||
|  | 	'Sun', | ||||||
|  | 	'Mon', | ||||||
|  | 	'Tue', | ||||||
|  | 	'Wed', | ||||||
|  | 	'Thu', | ||||||
|  | 	'Fri', | ||||||
|  | 	'Sat' | ||||||
|  | ); | ||||||
| 
 | 
 | ||||||
| ?>
 | ?>
 | ||||||
|  | |||||||
| @ -1,14 +1,10 @@ | |||||||
| <?php | <?php | ||||||
|  | $lang ['plugin'] ['adminarea'] = array( | ||||||
| 
 | 
 | ||||||
| 	$lang['plugin']['adminarea'] = array( | 	'subject' => 'Admin', | ||||||
| 		 | 	'welcome' => 'Welcome home, ', | ||||||
| 		'subject'		=> 'Admin area', | 	'admin_panel' => 'Admin area', | ||||||
| 		'welcome'		=> 'Welcome home, ', | 	'add_entry' => 'Add entry', | ||||||
| 		'admin_panel'	=> 'Admin panel', | 	'add_static' => 'Add static', | ||||||
| 		'add_entry'		=> 'Add entry', | 	'logout' => 'Logout' | ||||||
| 		'add_static'	=> 'Add static', | ); | ||||||
| 		'logout'		=> 'Logout' |  | ||||||
| 	 |  | ||||||
| 	); |  | ||||||
| 
 |  | ||||||
| ?>
 |  | ||||||
| @ -1,35 +1,35 @@ | |||||||
| <?php | <?php | ||||||
| /* |  | ||||||
| Plugin Name: AdminArea |  | ||||||
| Plugin URI: http://www.nowhereland.it/ |  | ||||||
| Description: AdminArea plugin. Part of the standard distribution ;) |  | ||||||
| Author: NoWhereMan |  | ||||||
| Version: 1.0 |  | ||||||
| Author URI: http://www.nowhereland.it/ |  | ||||||
| */  |  | ||||||
| 
 | 
 | ||||||
|  | /* | ||||||
|  |  * Plugin Name: AdminArea | ||||||
|  |  * Plugin URI: http://www.nowhereland.it/ | ||||||
|  |  * Description: AdminArea plugin. Part of the standard distribution ;) | ||||||
|  |  * Author: NoWhereMan | ||||||
|  |  * Version: 1.0 | ||||||
|  |  * Author URI: http://www.nowhereland.it/ | ||||||
|  |  */ | ||||||
| function plugin_adminarea_widget() { | function plugin_adminarea_widget() { | ||||||
| 
 | 
 | ||||||
| 	// load plugin strings
 | 	// load plugin strings
 | ||||||
| 	// they're located under plugin.PLUGINNAME/lang/LANGID/
 | 	// they're located under plugin.PLUGINNAME/lang/LANGID/
 | ||||||
| 	$lang = lang_load('plugin:adminarea'); | 	$lang = lang_load('plugin:adminarea'); | ||||||
| 	$baseurl = BLOG_BASEURL; | 	$baseurl = BLOG_BASEURL; | ||||||
| 	 | 
 | ||||||
| 	if ($user = user_loggedin()) { | 	if ($user = user_loggedin()) { | ||||||
| 		$userid = $user['userid']; | 		$userid = $user ['userid']; | ||||||
| 		$string = <<<END | 		$string = <<<END | ||||||
| 		<p>{$lang['plugin']['adminarea']['welcome']} <strong>{$userid}</strong> !</p> | 				<p>{$lang['plugin']['adminarea']['welcome']} <strong>{$userid}</strong>!</p> | ||||||
| 		<ul> | 				<ul> | ||||||
| 		<li><a href="{$baseurl}admin.php">{$lang['plugin']['adminarea']['admin_panel']}</a></li> | 				<li><a href="{$baseurl}admin.php">{$lang['plugin']['adminarea']['admin_panel']}</a></li> | ||||||
| 		<li><a href="{$baseurl}admin.php?p=entry&action=write">{$lang['plugin']['adminarea']['add_entry']}</a></li> | 				<li><a href="{$baseurl}admin.php?p=entry&action=write">{$lang['plugin']['adminarea']['add_entry']}</a></li> | ||||||
| 		<li><a href="{$baseurl}login.php?do=logout">{$lang['plugin']['adminarea']['logout']}</a></li> | 				<li><a href="{$baseurl}login.php?do=logout">{$lang['plugin']['adminarea']['logout']}</a></li> | ||||||
| 		</ul> | 				</ul> | ||||||
| END; | 		END; | ||||||
| 	} else | 	} else | ||||||
| 		$string = '<ul><li><a href="'.$baseurl.'login.php">Login</a></li></ul>'; | 		$string = '<ul><li><a href="' . $baseurl . 'login.php">Login</a></li></ul>'; | ||||||
| 	 | 
 | ||||||
| 	$entry['subject'] = $lang['plugin']['adminarea']['subject']; | 	$entry ['subject'] = $lang ['plugin'] ['adminarea'] ['subject']; | ||||||
| 	$entry['content'] = $string; | 	$entry ['content'] = $string; | ||||||
| 
 | 
 | ||||||
| 	return $entry; | 	return $entry; | ||||||
| } | } | ||||||
|  | |||||||
| @ -153,7 +153,7 @@ Want to see more? | |||||||
| 
 | 
 | ||||||
| [h4]And what now?[/h4] | [h4]And what now?[/h4] | ||||||
| 
 | 
 | ||||||
| Now you can [url=login.php]Login[/url] to get to the [url=admin.php]Control Panel[/url] and start posting! | Now you can [url=login.php]Login[/url] to get to the [url=admin.php]Administration Area[/url] and start posting! | ||||||
| 
 | 
 | ||||||
| Have fun! :)  | Have fun! :)  | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 azett
						azett