Beispiel #1
0
 function createDataSelectorFromTable($table, $columns, $where = null, $groupBy = null, $orderBy = null, $dbKey = "app")
 {
     $sqlObj = _db($dbKey)->_selectQ($table, $columns)->_where(array("blocked" => "false"));
     if ($where != null) {
         $sqlObj = $sqlObj->_where($where);
     }
     // if(isset($_SESSION['SESS_PRIVILEGE_ID'])) {
     // 	$sqlObj=$sqlObj->_where(array("privilege"=>"*"))
     // 		->where("(privilege='*' OR FIND_IN_SET('{$_SESSION['SESS_PRIVILEGE_NAME']}',privilege))");
     // } else {
     // 	$sqlObj=$sqlObj->_where(array("privilege"=>"*"));
     // }
     if (strlen($groupBy) > 0) {
         $sqlObj = $sqlObj->_groupby($groupBy);
     }
     if (strlen($orderBy) > 0) {
         $sqlObj = $sqlObj->_orderby($orderBy);
     }
     return generateSelect(_dataSQL($sqlObj));
 }
Beispiel #2
0
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version. Although none of the code may be
 *   sold. If you have been sold this script, get a refund.
 ***************************************************************************/
require '../includes/config.inc.php';
include "loggedin.inc.php";
if (isset($_POST['action']) && $_POST['action'] == "update") {
    if (is_dir($main_path . 'themes/' . $_POST['theme'])) {
        // Update database
        $query = "UPDATE " . $DBPrefix . "settings SET\r\n\t\t\t\ttheme = '" . $_POST['theme'] . "'";
        $system->check_mysql(mysql_query($query), $query, __LINE__, __FILE__);
        $system->SETTINGS['theme'] = $_POST['theme'];
        $ERR = $MSG['26_0005'];
    } else {
        $ERR = $ERR_068;
    }
}
if ($dir = @opendir(realpath($main_path . 'themes'))) {
    while (($atheme = readdir($dir)) !== false) {
        if ($atheme != '.' && $atheme != '..' && $atheme != 'CVS' && is_dir(realpath($main_path . 'themes') . '/' . $atheme)) {
            $THEMES[$atheme] = $atheme;
        }
    }
    @closedir($dir);
}
$selectsetting = $system->SETTINGS['theme'];
loadblock($MSG['26_0003'], $MSG['26_0004'], generateSelect('theme', $THEMES));
$template->assign_vars(array('ERROR' => isset($ERR) ? $ERR : '', 'SITEURL' => $system->SETTINGS['siteurl'], 'TYPE' => 'gra', 'TYPENAME' => $MSG['25_0009'], 'PAGENAME' => $MSG['26_0002']));
$template->set_filenames(array('body' => 'adminpages.html'));
$template->display('body');
Beispiel #3
0
require_once $beanFiles[$class_name];
$seed = new $class_name();
if (isset($_SESSION['MAILMERGE_SKIP_REL']) && $_SESSION['MAILMERGE_SKIP_REL']) {
    $disabled = 'disabled';
} else {
    $disabled = '';
}
$oddRow = true;
foreach ($sel_obj as $key => $value) {
    $value = str_replace("##", "&", $value);
    $value = stripslashes($value);
    $code = str_replace('-', '', $key);
    $popup_request_data = array('call_back_function' => 'set_return', 'form_name' => 'EditView', 'field_to_name_array' => array('id' => 'rel_id_' . $code, 'name' => 'rel_name_' . $code));
    $encoded_popup_request_data = urlencode($json->encode($popup_request_data));
    if (empty($selQuery[$relModule][$_SESSION['MAILMERGE_MODULE']])) {
        $select = generateSelect($seed, $relModule);
    } else {
        $select = $selQuery[$relModule][$_SESSION['MAILMERGE_MODULE']];
    }
    if (empty($whereQuery[$relModule][$_SESSION['MAILMERGE_MODULE']])) {
        $where = "{$seed->table_name}.id = ";
    } else {
        $where = $whereQuery[$relModule][$_SESSION['MAILMERGE_MODULE']];
    }
    if ($relModule == "Contacts") {
        $limitSelect = str_replace('contacts.*', 'contacts.first_name, contacts.last_name, contacts.id, contacts.date_entered', $select);
    } else {
        $limitSelect = str_replace(strtolower($relModule) . '.*', strtolower($relModule) . '.name, ' . strtolower($relModule) . '.date_entered', $select);
    }
    $fullQuery = $limitSelect . " WHERE " . $where . "'" . $key . "' ORDER BY date_entered";
    $result = $seed->db->limitQuery($fullQuery, 0, 1, true, "Error performing limit query");
Beispiel #4
0
    $system->SETTINGS['newsbox'] = $_POST['newsbox'];
    $system->SETTINGS['newstoshow'] = $_POST['newstoshow'];
    $system->SETTINGS['cust_increment'] = $_POST['cust_increment'];
    $system->SETTINGS['lastitemsnumber'] = $_POST['lastitemsnumber'];
    $system->SETTINGS['higherbidsnumber'] = $_POST['higherbidsnumber'];
    $system->SETTINGS['endingsoonnumber'] = $_POST['endingsoonnumber'];
    $system->SETTINGS['pagewidth'] = $_POST['pagewidth'];
    $system->SETTINGS['pagewidthtype'] = $_POST['pagewidthtype'];
    $system->SETTINGS['alignment'] = $_POST['alignment'];
    $ERR = $MSG['5019'];
}
$logoURL = $system->SETTINGS['siteurl'] . 'themes/' . $system->SETTINGS['theme'] . '/' . $system->SETTINGS['logo'];
$ALIGNMENT = array('left' => 'Left', 'center' => 'Center', 'right' => 'Right');
$WIDTHTYPE = array('perc' => '%', 'fixed' => 'pixels');
loadblock($MSG['531'], $MSG['556'], 'image', 'logo', $system->SETTINGS['logo']);
loadblock('', $MSG['602'], 'upload', 'logo', $system->SETTINGS['logo']);
$selectsetting = $system->SETTINGS['alignment'];
loadblock($MSG['1056'], $MSG['1057'], generateSelect('alignment', $ALIGNMENT));
loadblock($MGS_2__0051, $MGS_2__0052, 'decimals', 'pagewidth', $system->SETTINGS['pagewidth']);
$selectsetting = $system->SETTINGS['pagewidthtype'];
loadblock('', '', generateSelect('pagewidthtype', $WIDTHTYPE));
loadblock($MSG['5013'], $MSG['5014'], 'decimals', 'lastitemsnumber', $system->SETTINGS['lastitemsnumber']);
loadblock($MSG['5015'], $MSG['5016'], 'decimals', 'higherbidsnumber', $system->SETTINGS['higherbidsnumber']);
loadblock($MSG['5017'], $MSG['5018'], 'decimals', 'endingsoonnumber', $system->SETTINGS['endingsoonnumber']);
loadblock($MSG['532'], $MSG['537'], 'batch', 'loginbox', $system->SETTINGS['loginbox'], $MSG['030'], $MSG['029']);
loadblock($MSG['533'], $MSG['538'], 'batch', 'newsbox', $system->SETTINGS['newsbox'], $MSG['030'], $MSG['029']);
loadblock('', $MSG['554'], 'decimals', 'newstoshow', $system->SETTINGS['newstoshow']);
loadblock($MSG['068'], $MSG['070'], 'batch', 'cust_increment', $system->SETTINGS['cust_increment'], $MSG['030'], $MSG['029']);
$template->assign_vars(array('ERROR' => isset($ERR) ? $ERR : '', 'SITEURL' => $system->SETTINGS['siteurl'], 'IMAGEURL' => $logoURL, 'LINKURL' => $link, 'TYPE' => 'gra', 'TYPENAME' => $MSG['25_0009'], 'PAGENAME' => $MSG['5005']));
$template->set_filenames(array('body' => 'adminpages.html'));
$template->display('body');
/*
  Copyright 2015 SignWise Corporation Ltd.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
*/
?>
<h1>Create document</h1>
<div>
  <label><span>Name</span> <input name="name"></label>
  <label><span>Output path</span> <input name="output_path" value="document.pdf"></label>
  <?php 
echo generateSelect('templates', 'Template', 'template');
?>
  <label><span>Fields</span> <textarea rows="3" name="fields">[{"placeholder":"[name]", "value": "John Smith"}, {"placeholder":"[location]", "value": "Tallinn"}, {"placeholder": "[date]", "value": "31.12.2015"}]</textarea>
  </label>
</div>
<div>
  <button>Create document</button>
</div>
							 <table class="form-table">
								<tr valign="top">
									<th scope="row">Select The City:</th>
									<td><label><?php 
echo $html = generateSelect('city', $city);
?>
</label> </td>
								</tr>
							</table>
														
							<table class="form-table">
								<tr valign="top">
								<th scope="row">Select The County:</th>
									
									<td><label><?php 
echo $html = generateSelect('country', $country);
?>
</label> </td>
								</tr>
							</table>
				
							<table class="form-table">
								<tr valign="top">
								<th scope="row">Select The Catagory:</th>								
									<td><label>
									<select name="type" id="property">
									  <option value="">---Select Any Type---</option>
									  <option value="Residential">Residential</option>
									  <option value="Commercial">Commercial</option>
									  <option value="Acreage">Acreage</option>
									  <option value="Multi-Family">Multi-Family</option>
function generateForm()
{
    return new clsDiv(array('children' => array(new clsFieldset(array('children' => array(new clsLegend(array('child' => new clsLiteral('Fieldset one'))), generateSelect(), generateInputText()))), new clsFieldset(array('children' => array(new clsLegend(array('child' => new clsLiteral('Fieldset two'))), generateInputCheckbox(), generateInputRadioButton(), generateInputTextArea(), generateInputButton(), generateInputHidden()))))));
}
Beispiel #8
0
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version. Although none of the code may be
 *   sold. If you have been sold this script, get a refund.
 ***************************************************************************/
define('InAdmin', 1);
$current_page = 'settings';
include '../common.php';
include $include_path . 'functions_admin.php';
include 'loggedin.inc.php';
unset($ERR);
if (isset($_POST['action']) && $_POST['action'] == 'update') {
    // Update database
    $query = "UPDATE " . $DBPrefix . "settings set \n\t\t\t timecorrection = " . intval($_POST['timecorrection']) . ",\n\t\t\t datesformat = '" . $_POST['datesformat'] . "'";
    $system->check_mysql(mysql_query($query), $query, __LINE__, __FILE__);
    $system->SETTINGS['timecorrection'] = $_POST['timecorrection'];
    $system->SETTINGS['datesformat'] = $_POST['datesformat'];
    $ERR = $MSG['347'];
}
$TIMECORRECTION = array();
for ($i = 12; $i > -13; $i--) {
    $TIMECORRECTION[$i] = $MSG['TZ_' . $i];
}
$selectsetting = $system->SETTINGS['timecorrection'];
$html = generateSelect('timecorrection', $TIMECORRECTION);
//load the template
loadblock($MSG['363'], $MSG['379'], 'datestacked', 'datesformat', $system->SETTINGS['datesformat'], array($MSG['382'], $MSG['383']));
loadblock($MSG['346'], $MSG['345'], 'dropdown', 'timecorrection', $system->SETTINGS['timecorrection']);
$template->assign_vars(array('ERROR' => isset($ERR) ? $ERR : '', 'SITEURL' => $system->SETTINGS['siteurl'], 'OPTIONHTML' => $html, 'TYPENAME' => $MSG['25_0008'], 'PAGENAME' => $MSG['344'], 'DROPDOWN' => $html));
$template->set_filenames(array('body' => 'adminpages.tpl'));
$template->display('body');
Beispiel #9
0
$agent = mysql_query($sql);
while ($row = mysql_fetch_assoc($agent)) {
    $tkeqry[] = $row;
}
$sel = array('---Select Any Agent---' => '');
foreach ($tkeqry as $key => $slec) {
    $sel[$slec['agent_license_no'] . ' - ' . $slec['Name']] = $slec['agent_license_no'];
}
// echo "<pre>";print_r($sel);
?>
							 <table class="form-table">
								<tr valign="top">
									
									<th scope="row">Select The Agent:</th>
									<td><label><?php 
echo $html = generateSelect('agent', $sel);
?>
</label> </td>
								</tr>
							</table>
							
							<?php 
// include("array.php") ;
?>
							
							 <table class="form-table">
								<tr valign="top">
									<th scope="row">Select The City:</th>
									<td><label>
										<?php 
//echo $html = generateSelect('city', $city);
Beispiel #10
0
<?php

/*
  Copyright 2015 SignWise Corporation Ltd.

  Licensed under the Apache License, Version 2.0 (the "License");
  you may not use this file except in compliance with the License.
  You may obtain a copy of the License at

  http://www.apache.org/licenses/LICENSE-2.0

  Unless required by applicable law or agreed to in writing, software
  distributed under the License is distributed on an "AS IS" BASIS,
  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  See the License for the specific language governing permissions and
  limitations under the License.
*/
?>
<h1>Share document</h1>
<div>
  <?php 
echo generateSelect('documents', 'Document', 'document');
?>
  <label><span>Expires</span> <input type="date" name="expires"></label>
  <label><span>Recipients</span> <textarea rows="3" name="recipients">[{"email": "*****@*****.**"}]</textarea></label>
</div>
<div>
  <button>Share document</button>
</div>
Beispiel #11
0
echo "</label>";
$html = generateSelect('datamcsco', $grading);
echo $html;
echo "</p>";
echo "<p>";
echo "<label>Aerial Surveillance";
echo "<span class='small'>Select from list</span>";
echo "</label>";
$html = generateSelect('aerialsurv', $grading);
echo $html;
echo "</p>";
echo "<p>";
echo "<label>Legislation";
echo "<span class='small'>and Management Plans</span>";
echo "</label>";
$html = generateSelect('legislation', $grading);
echo $html;
echo "</p>";
echo "<button type='submit' name='submit'>Submit Details</button>";
echo "<div class='spacer'></div>";
echo "</form>";
?>
                        </div>
                    </div>
                    <div id="aside">
                        <p> <?php 
echo $msg;
?>
 </p>
                    </div>
                    <div id="footer">
$input = "";
//Decode JSON data
$array = json_decode($_POST['jsonValue']);
$input .= '<form class="autoGenForm" action="##PATH OF PHP FILE##" method="post">' . "\n";
$x = 0;
//Foreach array item, create inputs
foreach ($array as $theArray) {
    //if is textarea, generate textarea
    if ($theArray->field == "textarea") {
        $input .= generateTextArea($x, $theArray->label, $theArray->field, $theArray->required);
    } elseif ($theArray->field == "radio") {
        $input .= generateRadio($x, $theArray, $theArray->required);
    } elseif ($theArray->field == "checkbox") {
        $input .= generateCheckbox($x, $theArray);
    } elseif ($theArray->field == "select") {
        $input .= generateSelect($x, $theArray, $theArray->required);
    } else {
        $input .= generateRegular($x, $theArray->label, $theArray->field, $theArray->required);
    }
    $x++;
}
//Create submit buttom
$input .= '<div class="inputContainer">' . "\n";
$input .= '<input type="submit" id="submit" value="submit">' . "\n";
$input .= '</div>' . "\n";
//End Form
$input .= '</form>';
//Generate javascript.  We want to validate form.
$input .= '
    <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script>
    <script src="http://ajax.aspnetcdn.com/ajax/jquery.validate/1.14.0/jquery.validate.min.js"></script>
Beispiel #13
0
	<div class="toolbar">
			<div id="leftbutton"><a href="./season.php">Back</a></div>
			<div id="rightbutton"><a href="http://m.meredith.edu">Home</a></div>
			<h1>Request Tickets</h1>
    </div>     

	<div id="copyBase">
		<form action="mailto:boxoffice@meredith.edu?subject=Ticket Request" enctype="text/plain" method="post" onsubmit="return checkRequired(this);">
		  				
			 <div class="nav">
			      	<li>
			      		<? echo "<b>$event</b><input name='Event' id='Event' type='hidden' value='".$event."'>"; ?>
			      	</li>
			      	<li><b>Select the date & time:</b></li>
		    		<li>
		    			<? $dropdown = generateSelect('Event Date', $dates); 
		    				 echo $dropdown; 
		    			?>
		    		</li>
			      	<li><b>Enter your name:</b>
			    		<fieldset class="inputcombo">
						<input class="forminput" type="text" name="Name" value="" required>
						</fieldset>
					</li>
			    	<li><b>Enter your email address:</b>
			    		<fieldset class="inputcombo">
						<input class="forminput" type="text" name="Email Address" value="" required>
						</fieldset>
					<li><b>Enter the number of tickets:</b></li>
	    			<li><input type="tel" size="3" maxlength="3" name="General Tickets" value="0"> General Admission</li>
	    			<li><input type="tel" size="3" maxlength="3" name="Student & Seniors Tickets" value="0"> Students & Seniors</li>
Beispiel #14
0
    <tr>
<td width="250">Name:</td>
<td width="247"><input name="name" size="30" autocomplete="off" value="" type="text" /></td>

</tr>

<tr>
<td>Department:</td>
<td><input name="dept" size="100" type="text" /></td>

</tr>
<tr>

<td><label for="progrm">Programme:</label></td>
<?php 
$html = generateSelect('progrm', $prog);
echo '<td>' . $html . '</td>';
?>

</tr>
<tr>

<td>Hostel-Room Number:</td>
<td><input name="hstRoom" size="30" type="text" /></td>

</tr>

<tr>

