Skip to content
Snippets Groups Projects
Commit 8896abb1 authored by nveid's avatar nveid
Browse files

Scanned repo and converted dos formatted files to unix

parent d4708d3f
No related branches found
No related tags found
No related merge requests found
...@@ -70,4 +70,4 @@ echo "Please do not forget to delete the ispconfig user in the mysql.user table. ...@@ -70,4 +70,4 @@ echo "Please do not forget to delete the ispconfig user in the mysql.user table.
echo "Finished.\n"; echo "Finished.\n";
?> ?>
\ No newline at end of file
...@@ -70,4 +70,4 @@ echo "Please do not forget to delete the ispconfig user in the mysql.user table. ...@@ -70,4 +70,4 @@ echo "Please do not forget to delete the ispconfig user in the mysql.user table.
echo "Finished.\n"; echo "Finished.\n";
?> ?>
\ No newline at end of file
This diff is collapsed.
<?php <?php
/* /*
Form Definition Form Definition
Tabledefinition Tabledefinition
Datatypes: Datatypes:
- INTEGER (Forces the input to Int) - INTEGER (Forces the input to Int)
- DOUBLE - DOUBLE
- CURRENCY (Formats the values to currency notation) - CURRENCY (Formats the values to currency notation)
- VARCHAR (no format check, maxlength: 255) - VARCHAR (no format check, maxlength: 255)
- TEXT (no format check) - TEXT (no format check)
- DATE (Dateformat, automatic conversion to timestamps) - DATE (Dateformat, automatic conversion to timestamps)
Formtype: Formtype:
- TEXT (Textfield) - TEXT (Textfield)
- TEXTAREA (Textarea) - TEXTAREA (Textarea)
- PASSWORD (Password textfield, input is not shown when edited) - PASSWORD (Password textfield, input is not shown when edited)
- SELECT (Select option field) - SELECT (Select option field)
- RADIO - RADIO
- CHECKBOX - CHECKBOX
- CHECKBOXARRAY - CHECKBOXARRAY
- FILE - FILE
VALUE: VALUE:
- Wert oder Array - Wert oder Array
Hint: Hint:
The ID field of the database table is not part of the datafield definition. The ID field of the database table is not part of the datafield definition.
The ID field must be always auto incement (int or bigint). The ID field must be always auto incement (int or bigint).
*/ */
$form["title"] = "System Config"; $form["title"] = "System Config";
$form["description"] = ""; $form["description"] = "";
$form["name"] = "system_config"; $form["name"] = "system_config";
$form["action"] = "system_config_edit.php"; $form["action"] = "system_config_edit.php";
$form["db_table"] = "sys_ini"; $form["db_table"] = "sys_ini";
$form["db_table_idx"] = "sysini_id"; $form["db_table_idx"] = "sysini_id";
$form["db_history"] = "yes"; $form["db_history"] = "yes";
$form["tab_default"] = "sites"; $form["tab_default"] = "sites";
$form["list_default"] = "server_list.php"; $form["list_default"] = "server_list.php";
$form["auth"] = 'yes'; // yes / no $form["auth"] = 'yes'; // yes / no
$form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user $form["auth_preset"]["userid"] = 0; // 0 = id of the user, > 0 id must match with id of current user
$form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user $form["auth_preset"]["groupid"] = 0; // 0 = default groupid of the user, > 0 id must match with groupid of current user
$form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete $form["auth_preset"]["perm_user"] = 'riud'; //r = read, i = insert, u = update, d = delete
$form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete $form["auth_preset"]["perm_group"] = 'riud'; //r = read, i = insert, u = update, d = delete
$form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete $form["auth_preset"]["perm_other"] = ''; //r = read, i = insert, u = update, d = delete
$form["tabs"]['sites'] = array ( $form["tabs"]['sites'] = array (
'title' => "Sites", 'title' => "Sites",
'width' => 70, 'width' => 70,
'template' => "templates/system_config_sites_edit.htm", 'template' => "templates/system_config_sites_edit.htm",
'fields' => array ( 'fields' => array (
################################## ##################################
# Begin Datatable fields # Begin Datatable fields
################################## ##################################
'dbname_prefix' => array ( 'dbname_prefix' => array (
'datatype' => 'VARCHAR', 'datatype' => 'VARCHAR',
'formtype' => 'TEXT', 'formtype' => 'TEXT',
'validators' => array ( 0 => array ( 'type' => 'REGEX', 'validators' => array ( 0 => array ( 'type' => 'REGEX',
'regex' => '/^[a-zA-Z0-0\-\_\[\]]{0,50}$/', 'regex' => '/^[a-zA-Z0-0\-\_\[\]]{0,50}$/',
'errmsg'=> 'dbname_prefix_error_regex'), 'errmsg'=> 'dbname_prefix_error_regex'),
), ),
'default' => '', 'default' => '',
'value' => '', 'value' => '',
'width' => '30', 'width' => '30',
'maxlength' => '255' 'maxlength' => '255'
), ),
'dbuser_prefix' => array ( 'dbuser_prefix' => array (
'datatype' => 'VARCHAR', 'datatype' => 'VARCHAR',
'formtype' => 'TEXT', 'formtype' => 'TEXT',
'validators' => array ( 0 => array ( 'type' => 'REGEX', 'validators' => array ( 0 => array ( 'type' => 'REGEX',
'regex' => '/^[a-zA-Z0-0\-\_\[\]]{0,50}$/', 'regex' => '/^[a-zA-Z0-0\-\_\[\]]{0,50}$/',
'errmsg'=> 'dbuser_prefix_error_regex'), 'errmsg'=> 'dbuser_prefix_error_regex'),
), ),
'default' => '', 'default' => '',
'value' => '', 'value' => '',
'width' => '30', 'width' => '30',
'maxlength' => '255' 'maxlength' => '255'
), ),
'ftpuser_prefix' => array ( 'ftpuser_prefix' => array (
'datatype' => 'VARCHAR', 'datatype' => 'VARCHAR',
'formtype' => 'TEXT', 'formtype' => 'TEXT',
'validators' => array ( 0 => array ( 'type' => 'REGEX', 'validators' => array ( 0 => array ( 'type' => 'REGEX',
'regex' => '/^[a-zA-Z0-0\-\_\[\]]{0,50}$/', 'regex' => '/^[a-zA-Z0-0\-\_\[\]]{0,50}$/',
'errmsg'=> 'ftpuser_prefix_error_regex'), 'errmsg'=> 'ftpuser_prefix_error_regex'),
), ),
'default' => '', 'default' => '',
'value' => '', 'value' => '',
'width' => '30', 'width' => '30',
'maxlength' => '255' 'maxlength' => '255'
), ),
'shelluser_prefix' => array ( 'shelluser_prefix' => array (
'datatype' => 'VARCHAR', 'datatype' => 'VARCHAR',
'formtype' => 'TEXT', 'formtype' => 'TEXT',
'validators' => array ( 0 => array ( 'type' => 'REGEX', 'validators' => array ( 0 => array ( 'type' => 'REGEX',
'regex' => '/^[a-zA-Z0-0\-\_\[\]]{0,50}$/', 'regex' => '/^[a-zA-Z0-0\-\_\[\]]{0,50}$/',
'errmsg'=> 'shelluser_prefix_error_regex'), 'errmsg'=> 'shelluser_prefix_error_regex'),
), ),
'default' => '', 'default' => '',
'value' => '', 'value' => '',
'width' => '30', 'width' => '30',
'maxlength' => '255' 'maxlength' => '255'
), ),
'webdavuser_prefix' => array ( 'webdavuser_prefix' => array (
'datatype' => 'VARCHAR', 'datatype' => 'VARCHAR',
'formtype' => 'TEXT', 'formtype' => 'TEXT',
'validators' => array ( 0 => array ( 'type' => 'REGEX', 'validators' => array ( 0 => array ( 'type' => 'REGEX',
'regex' => '/^[a-zA-Z0-0\-\_\[\]]{0,50}$/', 'regex' => '/^[a-zA-Z0-0\-\_\[\]]{0,50}$/',
'errmsg'=> 'webdavuser_prefix_error_regex'), 'errmsg'=> 'webdavuser_prefix_error_regex'),
), ),
'default' => '', 'default' => '',
'value' => '', 'value' => '',
'width' => '30', 'width' => '30',
'maxlength' => '255' 'maxlength' => '255'
), ),
'dblist_phpmyadmin_link' => array ( 'dblist_phpmyadmin_link' => array (
'datatype' => 'VARCHAR', 'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX', 'formtype' => 'CHECKBOX',
'default' => 'n', 'default' => 'n',
'value' => array(0 => 'n',1 => 'y') 'value' => array(0 => 'n',1 => 'y')
), ),
'phpmyadmin_url' => array ( 'phpmyadmin_url' => array (
'datatype' => 'VARCHAR', 'datatype' => 'VARCHAR',
'formtype' => 'TEXT', 'formtype' => 'TEXT',
'validators' => array ( 0 => array ( 'type' => 'REGEX', 'validators' => array ( 0 => array ( 'type' => 'REGEX',
'regex' => '/^[0-9a-zA-Z\:\/\-\.]{0,255}$/', 'regex' => '/^[0-9a-zA-Z\:\/\-\.]{0,255}$/',
'errmsg'=> 'phpmyadmin_url_error_regex'), 'errmsg'=> 'phpmyadmin_url_error_regex'),
), ),
'default' => '', 'default' => '',
'value' => '', 'value' => '',
'width' => '30', 'width' => '30',
'maxlength' => '255' 'maxlength' => '255'
), ),
'webftp_url' => array ( 'webftp_url' => array (
'datatype' => 'VARCHAR', 'datatype' => 'VARCHAR',
'formtype' => 'TEXT', 'formtype' => 'TEXT',
'validators' => array ( 0 => array ( 'type' => 'REGEX', 'validators' => array ( 0 => array ( 'type' => 'REGEX',
'regex' => '/^[0-9a-zA-Z\:\/\-\.]{0,255}$/', 'regex' => '/^[0-9a-zA-Z\:\/\-\.]{0,255}$/',
'errmsg'=> 'webftp_url_error_regex'), 'errmsg'=> 'webftp_url_error_regex'),
), ),
'default' => '', 'default' => '',
'value' => '', 'value' => '',
'width' => '30', 'width' => '30',
'maxlength' => '255' 'maxlength' => '255'
), ),
################################## ##################################
# ENDE Datatable fields # ENDE Datatable fields
################################## ##################################
) )
); );
$form["tabs"]['mail'] = array ( $form["tabs"]['mail'] = array (
'title' => "Mail", 'title' => "Mail",
'width' => 70, 'width' => 70,
'template' => "templates/system_config_mail_edit.htm", 'template' => "templates/system_config_mail_edit.htm",
'fields' => array ( 'fields' => array (
################################## ##################################
# Begin Datatable fields # Begin Datatable fields
################################## ##################################
'enable_custom_login' => array( 'enable_custom_login' => array(
'datatype' => 'VARCHAR', 'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX', 'formtype' => 'CHECKBOX',
'default' => 'n', 'default' => 'n',
'value' => array(0 => 'n', 1 => 'y') 'value' => array(0 => 'n', 1 => 'y')
), ),
'mailboxlist_webmail_link' => array ( 'mailboxlist_webmail_link' => array (
'datatype' => 'VARCHAR', 'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX', 'formtype' => 'CHECKBOX',
'default' => 'n', 'default' => 'n',
'value' => array(0 => 'n',1 => 'y') 'value' => array(0 => 'n',1 => 'y')
), ),
'webmail_url' => array ( 'webmail_url' => array (
'datatype' => 'VARCHAR', 'datatype' => 'VARCHAR',
'formtype' => 'TEXT', 'formtype' => 'TEXT',
'validators' => array ( 0 => array ( 'type' => 'REGEX', 'validators' => array ( 0 => array ( 'type' => 'REGEX',
'regex' => '/^[0-9a-zA-Z\:\/\-\.]{0,255}$/', 'regex' => '/^[0-9a-zA-Z\:\/\-\.]{0,255}$/',
'errmsg'=> 'webmail_url_error_regex'), 'errmsg'=> 'webmail_url_error_regex'),
), ),
'default' => '', 'default' => '',
'value' => '', 'value' => '',
'width' => '30', 'width' => '30',
'maxlength' => '255' 'maxlength' => '255'
), ),
'mailmailinglist_link' => array ( 'mailmailinglist_link' => array (
'datatype' => 'VARCHAR', 'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX', 'formtype' => 'CHECKBOX',
'default' => 'n', 'default' => 'n',
'value' => array(0 => 'n',1 => 'y') 'value' => array(0 => 'n',1 => 'y')
), ),
'mailmailinglist_url' => array ( 'mailmailinglist_url' => array (
'datatype' => 'VARCHAR', 'datatype' => 'VARCHAR',
'formtype' => 'TEXT', 'formtype' => 'TEXT',
'validators' => array ( 0 => array ( 'type' => 'REGEX', 'validators' => array ( 0 => array ( 'type' => 'REGEX',
'regex' => '/^[0-9a-zA-Z\:\/\-\.]{0,255}$/', 'regex' => '/^[0-9a-zA-Z\:\/\-\.]{0,255}$/',
'errmsg'=> 'mailinglist_url_error_regex'), 'errmsg'=> 'mailinglist_url_error_regex'),
), ),
'default' => '', 'default' => '',
'value' => '', 'value' => '',
'width' => '30', 'width' => '30',
'maxlength' => '255' 'maxlength' => '255'
), ),
'admin_mail' => array ( 'admin_mail' => array (
'datatype' => 'VARCHAR', 'datatype' => 'VARCHAR',
'formtype' => 'TEXT', 'formtype' => 'TEXT',
'default' => '', 'default' => '',
'value' => '', 'value' => '',
'width' => '30', 'width' => '30',
'maxlength' => '255' 'maxlength' => '255'
), ),
'admin_name' => array ( 'admin_name' => array (
'datatype' => 'VARCHAR', 'datatype' => 'VARCHAR',
'formtype' => 'TEXT', 'formtype' => 'TEXT',
'default' => '', 'default' => '',
'value' => '', 'value' => '',
'width' => '30', 'width' => '30',
'maxlength' => '255' 'maxlength' => '255'
), ),
################################## ##################################
# ENDE Datatable fields # ENDE Datatable fields
################################## ##################################
) )
); );
$form["tabs"]['domains'] = array ( $form["tabs"]['domains'] = array (
'title' => "Domains", 'title' => "Domains",
'width' => 70, 'width' => 70,
'template' => "templates/system_config_domains_edit.htm", 'template' => "templates/system_config_domains_edit.htm",
'fields' => array ( 'fields' => array (
################################## ##################################
# Begin Datatable fields # Begin Datatable fields
################################## ##################################
'use_domain_module' => array ( 'use_domain_module' => array (
'datatype' => 'VARCHAR', 'datatype' => 'VARCHAR',
'formtype' => 'CHECKBOX', 'formtype' => 'CHECKBOX',
'default' => 'n', 'default' => 'n',
'value' => array(0 => 'n',1 => 'y') 'value' => array(0 => 'n',1 => 'y')
), ),
'new_domain_html' => array ( 'new_domain_html' => array (
'datatype' => 'VARCHAR', 'datatype' => 'VARCHAR',
'formtype' => 'TEXT', 'formtype' => 'TEXT',
'default' => '', 'default' => '',
'value' => '' 'value' => ''
), ),
################################## ##################################
# ENDE Datatable fields # ENDE Datatable fields
################################## ##################################
) )
); );
$form["tabs"]['misc'] = array ( $form["tabs"]['misc'] = array (
'title' => "Misc", 'title' => "Misc",
'width' => 70, 'width' => 70,
'template' => "templates/system_config_misc_edit.htm", 'template' => "templates/system_config_misc_edit.htm",
'fields' => array ( 'fields' => array (
################################## ##################################
# Begin Datatable fields # Begin Datatable fields
################################## ##################################
'dashboard_atom_url_admin' => array ( 'dashboard_atom_url_admin' => array (
'datatype' => 'VARCHAR', 'datatype' => 'VARCHAR',
'formtype' => 'TEXT', 'formtype' => 'TEXT',
'default' => 'http://www.ispconfig.org/atom', 'default' => 'http://www.ispconfig.org/atom',
'value' => '' 'value' => ''
), ),
'dashboard_atom_url_reseller' => array ( 'dashboard_atom_url_reseller' => array (
'datatype' => 'VARCHAR', 'datatype' => 'VARCHAR',
'formtype' => 'TEXT', 'formtype' => 'TEXT',
'default' => 'http://www.ispconfig.org/atom', 'default' => 'http://www.ispconfig.org/atom',
'value' => '' 'value' => ''
), ),
'dashboard_atom_url_client' => array ( 'dashboard_atom_url_client' => array (
'datatype' => 'VARCHAR', 'datatype' => 'VARCHAR',
'formtype' => 'TEXT', 'formtype' => 'TEXT',
'default' => 'http://www.ispconfig.org/atom', 'default' => 'http://www.ispconfig.org/atom',
'value' => '' 'value' => ''
), ),
'monitor_key' => array ( 'monitor_key' => array (
'datatype' => 'VARCHAR', 'datatype' => 'VARCHAR',
'formtype' => 'TEXT', 'formtype' => 'TEXT',
'default' => '', 'default' => '',
'value' => '' 'value' => ''
), ),
################################## ##################################
# ENDE Datatable fields # ENDE Datatable fields
################################## ##################################
) )
); );
?> ?>
<?php <?php
/* /*
Copyright (c) 2010 Till Brehm, projektfarm Gmbh Copyright (c) 2010 Till Brehm, projektfarm Gmbh
All rights reserved. All rights reserved.
Redistribution and use in source and binary forms, with or without modification, Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met: are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, * Redistributions of source code must retain the above copyright notice,
this list of conditions and the following disclaimer. this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, * Redistributions in binary form must reproduce the above copyright notice,
this list of conditions and the following disclaimer in the documentation this list of conditions and the following disclaimer in the documentation
and/or other materials provided with the distribution. and/or other materials provided with the distribution.
* Neither the name of ISPConfig nor the names of its contributors * Neither the name of ISPConfig nor the names of its contributors
may be used to endorse or promote products derived from this software without may be used to endorse or promote products derived from this software without
specific prior written permission. specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING,
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE,
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/ */
$app->uses('simplepie'); $app->uses('simplepie');
$app->uses('auth'); $app->uses('auth');
$app->tpl->newTemplate('dashboard/templates/custom_menu.htm'); $app->tpl->newTemplate('dashboard/templates/custom_menu.htm');
$app->uses('getconf'); $app->uses('getconf');
$misc_config = $app->getconf->get_global_config('misc'); $misc_config = $app->getconf->get_global_config('misc');
switch($_SESSION['s']['user']['typ']) { switch($_SESSION['s']['user']['typ']) {
case 'admin': case 'admin':
$atom_url = $misc_config['dashboard_atom_url_admin']; $atom_url = $misc_config['dashboard_atom_url_admin'];
break; break;
case 'user': case 'user':
if ($app->auth->has_clients($_SESSION['s']['user']['userid']) === true) if ($app->auth->has_clients($_SESSION['s']['user']['userid']) === true)
$atom_url = $misc_config['dashboard_atom_url_reseller']; $atom_url = $misc_config['dashboard_atom_url_reseller'];
else else
$atom_url = $misc_config['dashboard_atom_url_client']; $atom_url = $misc_config['dashboard_atom_url_client'];
break; break;
default: default:
$atom_url = ""; $atom_url = "";
} }
if( $atom_url != '' ) { if( $atom_url != '' ) {
if(!isset($_SESSION['s']['rss_news'])) { if(!isset($_SESSION['s']['rss_news'])) {
$app->simplepie->set_feed_url($atom_url); $app->simplepie->set_feed_url($atom_url);
$app->simplepie->enable_cache(false); $app->simplepie->enable_cache(false);
$app->simplepie->init(); $app->simplepie->init();
$items = $app->simplepie->get_items(); $items = $app->simplepie->get_items();
$rows = array(); $rows = array();
$n = 1; $n = 1;
foreach ($items as $item) foreach ($items as $item)
{ {
//* We want to show only the first 10 news records //* We want to show only the first 10 news records
if($n <= 10) { if($n <= 10) {
$rows[] = array('title' => $item->get_title(), $rows[] = array('title' => $item->get_title(),
'link' => $item->get_link(), 'link' => $item->get_link(),
'content' => $item->get_content(), 'content' => $item->get_content(),
'date' => $item->get_date('Y-m-d') 'date' => $item->get_date('Y-m-d')
); );
} }
$n++; $n++;
} }
$_SESSION['s']['rss_news'] = $rows; $_SESSION['s']['rss_news'] = $rows;
} else { } else {
$rows = $_SESSION['s']['rss_news']; $rows = $_SESSION['s']['rss_news'];
} }
$app->tpl->setVar('latest_news_txt',$app->lng('latest_news_txt')); $app->tpl->setVar('latest_news_txt',$app->lng('latest_news_txt'));
} }
$app->tpl->setLoop('news',$rows); $app->tpl->setLoop('news',$rows);
?> ?>
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment