Example #1
0
         $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'];
 $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"));
Example #2
0
<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>
<?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>';