<td>Mobile:</td>
<td><input name="phone" size="30" maxlength="10" /></td>
Beispiel #15
0
                break;
        }
        $subject = stripslashes($_POST['subject']);
        $content = stripslashes($_POST['content']);
        $headers = 'From:' . $system->SETTINGS['sitename'] . ' <' . $system->SETTINGS['adminmail'] . '>' . "\n" . 'Content-Type: text/html; charset=' . $CHARSET;
        $result = mysql_query($query);
        while ($row = mysql_fetch_array($result)) {
            if (mail($row['email'], $subject, $content, $headers)) {
                $COUNTER++;
            }
        }
        if (!$result) {
            $ERR = $ERR_001;
        } else {
            $ERR = $COUNTER . $MSG['5300'];
        }
    }
}
$USERSFILTER = array("all" => $MSG['5296'], "active" => $MSG['5291'], "admin" => $MSG['5294'], "fee" => $MSG['5293'], "confirmed" => $MSG['5292']);
$selectsetting = isset($_POST['usersfilter']) ? $_POST['usersfilter'] : '';
loadblock($MSG['5299'], '', generateSelect('usersfilter', $USERSFILTER));
loadblock($MSG['332'], '', 'text', 'subject', $system->SETTINGS['subject'], $MSG['030'], $MSG['029']);
$oFCKeditor = new FCKeditor('content');
$oFCKeditor->BasePath = '../fck/';
$oFCKeditor->Value = stripslashes($system->SETTINGS['content']);
$oFCKeditor->Width = '550';
$oFCKeditor->Height = '400';
loadblock($MSG['605'], $MSG['30_0055'], $oFCKeditor->CreateHtml());
$template->assign_vars(array('ERROR' => isset($ERR) ? $ERR : '', 'SITEURL' => $system->SETTINGS['siteurl'], 'TYPE' => 'use', 'TYPENAME' => $MSG['25_0010'], 'PAGENAME' => $MSG['607']));
$template->set_filenames(array('body' => 'adminpages.html'));
$template->display('body');
Beispiel #16
0
                break;
            case 'fee':
                $query .= ' AND suspended = 9';
                break;
            case 'confirmed':
                $query .= ' AND suspended = 8';
                break;
        }
        $headers = 'From:' . $system->SETTINGS['sitename'] . ' <' . $system->SETTINGS['adminmail'] . '>' . "\n" . 'Content-Type: text/html; charset=' . $CHARSET;
        $res = mysql_query($query);
        $system->check_mysql($res, $query, __LINE__, __FILE__);
        while ($row = mysql_fetch_assoc($res)) {
            if (mail($row['email'], $subject, $content, $headers)) {
                $COUNTER++;
            }
        }
        $ERR = $COUNTER . $MSG['5300'];
    }
} elseif (isset($_POST['action']) && $_POST['action'] == 'preview') {
    $is_preview = true;
}
$USERSFILTER = array('all' => $MSG['5296'], 'active' => $MSG['5291'], 'admin' => $MSG['5294'], 'fee' => $MSG['5293'], 'confirmed' => $MSG['5292']);
$selectsetting = isset($_POST['usersfilter']) ? $_POST['usersfilter'] : '';
$CKEditor = new CKEditor();
$CKEditor->basePath = $main_path . 'ckeditor/';
$CKEditor->returnOutput = true;
$CKEditor->config['width'] = 550;
$CKEditor->config['height'] = 400;
$template->assign_vars(array('ERROR' => isset($ERR) ? $ERR : '', 'SITEURL' => $system->SETTINGS['siteurl'], 'SELECTBOX' => generateSelect('usersfilter', $USERSFILTER), 'SUBJECT' => $subject, 'EDITOR' => $CKEditor->editor('content', stripslashes($content)), 'PREVIEW' => $content, 'B_PREVIEW' => $is_preview));
$template->set_filenames(array('body' => 'newsletter.tpl'));
$template->display('body');
Beispiel #17
0
 *   site					: http://www.webidsupport.com/
 ***************************************************************************/
/***************************************************************************
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version. Although none of the code may be
 *   sold. If you have been sold this script, get a refund.
 ***************************************************************************/
define('InAdmin', 1);
$current_page = 'settings';
include '../common.php';
include $include_path . 'functions_admin.php';
include 'loggedin.inc.php';
include $main_path . 'language/' . $language . '/countries.inc.php';
unset($ERR);
if (isset($_POST['action']) && $_POST['action'] == 'update') {
    // clean submission
    $system->SETTINGS['defaultcountry'] = $system->cleanvars($_POST['country']);
    // Update database
    $query = "UPDATE " . $DBPrefix . "settings SET defaultcountry = :defaultcountry";
    $params = array();
    $params[] = array(':defaultcountry', $system->SETTINGS['defaultcountry'], 'str');
    $db->query($query, $params);
    $ERR = $MSG['5323'];
}
$selectsetting = $system->SETTINGS['defaultcountry'];
loadblock($MSG['5322'], $MSG['5321'], generateSelect('country', $countries, false));
$template->assign_vars(array('ERROR' => isset($ERR) ? $ERR : '', 'SITEURL' => $system->SETTINGS['siteurl'], 'TYPENAME' => $MSG['25_0008'], 'PAGENAME' => $MSG['5322']));
$template->set_filenames(array('body' => 'adminpages.tpl'));
$template->display('body');
Beispiel #18
0
        $CURRENCIES_SYMBOLS[$row['id']] = $row['symbol'];
    }
}
if (isset($_POST['action']) && $_POST['action'] == 'update') {
    // Data check
    if (empty($_POST['currency'])) {
        $ERR = $ERR_047;
    } elseif (!empty($_POST['moneydecimals']) && !is_numeric($_POST['moneydecimals'])) {
        $ERR = $ERR_051;
    } else {
        // Update database
        $system->writesetting("currency", $system->cleanvars($CURRENCIES_SYMBOLS[$_POST['currency']]), 'str');
        $system->writesetting("moneyformat", $_POST['moneyformat'], 'int');
        $system->writesetting("moneydecimals", $_POST['moneydecimals'], 'int');
        $system->writesetting("moneysymbol", $_POST['moneysymbol'], 'int');
        $ERR = $MSG['553'];
    }
}
foreach ($CURRENCIES_SYMBOLS as $k => $v) {
    if ($v == $system->SETTINGS['currency']) {
        $selectsetting = $k;
    }
}
loadblock($MSG['5008'], '', generateSelect('currency', $CURRENCIES));
loadblock('', $MSG['5138']);
loadblock($MSG['544'], '', 'batchstacked', 'moneyformat', $system->SETTINGS['moneyformat'], array($MSG['545'], $MSG['546']));
loadblock($MSG['548'], $MSG['547'], 'decimals', 'moneydecimals', $system->SETTINGS['moneydecimals']);
loadblock($MSG['549'], '', 'batchstacked', 'moneysymbol', $system->SETTINGS['moneysymbol'], array($MSG['550'], $MSG['551']));
$template->assign_vars(array('ERROR' => isset($ERR) ? $ERR : '', 'SITEURL' => $system->SETTINGS['siteurl'], 'OPTIONHTML' => $html, 'TYPENAME' => $MSG['25_0008'], 'PAGENAME' => $MSG['5004']));
$template->set_filenames(array('body' => 'adminpages.tpl'));
$template->display('body');
Beispiel #19
0
}
$dobclass = $missing['birthday'] ? ' class="missing"' : '';
$dobmonth = '<select name="TPL_month"' . $dobclass . '>
		<option value="00"></option>
		<option value="01"' . (isset($_POST['TPL_month']) && $_POST['TPL_month'] == '01' ? ' selected' : '') . '>' . $MSG['MON_001E'] . '</option>
		<option value="02"' . (isset($_POST['TPL_month']) && $_POST['TPL_month'] == '02' ? ' selected' : '') . '>' . $MSG['MON_002E'] . '</option>
		<option value="03"' . (isset($_POST['TPL_month']) && $_POST['TPL_month'] == '03' ? ' selected' : '') . '>' . $MSG['MON_003E'] . '</option>
		<option value="04"' . (isset($_POST['TPL_month']) && $_POST['TPL_month'] == '04' ? ' selected' : '') . '>' . $MSG['MON_004E'] . '</option>
		<option value="05"' . (isset($_POST['TPL_month']) && $_POST['TPL_month'] == '05' ? ' selected' : '') . '>' . $MSG['MON_005E'] . '</option>
		<option value="06"' . (isset($_POST['TPL_month']) && $_POST['TPL_month'] == '06' ? ' selected' : '') . '>' . $MSG['MON_006E'] . '</option>
		<option value="07"' . (isset($_POST['TPL_month']) && $_POST['TPL_month'] == '07' ? ' selected' : '') . '>' . $MSG['MON_007E'] . '</option>
		<option value="08"' . (isset($_POST['TPL_month']) && $_POST['TPL_month'] == '08' ? ' selected' : '') . '>' . $MSG['MON_008E'] . '</option>
		<option value="09"' . (isset($_POST['TPL_month']) && $_POST['TPL_month'] == '09' ? ' selected' : '') . '>' . $MSG['MON_009E'] . '</option>
		<option value="10"' . (isset($_POST['TPL_month']) && $_POST['TPL_month'] == '10' ? ' selected' : '') . '>' . $MSG['MON_010E'] . '</option>
		<option value="11"' . (isset($_POST['TPL_month']) && $_POST['TPL_month'] == '11' ? ' selected' : '') . '>' . $MSG['MON_011E'] . '</option>
		<option value="12"' . (isset($_POST['TPL_month']) && $_POST['TPL_month'] == '12' ? ' selected' : '') . '>' . $MSG['MON_012E'] . '</option>
	</select>';
