| [ PHPXref.com ] | [ Generated: Sun Jul 20 16:35:25 2008 ] | [ bBlog 0.7.6 ] |
| [ Index ] [ Variables ] [ Functions ] [ Classes ] [ Constants ] [ Statistics ] | ||
[Summary view] [Print] [Text view]
1 <?php 2 function identify_admin_help () { 3 return array ( 4 'name' =>'help', 5 'type' =>'admin', 6 'nicename' =>'Help', 7 'description' =>'Displays Help', 8 'authors' =>'Eaden McKee', 9 'licence' =>'GPL' 10 ); 11 } 12 if(is_numeric($_GET['pid']) or strlen($_GET['mod'])>0) { 13 $bBlog->assign('pluginhelp',TRUE); 14 15 if($_GET['mod']) $pluginrow = $bBlog->get_row("select * from ".T_PLUGINS." where name='".$_GET['mod']."' and type='modifier'"); 16 17 else $pluginrow = $bBlog->get_row("select * from ".T_PLUGINS." where id='".$_GET['pid']."'"); 18 19 $bBlog->assign("title","Help: ".$pluginrow->type." : ".$pluginrow->nicename); 20 $bBlog->assign("helptext",$pluginrow->help); 21 $bBlog->assign("type",$pluginrow->type); 22 $bBlog->assign("nicename",$pluginrow->nicename); 23 $bBlog->assign("description",$pluginrow->description); 24 $bBlog->assign("authors",$pluginrow->authors); 25 $bBlog->assign("license",$pluginrow->license); 26 27 } elseif($_GET['modifierhelp']) { 28 $bBlog->assign('title','Modifier Help'); 29 $bBlog->assign('inline',TRUE); 30 $helptext = "<p>Modifiers are an easy way to enable you to make links and other web features without knowing html. There are a few to choose fshowcloserom, select one to get instructions.</p><ul class='form'>"; 31 $modifiers = $bBlog->get_results("select * from ".T_PLUGINS." where type='modifier' order by nicename"); 32 foreach($modifiers as $mod) { 33 $helptext .= "<li><a href='index.php?b=help&inline=true&pid={$mod->id}'>{$mod->nicename}</a> - {$mod->description}</li>"; 34 } 35 $helptext .="</ul>"; 36 $bBlog->assign('helptext',$helptext); 37 } else { 38 $bBlog->assign("title","Help"); 39 $bBlog->assign("helptext",'Visit the <a href="http://www.bblog.com/docs/" target="_blank">bBlog online documentation</a> or the <a href="http://www.bBlog.com/forum.php" target="_blank">bBlog forum</a> for help.'); 40 } 41 $bBlog->display("help.html"); 42 ?>
title
Description
Body
title
Description
Body
title
Description
Body
title
Body
| [ Powered by PHPXref - Served by Debian GNU/Linux ] |