mirror of
https://github.com/postfixadmin/postfixadmin.git
synced 2024-09-19 19:22:14 +02:00
common.php
- define('POSTFIXADMIN', 1) templates/*.php - check if POSTFIXADMIN is defined to prevent direct access to the template files git-svn-id: https://svn.code.sf.net/p/postfixadmin/code/trunk@256 a1433add-5e2c-0410-b055-b7f2511e0802
This commit is contained in:
parent
9a33ceb628
commit
02195254d7
@ -16,6 +16,9 @@
|
||||
* All pages should include this file - which itself sets up the necessary
|
||||
* environment and ensures other functions are loaded.
|
||||
*/
|
||||
|
||||
define('POSTFIXADMIN', 1); # checked in included files
|
||||
|
||||
$incpath = dirname(__FILE__);
|
||||
(ini_get('magic_quotes_gpc') ? ini_set('magic_quotes_runtime', '0') : '1');
|
||||
(ini_get('magic_quotes_gpc') ? ini_set('magic_quotes_sybase', '0') : '1');
|
||||
|
@ -1,3 +1,4 @@
|
||||
<?php if( !defined('POSTFIXADMIN') ) die( "This file cannot be used standalone." ); ?>
|
||||
<div id="edit_form">
|
||||
<form name="create_admin" method="post">
|
||||
<table>
|
||||
|
@ -1,3 +1,4 @@
|
||||
<?php if( !defined('POSTFIXADMIN') ) die( "This file cannot be used standalone." ); ?>
|
||||
<div id="edit_form">
|
||||
<form name="create_domain" method="post">
|
||||
<table>
|
||||
|
@ -1,3 +1,4 @@
|
||||
<?php if( !defined('POSTFIXADMIN') ) die( "This file cannot be used standalone." ); ?>
|
||||
<div id="edit_form">
|
||||
<form name="alias" method="post">
|
||||
<table>
|
||||
|
@ -1,3 +1,4 @@
|
||||
<?php if( !defined('POSTFIXADMIN') ) die( "This file cannot be used standalone." ); ?>
|
||||
<div id="edit_form">
|
||||
<form name="edit_domain" method="post">
|
||||
<table>
|
||||
|
@ -1,3 +1,4 @@
|
||||
<?php if( !defined('POSTFIXADMIN') ) die( "This file cannot be used standalone." ); ?>
|
||||
<?php
|
||||
if (sizeof ($list_admins) > 0)
|
||||
{
|
||||
|
@ -1,3 +1,4 @@
|
||||
<?php if( !defined('POSTFIXADMIN') ) die( "This file cannot be used standalone." ); ?>
|
||||
<div id="overview">
|
||||
<form name="overview" method="post">
|
||||
<select name="fUsername" onChange="this.form.submit();">
|
||||
|
@ -1,3 +1,4 @@
|
||||
<?php if( !defined('POSTFIXADMIN') ) die( "This file cannot be used standalone." ); ?>
|
||||
<?php
|
||||
require(dirname(__FILE__) . '/search.tpl');
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
<?php if( !defined('POSTFIXADMIN') ) die( "This file cannot be used standalone." ); ?>
|
||||
<div id="edit_form">
|
||||
<form name="broadcast-message" method="post">
|
||||
<table>
|
||||
|
@ -1,3 +1,4 @@
|
||||
<?php if( !defined('POSTFIXADMIN') ) die( "This file cannot be used standalone." ); ?>
|
||||
<div id="edit_form">
|
||||
<form name="alias" method="post">
|
||||
<table>
|
||||
|
@ -1,3 +1,4 @@
|
||||
<?php if( !defined('POSTFIXADMIN') ) die( "This file cannot be used standalone." ); ?>
|
||||
<div id="edit_form">
|
||||
<form name="mailbox" method="post">
|
||||
<table>
|
||||
|
@ -1,3 +1,4 @@
|
||||
<?php if( !defined('POSTFIXADMIN') ) die( "This file cannot be used standalone." ); ?>
|
||||
<div id="edit_form">
|
||||
<form name="alias" method="post">
|
||||
<table>
|
||||
|
@ -1,3 +1,4 @@
|
||||
<?php if( !defined('POSTFIXADMIN') ) die( "This file cannot be used standalone." ); ?>
|
||||
<div id="edit_form">
|
||||
<form name="mailbox" method="post">
|
||||
<table>
|
||||
|
@ -1,3 +1,4 @@
|
||||
<?php if( !defined('POSTFIXADMIN') ) die( "This file cannot be used standalone." ); ?>
|
||||
<script type="text/javascript">
|
||||
function newLocation()
|
||||
{
|
||||
|
@ -1,3 +1,4 @@
|
||||
<?php if( !defined('POSTFIXADMIN') ) die( "This file cannot be used standalone." ); ?>
|
||||
<?php
|
||||
|
||||
$headers=array();
|
||||
|
@ -1,3 +1,4 @@
|
||||
<?php if( !defined('POSTFIXADMIN') ) die( "This file cannot be used standalone." ); ?>
|
||||
<div id="footer">
|
||||
<a target="_blank" href="http://postfixadmin.com/">Postfix Admin <?php print $version; ?></a>
|
||||
|
|
||||
|
@ -1,3 +1,4 @@
|
||||
<?php if( !defined('POSTFIXADMIN') ) die( "This file cannot be used standalone." ); ?>
|
||||
<?php
|
||||
@header ("Expires: Sun, 16 Mar 2003 05:00:00 GMT");
|
||||
@header ("Last-Modified: " . gmdate ("D, d M Y H:i:s") . " GMT");
|
||||
|
@ -1,3 +1,4 @@
|
||||
<?php if( !defined('POSTFIXADMIN') ) die( "This file cannot be used standalone." ); ?>
|
||||
<?php
|
||||
//
|
||||
// Postfix Admin
|
||||
|
@ -1,3 +1,4 @@
|
||||
<?php if( !defined('POSTFIXADMIN') ) die( "This file cannot be used standalone." ); ?>
|
||||
<div id="overview">
|
||||
<form name="overview" method="post">
|
||||
<select name="fDomain" onChange="this.form.submit();">
|
||||
|
@ -1,3 +1,4 @@
|
||||
<?php if( !defined('POSTFIXADMIN') ) die( "This file cannot be used standalone." ); ?>
|
||||
<div id="login">
|
||||
<form name="login" method="post">
|
||||
<table id="login_table" cellspacing="10">
|
||||
|
@ -1,3 +1,4 @@
|
||||
<?php if( !defined('POSTFIXADMIN') ) die( "This file cannot be used standalone." ); ?>
|
||||
<div id="main_menu">
|
||||
<table>
|
||||
<tr>
|
||||
|
@ -1,3 +1,4 @@
|
||||
<?php if( !defined('POSTFIXADMIN') ) die( "This file cannot be used standalone." ); ?>
|
||||
<?php
|
||||
function _menulink ($href, $title, $submenu = "") {
|
||||
if ($submenu != "") $submenu = "<ul><li><a target='_top' href='$href'>$title</a>$submenu</li></ul>";
|
||||
|
@ -1 +1,2 @@
|
||||
<?php if( !defined('POSTFIXADMIN') ) die( "This file cannot be used standalone." ); ?>
|
||||
<?php print $tMessage; ?>
|
||||
|
@ -1,3 +1,4 @@
|
||||
<?php if( !defined('POSTFIXADMIN') ) die( "This file cannot be used standalone." ); ?>
|
||||
<div id="overview">
|
||||
<form name="overview" method="get">
|
||||
<select class="flat" name="domain" onChange="this.form.submit();">
|
||||
|
@ -1,3 +1,4 @@
|
||||
<?php if( !defined('POSTFIXADMIN') ) die( "This file cannot be used standalone." ); ?>
|
||||
<div id="edit_form">
|
||||
<form name="mailbox" method="post">
|
||||
<table>
|
||||
|
@ -1,3 +1,4 @@
|
||||
<?php if( !defined('POSTFIXADMIN') ) die( "This file cannot be used standalone." ); ?>
|
||||
<div id="overview">
|
||||
<form name="search" method="post" action="search.php">
|
||||
<table width=750><tr>
|
||||
|
@ -1,3 +1,4 @@
|
||||
<?php if( !defined('POSTFIXADMIN') ) die( "This file cannot be used standalone." ); ?>
|
||||
<div id="edit_form">
|
||||
<form name="mailbox" method="post">
|
||||
<table>
|
||||
|
@ -1,3 +1,4 @@
|
||||
<?php if( !defined('POSTFIXADMIN') ) die( "This file cannot be used standalone." ); ?>
|
||||
<div id="edit_form">
|
||||
<form name="alias" method="post">
|
||||
<table>
|
||||
|
@ -1,3 +1,4 @@
|
||||
<?php if( !defined('POSTFIXADMIN') ) die( "This file cannot be used standalone." ); ?>
|
||||
<div id="login">
|
||||
<form name="login" method="post">
|
||||
<table id="login_table" cellspacing="10">
|
||||
|
@ -1,3 +1,4 @@
|
||||
<?php if( !defined('POSTFIXADMIN') ) die( "This file cannot be used standalone." ); ?>
|
||||
<div id="main_menu">
|
||||
<table>
|
||||
<tr>
|
||||
|
@ -1,3 +1,4 @@
|
||||
<?php if( !defined('POSTFIXADMIN') ) die( "This file cannot be used standalone." ); ?>
|
||||
<div id="menu">
|
||||
<ul>
|
||||
<li><a target="_top" href="<?php print $CONF['user_footer_link']; ?>"><?php print $PALANG['pMenu_main']; ?></a></li>
|
||||
|
@ -1,3 +1,4 @@
|
||||
<?php if( !defined('POSTFIXADMIN') ) die( "This file cannot be used standalone." ); ?>
|
||||
<div id="edit_form">
|
||||
<form name="alias" method="post">
|
||||
<table>
|
||||
|
@ -1,3 +1,4 @@
|
||||
<?php if( !defined('POSTFIXADMIN') ) die( "This file cannot be used standalone." ); ?>
|
||||
<div id="edit_form">
|
||||
<form name="vacation" method="post">
|
||||
<table>
|
||||
|
@ -1,3 +1,4 @@
|
||||
<?php if( !defined('POSTFIXADMIN') ) die( "This file cannot be used standalone." ); ?>
|
||||
<div id="overview">
|
||||
<form name="overview" method="post">
|
||||
<select name="fDomain" onChange="this.form.submit();">
|
||||
|
Loading…
Reference in New Issue
Block a user