$dobday = '<select name="TPL_day"' . $dobclass . '>
		<option value=""></option>';
for ($i = 1; $i <= 31; $i++) {
    $j = strlen($i) == 1 ? '0' . $i : $i;
    $dobday .= '<option value="' . $j . '"' . (isset($_POST['TPL_day']) && $_POST['TPL_day'] == $j ? ' selected' : '') . '>' . $j . '</option>';
}
$dobday .= '</select>';
$selectsetting = isset($_POST['TPL_timezone']) ? $_POST['TPL_timezone'] : '';
$time_correction = generateSelect('TPL_timezone', $TIMECORRECTION);
$template->assign_vars(array('ERROR' => isset($ERR) ? $ERR : '', 'L_COUNTRIES' => $country, 'L_DATEFORMAT' => $system->SETTINGS['datesformat'] == 'USA' ? $dobmonth . ' ' . $dobday : $dobday . ' ' . $dobmonth, 'TIMEZONE' => $time_correction, 'TERMSTEXT' => $system->SETTINGS['termstext'], 'PP_EMAIL' => isset($_POST['TPL_pp_email']) ? $_POST['TPL_pp_email'] : '', 'AN_ID' => isset($_POST['TPL_authnet_id']) ? $_POST['TPL_authnet_id'] : '', 'AN_PASS' => isset($_POST['TPL_authnet_pass']) ? $_POST['TPL_authnet_pass'] : '', 'WP_ID' => isset($_POST['TPL_worldpay_id']) ? $_POST['TPL_worldpay_id'] : '', 'MB_EMAIL' => isset($_POST['TPL_moneybookers_email']) ? $_POST['TPL_moneybookers_email'] : '', 'TC_ID' => isset($_POST['TPL_toocheckout_id']) ? $_POST['TPL_toocheckout_id'] : '', 'B_ADMINAPROVE' => $system->SETTINGS['activationtype'] == 0, 'B_NLETTER' => $system->SETTINGS['newsletter'] == 1, 'B_FIRST' => $first, 'B_PAYPAL' => $gateway_data['paypal_active'] == 1, 'B_AUTHNET' => $gateway_data['authnet_active'] == 1, 'B_WORLDPAY' => $gateway_data['worldpay_active'] == 1, 'B_TOOCHECKOUT' => $gateway_data['toocheckout_active'] == 1, 'B_MONEYBOOKERS' => $gateway_data['moneybookers_active'] == 1, 'B_FEES' => $signup_fee['value'] > 0, 'CAPTCHATYPE' => $system->SETTINGS['spam_register'], 'CAPCHA' => $system->SETTINGS['spam_register'] == 2 ? recaptcha_get_html($system->SETTINGS['recaptcha_public'], $system->SETTINGS['https'] == 'y') : $spam_html, 'BIRTHDATE' => $DISPLAYED_FIELDS['birthdate_regshow'] == 'y', 'ADDRESS' => $DISPLAYED_FIELDS['address_regshow'] == 'y', 'CITY' => $DISPLAYED_FIELDS['city_regshow'] == 'y', 'PROV' => $DISPLAYED_FIELDS['prov_regshow'] == 'y', 'COUNTRY' => $DISPLAYED_FIELDS['country_regshow'] == 'y', 'ZIP' => $DISPLAYED_FIELDS['zip_regshow'] == 'y', 'TEL' => $DISPLAYED_FIELDS['tel_regshow'] == 'y', 'REQUIRED' => array($MANDATORY_FIELDS['birthdate'] == 'y' ? ' *' : '', $MANDATORY_FIELDS['address'] == 'y' ? ' *' : '', $MANDATORY_FIELDS['city'] == 'y' ? ' *' : '', $MANDATORY_FIELDS['prov'] == 'y' ? ' *' : '', $MANDATORY_FIELDS['country'] == 'y' ? ' *' : '', $MANDATORY_FIELDS['zip'] == 'y' ? ' *' : '', $MANDATORY_FIELDS['tel'] == 'y' ? ' *' : '', $gateway_data['paypal_required'] == 1 ? ' *' : '', $gateway_data['authnet_required'] == 1 ? ' *' : '', $gateway_data['worldpay_required'] == 1 ? ' *' : '', $gateway_data['toocheckout_required'] == 1 ? ' *' : '', $gateway_data['moneybookers_required'] == 1 ? ' *' : ''), 'MISSING0' => $missing['name'] ? 1 : 0, 'MISSING1' => $missing['nick'] ? 1 : 0, 'MISSING2' => $missing['password'] ? 1 : 0, 'MISSING3' => $missing['repeat_password'] ? 1 : 0, 'MISSING4' => $missing['email'] ? 1 : 0, 'MISSING5' => $missing['birthday'] ? 1 : 0, 'MISSING6' => $missing['address'] ? 1 : 0, 'MISSING7' => $missing['city'] ? 1 : 0, 'MISSING8' => $missing['prov'] ? 1 : 0, 'MISSING9' => $missing['country'] ? 1 : 0, 'MISSING10' => $missing['zip'] ? 1 : 0, 'MISSING11' => $missing['tel'] ? 1 : 0, 'MISSING12' => $missing['paypal'] ? 1 : 0, 'MISSING13' => $missing['authnet'] ? 1 : 0, 'MISSING14' => $missing['worldpay'] ? 1 : 0, 'MISSING15' => $missing['toocheckout'] ? 1 : 0, 'MISSING16' => $missing['moneybookers'] ? 1 : 0, 'FEES' => $system->print_money($signup_fee['value']), 'V_YNEWSL' => isset($_POST['TPL_nletter']) && $_POST['TPL_nletter'] == 1 || !isset($_POST['TPL_nletter']) ? 'checked=true' : '', 'V_NNEWSL' => isset($_POST['TPL_nletter']) && $_POST['TPL_nletter'] == 2 ? 'checked=true' : '', 'V_YNAME' => isset($_POST['TPL_name']) ? $_POST['TPL_name'] : '', 'V_UNAME' => isset($_POST['TPL_nick']) ? $_POST['TPL_nick'] : '', 'V_EMAIL' => isset($_POST['TPL_email']) ? $_POST['TPL_email'] : '', 'V_YEAR' => isset($_POST['TPL_year']) ? $_POST['TPL_year'] : '', 'V_ADDRE' => isset($_POST['TPL_address']) ? $_POST['TPL_address'] : '', 'V_CITY' => isset($_POST['TPL_city']) ? $_POST['TPL_city'] : '', 'V_PROV' => isset($_POST['TPL_prov']) ? $_POST['TPL_prov'] : '', 'V_POSTCODE' => isset($_POST['TPL_zip']) ? $_POST['TPL_zip'] : '', 'V_PHONE' => isset($_POST['TPL_phone']) ? $_POST['TPL_phone'] : ''));
include 'header.php';
$template->set_filenames(array('body' => 'register.tpl'));
$template->display('body');
include 'footer.php';
Beispiel #20
0
		<option value="02"' . (isset($_POST['TPL_month']) && $_POST['TPL_month'] == '02' ? ' selected' : '') . '>' . $MSG['MON_002E'] . '</option>
		<option value="03"' . (isset($_POST['TPL_month']) && $_POST['TPL_month'] == '03' ? ' selected' : '') . '>' . $MSG['MON_003E'] . '</option>
		<option value="04"' . (isset($_POST['TPL_month']) && $_POST['TPL_month'] == '04' ? ' selected' : '') . '>' . $MSG['MON_004E'] . '</option>
		<option value="05"' . (isset($_POST['TPL_month']) && $_POST['TPL_month'] == '05' ? ' selected' : '') . '>' . $MSG['MON_005E'] . '</option>
		<option value="06"' . (isset($_POST['TPL_month']) && $_POST['TPL_month'] == '06' ? ' selected' : '') . '>' . $MSG['MON_006E'] . '</option>
		<option value="07"' . (isset($_POST['TPL_month']) && $_POST['TPL_month'] == '07' ? ' selected' : '') . '>' . $MSG['MON_007E'] . '</option>
		<option value="08"' . (isset($_POST['TPL_month']) && $_POST['TPL_month'] == '08' ? ' selected' : '') . '>' . $MSG['MON_008E'] . '</option>
		<option value="09"' . (isset($_POST['TPL_month']) && $_POST['TPL_month'] == '09' ? ' selected' : '') . '>' . $MSG['MON_009E'] . '</option>
		<option value="10"' . (isset($_POST['TPL_month']) && $_POST['TPL_month'] == '10' ? ' selected' : '') . '>' . $MSG['MON_010E'] . '</option>
		<option value="11"' . (isset($_POST['TPL_month']) && $_POST['TPL_month'] == '11' ? ' selected' : '') . '>' . $MSG['MON_011E'] . '</option>
		<option value="12"' . (isset($_POST['TPL_month']) && $_POST['TPL_month'] == '12' ? ' selected' : '') . '>' . $MSG['MON_012E'] . '</option>
	</select>';
$dobday = '<select name="TPL_day"' . $dobclass . '>
		<option value=""></option>';
for ($i = 1; $i <= 31; $i++) {
    $j = strlen($i) == 1 ? '0' . $i : $i;
    $dobday .= '<option value="' . $j . '"' . (isset($_POST['TPL_day']) && $_POST['TPL_day'] == $j ? ' selected' : '') . '>' . $j . '</option>';
}
$dobday .= '</select>';
$selectsetting = isset($_POST['TPL_timezone']) ? $_POST['TPL_timezone'] : $system->SETTINGS['timezone'];
$time_correction = generateSelect('TPL_timezone', $timezones, $selectsetting);
foreach ($gateway_data as $gateway) {
    if ($gateway['gateway_active']) {
        $template->assign_block_vars('gateways', array('GATEWAY_ID' => $gateway['id'], 'NAME' => $gateway['displayname'], 'PLAIN_NAME' => $gateway['name'], 'MISSING' => $missing[$gateway['name']] ? 1 : 0, 'REQUIRED' => $gateway['gateway_required'] == 1 ? 'checked' : '', 'ADDRESS' => isset($_POST[$gateway['name']]['address']) ? $_POST[$gateway['name']]['address'] : '', 'PASSWORD' => isset($_POST[$gateway['name']]['password']) ? $_POST[$gateway['name']]['password'] : '', 'ADDRESS_NAME' => isset($address_string[$gateway['name']]) ? $address_string[$gateway['name']] : $gateway['name'], 'PASSWORD_NAME' => isset($password_string[$gateway['name']]) ? $password_string[$gateway['name']] : '', 'ERROR_STRING' => $error_string[$gateway['name']], 'B_PASSWORD' => isset($password_string[$gateway['name']])));
    }
}
$template->assign_vars(array('ERROR' => isset($ERR) ? $ERR : '', 'L_COUNTRIES' => $country_dropdown, 'L_DATEFORMAT' => $system->SETTINGS['datesformat'] == 'USA' ? $dobmonth . ' ' . $dobday : $dobday . ' ' . $dobmonth, 'TIMEZONE' => $time_correction, 'TERMSTEXT' => $system->SETTINGS['termstext'], 'B_ADMINAPROVE' => $system->SETTINGS['activationtype'] == 0, 'B_NLETTER' => $system->SETTINGS['newsletter'] == 1, 'B_FIRST' => $first, 'B_FEES' => $signup_fee > 0, 'CAPTCHATYPE' => $system->SETTINGS['spam_register'], 'CAPCHA' => $system->SETTINGS['spam_register'] == 2 ? recaptcha_get_html($system->SETTINGS['recaptcha_public']) : $spam_html, 'BIRTHDATE' => $DISPLAYED_FIELDS['birthdate_regshow'] == 'y', 'ADDRESS' => $DISPLAYED_FIELDS['address_regshow'] == 'y', 'CITY' => $DISPLAYED_FIELDS['city_regshow'] == 'y', 'PROV' => $DISPLAYED_FIELDS['prov_regshow'] == 'y', 'COUNTRY' => $DISPLAYED_FIELDS['country_regshow'] == 'y', 'ZIP' => $DISPLAYED_FIELDS['zip_regshow'] == 'y', 'TEL' => $DISPLAYED_FIELDS['tel_regshow'] == 'y', 'REQUIRED' => array($MANDATORY_FIELDS['birthdate'] == 'y' ? ' *' : '', $MANDATORY_FIELDS['address'] == 'y' ? ' *' : '', $MANDATORY_FIELDS['city'] == 'y' ? ' *' : '', $MANDATORY_FIELDS['prov'] == 'y' ? ' *' : '', $MANDATORY_FIELDS['country'] == 'y' ? ' *' : '', $MANDATORY_FIELDS['zip'] == 'y' ? ' *' : '', $MANDATORY_FIELDS['tel'] == 'y' ? ' *' : ''), 'MISSING0' => $missing['name'] ? 1 : 0, 'MISSING1' => $missing['nick'] ? 1 : 0, 'MISSING2' => $missing['password'] ? 1 : 0, 'MISSING3' => $missing['repeat_password'] ? 1 : 0, 'MISSING4' => $missing['email'] ? 1 : 0, 'MISSING5' => $missing['birthday'] ? 1 : 0, 'MISSING6' => $missing['address'] ? 1 : 0, 'MISSING7' => $missing['city'] ? 1 : 0, 'MISSING8' => $missing['prov'] ? 1 : 0, 'MISSING9' => $missing['country'] ? 1 : 0, 'MISSING10' => $missing['zip'] ? 1 : 0, 'MISSING11' => $missing['tel'] ? 1 : 0, 'FEES' => $system->print_money($signup_fee), 'V_YNEWSL' => isset($_POST['TPL_nletter']) && $_POST['TPL_nletter'] == 1 || !isset($_POST['TPL_nletter']) ? 'checked=true' : '', 'V_NNEWSL' => isset($_POST['TPL_nletter']) && $_POST['TPL_nletter'] == 2 ? 'checked=true' : '', 'V_YNAME' => isset($_POST['TPL_name']) ? $_POST['TPL_name'] : '', 'V_UNAME' => isset($_POST['TPL_nick']) ? $_POST['TPL_nick'] : '', 'V_EMAIL' => isset($_POST['TPL_email']) ? $_POST['TPL_email'] : '', 'V_YEAR' => isset($_POST['TPL_year']) ? $_POST['TPL_year'] : '', 'V_ADDRE' => isset($_POST['TPL_address']) ? $_POST['TPL_address'] : '', 'V_CITY' => isset($_POST['TPL_city']) ? $_POST['TPL_city'] : '', 'V_PROV' => isset($_POST['TPL_prov']) ? $_POST['TPL_prov'] : '', 'V_POSTCODE' => isset($_POST['TPL_zip']) ? $_POST['TPL_zip'] : '', 'V_PHONE' => isset($_POST['TPL_phone']) ? $_POST['TPL_phone'] : ''));
include 'header.php';
$template->set_filenames(array('body' => 'register.tpl'));
$template->display('body');
include 'footer.php';
Beispiel #21
0
		<option value="06"' . ($TPL_month == '06' ? ' selected' : '') . '>' . $MSG['MON_006E'] . '</option>
		<option value="07"' . ($TPL_month == '07' ? ' selected' : '') . '>' . $MSG['MON_007E'] . '</option>
		<option value="08"' . ($TPL_month == '08' ? ' selected' : '') . '>' . $MSG['MON_008E'] . '</option>
		<option value="09"' . ($TPL_month == '09' ? ' selected' : '') . '>' . $MSG['MON_009E'] . '</option>
		<option value="10"' . ($TPL_month == '10' ? ' selected' : '') . '>' . $MSG['MON_010E'] . '</option>
		<option value="11"' . ($TPL_month == '11' ? ' selected' : '') . '>' . $MSG['MON_011E'] . '</option>
		<option value="12"' . ($TPL_month == '12' ? ' selected' : '') . '>' . $MSG['MON_012E'] . '</option>
	</select>';
