code stringlengths 1 2.01M | language stringclasses 1
value |
|---|---|
<?php
// Try to handle it with the upper level index.php. (it should know what to do.)
if (file_exists(dirname(dirname(__FILE__)) . '/index.php'))
include (dirname(dirname(__FILE__)) . '/index.php');
else
exit;
?> | PHP |
<?php
// Try to handle it with the upper level index.php. (it should know what to do.)
if (file_exists(dirname(dirname(__FILE__)) . '/index.php'))
include (dirname(dirname(__FILE__)) . '/index.php');
else
exit;
?> | PHP |
<?php
// Try to handle it with the upper level index.php. (it should know what to do.)
if (file_exists(dirname(dirname(__FILE__)) . '/index.php'))
include (dirname(dirname(__FILE__)) . '/index.php');
else
exit;
?> | PHP |
<?php
// Try to handle it with the upper level index.php. (it should know what to do.)
if (file_exists(dirname(dirname(__FILE__)) . '/index.php'))
include (dirname(dirname(__FILE__)) . '/index.php');
else
exit;
?> | PHP |
<?php
// Try to handle it with the upper level index.php. (it should know what to do.)
if (file_exists(dirname(dirname(__FILE__)) . '/index.php'))
include (dirname(dirname(__FILE__)) . '/index.php');
else
exit;
?> | PHP |
<?php
// Try to handle it with the upper level index.php. (it should know what to do.)
if (file_exists(dirname(dirname(__FILE__)) . '/index.php'))
include (dirname(dirname(__FILE__)) . '/index.php');
else
exit;
?> | PHP |
<?php
// Version: 2.0 RC5; BoardIndex
function template_main()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;
// Show some statistics if stat info is off.
if (!$settings['show_stats_index'])
echo '
<p id="stats">
', $txt['members'], ': ', $context['common_stats']['total_members'], ' &... | PHP |
<?php
// Version: 2.0 RC5; Settings
function template_options()
{
global $context, $settings, $options, $scripturl, $txt;
$context['theme_options'] = array(
array(
'id' => 'show_board_desc',
'label' => $txt['board_desc_inside'],
'default' => true,
),
array(
'id' => 'show_children',
'label' => $... | PHP |
<?php
// Version: 2.0 RC5; Recent
function template_main()
{
global $context, $settings, $options, $txt, $scripturl;
echo '
<div id="recent" class="main_section">
<div class="pagesection">
<div>', $txt['pages'], ': ', $context['page_index'], '</div>
</div>';
foreach ($context['posts'] as $post)
{
// Th... | PHP |
<?php
// Version: 2.0 RC5; MessageIndex
function template_main()
{
global $context, $settings, $options, $scripturl, $modSettings, $txt;
echo '
<a id="top"></a>';
if (!empty($context['boards']) && (!empty($options['show_children']) || $context['start'] == 0))
{
echo '
<div class="tborder marginbottom" id="c... | PHP |
<?php
// Version: 2.0 RC5; Stats
function template_main()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;
echo '
<table border="0" width="100%" cellspacing="1" cellpadding="4" class="bordercolor">
<tr class="titlebg">
<td align="center" colspan="4">', $context['page_title'], '</td>
... | PHP |
<?php
// Version: 2.0 RC5; Display
function template_main()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;
// Let them know, if their report was a success!
if ($context['report_sent'])
{
echo '
<div class="windowbg" id="profile_success">
', $txt['report_sent'], '
</div>';
}
// Show ... | PHP |
<?php
// Try to handle it with the upper level index.php. (it should know what to do.)
if (file_exists(dirname(dirname(__FILE__)) . '/index.php'))
include (dirname(dirname(__FILE__)) . '/index.php');
else
exit;
?> | PHP |
<?php
// Version: 2.0 RC5; Memberlist
// Displays a sortable listing of all members registered on the forum.
function template_main()
{
global $context, $settings, $options, $scripturl, $txt;
// Build the memberlist button array.
$memberlist_buttons = array(
'view_all_members' => array('text' => 'view_all_member... | PHP |
<?php
// Try to handle it with the upper level index.php. (it should know what to do.)
if (file_exists(dirname(dirname(__FILE__)) . '/index.php'))
include (dirname(dirname(__FILE__)) . '/index.php');
else
exit;
?> | PHP |
<?php
// Version: 2.0 RC5; Settings
global $settings;
$txt['theme_thumbnail_href'] = $settings['images_url'] . '/thumbnail.gif';
$txt['theme_description'] = 'The default theme of SMF\'s previous incarnation, codenamed Core.<br /><br />Author: The Simple Machines Team';
?> | PHP |
<?php
// Version: 2.0 RC5; Wireless
// This is the header for WAP 1.1 output. You can view it with ?wap in the URL.
function template_wap_above()
{
global $context, $settings, $options;
// Show the xml declaration...
echo '<?xml version="1.0"?', '>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wa... | PHP |
<?php
// Version: 2.0 RC5; ManagePaid
// The template for adding or editing a subscription.
function template_modify_subscription()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
// Javascript for the duration stuff.
echo '
<script type="text/javascript"><!-- // --><![CDATA[
function ... | PHP |
<?php
// Version: 2.0 RC5; Search
function template_main()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;
echo '
<form action="', $scripturl, '?action=search2" method="post" accept-charset="', $context['character_set'], '" name="searchform" id="searchform">
<div class="cat_bar">
<h3 c... | PHP |
<?php
// Version: 2.0 RC5; GenericList
function template_show_list($list_id = null)
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
// Get a shortcut to the current list.
$list_id = $list_id === null ? $context['default_list'] : $list_id;
$cur_list = &$context[$list_id];
// These are the... | PHP |
<?php
// Version: 2.0 RC5; ManageNews
// Form for editing current news on the site.
function template_edit_news()
{
global $context, $settings, $options, $scripturl, $txt;
echo '
<div id="admincenter">
<form action="', $scripturl, '?action=admin;area=news;sa=editnews" method="post" accept-charset="', $context['c... | PHP |
<?php
// Version: 2.0 RC5; Reminder
function template_main()
{
global $context, $settings, $options, $txt, $scripturl;
echo '
<br />
<form action="', $scripturl, '?action=reminder;sa=picktype" method="post" accept-charset="', $context['character_set'], '">
<div class="tborder login">
<div class="cat_bar">
... | PHP |
<?php
// Version: 2.0 RC5; Calendar
// The main calendar - January, for example.
function template_main()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;
echo '
<div id="calendar">
<div id="month_grid">
', template_show_month_grid('prev'), '
', template_show_month_grid('current'... | PHP |
<?php
// Version: 2.0 RC5; ModerationCenter
function template_moderation_center()
{
global $settings, $options, $context, $txt, $scripturl;
// Show a welcome message to the user.
echo '
<div id="modcenter">
<div class="cat_bar">
<h3 class="catbg">', $txt['moderation_center'], '</h3>
</div>
<div class="in... | PHP |
<?php
// Version: 2.0 RC5; SendTopic
//------------------------------------------------------------------------------
/* This template contains two humble sub templates - main. Its job is pretty
simple: it collects the information we need to actually send the topic.
The main sub template gets shown from:
'?action... | PHP |
<?php
// Version: 2.0 RC5; ManageScheduledTasks
// Template for listing all scheduled tasks.
function template_view_scheduled_tasks()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;
// We completed some tasks?
if (!empty($context['tasks_were_run']))
echo '
<div id="task_completed">
', ... | PHP |
<?php
// Version: 2.0 RC5; Profile
// Template for the profile side bar - goes before any other profile template.
function template_profile_above()
{
global $context, $settings, $options, $scripturl, $modSettings, $txt;
echo '
<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/profile... | PHP |
<?php
// Version: 2.0 RC5; PersonalMessage
// This is the main sidebar for the personal messages section.
function template_pm_above()
{
global $context, $settings, $options, $txt;
echo '
<div id="personal_messages">';
// Show the capacity bar, if available.
if (!empty($context['limit_bar']))
echo '
<div cl... | PHP |
<?php
// Version: 2.0 RC5; ManageBans
function template_ban_edit()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
echo '
<div id="manage_bans">
<div class="cat_bar">
<h3 class="catbg">
', $context['ban']['is_new'] ? $txt['ban_add_new'] : $txt['ban_edit'] . ' \'' . $context['ban']... | PHP |
<?php
// Version: 2.0 RC5; ManageMaintenance
// Template for the database maintenance tasks.
function template_maintain_database()
{
global $context, $settings, $options, $txt, $scripturl, $db_type, $modSettings;
// If maintenance has finished tell the user.
if (!empty($context['maintenance_finished']))
echo '
... | PHP |
<?php
// Version: 2.0 RC5; ManageMembergroups
function template_main()
{
global $context, $settings, $options, $scripturl, $txt;
template_show_list('regular_membergroups_list');
echo '<br /><br />';
template_show_list('post_count_membergroups_list');
}
function template_new_group()
{
global $context, $settings... | PHP |
<?php
// Version: 2.0 RC5; Register
// Before showing users a registration form, show them the registration agreement.
function template_registration_agreement()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
echo '
<form action="', $scripturl, '?action=register" method="post" accept-char... | PHP |
<?php
// Version: 2.0 RC5; index
/* This template is, perhaps, the most important template in the theme. It
contains the main template layer that displays the header and footer of
the forum, namely with main_above and main_below. It also contains the
menu sub template, which appropriately displays the menu; the ini... | PHP |
<?php
// Version: 2.0 RC5; GenericMenu
// This contains the html for the side bar of the admin center, which is used for all admin pages.
function template_generic_menu_sidebar_above()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
// This is the main table - we need it so we can keep the c... | PHP |
<?php
// Version: 2.0 RC5; ManageMembers
function template_search_members()
{
global $context, $settings, $options, $scripturl, $txt;
echo '
<div id="admincenter">
<form action="', $scripturl, '?action=admin;area=viewmembers" method="post" accept-charset="', $context['character_set'], '">
<div class="cat_bar"... | PHP |
<?php
// Version: 2.0 RC5; ManageBoards
// Template for listing all the current categories and boards.
function template_main()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
// Table header.
echo '
<div id="manage_boards">
<div class="title_bar">
<h3 class="titlebg">', $txt['boardsE... | PHP |
<?php
// Version: 2.0 RC5; ManageAttachments
// Template template wraps around the simple settings page to add javascript functionality.
function template_avatar_settings_above()
{
}
function template_avatar_settings_below()
{
echo '
<script type="text/javascript"><!-- // --><![CDATA[
var fUpdateStatus = function ... | PHP |
<?php
// Try to handle it with the upper level index.php. (it should know what to do.)
if (file_exists(dirname(dirname(__FILE__)) . '/index.php'))
include (dirname(dirname(__FILE__)) . '/index.php');
else
exit;
?> | PHP |
<?php
// Try to handle it with the upper level index.php. (it should know what to do.)
if (file_exists(dirname(dirname(__FILE__)) . '/index.php'))
include (dirname(dirname(__FILE__)) . '/index.php');
else
exit;
?> | PHP |
<?php
// Try to handle it with the upper level index.php. (it should know what to do.)
if (file_exists(dirname(dirname(__FILE__)) . '/index.php'))
include (dirname(dirname(__FILE__)) . '/index.php');
else
exit;
?> | PHP |
<?php
// Try to handle it with the upper level index.php. (it should know what to do.)
if (file_exists(dirname(dirname(__FILE__)) . '/index.php'))
include (dirname(dirname(__FILE__)) . '/index.php');
else
exit;
?> | PHP |
<?php
// Try to handle it with the upper level index.php. (it should know what to do.)
if (file_exists(dirname(dirname(__FILE__)) . '/index.php'))
include (dirname(dirname(__FILE__)) . '/index.php');
else
exit;
?> | PHP |
<?php
// Try to handle it with the upper level index.php. (it should know what to do.)
if (file_exists(dirname(dirname(__FILE__)) . '/index.php'))
include (dirname(dirname(__FILE__)) . '/index.php');
else
exit;
?> | PHP |
<?php
// Try to handle it with the upper level index.php. (it should know what to do.)
if (file_exists(dirname(dirname(__FILE__)) . '/index.php'))
include (dirname(dirname(__FILE__)) . '/index.php');
else
exit;
?> | PHP |
<?php
// Try to handle it with the upper level index.php. (it should know what to do.)
if (file_exists(dirname(dirname(__FILE__)) . '/index.php'))
include (dirname(dirname(__FILE__)) . '/index.php');
else
exit;
?> | PHP |
<?php
// Try to handle it with the upper level index.php. (it should know what to do.)
if (file_exists(dirname(dirname(__FILE__)) . '/index.php'))
include (dirname(dirname(__FILE__)) . '/index.php');
else
exit;
?> | PHP |
<?php
// Version: 2.0 RC5; ManageMail
function template_browse()
{
global $context, $settings, $options, $scripturl, $txt;
echo '
<div id="manage_mail">
<div class="cat_bar">
<h3 class="catbg">', $txt['mailqueue_stats'], '</h3>
</div>
<div class="windowbg">
<span class="topslice"><span></span></span>
... | PHP |
<?php
// Version: 2.0 RC5; Reports
// Choose which type of report to run?
function template_report_type()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
echo '
<div id="admincenter">
<form action="', $scripturl, '?action=admin;area=reports" method="post" accept-charset="', $context['char... | PHP |
<?php
// Version: 2.0 RC5; GenericControls
// This function displays all the stuff you get with a richedit box - BBC, smileys etc.
function template_control_richedit($editor_id, $smileyContainer = null, $bbcContainer = null)
{
global $context, $settings, $options, $txt, $modSettings, $scripturl;
$editor_context = &... | PHP |
<?php
// Version: 2.0 RC5; Themes
// The main sub template - for theme administration.
function template_main()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
echo '
<div id="admincenter">
<form action="', $scripturl, '?action=admin;area=theme;sa=admin" method="post" accept-charset="', $... | PHP |
<?php
// Version: 2.0 RC5; Admin
// This is the administration center home.
function template_admin()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
// Welcome message for the admin.
echo '
<div id="admincenter">
<div class="title_bar">
<h3 class="titlebg">';
if ($context['user']['... | PHP |
<?php
// Version: 2.0 RC5; BoardIndex
function template_main()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;
// Show some statistics if stat info is off.
if (!$settings['show_stats_index'])
echo '
<div id="index_common_stats">
', $txt['members'], ': ', $context['common_stats']['total... | PHP |
<?php
// Version: 2.0 RC5; Settings
function template_options()
{
global $context, $settings, $options, $scripturl, $txt;
$context['theme_options'] = array(
array(
'id' => 'show_board_desc',
'label' => $txt['board_desc_inside'],
'default' => true,
),
array(
'id' => 'show_children',
'label' => $... | PHP |
<?php
// Version: 2.0 RC5; Compat
// Generate a strip of buttons, out of buttons.
function template_button_strip($button_strip, $direction = 'top', $strip_options = array())
{
global $settings, $context, $txt, $scripturl;
// Compatibility.
if (!is_array($strip_options))
$strip_options = array();
// Create the ... | PHP |
<?php
// Version: 2.0 RC5; Recent
function template_main()
{
global $context, $settings, $options, $txt, $scripturl;
echo '
<div id="recent" class="main_section">
<div class="cat_bar">
<h3 class="catbg">
<span class="ie6_header floatleft"><img src="', $settings['images_url'], '/post/xx.gif" alt="" class="... | PHP |
<?php
// Version: 2.0 RC5; Post
// The main template for the post page.
function template_main()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings, $counter;
// Start the javascript... and boy is there a lot.
echo '
<script type="text/javascript"><!-- // --><![CDATA[';
// When using Go Bac... | PHP |
<?php
// Version: 2.0 RC5; Poll
function template_main()
{
global $context, $settings, $options, $txt, $scripturl;
// Some javascript for adding more options.
echo '
<script type="text/javascript"><!-- // --><![CDATA[
var pollOptionNum = 0;
function addPollOption()
{
if (pollOptionNum == 0)
{
... | PHP |
<?php
// Version: 2.0 RC5; Notify
function template_main()
{
global $context, $settings, $options, $txt, $scripturl;
echo '
<div class="cat_bar">
<h3 class="catbg">
<span class="ie6_header floatleft"><img src="', $settings['images_url'], '/email_sm.gif" alt="" class="icon" />', $txt['notify'], '</span>
... | PHP |
<?php
// Version: 2.0 RC5; MessageIndex
function template_main()
{
global $context, $settings, $options, $scripturl, $modSettings, $txt;
echo '
<a id="top"></a>';
if (!empty($context['boards']) && (!empty($options['show_children']) || $context['start'] == 0))
{
echo '
<div class="tborder childboards" id="boa... | PHP |
<?php
// Version: 2.0 RC5; Errors
// !!!
/* This template file contains only the sub template fatal_error. It is
shown when an error occurs, and should show at least a back button and
$context['error_message'].
*/
// Show an error message.....
function template_fatal_error()
{
global $context, $settings, $options,... | PHP |
<?php
// Version: 2.0 RC5; Stats
function template_main()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;
echo '
<div id="statistics" class="main_section">
<div class="cat_bar">
<h3 class="catbg">', $context['page_title'], '</h3>
</div>
<div class="title_bar">
<h4 class="titlebg... | PHP |
<?php
// Version: 2.0 RC5; Display
function template_main()
{
global $context, $settings, $options, $txt, $scripturl, $modSettings;
// Let them know, if their report was a success!
if ($context['report_sent'])
{
echo '
<div class="windowbg" id="profile_success">
', $txt['report_sent'], '
</div>';
}
... | PHP |
<?php
// Version: 2.0 RC5; Printpage
function template_print_above()
{
global $context, $settings, $options, $txt;
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"', $context['right_to_left'] ? ... | PHP |
<?php
// Try to handle it with the upper level index.php. (it should know what to do.)
if (file_exists(dirname(dirname(__FILE__)) . '/index.php'))
include (dirname(dirname(__FILE__)) . '/index.php');
else
exit;
?> | PHP |
<?php
// Try to handle it with the upper level index.php. (it should know what to do.)
if (file_exists(dirname(dirname(__FILE__)) . '/index.php'))
include (dirname(dirname(__FILE__)) . '/index.php');
else
exit;
?> | PHP |
<?php
// Try to handle it with the upper level index.php. (it should know what to do.)
if (file_exists(dirname(dirname(__FILE__)) . '/index.php'))
include (dirname(dirname(__FILE__)) . '/index.php');
else
exit;
?> | PHP |
<?php
// Try to handle it with the upper level index.php. (it should know what to do.)
if (file_exists(dirname(dirname(__FILE__)) . '/index.php'))
include (dirname(dirname(__FILE__)) . '/index.php');
else
exit;
?> | PHP |
<?php
// Try to handle it with the upper level index.php. (it should know what to do.)
if (file_exists(dirname(dirname(__FILE__)) . '/index.php'))
include (dirname(dirname(__FILE__)) . '/index.php');
else
exit;
?> | PHP |
<?php
// Version: 2.0 RC5; ManageSmileys
// Editing the smiley sets.
function template_editsets()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
echo '
<div id="admincenter">';
template_show_list('smiley_set_list');
echo '
<br />
<div class="cat_bar">
<h3 class="catbg">', $txt['... | PHP |
<?php
// Version: 2.0 RC5; ManagePermissions
function template_permission_index()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
// Not allowed to edit?
if (!$context['can_modify'])
echo '
<div class="errorbox">
', sprintf($txt['permission_cannot_edit'], $scripturl . '?action=admin;ar... | PHP |
<?php
// Version: 2.0 RC5; MoveTopic
// Show an interface for selecting which board to move a post to.
function template_main()
{
global $context, $settings, $options, $txt, $scripturl;
echo '
<div id="move_topic" class="lower_padding">
<form action="', $scripturl, '?action=movetopic2;topic=', $context['current_... | PHP |
<?php
// Version: 2.0 RC5; Help
function template_popup()
{
global $context, $settings, $options, $txt;
// Since this is a popup of its own we need to start the html, etc.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="ht... | PHP |
<?php
/**
* @file AdminArticles.template.php
* Template for the Articles Manager.
*
* @author PortaMx - Portal Management Extension
* @author Copyright 2008-2011 by PortaMx - http://portamx.com
* @Version: 1.0 RC4
* @Date: 23.02.2011
*/
/**
* The main Subtemplate.
*/
function template_main()
{
global $context, $setti... | PHP |
<?php
/**
* @file AdminCenter.template.php
* Template for the Admin Center.
*
* @author PortaMx - Portal Management Extension
* @author Copyright 2008-2011 by PortaMx - http://portamx.com
* @Version: 1.0 RC4
* @Date: 23.02.2011
*/
function template_main()
{
global $context, $settings, $scripturl, $txt;
if(allowPmx(... | PHP |
<?php
/**
* @file Frontpage.template.php
* Generic template for the Frontpage.
*
* @author PortaMx - Portal Management Extension
* @author Copyright 2008-2011 by PortaMx - http://portamx.com
* @Version: 1.0 RC4
* @Date: 23.02.2011
*/
/**
* The sub template above the content.
*/
function template_fronthtml_above()
{
g... | PHP |
<?php
/**
* @file index.php
* Supress direct acceess to the css cache directory.
*
* @author PortaMx - Portal Management Extension
* @author Copyright 2008-2011 by PortaMx - http://portamx.com
* @Version: 1.0 RC4
* @Date: 23.02.2011
*/
if(file_exists(realpath('../../../../Settings.php')))
{
require(realpath('../../..... | PHP |
<?php
/**
* @file index.php
* Supress direct acceess to the css image directory.
*
* @author PortaMx - Portal Management Extension
* @author Copyright 2008-2009 by PortaMx - http://portamx.com
* @Version: 1.0 RC4
* @Date: 23.02.2011
*/
if(file_exists(realpath('../../../../../Settings.php')))
{
require(realpath('../... | PHP |
<?php
/**
* @file AdminCategories.template.php
* Template for the Categories Manager.
*
* @author PortaMx - Portal Management Extension
* @author Copyright 2008-2011 by PortaMx - http://portamx.com
* @Version: 1.0 RC4
* @Date: 23.02.2011
*/
/**
* The main Subtemplate.
*/
function template_main()
{
global $context, $s... | PHP |
<?php
/**
* @file Frames.template.php
* Template for the Block/Category/Article frame.
*
* @author PortaMx - Portal Management Extension
* @author Copyright 2008-2011 by PortaMx - http://portamx.com
* @Version: 1.0 RC4
* @Date: 23.02.2011
*/
/**
* Top frame
**/
function Pmx_Frame_top($cfg, $count)
{
global $context, ... | PHP |
<?php
/**
* @file Frontpage.template.php
* Generic template for the Frontpage.
*
* @author PortaMx - Portal Management Extension
* @author Copyright 2008-2011 by PortaMx - http://portamx.com
* @Version: 1.0 RC4
* @Date: 23.02.2011
*/
/**
* The sub template above the content.
*/
function template_fronthtml_above()
{
g... | PHP |
<?php
/**
* @file index.php
* Supress direct acceess to the directory.
*
* @author PortaMx - Portal Management Extension
* @author Copyright 2008-2011 by PortaMx - http://portamx.com
* @Version: 1.0 RC4
* @Date: 23.02.2011
*/
if(file_exists(realpath('../../../Settings.php')))
{
require(realpath('../../../Settings.php... | PHP |
<?php
/**
* @file AdminDownload.template.php
* Template for the Download Manager.
*
* @author PortaMx - Portal Management Extension
* @author Copyright 2008-2011 by PortaMx - http://portamx.com
* @Version: 1.0 RC4
* @Date: 23.02.2011
*/
/**
* The main Subtemplate.
*/
function template_main()
{
global $context, $setti... | PHP |
<?php
/**
* @file AdminBlocks.template.php
* Template for the Blocks Manager.
*
* @author PortaMx - Portal Management Extension
* @author Copyright 2008-2011 by PortaMx - http://portamx.com
* @Version: 1.0 RC4
* @Date: 23.02.2011
*/
/**
* The main Subtemplate.
*/
function template_main()
{
global $context, $settings,... | PHP |
<?php
/**
* @file AdminSettings.template.php
* Template for the Settings Manager.
*
* @author PortaMx - Portal Management Extension
* @author Copyright 2008-2011 by PortaMx - http://portamx.com
* @Version: 1.0 RC4
* @Date: 23.02.2011
*/
/**
* The main Subtemplate.
*/
function template_main()
{
global $context, $setti... | PHP |
<?php
/**
* @file Mainindex.template.php
* Template for the Maininxdex (Forumpage).
*
* @author PortaMx - Portal Management Extension
* @author Copyright 2008-2011 by PortaMx - http://portamx.com
* @Version: 1.0 RC4
* @Date: 23.02.2011
*/
/**
* The sub template above the mainframe.
*/
function template_portamx_above()... | PHP |
<?php
/**
* @file PortaMx.template.php
* Main template for the Forumpage.
*
* @author PortaMx - Portal Management Extension
* @author Copyright 2008-2011 by PortaMx - http://portamx.com
* @Version: 1.0 RC4
* @Date: 23.02.2011
*/
/**
* The main template for frontpage and Page blocks.
*/
function template_main()
{
glob... | PHP |
<?php
// Version: 2.0 RC5; SplitTopics
function template_ask()
{
global $context, $settings, $options, $txt, $scripturl;
echo '
<div id="split_topics">
<form action="', $scripturl, '?action=splittopics;sa=execute;topic=', $context['current_topic'], '.0" method="post" accept-charset="', $context['character_set'],... | PHP |
<?php
// Version: 2.0 RC5; Packages
function template_main()
{
global $context, $settings, $options;
}
function template_view_package()
{
global $context, $settings, $options, $txt, $scripturl, $smcFunc;
echo '
<div id="admincenter">
<div class="cat_bar">
<h3 class="catbg">', $txt[($context['uninstalling'] ... | PHP |
<?php
/*
Custom Form Mod v1.6 SMF 2 Beta made by LHVWB and Garou.
CustomForm.template.php - Handles the templates for the Custom Form Mod.
*/
// Generic template for showing the submit form page.
function form_template_submit_form()
{
global $context, $txt, $settings, $scripturl;
// Starting text ... | PHP |
<?php
// Version: 2.0 RC5; ManageCalendar
// Editing or adding holidays.
function template_edit_holiday()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
// Start with javascript for getting the calendar dates right.
echo '
<script type="text/javascript"><!-- // --><![CDATA[
var monthL... | PHP |
<?php
// Try to handle it with the upper level index.php. (it should know what to do.)
if (file_exists(dirname(dirname(__FILE__)) . '/index.php'))
include (dirname(dirname(__FILE__)) . '/index.php');
else
exit;
?> | PHP |
<?php
// Version: 2.0 RC5; Memberlist
// Displays a sortable listing of all members registered on the forum.
function template_main()
{
global $context, $settings, $options, $scripturl, $txt;
// Build the memberlist button array.
$memberlist_buttons = array(
'view_all_members' => array('text' => 'view_all_membe... | PHP |
<?php
// Version: 2.0 RC5; Login
// This is just the basic "login" form.
function template_login()
{
global $context, $settings, $options, $scripturl, $modSettings, $txt;
echo '
<script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/sha1.js"></script>
<form action="', $scripturl, '?ac... | PHP |
<?php
// Version: 2.0 RC5; Who
// The only template in the file.
function template_main()
{
global $context, $settings, $options, $scripturl, $txt;
// Display the table header and linktree.
echo '
<div class="main_section" id="whos_online">
<form action="', $scripturl, '?action=who" method="post" id="whoFilter"... | PHP |
<?php
// Version: 2.0 RC5; ManageSearch
function template_modify_weights()
{
global $context, $settings, $options, $scripturl, $txt, $modSettings;
echo '
<div id="admincenter">
<form action="', $scripturl, '?action=admin;area=managesearch;sa=weights" method="post" accept-charset="', $context['character_set'], '"... | PHP |
<?php
// Version: 2.0 RC5; Search
$txt['set_parameters'] = 'Set Search Parameters';
$txt['choose_board'] = 'Choose a board to search in, or search all';
$txt['all_words'] = 'Match all words';
$txt['any_words'] = 'Match any words';
$txt['by_user'] = 'By user';
$txt['search_post_age'] = 'Message age';
$txt['search_betw... | PHP |
<?php
// Version: 2.0 RC5; ManageSettings
global $scripturl;
$txt['modSettings_desc'] = 'This page allows you to change the settings of features and basic options in your forum. Please see the <a href="' . $scripturl . '?action=admin;area=theme;sa=settings;th=%1$s;%3$s=%2$s">theme settings</a> for more options. Cli... | PHP |
<?php
// Version: 2.0 RC5; index
global $forum_copyright, $forum_version, $webmaster_email, $scripturl, $context, $boardurl;
// Locale (strftime, pspell_new) and spelling. (pspell_new, can be left as '' normally.)
// For more information see:
// - http://www.php.net/function.pspell-new
// - http://www.php.net/fun... | PHP |
<?php
// Version: 2.0 RC5; Stats
global $context;
$txt['most_online'] = 'Most Online';
$txt['stats_center'] = 'Statistics Center';
$txt['general_stats'] = 'General Statistics';
$txt['top_posters'] = 'Top 10 Posters';
$txt['top_boards'] = 'Top 10 Boards';
$txt['forum_history'] = 'Forum History (using forum time offse... | PHP |
<?php
// Version: 2.0 RC5; PersonalMessage
global $context;
$txt['pm_inbox'] = 'Personal Messages Index';
$txt['send_message'] = 'Send message';
$txt['pm_add'] = 'Add';
$txt['make_bcc'] = 'Add BCC';
$txt['pm_to'] = 'To';
$txt['pm_bcc'] = 'Bcc';
$txt['inbox'] = 'Inbox';
$txt['conversation'] = 'Conversation';
$txt['mes... | PHP |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.