本文整理汇总了PHP中module_security类的典型用法代码示例。如果您正苦于以下问题:PHP module_security类的具体用法?PHP module_security怎么用?PHP module_security使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了module_security类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: handle_hook
public function handle_hook($hook_name)
{
if ($hook_name == 'top_menu_end' && module_config::c('timer_enabled', 1) && module_security::is_logged_in() && self::can_i('view', 'Task Timer') && get_display_mode() != 'mobile') {
?>
<li id="timer_menu_button">
<div id="timer_menu_options">
<div class="timer_title">
<?php
_e('Active Timers');
?>
</div>
<ul id="active_timer_list">
</ul>
</div>
<a href="#" onclick="return false;" title="<?php
_e('Timer');
?>
"><span><?php
_e('Timers');
?>
<span class="menu_label" id="current_timer_count">1</span></span></a>
</li>
<?php
}
}
示例2: init
function init()
{
$this->module_name = "language";
$language_code = basename(module_config::c('default_language'));
if (module_security::is_logged_in()) {
$user = module_user::get_user(module_security::get_loggedin_id(), false);
if ($user && $user['user_id'] && isset($user['language']) && $user['language']) {
$language_code = basename($user['language']);
}
}
// language code, like en, gb, etc..
self::set_ui_language($language_code);
}
示例3: pre_menu
public function pre_menu()
{
if (self::is_plugin_enabled()) {
if (module_security::has_feature_access(array('name' => 'Settings', 'module' => 'config', 'category' => 'Config', 'view' => 1, 'description' => 'view'))) {
$this->links[] = array("name" => "Social", "p" => "social_settings", "args" => array('social_id' => false), 'holder_module' => 'config', 'holder_module_page' => 'config_admin', 'menu_include_parent' => 0);
}
if ($this->can_i('view', 'Social') && class_exists('ucm_twitter', false) && class_exists('ucm_facebook', false)) {
$twitter = new ucm_twitter();
$facebook = new ucm_facebook();
$unread = $facebook->get_unread_count() + $twitter->get_unread_count();
$this->links['social'] = array("name" => _l('Social') . ($unread > 0 ? " <span class='menu_label'>" . $unread . "</span>" : ''), "p" => "social_admin", 'icon_name' => 'comment-o');
}
}
}
示例4: init
public function init()
{
$this->links = array();
$this->help_types = array();
$this->module_name = "help";
$this->module_position = 16;
$this->version = 2.11;
//2.11 - 2014-04-05 - url help js
//2.1 - 2014-03-14 - initial release of new help system
if (module_help::is_plugin_enabled() && (module_config::c('help_only_for_admin', 1) && module_security::get_loggedin_id() == 1 || !module_config::c('help_only_for_admin', 1) && module_help::can_i('view', 'Help'))) {
// hook for help icon in top bar
hook_add('header_buttons', 'module_help::hook_filter_var_header_buttons');
hook_add('header_print_js', 'module_help::header_print_js');
module_config::register_js('help', 'help.js');
if (module_config::can_i('view', 'Settings')) {
$this->links[] = array("name" => "Help", "p" => "help_settings", 'holder_module' => 'config', 'holder_module_page' => 'config_admin', 'menu_include_parent' => 0);
}
}
}
示例5: can_i
public static function can_i($actions, $name = false, $category = false, $module = false)
{
$class_name = $module;
if (!$module) {
// php5.2 doesn't have get_called_class() :(
if (function_exists('get_called_class')) {
$class_name = get_called_class();
} else {
if (is_callable('self::get_class()')) {
eval('$class_name = self::get_class();');
} else {
// doesn't work in php5.2
eval('$class_name = static::get_class();');
}
}
if (!$class_name) {
echo 'no class found - please upgrade to php5.3';
}
}
if (!$name) {
$name = ucwords(str_replace('_', ' ', str_replace('module_', '', $class_name)));
}
if (!$name) {
return false;
}
if (!$category) {
$category = ucwords(str_replace('_', ' ', str_replace('module_', '', $class_name)));
}
$perms = array('name' => $name, 'module' => str_replace('module_', '', $class_name), 'category' => $category, 'description' => 'Permissions');
if (!is_array($actions)) {
$actions = array($actions);
}
foreach ($actions as $action) {
$perms[$action] = 1;
}
return module_security::has_feature_access($perms);
}
示例6: init
public function init()
{
$this->links = array();
$this->map_types = array();
$this->module_name = "map";
$this->module_position = 14;
$this->version = 2.21;
//2.21 - 2015-09-10 - map marker fix
//2.2 - 2015-09-09 - map marker fix
//2.1 - 2015-06-10 - initial release
// the link within Admin > Settings > Maps.
if (module_security::has_feature_access(array('name' => 'Settings', 'module' => 'config', 'category' => 'Config', 'view' => 1, 'description' => 'view'))) {
$this->links[] = array("name" => "Maps", "p" => "map_settings", 'holder_module' => 'config', 'holder_module_page' => 'config_admin', 'menu_include_parent' => 0);
}
if ($this->can_i('view', 'Maps') && module_config::c('enable_customer_maps', 1) && module_map::is_plugin_enabled()) {
// only display if a customer has been created.
if (isset($_REQUEST['customer_id']) && $_REQUEST['customer_id'] && $_REQUEST['customer_id'] != 'new') {
// how many maps?
$name = 'Maps';
$this->links[] = array("name" => $name, "p" => "map_admin", 'args' => array('map_id' => false), 'holder_module' => 'customer', 'holder_module_page' => 'customer_admin_open', 'menu_include_parent' => 0, 'icon_name' => 'globe');
}
$this->links[] = array("name" => 'Maps', "p" => "map_admin", 'args' => array('map_id' => false), 'icon_name' => 'globe');
}
}
示例7: _l
$widget_id = (int) $_REQUEST['widget_id'];
$widget = module_widget::get_widget($widget_id);
if ($widget_id > 0 && $widget['widget_id'] == $widget_id) {
$module->page_title = 'Widget' . ': ' . $widget['name'];
} else {
$module->page_title = 'Widget' . ': ' . _l('New');
}
if ($widget_id > 0 && $widget) {
if (class_exists('module_security', false)) {
module_security::check_page(array('module' => $module->module_name, 'feature' => 'edit'));
}
} else {
if (class_exists('module_security', false)) {
module_security::check_page(array('module' => $module->module_name, 'feature' => 'create'));
}
module_security::sanatise_data('widget', $widget);
}
?>
<form action="" method="post">
<input type="hidden" name="_process" value="save_widget" />
<input type="hidden" name="widget_id" value="<?php
echo $widget_id;
?>
" />
<?php
$fields = array('fields' => array('name' => 'Name'));
示例8: get_finance_summary
public static function get_finance_summary($week_start, $week_end, $multiplyer = 1, $row_limit = 7)
{
$cache_key = 'finance_sum_' . md5(module_security::get_loggedin_id() . '_' . serialize(func_get_args()));
$cache_timeout = module_config::c('cache_objects', 60);
if ($cached_item = module_cache::get('finance', $cache_key)) {
return $cached_item;
}
$base_href = module_finance::link_generate(false, array('full' => false, 'page' => 'dashboard_popup', 'arguments' => array('display_mode' => 'ajax')), array('foo'));
$base_href .= '&';
/*$base_href .= (strpos($base_href,'?')!==false) ? '&' : '?';
$base_href .= 'display_mode=ajax&';
$base_href .= 'home_page_stats=true&';*/
// init structure:
if ($multiplyer > 1) {
$row_limit++;
}
for ($x = 0; $x < $row_limit; $x++) {
//$time = strtotime("+$x days",strtotime($week_start));
$time = strtotime("+" . $x * $multiplyer . " days", strtotime($week_start));
$data[date("Ymd", $time)] = array("day" => $time, "hours" => 0, "amount" => 0, "amount_invoiced" => 0, "amount_paid" => 0, "amount_spent" => 0);
if (class_exists('module_envato', false)) {
$data[date("Ymd", $time)]['envato_earnings'] = 0;
}
}
$data['total'] = array('day' => _l('Totals:'), 'week' => _l('Totals:'), 'hours' => 0, 'amount' => 0, 'amount_invoiced' => 0, 'amount_paid' => 0, 'amount_spent' => 0);
if (class_exists('module_envato', false)) {
$data['total']['envato_earnings'] = 0;
}
if (class_exists('module_job', false)) {
module_debug::log(array('title' => 'Finance Dashboard Job', 'data' => ''));
// find all task LOGS completed within these dayes
$sql = "SELECT t.task_id, tl.date_created, t.hours AS task_hours, t.amount, tl.hours AS hours_logged, p.job_id, p.hourly_rate, t.date_done ";
// $sql .= " FROM `"._DB_PREFIX."task_log` tl ";
// $sql .= " LEFT JOIN `"._DB_PREFIX."task` t ON tl.task_id = t.task_id ";
$sql .= " FROM `" . _DB_PREFIX . "task` t";
$sql .= " LEFT JOIN `" . _DB_PREFIX . "task_log` tl ON t.task_id = tl.task_id ";
$sql .= " LEFT JOIN `" . _DB_PREFIX . "job` p ON t.job_id = p.job_id";
$sql .= " WHERE ( (tl.date_created >= '{$week_start}' AND tl.date_created < '{$week_end}') OR (t.fully_completed = 1 AND t.date_done >= '{$week_start}' AND t.date_done < '{$week_end}') )";
$sql .= " AND t.job_id IN ( ";
$valid_job_ids = module_job::get_valid_job_ids();
if (count($valid_job_ids)) {
foreach ($valid_job_ids as $valid_job_id) {
$sql .= (int) $valid_job_id['job_id'] . ", ";
}
$sql = rtrim($sql, ', ');
} else {
$sql .= ' NULL ';
}
$sql .= " ) ";
// echo $sql;
$tasks = query($sql);
$logged_tasks = array();
while ($r = mysql_fetch_assoc($tasks)) {
if (!$r['date_created']) {
$r['date_created'] = $r['date_done'];
}
if ($multiplyer > 1) {
$week_day = date('w', strtotime($r['date_created'])) - 1;
$r['date_created'] = date('Y-m-d', strtotime('-' . $week_day . ' days', strtotime($r['date_created'])));
}
$key = date("Ymd", strtotime($r['date_created']));
if (!isset($data[$key])) {
// for some reason we're getting results here that shouldn't be in the list
// for now we just skip these results until I figure out why (only had 1 guy report this error, maybe misconfig)
continue;
}
// copied from dashboard_popup_hours_logged.php
// needed get_tasks call to do the _JOB_TASK_ACCESS_ASSIGNED_ONLY permission check
$jobtasks = module_job::get_tasks($r['job_id']);
$task = isset($jobtasks[$r['task_id']]) ? $jobtasks[$r['task_id']] : false;
if (!$task) {
continue;
}
if (!isset($task['manual_task_type']) || $task['manual_task_type'] < 0) {
$task['manual_task_type'] = $task['default_task_type'];
}
if (isset($r['hours_logged']) && $r['hours_logged'] > 0) {
if ($r['hours_logged'] == $task['completed']) {
// this listing is the only logged hours for this task.
if ($task['fully_completed']) {
// task complete, we show the final amount and hours.
if ($task['amount'] > 0) {
if ($task['manual_task_type'] == _TASK_TYPE_QTY_AMOUNT) {
$display_amount = $task['amount'] * $task['hours'];
} else {
$display_amount = $task['amount'];
}
} else {
$display_amount = $r['task_hours'] * $r['hourly_rate'];
}
} else {
// task isn't fully completed yet, just use hourly rate for now.
$display_amount = $r['hours_logged'] * $r['hourly_rate'];
}
} else {
// this is part of a bigger log of hours for this single task.
$display_amount = $r['hours_logged'] * $r['hourly_rate'];
}
$hours_logged = $r['task_hours'] > 0 ? $r['hours_logged'] : 0;
} else {
//.........这里部分代码省略.........
示例9: has_viewed
public function has_viewed()
{
// close off any notifications here.
if ($this->file_id > 0) {
$sql = "UPDATE `" . _DB_PREFIX . "file_notification` SET `view_time` = '" . time() . "' WHERE `view_time` = 0 AND `user_id` = " . module_security::get_loggedin_id() . " AND file_id = " . (int) $this->file_id;
query($sql);
}
}
示例10: init
public function init()
{
$this->module_name = "config";
$this->module_position = 40;
$this->version = 2.416;
//2.416 - 2015-06-07 - new settings button
//2.415 - 2015-04-05 - stuck plugin update fix
//2.414 - 2015-04-05 - character encoding fix
//2.413 - 2015-03-14 - speed improvement
//2.412 - 2015-02-08 - theme/custom override js file support
//2.411 - 2015-01-20 - more speed improvements
//2.41 - 2014-12-22 - ssl fix
//2.4 - 2014-11-17 - much faster upgrade system
//2.393 - 2014-11-04 - upgrade page improvement
//2.392 - 2014-11-04 - upgrade page improvement
//2.391 - 2014-10-07 - showing latest updates/blog posts in upgrade window.
//2.39 - 2014-09-29 - faster update checking
//2.389 - 2014-09-05 - improved config defaults
//2.388 - 2014-08-12 - faster updates
//2.387 - 2014-08-10 - fixed updater
//2.386 - 2014-08-10 - fixed updater
//2.385 - 2014-08-10 - progress showing in upgrader
//2.384 - 2014-08-09 - bug fix for older jquery
//2.383 - 2014-08-06 - better js handling
//2.382 - 2014-07-25 - faster updates
//2.381 - 2014-07-09 - js_combine / css_combine for much faster page loading
//2.38 - 2014-07-05 - js_combine / css_combine for much faster page loading
//2.379 - 2014-07-02 - js_combine / css_combine for much faster page loading
//2.378 - 2014-03-12 - improved upgrader
//2.377 - 2014-02-25 - improved installer
//2.376 - 2013-11-13 - company config bug fix
//2.375 - 2013-10-06 - software update reminder on dashboard
//2.374 - 2013-10-05 - settings page improvement
//2.373 - 2013-09-06 - installation improvement
//2.372 - 2013-09-01 - fix for cache bug
//2.371 - 2013-06-21 - different config vars per company
//2.37 - 2013-04-30 - clearer upgrade instructions
//2.31 - putting date_input to the general settings area
//2.32 - friendly licence code names
//2.33 - menu fix.
//2.34 - js / css callbacks
//2.35 - skipping custom files in the upgrade process
//2.36 - permission fixes
//2.361 - memory limit via config
//2.362 - memory limit fix
//2.363 - upload php limit fix
//2.364 - php5/6 fix
//2.365 - date format settings fix
//2.366 - css/js updates
//2.367 - css loading fix
//2.368 - upgrade fixing
//2.369 - click to edit config values
// load some default configurations.
if (!defined('_DATE_FORMAT')) {
define('_DATE_FORMAT', module_config::c('date_format', 'd/m/Y'));
// todo: read from database
}
if (!defined('_DATE_INPUT')) {
// 1 = DD/MM/YYYY
// 2 = YYYY/MM/DD
// 3 = MM/DD/YYYY
define('_DATE_INPUT', module_config::c('date_input', '1'));
}
if (!defined('_ERROR_EMAIL')) {
define('_ERROR_EMAIL', module_config::c('admin_email_address', 'info@' . $_SERVER['HTTP_HOST']));
}
date_default_timezone_set(module_config::c('timezone', 'America/New_York'));
if (module_security::is_logged_in() && isset($_POST['_config_settings_hook']) && $_POST['_config_settings_hook'] == 'save_config') {
$this->_handle_save_settings_hook();
}
// try to set our memory limit.
$desired_limit_r = module_config::c('php_memory_limit', '64M');
$desired_limit = trim($desired_limit_r);
$last = strtolower($desired_limit[strlen($desired_limit) - 1]);
switch ($last) {
// The 'G' modifier is available since PHP 5.1.0
case 'g':
$desired_limit *= 1024;
case 'm':
$desired_limit *= 1024;
case 'k':
$desired_limit *= 1024;
}
$memory_limit = ini_get('memory_limit');
$val = trim($memory_limit);
$last = strtolower($val[strlen($val) - 1]);
switch ($last) {
// The 'G' modifier is available since PHP 5.1.0
case 'g':
$val *= 1024;
case 'm':
$val *= 1024;
case 'k':
$val *= 1024;
}
if (!$memory_limit || $val < $desired_limit) {
// try to increase to 64M
if (!_DEMO_MODE) {
@ini_set('memory_limit', $desired_limit_r);
}
//.........这里部分代码省略.........
示例11: die
$contact_type_permission = 'Vendor';
$contact_module_name = 'vendor';
break;
default:
die('Unsupported type');
}
$module->page_title = _l($contact_type_permission . ' Contacts');
if (!isset($search[$use_master_key]) || !$search[$use_master_key]) {
// we are just showing a list of all customer contacts.
$show_customer_details = true;
// check they have permissions to view all customer contacts.
if (class_exists('module_security', false)) {
// if they are not allowed to "edit" a page, but the "view" permission exists
// then we automatically grab the page and regex all the crap out of it that they are not allowed to change
// eg: form elements, submit buttons, etc..
module_security::check_page(array('category' => $contact_type, 'page_name' => 'All ' . $contact_type_permission . ' Contacts', 'module' => $contact_module_name, 'feature' => 'view'));
}
//throw new Exception('Please create a user correctly');
} else {
$show_customer_details = false;
}
$users = module_user::get_contacts($search, true, false);
if (class_exists('module_group', false)) {
module_group::enable_pagination_hook(array('fields' => array('owner_id' => 'user_id', 'owner_table' => 'user', 'name' => 'name', 'email' => 'email')));
}
// hack to add a "export" option to the pagination results.
if (class_exists('module_import_export', false) && module_user::can_i('view', 'Export ' . $contact_type_permission . ' Contacts')) {
if (isset($_REQUEST['import_export_go'])) {
$users = query_to_array($users);
foreach ($users as $user_id => $user) {
$users[$user_id]['is_primary'] = $user['is_primary'] == $user['user_id'] ? _l('Yes') : _l('No');
示例12: get_form_element
//.........这里部分代码省略.........
if (isset($element['attributes'])) {
$attributes = $element['attributes'];
} else {
$attributes = array();
}
if (isset($attributes[0])) {
$new_attributes = array();
foreach ($attributes as $aid => $a) {
$new_attributes[$aid + 1] = $a;
}
$attributes = $new_attributes;
}
if (isset($attributes[$value])) {
echo $attributes[$value];
}
break;
case 'textarea':
case 'textbox':
echo nl2br(htmlspecialchars($value));
break;
case 'file':
if ($value) {
$file_data = @unserialize($value);
$file_link = 'includes/plugin_data/upload/' . $file_data['file'];
if (is_file($file_link)) {
$download_link = self::link_public_file_download($data_record['data_record_id'], $data_record['data_type_id'], $element['data_field_group_id'], $element['data_field_id']);
echo '<a href="' . $download_link . '" target="_blank">' . $file_data['name'] . '</a>';
} else {
echo 'File Not Found';
}
}
break;
case 'wysiwyg':
echo module_security::purify_html($value);
break;
case 'encrypted':
if (class_exists('module_encrypt', false)) {
ob_start();
$element['type'] = 'text';
module_form::generate_form_element($element);
$enc_html = ob_get_clean();
echo module_encrypt::parse_html_input('custom_data', $enc_html, false);
}
break;
case 'created_date_time':
echo isset($data_record['date_created']) && $data_record['date_created'] != '0000-00-00 00:00:00' ? print_date($data_record['date_created'], true) : _l('N/A');
break;
case 'created_date':
echo isset($data_record['date_created']) && $data_record['date_created'] != '0000-00-00 00:00:00' ? print_date($data_record['date_created'], false) : _l('N/A');
break;
case 'created_time':
echo isset($data_record['date_created']) && $data_record['date_created'] != '0000-00-00 00:00:00' ? date(module_config::c('time_format', 'g:ia'), strtotime($data_record['date_created'])) : _l('N/A');
break;
case 'updated_date_time':
echo isset($data_record['date_updated']) && $data_record['date_updated'] != '0000-00-00 00:00:00' ? print_date($data_record['date_updated'], true) : (isset($data_record['date_created']) && $data_record['date_created'] != '0000-00-00 00:00:00' ? print_date($data_record['date_created'], true) : _l('N/A'));
break;
case 'updated_date':
echo isset($data_record['date_updated']) && $data_record['date_updated'] != '0000-00-00 00:00:00' ? print_date($data_record['date_updated'], false) : (isset($data_record['date_created']) && $data_record['date_created'] != '0000-00-00 00:00:00' ? print_date($data_record['date_created'], false) : _l('N/A'));
break;
case 'updated_time':
echo isset($data_record['date_updated']) && $data_record['date_updated'] != '0000-00-00 00:00:00' ? date(module_config::c('time_format', 'g:ia'), strtotime($data_record['date_updated'])) : (isset($data_record['date_created']) && $data_record['date_created'] != '0000-00-00 00:00:00' ? date(module_config::c('time_format', 'g:ia'), strtotime($data_record['date_created'])) : _l('N/A'));
break;
case 'created_by':
echo isset($data_record['create_user_id']) && (int) $data_record['create_user_id'] > 0 ? module_user::link_open($data_record['create_user_id'], true) : _l('N/A');
break;
case 'updated_by':
示例13: function
* Copyright: dtbaker 2012
* Licence: Please check CodeCanyon.net for licence details.
* More licence clarification available here: http://codecanyon.net/wiki/support/legal-terms/licensing-terms/
* Deploy: 9809 f200f46c2a19bb98d112f2d32a8de0c4
* Envato: 4ffca17e-861e-4921-86c3-8931978c40ca
* Package Date: 2015-11-25 02:55:20
* IP Address: 67.79.165.254
*/
/* <div data-role="footer">
<h4>Footer content</h4>
</div><!-- /footer --> */
?>
</div><!-- /page -->
<?php
if (module_config::c('mobile_content_scroll', 1) && module_security::is_logged_in()) {
?>
<script type="text/javascript">
var contentscroll = [];
var content = null;
window.addEventListener("resize", function() {
// Get screen size (inner/outerWidth, inner/outerHeight)
// var headerheight = 20;
// $('div[data-role="header"]').each(function(){
// headerheight+= $(this).height();
// });
// if(content != null)content.width(window.innerWidth-10).height(window.innerHeight-headerheight);
// if(contentscroll != null)contentscroll.refresh();
for (var i in contentscroll){
if(typeof contentscroll[i] == 'object'){
contentscroll[i].refresh();
示例14: _e
<div class="content_box_wheader" style="padding-bottom: 20px">
<p>
<?php
_e('This ticket is not assigned to anyone.');
?>
<br/>
<?php
_e('If you are able to solve this ticket please assign it to yourself.');
?>
</p>
<input type="button" name="butt_assign_me" value="<?php
_e('Assign this ticket to me');
?>
" class="submit_button btn btn-success" onclick="$('#assigned_user_id').val(<?php
echo module_security::get_loggedin_id();
?>
); this.form.submit();">
<p>
<?php
_e('If you cannot solve this ticket please assign it to someone else in the drop down list.');
?>
</p>
</div>
<?php
$fieldset_data = array('heading' => array('title' => _l('Unassigned Ticket'), 'type' => 'h3'), 'elements_before' => ob_get_clean());
echo module_form::generate_fieldset($fieldset_data);
unset($fieldset_data);
}
/** TICKET MESSAGES */
示例15: writable
<?php
/**
* Copyright: dtbaker 2012
* Licence: Please check CodeCanyon.net for licence details.
* More licence clarification available here: http://codecanyon.net/wiki/support/legal-terms/licensing-terms/
* Deploy: 9809 f200f46c2a19bb98d112f2d32a8de0c4
* Envato: 4ffca17e-861e-4921-86c3-8931978c40ca
* Package Date: 2015-11-25 02:55:20
* IP Address: 67.79.165.254
*/
if (!_UCM_INSTALLED) {
module_security::logout();
}
$setup_errors = false;
// see if we can write to a file, ext.php or design_menu.php
if (!touch(_UCM_FOLDER . 'cron.php') || !touch(_UCM_FOLDER . 'ext.php') || !touch(_UCM_FOLDER . 'design_menu.php')) {
set_error('Sorry, the base folder <strong>' . _UCM_FOLDER . '</strong> is not writable by PHP. Please contact your hosting provider and ask for this folder to be set writable by PHP. Or change the permissions to writable (777 in most cases) using your FTP program.');
$setup_errors = true;
}
// check folder permissions and the like.
$temp_folder = _UCM_FOLDER . "temp/";
if (!is_dir($temp_folder) || !is_writable($temp_folder)) {
if ($temp_folder === false) {
// doesn't exist.
$temp_folder = '/temp/';
}
set_error('Sorry, the folder <strong>' . $temp_folder . '</strong> is not writable. Please contact your hosting provider and ask for this folder to be set writable by PHP. Or change the permissions to writable using your FTP program.');
$setup_errors = true;
}
// check folder permissions and the like.