mirror of
https://github.com/FH-Complete/FHC-Core.git
synced 2026-07-22 01:12:17 +00:00
FHC Helper
This commit is contained in:
@@ -167,8 +167,6 @@ $config['fhc_acl'] = array
|
||||
'public.tbl_ortraumtyp' => 'basis/ortraumtyp',
|
||||
'public.tbl_person' => 'basis/person',
|
||||
'public.tbl_personfunktionstandort' => 'basis/personfunktionstandort',
|
||||
'public.tbl_phrase' => 'system/phrase',
|
||||
'public.tbl_phrase_inhalt' => 'system/phrase',
|
||||
'public.tbl_preincoming' => 'basis/preincoming',
|
||||
'public.tbl_preinteressent' => 'basis/preinteressent',
|
||||
'public.tbl_preinteressentstudiengang' => 'basis/preinteressentstudiengang',
|
||||
@@ -194,10 +192,13 @@ $config['fhc_acl'] = array
|
||||
'public.tbl_vorlage' => 'system/vorlage',
|
||||
'public.tbl_vorlagestudiengang' => 'system/vorlagestudiengang',
|
||||
'public.vw_studiensemester' => 'basis/vw_studiensemester',
|
||||
'system.tbl_appdaten' => 'basis/appdaten',
|
||||
'system.tbl_app' => 'system/app',
|
||||
'system.tbl_appdaten' => 'system/appdaten',
|
||||
'system.tbl_benutzerrolle' => 'basis/benutzerrolle',
|
||||
'system.tbl_berechtigung' => 'basis/berechtigung',
|
||||
'system.tbl_cronjob' => 'basis/cronjob',
|
||||
'system.tbl_phrase' => 'system/phrase',
|
||||
'system.tbl_phrase_inhalt' => 'system/phrase',
|
||||
'system.tbl_rolle' => 'basis/rolle',
|
||||
'system.tbl_rolleberechtigung' => 'basis/rolleberechtigung',
|
||||
'system.tbl_server' => 'basis/server',
|
||||
|
||||
@@ -0,0 +1,64 @@
|
||||
<?php
|
||||
/**
|
||||
* FH-Complete
|
||||
*
|
||||
* @package FHC-Helper
|
||||
* @author FHC-Team
|
||||
* @copyright Copyright (c) 2016 fhcomplete.org
|
||||
* @license GPLv3
|
||||
* @link https://fhcomplete.org
|
||||
* @since Version 1.0.0
|
||||
* @filesource
|
||||
*/
|
||||
if (! defined('BASEPATH'))
|
||||
exit('No direct script access allowed');
|
||||
|
||||
/**
|
||||
* FHC Helper
|
||||
*
|
||||
* @package FH-Complete
|
||||
* @subpackage Helpers
|
||||
* @category Helpers
|
||||
* @author FHC-Team
|
||||
* @link http://fhcomplete.org/user_guide/helpers/fhcauth_helper.html
|
||||
*/
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
|
||||
/**
|
||||
* generateToken() - generates a new token for diffent use
|
||||
* - reading Messages from external
|
||||
* - forgotten Password
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function generateToken($length = 64)
|
||||
{
|
||||
// For PHP 7 you can use random_bytes()
|
||||
if(function_exists('random_bytes'))
|
||||
{
|
||||
$token = base64_encode(random_bytes($length));
|
||||
//base64 is about 33% longer, so we need to truncate the result
|
||||
return strtr(substr($token, 0, $length), '+/=', '-_,');
|
||||
}
|
||||
|
||||
// for PHP >=5.3 and <7
|
||||
if(function_exists('openssl_random_pseudo_bytes'))
|
||||
{
|
||||
$token = base64_encode(openssl_random_pseudo_bytes($length, $strong));
|
||||
// is the token strong enough?
|
||||
if($strong == true)
|
||||
return strtr(substr($token, 0, $length), '+/=', '-_,');
|
||||
}
|
||||
|
||||
//fallback to mt_rand if php < 5.3 or no openssl available
|
||||
$characters = '0123456789';
|
||||
$characters .= 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz/+';
|
||||
$charactersLength = strlen($characters)-1;
|
||||
$token = '';
|
||||
//select some random characters
|
||||
for ($i = 0; $i < $length; $i++)
|
||||
$token .= $characters[mt_rand(0, $charactersLength)];
|
||||
return $token;
|
||||
}
|
||||
@@ -0,0 +1,84 @@
|
||||
<?php
|
||||
/**
|
||||
* CodeIgniter
|
||||
*
|
||||
* An open source application development framework for PHP
|
||||
*
|
||||
* This content is released under the MIT License (MIT)
|
||||
*
|
||||
* Copyright (c) 2014 - 2016, British Columbia Institute of Technology
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*
|
||||
* @package CodeIgniter
|
||||
* @author EllisLab Dev Team
|
||||
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (https://ellislab.com/)
|
||||
* @copyright Copyright (c) 2014 - 2016, British Columbia Institute of Technology (http://bcit.ca/)
|
||||
* @license http://opensource.org/licenses/MIT MIT License
|
||||
* @link https://codeigniter.com
|
||||
* @since Version 1.0.0
|
||||
* @filesource
|
||||
*/
|
||||
if (! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
$lang['cal_su'] = 'Su';
|
||||
$lang['cal_mo'] = 'Mo';
|
||||
$lang['cal_tu'] = 'Tu';
|
||||
$lang['cal_we'] = 'We';
|
||||
$lang['cal_th'] = 'Th';
|
||||
$lang['cal_fr'] = 'Fr';
|
||||
$lang['cal_sa'] = 'Sa';
|
||||
$lang['cal_sun'] = 'Sun';
|
||||
$lang['cal_mon'] = 'Mon';
|
||||
$lang['cal_tue'] = 'Tue';
|
||||
$lang['cal_wed'] = 'Wed';
|
||||
$lang['cal_thu'] = 'Thu';
|
||||
$lang['cal_fri'] = 'Fri';
|
||||
$lang['cal_sat'] = 'Sat';
|
||||
$lang['cal_sunday'] = 'Sunday';
|
||||
$lang['cal_monday'] = 'Monday';
|
||||
$lang['cal_tuesday'] = 'Tuesday';
|
||||
$lang['cal_wednesday'] = 'Wednesday';
|
||||
$lang['cal_thursday'] = 'Thursday';
|
||||
$lang['cal_friday'] = 'Friday';
|
||||
$lang['cal_saturday'] = 'Saturday';
|
||||
$lang['cal_jan'] = 'Jan';
|
||||
$lang['cal_feb'] = 'Feb';
|
||||
$lang['cal_mar'] = 'Mar';
|
||||
$lang['cal_apr'] = 'Apr';
|
||||
$lang['cal_may'] = 'May';
|
||||
$lang['cal_jun'] = 'Jun';
|
||||
$lang['cal_jul'] = 'Jul';
|
||||
$lang['cal_aug'] = 'Aug';
|
||||
$lang['cal_sep'] = 'Sep';
|
||||
$lang['cal_oct'] = 'Oct';
|
||||
$lang['cal_nov'] = 'Nov';
|
||||
$lang['cal_dec'] = 'Dec';
|
||||
$lang['cal_january'] = 'January';
|
||||
$lang['cal_february'] = 'February';
|
||||
$lang['cal_march'] = 'March';
|
||||
$lang['cal_april'] = 'April';
|
||||
$lang['cal_mayl'] = 'May';
|
||||
$lang['cal_june'] = 'June';
|
||||
$lang['cal_july'] = 'July';
|
||||
$lang['cal_august'] = 'August';
|
||||
$lang['cal_september'] = 'September';
|
||||
$lang['cal_october'] = 'October';
|
||||
$lang['cal_november'] = 'November';
|
||||
$lang['cal_december'] = 'December';
|
||||
@@ -0,0 +1,94 @@
|
||||
<?php
|
||||
/**
|
||||
* CodeIgniter
|
||||
*
|
||||
* An open source application development framework for PHP
|
||||
*
|
||||
* This content is released under the MIT License (MIT)
|
||||
*
|
||||
* Copyright (c) 2014 - 2016, British Columbia Institute of Technology
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*
|
||||
* @package CodeIgniter
|
||||
* @author EllisLab Dev Team
|
||||
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (https://ellislab.com/)
|
||||
* @copyright Copyright (c) 2014 - 2016, British Columbia Institute of Technology (http://bcit.ca/)
|
||||
* @license http://opensource.org/licenses/MIT MIT License
|
||||
* @link https://codeigniter.com
|
||||
* @since Version 1.0.0
|
||||
* @filesource
|
||||
*/
|
||||
if (! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
$lang['date_year'] = 'Year';
|
||||
$lang['date_years'] = 'Years';
|
||||
$lang['date_month'] = 'Month';
|
||||
$lang['date_months'] = 'Months';
|
||||
$lang['date_week'] = 'Week';
|
||||
$lang['date_weeks'] = 'Weeks';
|
||||
$lang['date_day'] = 'Day';
|
||||
$lang['date_days'] = 'Days';
|
||||
$lang['date_hour'] = 'Hour';
|
||||
$lang['date_hours'] = 'Hours';
|
||||
$lang['date_minute'] = 'Minute';
|
||||
$lang['date_minutes'] = 'Minutes';
|
||||
$lang['date_second'] = 'Second';
|
||||
$lang['date_seconds'] = 'Seconds';
|
||||
|
||||
$lang['UM12'] = '(UTC -12:00) Baker/Howland Island';
|
||||
$lang['UM11'] = '(UTC -11:00) Niue';
|
||||
$lang['UM10'] = '(UTC -10:00) Hawaii-Aleutian Standard Time, Cook Islands, Tahiti';
|
||||
$lang['UM95'] = '(UTC -9:30) Marquesas Islands';
|
||||
$lang['UM9'] = '(UTC -9:00) Alaska Standard Time, Gambier Islands';
|
||||
$lang['UM8'] = '(UTC -8:00) Pacific Standard Time, Clipperton Island';
|
||||
$lang['UM7'] = '(UTC -7:00) Mountain Standard Time';
|
||||
$lang['UM6'] = '(UTC -6:00) Central Standard Time';
|
||||
$lang['UM5'] = '(UTC -5:00) Eastern Standard Time, Western Caribbean Standard Time';
|
||||
$lang['UM45'] = '(UTC -4:30) Venezuelan Standard Time';
|
||||
$lang['UM4'] = '(UTC -4:00) Atlantic Standard Time, Eastern Caribbean Standard Time';
|
||||
$lang['UM35'] = '(UTC -3:30) Newfoundland Standard Time';
|
||||
$lang['UM3'] = '(UTC -3:00) Argentina, Brazil, French Guiana, Uruguay';
|
||||
$lang['UM2'] = '(UTC -2:00) South Georgia/South Sandwich Islands';
|
||||
$lang['UM1'] = '(UTC -1:00) Azores, Cape Verde Islands';
|
||||
$lang['UTC'] = '(UTC) Greenwich Mean Time, Western European Time';
|
||||
$lang['UP1'] = '(UTC +1:00) Central European Time, West Africa Time';
|
||||
$lang['UP2'] = '(UTC +2:00) Central Africa Time, Eastern European Time, Kaliningrad Time';
|
||||
$lang['UP3'] = '(UTC +3:00) Moscow Time, East Africa Time, Arabia Standard Time';
|
||||
$lang['UP35'] = '(UTC +3:30) Iran Standard Time';
|
||||
$lang['UP4'] = '(UTC +4:00) Azerbaijan Standard Time, Samara Time';
|
||||
$lang['UP45'] = '(UTC +4:30) Afghanistan';
|
||||
$lang['UP5'] = '(UTC +5:00) Pakistan Standard Time, Yekaterinburg Time';
|
||||
$lang['UP55'] = '(UTC +5:30) Indian Standard Time, Sri Lanka Time';
|
||||
$lang['UP575'] = '(UTC +5:45) Nepal Time';
|
||||
$lang['UP6'] = '(UTC +6:00) Bangladesh Standard Time, Bhutan Time, Omsk Time';
|
||||
$lang['UP65'] = '(UTC +6:30) Cocos Islands, Myanmar';
|
||||
$lang['UP7'] = '(UTC +7:00) Krasnoyarsk Time, Cambodia, Laos, Thailand, Vietnam';
|
||||
$lang['UP8'] = '(UTC +8:00) Australian Western Standard Time, Beijing Time, Irkutsk Time';
|
||||
$lang['UP875'] = '(UTC +8:45) Australian Central Western Standard Time';
|
||||
$lang['UP9'] = '(UTC +9:00) Japan Standard Time, Korea Standard Time, Yakutsk Time';
|
||||
$lang['UP95'] = '(UTC +9:30) Australian Central Standard Time';
|
||||
$lang['UP10'] = '(UTC +10:00) Australian Eastern Standard Time, Vladivostok Time';
|
||||
$lang['UP105'] = '(UTC +10:30) Lord Howe Island';
|
||||
$lang['UP11'] = '(UTC +11:00) Srednekolymsk Time, Solomon Islands, Vanuatu';
|
||||
$lang['UP115'] = '(UTC +11:30) Norfolk Island';
|
||||
$lang['UP12'] = '(UTC +12:00) Fiji, Gilbert Islands, Kamchatka Time, New Zealand Standard Time';
|
||||
$lang['UP1275'] = '(UTC +12:45) Chatham Islands Standard Time';
|
||||
$lang['UP13'] = '(UTC +13:00) Samoa Time Zone, Phoenix Islands Time, Tonga';
|
||||
$lang['UP14'] = '(UTC +14:00) Line Islands';
|
||||
@@ -0,0 +1,63 @@
|
||||
<?php
|
||||
/**
|
||||
* CodeIgniter
|
||||
*
|
||||
* An open source application development framework for PHP
|
||||
*
|
||||
* This content is released under the MIT License (MIT)
|
||||
*
|
||||
* Copyright (c) 2014 - 2016, British Columbia Institute of Technology
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*
|
||||
* @package CodeIgniter
|
||||
* @author EllisLab Dev Team
|
||||
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (https://ellislab.com/)
|
||||
* @copyright Copyright (c) 2014 - 2016, British Columbia Institute of Technology (http://bcit.ca/)
|
||||
* @license http://opensource.org/licenses/MIT MIT License
|
||||
* @link https://codeigniter.com
|
||||
* @since Version 1.0.0
|
||||
* @filesource
|
||||
*/
|
||||
if (! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
$lang['db_invalid_connection_str'] = 'Unable to determine the database settings based on the connection string you submitted.';
|
||||
$lang['db_unable_to_connect'] = 'Unable to connect to your database server using the provided settings.';
|
||||
$lang['db_unable_to_select'] = 'Unable to select the specified database: %s';
|
||||
$lang['db_unable_to_create'] = 'Unable to create the specified database: %s';
|
||||
$lang['db_invalid_query'] = 'The query you submitted is not valid.';
|
||||
$lang['db_must_set_table'] = 'You must set the database table to be used with your query.';
|
||||
$lang['db_must_use_set'] = 'You must use the "set" method to update an entry.';
|
||||
$lang['db_must_use_index'] = 'You must specify an index to match on for batch updates.';
|
||||
$lang['db_batch_missing_index'] = 'One or more rows submitted for batch updating is missing the specified index.';
|
||||
$lang['db_must_use_where'] = 'Updates are not allowed unless they contain a "where" clause.';
|
||||
$lang['db_del_must_use_where'] = 'Deletes are not allowed unless they contain a "where" or "like" clause.';
|
||||
$lang['db_field_param_missing'] = 'To fetch fields requires the name of the table as a parameter.';
|
||||
$lang['db_unsupported_function'] = 'This feature is not available for the database you are using.';
|
||||
$lang['db_transaction_failure'] = 'Transaction failure: Rollback performed.';
|
||||
$lang['db_unable_to_drop'] = 'Unable to drop the specified database.';
|
||||
$lang['db_unsupported_feature'] = 'Unsupported feature of the database platform you are using.';
|
||||
$lang['db_unsupported_compression'] = 'The file compression format you chose is not supported by your server.';
|
||||
$lang['db_filepath_error'] = 'Unable to write data to the file path you have submitted.';
|
||||
$lang['db_invalid_cache_path'] = 'The cache path you submitted is not valid or writable.';
|
||||
$lang['db_table_name_required'] = 'A table name is required for that operation.';
|
||||
$lang['db_column_name_required'] = 'A column name is required for that operation.';
|
||||
$lang['db_column_definition_required'] = 'A column definition is required for that operation.';
|
||||
$lang['db_unable_to_set_charset'] = 'Unable to set client connection character set: %s';
|
||||
$lang['db_error_heading'] = 'A Database Error Occurred';
|
||||
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
/**
|
||||
* CodeIgniter
|
||||
*
|
||||
* An open source application development framework for PHP
|
||||
*
|
||||
* This content is released under the MIT License (MIT)
|
||||
*
|
||||
* Copyright (c) 2014 - 2016, British Columbia Institute of Technology
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*
|
||||
* @package CodeIgniter
|
||||
* @author EllisLab Dev Team
|
||||
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (https://ellislab.com/)
|
||||
* @copyright Copyright (c) 2014 - 2016, British Columbia Institute of Technology (http://bcit.ca/)
|
||||
* @license http://opensource.org/licenses/MIT MIT License
|
||||
* @link https://codeigniter.com
|
||||
* @since Version 1.0.0
|
||||
* @filesource
|
||||
*/
|
||||
if (! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
$lang['email_must_be_array'] = 'The email validation method must be passed an array.';
|
||||
$lang['email_invalid_address'] = 'Invalid email address: %s';
|
||||
$lang['email_attachment_missing'] = 'Unable to locate the following email attachment: %s';
|
||||
$lang['email_attachment_unreadable'] = 'Unable to open this attachment: %s';
|
||||
$lang['email_no_from'] = 'Cannot send mail with no "From" header.';
|
||||
$lang['email_no_recipients'] = 'You must include recipients: To, Cc, or Bcc';
|
||||
$lang['email_send_failure_phpmail'] = 'Unable to send email using PHP mail(). Your server might not be configured to send mail using this method.';
|
||||
$lang['email_send_failure_sendmail'] = 'Unable to send email using PHP Sendmail. Your server might not be configured to send mail using this method.';
|
||||
$lang['email_send_failure_smtp'] = 'Unable to send email using PHP SMTP. Your server might not be configured to send mail using this method.';
|
||||
$lang['email_sent'] = 'Your message has been successfully sent using the following protocol: %s';
|
||||
$lang['email_no_socket'] = 'Unable to open a socket to Sendmail. Please check settings.';
|
||||
$lang['email_no_hostname'] = 'You did not specify a SMTP hostname.';
|
||||
$lang['email_smtp_error'] = 'The following SMTP error was encountered: %s';
|
||||
$lang['email_no_smtp_unpw'] = 'Error: You must assign a SMTP username and password.';
|
||||
$lang['email_failed_smtp_login'] = 'Failed to send AUTH LOGIN command. Error: %s';
|
||||
$lang['email_smtp_auth_un'] = 'Failed to authenticate username. Error: %s';
|
||||
$lang['email_smtp_auth_pw'] = 'Failed to authenticate password. Error: %s';
|
||||
$lang['email_smtp_data_failure'] = 'Unable to send data: %s';
|
||||
$lang['email_exit_status'] = 'Exit status code: %s';
|
||||
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
if ( ! defined('BASEPATH'))
|
||||
exit('No direct script access allowed');
|
||||
|
||||
// DB-Errormessages
|
||||
$lang['fhc_'.FHC_MODEL_ERROR] = 'Fehler in Model';
|
||||
$lang['fhc_'.FHC_NODBTABLE] = '"dbTable" ist nicht gesetzt!';
|
||||
$lang['fhc_'.FHC_NORIGHT] = 'Rechte sind nicht ausreichend!';
|
||||
|
||||
@@ -0,0 +1,10 @@
|
||||
<?php if ( ! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
// Account Creation
|
||||
$lang['fhc_'.FHC_SUCCESS] = 'Erfolgreich!';
|
||||
$lang['fhc_'.FHC_ERROR] = 'Allgemeiner Fehler ist aufgetreten!';
|
||||
$lang['fhc_'.FHC_MODEL_ERROR] = 'Fehler in Model!';
|
||||
$lang['fhc_'.FHC_DB_ERROR] = 'Fehler beim Datenbankzugriff';
|
||||
$lang['fhc_'.FHC_NODBTABLE] = 'DB-Tabelle nicht vorhanden!';
|
||||
$lang['fhc_'.FHC_NORIGHT] = 'Fehlende Berechtigung des Users!';
|
||||
$lang['fhc_'.FHC_INVALIDID] = 'ID/Key ist ungültig oder nicht vorhanden!';
|
||||
@@ -0,0 +1,68 @@
|
||||
<?php
|
||||
/**
|
||||
* CodeIgniter
|
||||
*
|
||||
* An open source application development framework for PHP
|
||||
*
|
||||
* This content is released under the MIT License (MIT)
|
||||
*
|
||||
* Copyright (c) 2014 - 2016, British Columbia Institute of Technology
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*
|
||||
* @package CodeIgniter
|
||||
* @author EllisLab Dev Team
|
||||
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (https://ellislab.com/)
|
||||
* @copyright Copyright (c) 2014 - 2016, British Columbia Institute of Technology (http://bcit.ca/)
|
||||
* @license http://opensource.org/licenses/MIT MIT License
|
||||
* @link https://codeigniter.com
|
||||
* @since Version 1.0.0
|
||||
* @filesource
|
||||
*/
|
||||
if (! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
$lang['form_validation_required'] = 'The {field} field is required.';
|
||||
$lang['form_validation_isset'] = 'The {field} field must have a value.';
|
||||
$lang['form_validation_valid_email'] = 'The {field} field must contain a valid email address.';
|
||||
$lang['form_validation_valid_emails'] = 'The {field} field must contain all valid email addresses.';
|
||||
$lang['form_validation_valid_url'] = 'The {field} field must contain a valid URL.';
|
||||
$lang['form_validation_valid_ip'] = 'The {field} field must contain a valid IP.';
|
||||
$lang['form_validation_min_length'] = 'The {field} field must be at least {param} characters in length.';
|
||||
$lang['form_validation_max_length'] = 'The {field} field cannot exceed {param} characters in length.';
|
||||
$lang['form_validation_exact_length'] = 'The {field} field must be exactly {param} characters in length.';
|
||||
$lang['form_validation_alpha'] = 'The {field} field may only contain alphabetical characters.';
|
||||
$lang['form_validation_alpha_numeric'] = 'The {field} field may only contain alpha-numeric characters.';
|
||||
$lang['form_validation_alpha_numeric_spaces'] = 'The {field} field may only contain alpha-numeric characters and spaces.';
|
||||
$lang['form_validation_alpha_dash'] = 'The {field} field may only contain alpha-numeric characters, underscores, and dashes.';
|
||||
$lang['form_validation_numeric'] = 'The {field} field must contain only numbers.';
|
||||
$lang['form_validation_is_numeric'] = 'The {field} field must contain only numeric characters.';
|
||||
$lang['form_validation_integer'] = 'The {field} field must contain an integer.';
|
||||
$lang['form_validation_regex_match'] = 'The {field} field is not in the correct format.';
|
||||
$lang['form_validation_matches'] = 'The {field} field does not match the {param} field.';
|
||||
$lang['form_validation_differs'] = 'The {field} field must differ from the {param} field.';
|
||||
$lang['form_validation_is_unique'] = 'The {field} field must contain a unique value.';
|
||||
$lang['form_validation_is_natural'] = 'The {field} field must only contain digits.';
|
||||
$lang['form_validation_is_natural_no_zero'] = 'The {field} field must only contain digits and must be greater than zero.';
|
||||
$lang['form_validation_decimal'] = 'The {field} field must contain a decimal number.';
|
||||
$lang['form_validation_less_than'] = 'The {field} field must contain a number less than {param}.';
|
||||
$lang['form_validation_less_than_equal_to'] = 'The {field} field must contain a number less than or equal to {param}.';
|
||||
$lang['form_validation_greater_than'] = 'The {field} field must contain a number greater than {param}.';
|
||||
$lang['form_validation_greater_than_equal_to'] = 'The {field} field must contain a number greater than or equal to {param}.';
|
||||
$lang['form_validation_error_message_not_set'] = 'Unable to access an error message corresponding to your field name {field}.';
|
||||
$lang['form_validation_in_list'] = 'The {field} field must be one of: {param}.';
|
||||
@@ -0,0 +1,51 @@
|
||||
<?php
|
||||
/**
|
||||
* CodeIgniter
|
||||
*
|
||||
* An open source application development framework for PHP
|
||||
*
|
||||
* This content is released under the MIT License (MIT)
|
||||
*
|
||||
* Copyright (c) 2014 - 2016, British Columbia Institute of Technology
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*
|
||||
* @package CodeIgniter
|
||||
* @author EllisLab Dev Team
|
||||
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (https://ellislab.com/)
|
||||
* @copyright Copyright (c) 2014 - 2016, British Columbia Institute of Technology (http://bcit.ca/)
|
||||
* @license http://opensource.org/licenses/MIT MIT License
|
||||
* @link https://codeigniter.com
|
||||
* @since Version 1.0.0
|
||||
* @filesource
|
||||
*/
|
||||
if (! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
$lang['ftp_no_connection'] = 'Unable to locate a valid connection ID. Please make sure you are connected before performing any file routines.';
|
||||
$lang['ftp_unable_to_connect'] = 'Unable to connect to your FTP server using the supplied hostname.';
|
||||
$lang['ftp_unable_to_login'] = 'Unable to login to your FTP server. Please check your username and password.';
|
||||
$lang['ftp_unable_to_mkdir'] = 'Unable to create the directory you have specified.';
|
||||
$lang['ftp_unable_to_changedir'] = 'Unable to change directories.';
|
||||
$lang['ftp_unable_to_chmod'] = 'Unable to set file permissions. Please check your path.';
|
||||
$lang['ftp_unable_to_upload'] = 'Unable to upload the specified file. Please check your path.';
|
||||
$lang['ftp_unable_to_download'] = 'Unable to download the specified file. Please check your path.';
|
||||
$lang['ftp_no_source_file'] = 'Unable to locate the source file. Please check your path.';
|
||||
$lang['ftp_unable_to_rename'] = 'Unable to rename the file.';
|
||||
$lang['ftp_unable_to_delete'] = 'Unable to delete the file.';
|
||||
$lang['ftp_unable_to_move'] = 'Unable to move the file. Please make sure the destination directory exists.';
|
||||
@@ -0,0 +1,56 @@
|
||||
<?php
|
||||
/**
|
||||
* CodeIgniter
|
||||
*
|
||||
* An open source application development framework for PHP
|
||||
*
|
||||
* This content is released under the MIT License (MIT)
|
||||
*
|
||||
* Copyright (c) 2014 - 2016, British Columbia Institute of Technology
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*
|
||||
* @package CodeIgniter
|
||||
* @author EllisLab Dev Team
|
||||
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (https://ellislab.com/)
|
||||
* @copyright Copyright (c) 2014 - 2016, British Columbia Institute of Technology (http://bcit.ca/)
|
||||
* @license http://opensource.org/licenses/MIT MIT License
|
||||
* @link https://codeigniter.com
|
||||
* @since Version 1.0.0
|
||||
* @filesource
|
||||
*/
|
||||
if (! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
$lang['imglib_source_image_required'] = 'You must specify a source image in your preferences.';
|
||||
$lang['imglib_gd_required'] = 'The GD image library is required for this feature.';
|
||||
$lang['imglib_gd_required_for_props'] = 'Your server must support the GD image library in order to determine the image properties.';
|
||||
$lang['imglib_unsupported_imagecreate'] = 'Your server does not support the GD function required to process this type of image.';
|
||||
$lang['imglib_gif_not_supported'] = 'GIF images are often not supported due to licensing restrictions. You may have to use JPG or PNG images instead.';
|
||||
$lang['imglib_jpg_not_supported'] = 'JPG images are not supported.';
|
||||
$lang['imglib_png_not_supported'] = 'PNG images are not supported.';
|
||||
$lang['imglib_jpg_or_png_required'] = 'The image resize protocol specified in your preferences only works with JPEG or PNG image types.';
|
||||
$lang['imglib_copy_error'] = 'An error was encountered while attempting to replace the file. Please make sure your file directory is writable.';
|
||||
$lang['imglib_rotate_unsupported'] = 'Image rotation does not appear to be supported by your server.';
|
||||
$lang['imglib_libpath_invalid'] = 'The path to your image library is not correct. Please set the correct path in your image preferences.';
|
||||
$lang['imglib_image_process_failed'] = 'Image processing failed. Please verify that your server supports the chosen protocol and that the path to your image library is correct.';
|
||||
$lang['imglib_rotation_angle_required'] = 'An angle of rotation is required to rotate the image.';
|
||||
$lang['imglib_invalid_path'] = 'The path to the image is not correct.';
|
||||
$lang['imglib_copy_failed'] = 'The image copy routine failed.';
|
||||
$lang['imglib_missing_font'] = 'Unable to find a font to use.';
|
||||
$lang['imglib_save_failed'] = 'Unable to save the image. Please make sure the image and file directory are writable.';
|
||||
Executable
+11
@@ -0,0 +1,11 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>403 Forbidden</title>
|
||||
</head>
|
||||
<body>
|
||||
|
||||
<p>Directory access is forbidden.</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,19 @@
|
||||
<?php
|
||||
if (! defined('BASEPATH'))
|
||||
exit('No direct script access allowed');
|
||||
|
||||
// Account Creation
|
||||
$lang['message_'.MSG_SUCCESS] = 'Success';
|
||||
$lang['message_'.MSG_ERROR] = 'Error';
|
||||
$lang['message_'.MSG_ERR_INVALID_USER_ID] = 'No user id specified';
|
||||
$lang['message_'.MSG_ERR_INVALID_MSG_ID] = 'No message id specified';
|
||||
$lang['message_'.MSG_ERR_INVALID_THREAD_ID] = 'No message thread id specified';
|
||||
$lang['message_'.MSG_ERR_INVALID_STATUS_ID] = 'No status specified';
|
||||
$lang['message_'.MSG_ERR_INVALID_SENDER_ID] = 'Not a valid sender';
|
||||
$lang['message_'.MSG_ERR_INVALID_RECIPIENTS] = 'No valid recipients';
|
||||
$lang['message_'.MSG_MESSAGE_SENT] = 'Message sent';
|
||||
$lang['message_'.MSG_STATUS_UPDATE] = 'Status updated';
|
||||
$lang['message_'.MSG_PARTICIPANT_ADDED] = 'Participant added';
|
||||
$lang['message_'.MSG_ERR_PARTICIPANT_EXISTS] = 'User is already participating in this thread';
|
||||
$lang['message_'.MSG_ERR_PARTICIPANT_NONSYSTEM] = 'This user id is not in the system';
|
||||
$lang['message_'.MSG_PARTICIPANT_REMOVED] = 'Participant removed from thread';
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* Austrian-German Language
|
||||
*/
|
||||
|
||||
$lang['text_rest_invalid_api_key'] = 'Invalid API key %s'; // %s is the REST API key
|
||||
$lang['text_rest_invalid_credentials'] = 'Invalid credentials';
|
||||
$lang['text_rest_ip_denied'] = 'IP denied';
|
||||
$lang['text_rest_ip_unauthorized'] = 'IP unauthorized';
|
||||
$lang['text_rest_unauthorized'] = 'Unauthorized';
|
||||
$lang['text_rest_ajax_only'] = 'Only AJAX requests are allowed';
|
||||
$lang['text_rest_api_key_unauthorized'] = 'This API key does not have access to the requested controller';
|
||||
$lang['text_rest_api_key_permissions'] = 'This API key does not have enough permissions';
|
||||
$lang['text_rest_api_key_time_limit'] = 'This API key has reached the time limit for this method';
|
||||
$lang['text_rest_unknown_method'] = 'Unknown method';
|
||||
$lang['text_rest_unsupported'] = 'Unsupported protocol';
|
||||
@@ -0,0 +1,44 @@
|
||||
<?php
|
||||
/**
|
||||
* CodeIgniter
|
||||
*
|
||||
* An open source application development framework for PHP
|
||||
*
|
||||
* This content is released under the MIT License (MIT)
|
||||
*
|
||||
* Copyright (c) 2014 - 2016, British Columbia Institute of Technology
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*
|
||||
* @package CodeIgniter
|
||||
* @author EllisLab Dev Team
|
||||
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (https://ellislab.com/)
|
||||
* @copyright Copyright (c) 2014 - 2016, British Columbia Institute of Technology (http://bcit.ca/)
|
||||
* @license http://opensource.org/licenses/MIT MIT License
|
||||
* @link https://codeigniter.com
|
||||
* @since Version 1.0.0
|
||||
* @filesource
|
||||
*/
|
||||
if (! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
$lang['terabyte_abbr'] = 'TB';
|
||||
$lang['gigabyte_abbr'] = 'GB';
|
||||
$lang['megabyte_abbr'] = 'MB';
|
||||
$lang['kilobyte_abbr'] = 'KB';
|
||||
$lang['bytes'] = 'Bytes';
|
||||
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
/**
|
||||
* CodeIgniter
|
||||
*
|
||||
* An open source application development framework for PHP
|
||||
*
|
||||
* This content is released under the MIT License (MIT)
|
||||
*
|
||||
* Copyright (c) 2014 - 2016, British Columbia Institute of Technology
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*
|
||||
* @package CodeIgniter
|
||||
* @author EllisLab Dev Team
|
||||
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (https://ellislab.com/)
|
||||
* @copyright Copyright (c) 2014 - 2016, British Columbia Institute of Technology (http://bcit.ca/)
|
||||
* @license http://opensource.org/licenses/MIT MIT License
|
||||
* @link https://codeigniter.com
|
||||
* @since Version 1.0.0
|
||||
* @filesource
|
||||
*/
|
||||
if (! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
$lang['pagination_first_link'] = '‹ First';
|
||||
$lang['pagination_next_link'] = '>';
|
||||
$lang['pagination_prev_link'] = '<';
|
||||
$lang['pagination_last_link'] = 'Last ›';
|
||||
@@ -0,0 +1,60 @@
|
||||
<?php
|
||||
/**
|
||||
* CodeIgniter
|
||||
*
|
||||
* An open source application development framework for PHP
|
||||
*
|
||||
* This content is released under the MIT License (MIT)
|
||||
*
|
||||
* Copyright (c) 2014 - 2016, British Columbia Institute of Technology
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*
|
||||
* @package CodeIgniter
|
||||
* @author EllisLab Dev Team
|
||||
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (https://ellislab.com/)
|
||||
* @copyright Copyright (c) 2014 - 2016, British Columbia Institute of Technology (http://bcit.ca/)
|
||||
* @license http://opensource.org/licenses/MIT MIT License
|
||||
* @link https://codeigniter.com
|
||||
* @since Version 1.0.0
|
||||
* @filesource
|
||||
*/
|
||||
if (! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
$lang['profiler_database'] = 'DATABASE';
|
||||
$lang['profiler_controller_info'] = 'CLASS/METHOD';
|
||||
$lang['profiler_benchmarks'] = 'BENCHMARKS';
|
||||
$lang['profiler_queries'] = 'QUERIES';
|
||||
$lang['profiler_get_data'] = 'GET DATA';
|
||||
$lang['profiler_post_data'] = 'POST DATA';
|
||||
$lang['profiler_uri_string'] = 'URI STRING';
|
||||
$lang['profiler_memory_usage'] = 'MEMORY USAGE';
|
||||
$lang['profiler_config'] = 'CONFIG VARIABLES';
|
||||
$lang['profiler_session_data'] = 'SESSION DATA';
|
||||
$lang['profiler_headers'] = 'HTTP HEADERS';
|
||||
$lang['profiler_no_db'] = 'Database driver is not currently loaded';
|
||||
$lang['profiler_no_queries'] = 'No queries were run';
|
||||
$lang['profiler_no_post'] = 'No POST data exists';
|
||||
$lang['profiler_no_get'] = 'No GET data exists';
|
||||
$lang['profiler_no_uri'] = 'No URI data exists';
|
||||
$lang['profiler_no_memory'] = 'Memory Usage Unavailable';
|
||||
$lang['profiler_no_profiles'] = 'No Profile data - all Profiler sections have been disabled.';
|
||||
$lang['profiler_section_hide'] = 'Hide';
|
||||
$lang['profiler_section_show'] = 'Show';
|
||||
$lang['profiler_seconds'] = 'seconds';
|
||||
@@ -0,0 +1,17 @@
|
||||
<?php
|
||||
|
||||
/*
|
||||
* English language
|
||||
*/
|
||||
|
||||
$lang['text_rest_invalid_api_key'] = 'Invalid API key %s'; // %s is the REST API key
|
||||
$lang['text_rest_invalid_credentials'] = 'Invalid credentials';
|
||||
$lang['text_rest_ip_denied'] = 'IP denied';
|
||||
$lang['text_rest_ip_unauthorized'] = 'IP unauthorized';
|
||||
$lang['text_rest_unauthorized'] = 'Unauthorized';
|
||||
$lang['text_rest_ajax_only'] = 'Only AJAX requests are allowed';
|
||||
$lang['text_rest_api_key_unauthorized'] = 'This API key does not have access to the requested controller';
|
||||
$lang['text_rest_api_key_permissions'] = 'This API key does not have enough permissions';
|
||||
$lang['text_rest_api_key_time_limit'] = 'This API key has reached the time limit for this method';
|
||||
$lang['text_rest_unknown_method'] = 'Unknown method';
|
||||
$lang['text_rest_unsupported'] = 'Unsupported protocol';
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
/**
|
||||
* FH-Complete
|
||||
*
|
||||
*/
|
||||
if (! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
$lang['seed_none_found'] = 'No seeds were found.';
|
||||
$lang['seed_not_found'] = 'No seed could be found with the version number: %s.';
|
||||
$lang['seed_sequence_gap'] = 'There is a gap in the seed sequence near version number: %s.';
|
||||
$lang['seed_multiple_version'] = 'There are multiple seeds with the same version number: %s.';
|
||||
$lang['seed_class_doesnt_exist'] = 'The seed class "%s" could not be found.';
|
||||
$lang['seed_missing_up_method'] = 'The seed class "%s" is missing an "up" method.';
|
||||
$lang['seed_missing_down_method'] = 'The seed class "%s" is missing a "down" method.';
|
||||
$lang['seed_invalid_filename'] = 'Seed "%s" has an invalid filename.';
|
||||
@@ -0,0 +1,58 @@
|
||||
<?php
|
||||
/**
|
||||
* CodeIgniter
|
||||
*
|
||||
* An open source application development framework for PHP
|
||||
*
|
||||
* This content is released under the MIT License (MIT)
|
||||
*
|
||||
* Copyright (c) 2014 - 2016, British Columbia Institute of Technology
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*
|
||||
* @package CodeIgniter
|
||||
* @author EllisLab Dev Team
|
||||
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (https://ellislab.com/)
|
||||
* @copyright Copyright (c) 2014 - 2016, British Columbia Institute of Technology (http://bcit.ca/)
|
||||
* @license http://opensource.org/licenses/MIT MIT License
|
||||
* @link https://codeigniter.com
|
||||
* @since Version 1.0.0
|
||||
* @filesource
|
||||
*/
|
||||
if (! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
$lang['ut_test_name'] = 'Test Name';
|
||||
$lang['ut_test_datatype'] = 'Test Datatype';
|
||||
$lang['ut_res_datatype'] = 'Expected Datatype';
|
||||
$lang['ut_result'] = 'Result';
|
||||
$lang['ut_undefined'] = 'Undefined Test Name';
|
||||
$lang['ut_file'] = 'File Name';
|
||||
$lang['ut_line'] = 'Line Number';
|
||||
$lang['ut_passed'] = 'Passed';
|
||||
$lang['ut_failed'] = 'Failed';
|
||||
$lang['ut_boolean'] = 'Boolean';
|
||||
$lang['ut_integer'] = 'Integer';
|
||||
$lang['ut_float'] = 'Float';
|
||||
$lang['ut_double'] = 'Float'; // can be the same as float
|
||||
$lang['ut_string'] = 'String';
|
||||
$lang['ut_array'] = 'Array';
|
||||
$lang['ut_object'] = 'Object';
|
||||
$lang['ut_resource'] = 'Resource';
|
||||
$lang['ut_null'] = 'Null';
|
||||
$lang['ut_notes'] = 'Notes';
|
||||
@@ -0,0 +1,55 @@
|
||||
<?php
|
||||
/**
|
||||
* CodeIgniter
|
||||
*
|
||||
* An open source application development framework for PHP
|
||||
*
|
||||
* This content is released under the MIT License (MIT)
|
||||
*
|
||||
* Copyright (c) 2014 - 2016, British Columbia Institute of Technology
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to deal
|
||||
* in the Software without restriction, including without limitation the rights
|
||||
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
* copies of the Software, and to permit persons to whom the Software is
|
||||
* furnished to do so, subject to the following conditions:
|
||||
*
|
||||
* The above copyright notice and this permission notice shall be included in
|
||||
* all copies or substantial portions of the Software.
|
||||
*
|
||||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
||||
* THE SOFTWARE.
|
||||
*
|
||||
* @package CodeIgniter
|
||||
* @author EllisLab Dev Team
|
||||
* @copyright Copyright (c) 2008 - 2014, EllisLab, Inc. (https://ellislab.com/)
|
||||
* @copyright Copyright (c) 2014 - 2016, British Columbia Institute of Technology (http://bcit.ca/)
|
||||
* @license http://opensource.org/licenses/MIT MIT License
|
||||
* @link https://codeigniter.com
|
||||
* @since Version 1.0.0
|
||||
* @filesource
|
||||
*/
|
||||
if (! defined('BASEPATH')) exit('No direct script access allowed');
|
||||
|
||||
$lang['upload_userfile_not_set'] = 'Unable to find a post variable called userfile.';
|
||||
$lang['upload_file_exceeds_limit'] = 'The uploaded file exceeds the maximum allowed size in your PHP configuration file.';
|
||||
$lang['upload_file_exceeds_form_limit'] = 'The uploaded file exceeds the maximum size allowed by the submission form.';
|
||||
$lang['upload_file_partial'] = 'The file was only partially uploaded.';
|
||||
$lang['upload_no_temp_directory'] = 'The temporary folder is missing.';
|
||||
$lang['upload_unable_to_write_file'] = 'The file could not be written to disk.';
|
||||
$lang['upload_stopped_by_extension'] = 'The file upload was stopped by extension.';
|
||||
$lang['upload_no_file_selected'] = 'You did not select a file to upload.';
|
||||
$lang['upload_invalid_filetype'] = 'The filetype you are attempting to upload is not allowed.';
|
||||
$lang['upload_invalid_filesize'] = 'The file you are attempting to upload is larger than the permitted size.';
|
||||
$lang['upload_invalid_dimensions'] = 'The image you are attempting to upload doesn\'t fit into the allowed dimensions.';
|
||||
$lang['upload_destination_error'] = 'A problem was encountered while attempting to move the uploaded file to the final destination.';
|
||||
$lang['upload_no_filepath'] = 'The upload path does not appear to be valid.';
|
||||
$lang['upload_no_file_types'] = 'You have not specified any allowed file types.';
|
||||
$lang['upload_bad_filename'] = 'The file name you submitted already exists on the server.';
|
||||
$lang['upload_not_writable'] = 'The upload destination folder does not appear to be writable.';
|
||||
@@ -289,41 +289,6 @@ class MessageLib
|
||||
|
||||
return $result;
|
||||
}
|
||||
|
||||
/**
|
||||
* generateToken() - generates a new token for reading Messages from external
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function generateToken($length = 64)
|
||||
{
|
||||
// For PHP 7 you can use random_bytes()
|
||||
if(function_exists('random_bytes'))
|
||||
{
|
||||
$token = base64_encode(random_bytes($length));
|
||||
//base64 is about 33% longer, so we need to truncate the result
|
||||
return strtr(substr($token, 0, $length), '+/=', '-_,');
|
||||
}
|
||||
|
||||
// for PHP >=5.3 and <7
|
||||
if(function_exists('openssl_random_pseudo_bytes'))
|
||||
{
|
||||
$token = base64_encode(openssl_random_pseudo_bytes($length, $strong));
|
||||
// is the token strong enough?
|
||||
if($strong == true)
|
||||
return strtr(substr($token, 0, $length), '+/=', '-_,');
|
||||
}
|
||||
|
||||
//fallback to mt_rand if php < 5.3 or no openssl available
|
||||
$characters = '0123456789';
|
||||
$characters .= 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz/+';
|
||||
$charactersLength = strlen($characters)-1;
|
||||
$token = '';
|
||||
//select some random characters
|
||||
for ($i = 0; $i < $length; $i++)
|
||||
$token .= $characters[mt_rand(0, $charactersLength)];
|
||||
return $token;
|
||||
}
|
||||
|
||||
|
||||
// ------------------------------------------------------------------------
|
||||
|
||||
@@ -6,18 +6,27 @@ class Migration_Phrase extends CI_Migration {
|
||||
|
||||
public function up()
|
||||
{
|
||||
if (! $this->db->table_exists('public.tbl_phrase'))
|
||||
if (! $this->db->table_exists('system.tbl_app'))
|
||||
{
|
||||
$query= "
|
||||
CREATE TABLE public.tbl_app (
|
||||
CREATE TABLE system.tbl_app (
|
||||
app varchar(32),
|
||||
PRIMARY KEY (app)
|
||||
);
|
||||
GRANT SELECT ON TABLE public.tbl_app TO web;
|
||||
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE public.tbl_app TO admin;
|
||||
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE public.tbl_app TO vilesci;
|
||||
GRANT SELECT ON TABLE system.tbl_app TO web;
|
||||
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE system.tbl_app TO admin;
|
||||
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE system.tbl_app TO vilesci;
|
||||
";
|
||||
if (!$this->db->simple_query($query))
|
||||
{
|
||||
echo "Error creating Basis DB-Schema!";
|
||||
}
|
||||
}
|
||||
|
||||
CREATE TABLE public.tbl_phrase (
|
||||
if (! $this->db->table_exists('system.tbl_phrase'))
|
||||
{
|
||||
$query= "
|
||||
CREATE TABLE system.tbl_phrase (
|
||||
phrase_id serial,
|
||||
app varchar(32) NOT NULL,
|
||||
phrase varchar(64) NOT NULL,
|
||||
@@ -25,14 +34,14 @@ class Migration_Phrase extends CI_Migration {
|
||||
insertvon varchar(32),
|
||||
PRIMARY KEY (phrase_id)
|
||||
);
|
||||
GRANT SELECT ON TABLE public.tbl_phrase TO web;
|
||||
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE public.tbl_phrase TO admin;
|
||||
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE public.tbl_phrase TO vilesci;
|
||||
GRANT SELECT, UPDATE ON SEQUENCE public.tbl_phrase_phrase_id_seq TO web;
|
||||
GRANT SELECT, UPDATE ON SEQUENCE public.tbl_phrase_phrase_id_seq TO admin;
|
||||
GRANT SELECT, UPDATE ON SEQUENCE public.tbl_phrase_phrase_id_seq TO vilesci;
|
||||
GRANT SELECT ON TABLE system.tbl_phrase TO web;
|
||||
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE system.tbl_phrase TO admin;
|
||||
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE system.tbl_phrase TO vilesci;
|
||||
GRANT SELECT, UPDATE ON SEQUENCE system.tbl_phrase_phrase_id_seq TO web;
|
||||
GRANT SELECT, UPDATE ON SEQUENCE system.tbl_phrase_phrase_id_seq TO admin;
|
||||
GRANT SELECT, UPDATE ON SEQUENCE system.tbl_phrase_phrase_id_seq TO vilesci;
|
||||
|
||||
CREATE TABLE public.tbl_phrase_inhalt (
|
||||
CREATE TABLE system.tbl_phrase_inhalt (
|
||||
phrase_inhalt_id serial,
|
||||
phrase_id bigint NOT NULL,
|
||||
sprache varchar(32) NOT NULL,
|
||||
@@ -44,12 +53,12 @@ class Migration_Phrase extends CI_Migration {
|
||||
insertvon varchar(32),
|
||||
PRIMARY KEY (phrase_inhalt_id)
|
||||
);
|
||||
GRANT SELECT ON TABLE public.tbl_phrase_inhalt TO web;
|
||||
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE public.tbl_phrase_inhalt TO admin;
|
||||
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE public.tbl_phrase_inhalt TO vilesci;
|
||||
GRANT SELECT, UPDATE ON SEQUENCE public.tbl_phrase_inhalt_phrase_inhalt_id_seq TO web;
|
||||
GRANT SELECT, UPDATE ON SEQUENCE public.tbl_phrase_inhalt_phrase_inhalt_id_seq TO admin;
|
||||
GRANT SELECT, UPDATE ON SEQUENCE public.tbl_phrase_inhalt_phrase_inhalt_id_seq TO vilesci;
|
||||
GRANT SELECT ON TABLE system.tbl_phrase_inhalt TO web;
|
||||
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE system.tbl_phrase_inhalt TO admin;
|
||||
GRANT SELECT,INSERT,DELETE,UPDATE ON TABLE system.tbl_phrase_inhalt TO vilesci;
|
||||
GRANT SELECT, UPDATE ON SEQUENCE system.tbl_phrase_inhalt_phrase_inhalt_id_seq TO web;
|
||||
GRANT SELECT, UPDATE ON SEQUENCE system.tbl_phrase_inhalt_phrase_inhalt_id_seq TO admin;
|
||||
GRANT SELECT, UPDATE ON SEQUENCE system.tbl_phrase_inhalt_phrase_inhalt_id_seq TO vilesci;
|
||||
";
|
||||
if (!$this->db->simple_query($query))
|
||||
{
|
||||
@@ -62,10 +71,10 @@ class Migration_Phrase extends CI_Migration {
|
||||
{
|
||||
try
|
||||
{
|
||||
$this->dbforge->drop_table('public.tbl_phrase_inhalt');
|
||||
$this->dbforge->drop_table('public.tbl_phrase');
|
||||
$this->dbforge->drop_table('public.tbl_app');
|
||||
echo "Table public.tbl_phrase_inhalt, public.tbl_phrase and public.tbl_app dropped!";
|
||||
$this->dbforge->drop_table('system.tbl_phrase_inhalt');
|
||||
$this->dbforge->drop_table('system.tbl_phrase');
|
||||
$this->dbforge->drop_table('system.tbl_app');
|
||||
echo "Table system.tbl_phrase_inhalt, system.tbl_phrase and system.tbl_app dropped!";
|
||||
}
|
||||
catch(Exception $e)
|
||||
{
|
||||
|
||||
@@ -0,0 +1,15 @@
|
||||
<?php
|
||||
class App_model extends DB_Model
|
||||
{
|
||||
|
||||
/**
|
||||
* Constructor
|
||||
*/
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->dbTable = 'system.tbl_app';
|
||||
$this->pk = 'app';
|
||||
}
|
||||
|
||||
}
|
||||
@@ -8,7 +8,7 @@ class Phrase_inhalt_model extends DB_Model
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->dbTable = 'public.tbl_phrase_inhalt';
|
||||
$this->dbTable = 'system.tbl_phrase_inhalt';
|
||||
$this->pk = 'phrase_inhalt_id';
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ class Phrase_model extends DB_Model
|
||||
public function __construct()
|
||||
{
|
||||
parent::__construct();
|
||||
$this->dbTable = 'public.tbl_phrase';
|
||||
$this->dbTable = 'system.tbl_phrase';
|
||||
$this->pk = 'phrase_id';
|
||||
}
|
||||
|
||||
@@ -18,10 +18,10 @@ class Phrase_model extends DB_Model
|
||||
public function getPhrases($app, $sprache, $phrase = null, $orgeinheit_kurzbz = null, $orgform_kurzbz = null)
|
||||
{
|
||||
// Checks if the operation is permitted by the API caller
|
||||
if (! $this->fhc_db_acl->isBerechtigt($this->acl['public.tbl_phrase'], 's'))
|
||||
return $this->_error(lang('fhc_'.FHC_NORIGHT).' -> '.$this->acl['public.tbl_phrase'], FHC_MODEL_ERROR);
|
||||
if (! $this->fhc_db_acl->isBerechtigt($this->acl['public.tbl_phrase_inhalt'], 's'))
|
||||
return $this->_error(lang('fhc_'.FHC_NORIGHT).' -> '.$this->acl['public.tbl_phrase_inhalt'], FHC_MODEL_ERROR);
|
||||
if (! $this->fhc_db_acl->isBerechtigt($this->acl['system.tbl_phrase'], 's'))
|
||||
return $this->_error(lang('fhc_'.FHC_NORIGHT).' -> '.$this->acl['system.tbl_phrase'], FHC_MODEL_ERROR);
|
||||
if (! $this->fhc_db_acl->isBerechtigt($this->acl['system.tbl_phrase_inhalt'], 's'))
|
||||
return $this->_error(lang('fhc_'.FHC_NORIGHT).' -> '.$this->acl['system.tbl_phrase_inhalt'], FHC_MODEL_ERROR);
|
||||
|
||||
$parametersArray = array('app' => $app, 'sprache' => $sprache);
|
||||
|
||||
@@ -30,7 +30,7 @@ class Phrase_model extends DB_Model
|
||||
orgeinheit_kurzbz,
|
||||
orgform_kurzbz,
|
||||
text
|
||||
FROM public.tbl_phrase JOIN public.tbl_phrase_inhalt USING (phrase_id)
|
||||
FROM system.tbl_phrase JOIN system.tbl_phrase_inhalt USING (phrase_id)
|
||||
WHERE app = ? AND sprache = ?';
|
||||
|
||||
if (isset($phrase))
|
||||
@@ -65,4 +65,4 @@ class Phrase_model extends DB_Model
|
||||
else
|
||||
return $this->_error($this->db->error(), FHC_DB_ERROR);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,7 +8,7 @@ class Seed_Message
|
||||
public function __construct()
|
||||
{
|
||||
$this->fhc =& get_instance();
|
||||
$this->fhc->load->library('MessageLib');
|
||||
$this->fhc->load->helper('fhc');
|
||||
}
|
||||
|
||||
public function seed($limit = 50)
|
||||
@@ -36,7 +36,7 @@ class Seed_Message
|
||||
(
|
||||
'message_id' => $message_id,
|
||||
'person_id' => $person[$i%($num_persons-1)+1]->person_id,
|
||||
'token' => $this->fhc->messagelib->generateToken(),
|
||||
'token' => generateToken(),
|
||||
'insertvon' => 'seed'
|
||||
);
|
||||
$recipient = $this->fhc->db->insert('public.tbl_msg_recipient', $data);
|
||||
|
||||
Reference in New Issue
Block a user