コード例 #1
0
ファイル: index.php プロジェクト: hardkap/pritlog
         $theme_menu['link'] = $blogPath . $config['cleanIndex'] . '/myProfile';
         $theme_menu['linktext'] = $lang['pageMyProfile'];
         $theme_main['menu'] .= @preg_replace("/\\{([^\\{]{1,100}?)\\}/e", "\$" . "theme_menu[" . "\$1" . "]", file_get_contents(getcwd() . "/themes/" . $config['theme'] . "/blocks/menu.tpl"));
         $theme_menu['link'] = $theme_menu['linktext'] = "";
         $theme_menu['link'] = $blogPath . $config['cleanIndex'] . '/logoutPage';
         $theme_menu['linktext'] = $lang['sidebarLinkLogout'];
         $theme_main['menu'] .= @preg_replace("/\\{([^\\{]{1,100}?)\\}/e", "\$" . "theme_menu[" . "\$1" . "]", file_get_contents(getcwd() . "/themes/" . $config['theme'] . "/blocks/menu.tpl"));
     } else {
         $theme_menu['link'] = $theme_menu['linktext'] = "";
         $theme_menu['link'] = $blogPath . $config['cleanIndex'] . '/loginPage';
         $theme_menu['linktext'] = $lang['sidebarLinkLogin'];
         $theme_main['menu'] .= @preg_replace("/\\{([^\\{]{1,100}?)\\}/e", "\$" . "theme_menu[" . "\$1" . "]", file_get_contents(getcwd() . "/themes/" . $config['theme'] . "/blocks/menu.tpl"));
     }
 }
 $theme_main['categoriesHeader'] = $lang['postFtTags'];
 $theme_main['categories'] = sidebarCategories();
 $theme_main['pagesHeader'] = $lang['sidebarHeadPages'];
 $theme_main['pages'] = sidebarPageEntries();
 $theme_main['linksHeader'] = $lang['sidebarHeadLinks'];
 $theme_main['links'] = sidebarLinks();
 $theme_main['statsHeader'] = $lang['sidebarHeadStats'];
 $theme_main['stats'] = sidebarStats();
 $theme_main['popularHeader'] = $lang['sidebarHeadPopularEntries'];
 $theme_main['popular'] = sidebarPopular();
 $theme_main['commentsHeader'] = $lang['sidebarHeadLatestComments'];
 $theme_main['comments'] = sidebarListComments();
 $theme_listcomments['link'] = $config['blogPath'] . $config['cleanIndex'] . '/listAllComments';
 $theme_listcomments['linktext'] = $lang['sidebarLinkListComments'];
 $theme_main['comments'] .= @preg_replace("/\\{([^\\{]{1,100}?)\\}/e", "\$" . "theme_listcomments[" . "\$1" . "]", file_get_contents(getcwd() . "/themes/" . $config['theme'] . "/blocks/listcomments.tpl"));
 $theme_main['aboutHeader'] = $lang['pageBasicConfigAbout'];
 $theme_main['about'] = $config['about'];
コード例 #2
0
ファイル: index.php プロジェクト: hardkap/pritlog-light
?option=mainPage>Home</a>
<a href=<?php 
    $_SERVER['PHP_SELF'];
    ?>
?option=newEntry>New Entry</a>
<a href=<?php 
    $_SERVER['PHP_SELF'];
    ?>
?option=viewArchive>Archive</a>
<a href=<?php 
    $_SERVER['PHP_SELF'];
    ?>
?option=RSS>RSS Feeds</a>
<h1>Categories</h1>
<?php 
    sidebarCategories();
    ?>
<h1>Search</h1>
<form name="form1" method="post" action=<?php 
    echo $_SERVER['PHP_SELF'];
    ?>
?option=searchPosts>
<input type="text" name="searchkey">
<input type="hidden" name="do" value="search">
<input type="submit" onclick="javascript:this.disabled=true" name="Submit" value="Search"><br />
</form>
<h1>Latest Entries</h1>
<?php 
    sidebarListEntries();
    ?>
<h1>Pages</h1>