$dobday = '<select name="TPL_day">
		<option value=""></option>';
for ($i = 1; $i <= 31; $i++) {
    $j = strlen($i) == 1 ? '0' . $i : $i;
    $dobday .= '<option value="' . $j . '"' . ($TPL_day == $j ? ' selected' : '') . '>' . $j . '</option>';
}
$dobday .= '</select>';
$time_correction = generateSelect('TPL_timezone', $timezones, $USER['timezone']);
$query = "SELECT * FROM " . $DBPrefix . "payment_options po LEFT JOIN " . $DBPrefix . "usergateways ug ON (po.id = ug.gateway_id AND ug.user_id = " . $user->user_data['id'] . ") WHERE po.is_gateway = 1";
$db->direct_query($query);
$gateway_data = $db->fetchAll();
foreach ($gateway_data as $gateway) {
    if ($gateway['gateway_active'] == 1) {
        $template->assign_block_vars('gateways', array('GATEWAY_ID' => $gateway['id'], 'NAME' => $gateway['displayname'], 'PLAIN_NAME' => $gateway['name'], 'REQUIRED' => $gateway['gateway_required'] == 1 ? '*' : '', 'ADDRESS' => !is_null($gateway['address']) ? $gateway['address'] : '', 'PASSWORD' => !is_null($gateway['password']) ? $gateway['password'] : '', 'ADDRESS_NAME' => isset($address_string[$gateway['name']]) ? $address_string[$gateway['name']] : $gateway['name'], 'PASSWORD_NAME' => isset($password_string[$gateway['name']]) ? $password_string[$gateway['name']] : '', 'ERROR_STRING' => $error_string[$gateway['name']], 'B_PASSWORD' => isset($password_string[$gateway['name']])));
    }
}
$template->assign_vars(array('COUNTRYLIST' => $country_list, 'NAME' => $USER['name'], 'NICK' => $USER['nick'], 'EMAIL' => $USER['email'], 'YEAR' => $TPL_year, 'ADDRESS' => $USER['address'], 'CITY' => $USER['city'], 'PROV' => $USER['prov'], 'ZIP' => $USER['zip'], 'PHONE' => $USER['phone'], 'DATEFORMAT' => $system->SETTINGS['datesformat'] == 'USA' ? $dobmonth . ' ' . $dobday : $dobday . ' ' . $dobmonth, 'TIMEZONE' => $time_correction, 'NLETTER1' => $USER['nletter'] == 1 ? ' checked="checked"' : '', 'NLETTER2' => $USER['nletter'] == 2 ? ' checked="checked"' : '', 'EMAILTYPE1' => $USER['emailtype'] == 'html' ? ' checked="checked"' : '', 'EMAILTYPE2' => $USER['emailtype'] == 'text' ? ' checked="checked"' : '', 'B_NEWLETTER' => $system->SETTINGS['newsletter'] == 1));
$TMP_usmenutitle = $MSG['509'];
include 'header.php';
include INCLUDE_PATH . 'user_cp.php';
$template->set_filenames(array('body' => 'edit_data.tpl'));
$template->display('body');
include 'footer.php';
Beispiel #22
0
					
										                    <div class="form-group">
                      <label class="col-md-3 control-label" >Address</label>
                      <div class="col-md-8">
