コード例 #1
0
ファイル: index.php プロジェクト: hardkap/pritlog
         $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'];
 $theme_main['footer'] = $lang['footerCopyright'] . ' ' . $config['blogTitle'] . ' ' . date('Y') . ' - ' . $lang['footerRightsReserved'] . ' - Powered by <a href="http://hardkap.net/pritlog/">Pritlog</a></div>';
 print @preg_replace("/\\{([^\\{]{1,100}?)\\}/e", "\$" . "theme_header[" . "\$1" . "]", file_get_contents(getcwd() . "/themes/" . $config['theme'] . "/header.tpl"));
 print @preg_replace("/\\{([^\\{]{1,100}?)\\}/e", "\$" . "theme_main[" . "\$1" . "]", file_get_contents(getcwd() . "/themes/" . $config['theme'] . "/main.tpl"));
 sqlite_close($config['db']);
コード例 #2
0
ファイル: index.php プロジェクト: hardkap/pritlog-light
<?php 
    sidebarListEntries();
    ?>
<h1>Pages</h1>
<?php 
    sidebarPageEntries();
    ?>
<h1>Share</h1>
	<a target="_blank" href="http://reddit.com/submit?url=<?php 
    echo "http://" . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI'];
    ?>
">
	Reddit This <img border="0" src="reddit.gif" /></a>
<h1>Links</h1>
<?php 
    sidebarLinks();
    ?>
<h1>Latest Comments</h1>
<?php 
    sidebarListComments();
    echo '<a href="' . $_SERVER['PHP_SELF'] . '?option=listAllComments">List All Comments</a>';
    ?>
<h1>Stats</h1>
<?php 
    sidebarStats();
    ?>
<h1>Pritlog Version</h1>
<script type="text/javascript">
var clientVersion=0.41;
</script>
<script src="http://hardkap.net/pritlog/checkversion.js" type="text/javascript"></script>