<?php 
echo generateSelect('address', $address, 'address_unid', 'address_line_1');
?>
                      </div>
                    </div>
					
					
															                    <div class="form-group">
                      <label class="col-md-3 control-label" >Shipping Services</label>
                      <div class="col-md-8">
<?php 
echo generateSelect('shipping_services', $shipping_services, 'shipping_ser_unid', 'service_full_name');
?>
                      </div>
                    </div>
					
					
					
					
					
					
					

                    
                    <!-- Button  -->
                    <div class="form-group">
                      <label class="col-md-3 control-label"></label>
Beispiel #23
0
            $system->writesetting("smtp_port", !empty($_POST['smtp_port']) && is_numeric($_POST['smtp_port']) ? (int) $_POST['smtp_port'] : '', 'int');
            $system->writesetting("smtp_username", !empty($_POST['smtp_username']) ? $_POST['smtp_username'] : '', 'str');
            $system->writesetting("smtp_password", !empty($_POST['smtp_password']) ? $_POST['smtp_password'] : '', 'str');
            $system->writesetting("smtp_host", !empty($_POST['smtp_host']) ? $_POST['smtp_host'] : '', 'str');
            $system->writesetting("smtp_emails", $_POST['alert_emails'], 'str');
        }
        $INFO = $MSG['email_settings_updated'];
    }
}
$selectsetting = isset($system->SETTINGS['mail_protocol']) ? $system->SETTINGS['mail_protocol'] : '0';
loadblock($MSG['1119'], '', generateSelect('mail_protocol', $mail_protocol));
loadblock($MSG['1120'], '<span class="non_smtp para">' . $MSG['1121'], 'text', 'mail_parameter', $system->SETTINGS['mail_parameter']);
loadblock($MSG['1133'] . '<span class="smtp"></span>' . $MSG['1141'], '', '', '', '', array(), true);
loadblock($MSG['1128'], '<span class="smtp"></span>', 'yesno', 'smtp_authentication', $system->SETTINGS['smtp_authentication'], array($MSG['yes'], $MSG['no']));
$selectsetting = isset($system->SETTINGS['smtp_security']) ? $system->SETTINGS['smtp_security'] : 'none';
loadblock($MSG['1127'], '<span class="smtp"></span>', generateSelect('smtp_security', $smtp_secure_options));
loadblock($MSG['1126'], '<span class="smtp"></span>', 'text', 'smtp_port', $system->SETTINGS['smtp_port']);
loadblock($MSG['1124'], '<span class="smtp"></span>', 'text', 'smtp_username', $system->SETTINGS['smtp_username']);
loadblock($MSG['1125'], '<span class="smtp"></span>', 'text', 'smtp_password', $system->SETTINGS['smtp_password']);
loadblock($MSG['1122'], '<span class="smtp"></span>', 'text', 'smtp_host', $system->SETTINGS['smtp_host']);
loadblock($MSG['1129'], sprintf($MSG['1130'], $system->SETTINGS['adminmail']), 'text', 'alert_emails', $system->SETTINGS['alert_emails']);
$mail_info2 = '';
// send test email
if (isset($_GET['test_email'])) {
    $user_name = filter_var($_POST["user_name"], FILTER_SANITIZE_STRING);
    $to_email = filter_var($_POST["user_email"], FILTER_SANITIZE_EMAIL);
    $subject = filter_var($_POST["subject"], FILTER_SANITIZE_STRING);
    $message = filter_var($_POST["message"], FILTER_SANITIZE_STRING);
    $emailer = new email_handler();
    $emailer->email_basic($subject, $to_email, $message);
    die;
Beispiel #24
0
 *   site					: http://www.webidsupport.com/
 ***************************************************************************/
/***************************************************************************
 *   This program is free software; you can redistribute it and/or modify
 *   it under the terms of the GNU General Public License as published by
 *   the Free Software Foundation; either version 2 of the License, or
 *   (at your option) any later version. Although none of the code may be
 *   sold. If you have been sold this script, get a refund.
 ***************************************************************************/
define('InAdmin', 1);
$current_page = 'settings';
include '../common.php';
include INCLUDE_PATH . 'functions_admin.php';
include INCLUDE_PATH . 'config/timezones.php';
include 'loggedin.inc.php';
if (isset($_POST['action']) && $_POST['action'] == 'update') {
    // Update database
    $system->writesetting("timezone", $_POST['timezone'], "str");
    $system->writesetting("datesformat", $_POST['datesformat'], "str");
    $template->assign_block_vars('alerts', array('TYPE' => 'success', 'MESSAGE' => $MSG['347']));
}
$selectsetting = $system->SETTINGS['timezone'];
$html = generateSelect('timezone', $timezones);
//load the template
loadblock($MSG['363'], $MSG['379'], 'datestacked', 'datesformat', $system->SETTINGS['datesformat'], array($MSG['382'], $MSG['383']));
loadblock($MSG['346'], $MSG['345'], 'dropdown', 'timezone', $system->SETTINGS['timezone']);
$template->assign_vars(array('SITEURL' => $system->SETTINGS['siteurl'], 'TYPENAME' => $MSG['25_0008'], 'PAGENAME' => $MSG['344'], 'DROPDOWN' => $html));
include 'header.php';
$template->set_filenames(array('body' => 'adminpages.tpl'));
$template->display('body');
include 'footer.php';