100+ results for 'php error_log'

Not the results you expected?

menu.tpl (https://gitlab.com/reclamare/mao) Smarty Template · 202 lines

3 <li id="catalog"><a class="parent"><i class="fa fa-tags fa-fw"></i> <span><?php echo $text_catalog; ?></span></a>

4 <ul>

5 <li><a href="<?php echo $category; ?>"><?php echo $text_category; ?></a></li>

6 <li><a href="<?php echo $product; ?>"><?php echo $text_product; ?></a></li>

7 <li><a href="<?php echo $recurring; ?>"><?php echo $text_recurring; ?></a></li>

8 <li><a href="<?php echo $filter; ?>"><?php echo $text_filter; ?></a></li>

141 <li><a href="<?php echo $return_action; ?>"><?php echo $text_return_action; ?></a></li>

142 <li><a href="<?php echo $return_reason; ?>"><?php echo $text_return_reason; ?></a></li>

143 </ul>

144 </li>

145 <li><a href="<?php echo $country; ?>"><?php echo $text_country; ?></a></li>

146 <li><a href="<?php echo $zone; ?>"><?php echo $text_zone; ?></a></li>

backup_includes.php (https://bitbucket.org/kudutest1/moodlegit.git) PHP · 100 lines

1 <?php

2

3 // This file is part of Moodle - http://moodle.org/

29

30 // Include all the backup needed stuff

31 require_once($CFG->dirroot . '/backup/util/interfaces/checksumable.class.php');

32 require_once($CFG->dirroot . '/backup/util/interfaces/executable.class.php');

33 require_once($CFG->dirroot . '/backup/util/interfaces/processable.class.php');

34 require_once($CFG->dirroot . '/backup/util/interfaces/annotable.class.php');

35 require_once($CFG->dirroot . '/backup/util/interfaces/loggable.class.php');

36 require_once($CFG->dirroot . '/backup/backup.class.php');

69 require_once($CFG->dirroot . '/backup/util/loggers/base_logger.class.php');

70 require_once($CFG->dirroot . '/backup/util/loggers/error_log_logger.class.php');

71 require_once($CFG->dirroot . '/backup/util/loggers/file_logger.class.php');

default.php (https://gitlab.com/campus-academy/krowkaramel) PHP · 220 lines

105 <?php if( $should_print_quick_view ){?>

106 <li class="eael-product-quick-view">

107 <a id="eael_quick_view_<?php echo uniqid(); ?>" data-quickview-setting="<?php echo htmlspecialchars(json_encode($quick_view_setting),ENT_QUOTES); ?>"

108 class="eael-product-gallery-open-popup open-popup-link">

109 <i class="fas fa-eye"></i>

124 <?php if( $should_print_quick_view ){?>

125 <li class="eael-product-quick-view">

126 <a id="eael_quick_view_<?php echo uniqid(); ?>" data-quickview-setting="<?php echo htmlspecialchars(json_encode($quick_view_setting),ENT_QUOTES); ?>"

127 class="eael-product-gallery-open-popup open-popup-link">

128 <i class="fas fa-eye"></i>

186 <?php if( $should_print_quick_view ){?>

187 <li class="eael-product-quick-view">

188 <a id="eael_quick_view_<?php echo uniqid(); ?>" data-quickview-setting="<?php echo htmlspecialchars(json_encode($quick_view_setting),ENT_QUOTES); ?>"

189 class="eael-product-gallery-open-popup open-popup-link">

190 <i class="fas fa-eye"></i>

checks_test.php (https://bitbucket.org/kudutest/moodlegit.git) PHP · 136 lines

1 <?php

2

3 // This file is part of Moodle - http://moodle.org/

18 /**

19 * @package core_backup

20 * @category phpunit

21 * @copyright 2010 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}

22 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

27 // Include all the needed stuff

28 global $CFG;

29 require_once($CFG->dirroot . '/backup/util/includes/backup_includes.php');

30

31

55 $this->userid = 2; // admin

56

57 $CFG->backup_error_log_logger_level = backup::LOG_NONE;

58 $CFG->backup_output_indented_logger_level = backup::LOG_NONE;

59 $CFG->backup_file_logger_level = backup::LOG_NONE;

restore_includes.php (https://github.com/sbourget/moodle.git) PHP · 101 lines

1 <?php

2

3 // This file is part of Moodle - http://moodle.org/

29

30 // Include all the backup needed stuff

31 require_once($CFG->dirroot . '/backup/util/interfaces/checksumable.class.php');

32 require_once($CFG->dirroot . '/backup/util/interfaces/loggable.class.php');

33 require_once($CFG->dirroot . '/backup/util/interfaces/executable.class.php');

34 require_once($CFG->dirroot . '/backup/util/interfaces/processable.class.php');

35 require_once($CFG->dirroot . '/backup/backup.class.php');

36 require_once($CFG->dirroot . '/backup/util/structure/restore_path_element.class.php');

59 require_once($CFG->dirroot . '/backup/util/loggers/base_logger.class.php');

60 require_once($CFG->dirroot . '/backup/util/loggers/error_log_logger.class.php');

61 require_once($CFG->dirroot . '/backup/util/loggers/file_logger.class.php');

transport.core.accesspolicies.php (https://github.com/hatone/revolution.git) PHP · 120 lines

1 <?php

2 /**

3 * Default MODX Access Policies

26 'parent' => 0,

27 'class' => '',

28 'data' => '{"about":true,"access_permissions":true,"actions":true,"change_password":true,"change_profile":true,"charsets":true,"class_map":true,"components":true,"content_types":true,"countries":true,"create":true,"credits":true,"customize_forms":true,"dashboards":true,"database":true,"database_truncate":true,"delete_category":true,"delete_chunk":true,"delete_context":true,"delete_document":true,"delete_eventlog":true,"delete_plugin":true,"delete_propertyset":true,"delete_role":true,"delete_snippet":true,"delete_template":true,"delete_tv":true,"delete_user":true,"directory_chmod":true,"directory_create":true,"directory_list":true,"directory_remove":true,"directory_update":true,"edit_category":true,"edit_chunk":true,"edit_context":true,"edit_document":true,"edit_locked":true,"edit_plugin":true,"edit_propertyset":true,"edit_role":true,"edit_snippet":true,"edit_template":true,"edit_tv":true,"edit_user":true,"element_tree":true,"empty_cache":true,"error_log_erase":true,"error_log_view":true,"export_static":true,"file_create":true,"file_list":true,"file_manager":true,"file_remove":true,"file_tree":true,"file_update":true,"file_upload":true,"file_view":true,"flush_sessions":true,"frames":true,"help":true,"home":true,"import_static":true,"languages":true,"lexicons":true,"list":true,"load":true,"logout":true,"logs":true,"menus":true,"menu_reports":true,"menu_security":true,"menu_site":true,"menu_support":true,"menu_system":true,"menu_tools":true,"menu_user":true,"messages":true,"namespaces":true,"new_category":true,"new_chunk":true,"new_context":true,"new_document":true,"new_document_in_root":true,"new_plugin":true,"new_propertyset":true,"new_role":true,"new_snippet":true,"new_static_resource":true,"new_symlink":true,"new_template":true,"new_tv":true,"new_user":true,"new_weblink":true,"packages":true,"policy_delete":true,"policy_edit":true,"policy_new":true,"policy_save":true,"policy_template_delete":true,"policy_template_edit":true,"policy_template_new":true,"policy_template_save":true,"policy_template_view":true,"policy_view":true,"property_sets":true,"providers":true,"publish_document":true,"purge_deleted":true,"remove":true,"remove_locks":true,"resourcegroup_delete":true,"resourcegroup_edit":true,"resourcegroup_new":true,"resourcegroup_resource_edit":true,"resourcegroup_resource_list":true,"resourcegroup_save":true,"resourcegroup_view":true,"resource_quick_create":true,"resource_quick_update":true,"resource_tree":true,"save":true,"save_category":true,"save_chunk":true,"save_context":true,"save_document":true,"save_plugin":true,"save_propertyset":true,"save_role":true,"save_snippet":true,"save_template":true,"save_tv":true,"save_user":true,"search":true,"settings":true,"sources":true,"source_delete":true,"source_edit":true,"source_save":true,"source_view":true,"steal_locks":true,"tree_show_element_ids":true,"tree_show_resource_ids":true,"undelete_document":true,"unlock_element_properties":true,"unpublish_document":true,"usergroup_delete":true,"usergroup_edit":true,"usergroup_new":true,"usergroup_save":true,"usergroup_user_edit":true,"usergroup_user_list":true,"usergroup_view":true,"view":true,"view_category":true,"view_chunk":true,"view_context":true,"view_document":true,"view_element":true,"view_eventlog":true,"view_offline":true,"view_plugin":true,"view_propertyset":true,"view_role":true,"view_snippet":true,"view_sysinfo":true,"view_template":true,"view_tv":true,"view_unpublished":true,"view_user":true,"workspaces":true}',

29 'lexicon' => 'permissions',

30 ), '', true, true);

114 'parent' => 0,

115 'class' => '',

116 'data' => '{"about":true,"change_password":true,"change_profile":true,"charsets":true,"class_map":true,"components":true,"content_types":true,"countries":true,"create":true,"credits":true,"customize_forms":true,"dashboards":true,"database":true,"delete_category":true,"delete_chunk":true,"delete_context":true,"delete_document":true,"delete_eventlog":true,"delete_plugin":true,"delete_propertyset":true,"delete_snippet":true,"delete_template":true,"delete_tv":true,"delete_role":true,"delete_user":true,"directory_chmod":true,"directory_create":true,"directory_list":true,"directory_remove":true,"directory_update":true,"edit_category":true,"edit_chunk":true,"edit_context":true,"edit_document":true,"edit_locked":true,"edit_plugin":true,"edit_propertyset":true,"edit_role":true,"edit_snippet":true,"edit_template":true,"edit_tv":true,"edit_user":true,"element_tree":true,"empty_cache":true,"error_log_erase":true,"error_log_view":true,"export_static":true,"file_create":true,"file_list":true,"file_manager":true,"file_remove":true,"file_tree":true,"file_update":true,"file_upload":true,"file_view":true,"frames":true,"help":true,"home":true,"import_static":true,"languages":true,"lexicons":true,"list":true,"load":true,"logout":true,"logs":true,"menu_reports":true,"menu_site":true,"menu_support":true,"menu_system":true,"menu_tools":true,"menu_user":true,"menus":true,"messages":true,"namespaces":true,"new_category":true,"new_chunk":true,"new_context":true,"new_document":true,"new_static_resource":true,"new_symlink":true,"new_weblink":true,"new_document_in_root":true,"new_plugin":true,"new_propertyset":true,"new_role":true,"new_snippet":true,"new_template":true,"new_tv":true,"new_user":true,"packages":true,"property_sets":true,"providers":true,"publish_document":true,"purge_deleted":true,"remove":true,"resource_quick_create":true,"resource_quick_update":true,"resource_tree":true,"save":true,"save_category":true,"save_chunk":true,"save_context":true,"save_document":true,"save_plugin":true,"save_propertyset":true,"save_snippet":true,"save_template":true,"save_tv":true,"save_user":true,"search":true,"settings":true,"source_delete":true,"source_edit":true,"source_save":true,"source_view":true,"sources":true,"tree_show_element_ids":true,"tree_show_resource_ids":true,"undelete_document":true,"unpublish_document":true,"unlock_element_properties":true,"view":true,"view_category":true,"view_chunk":true,"view_context":true,"view_document":true,"view_element":true,"view_eventlog":true,"view_offline":true,"view_plugin":true,"view_propertyset":true,"view_role":true,"view_snippet":true,"view_sysinfo":true,"view_template":true,"view_tv":true,"view_user":true,"view_unpublished":true,"workspaces":true}',

117 'lexicon' => 'permissions',

118 ), '', true, true);

header.php (https://github.com/smadi/arabian-land.git) PHP · 185 lines

1 <?php

2 class ControllerCommonHeader extends Controller {

3 protected function index() {

39 $this->data['text_documentation'] = $this->language->get('text_documentation');

40 $this->data['text_download'] = $this->language->get('text_download');

41 $this->data['text_error_log'] = $this->language->get('text_error_log');

42 $this->data['text_extension'] = $this->language->get('text_extension');

43 $this->data['text_feed'] = $this->language->get('text_feed');

118 $this->data['customer_group'] = $this->url->link('sale/customer_group', 'token=' . $this->session->data['token'], 'SSL');

119 $this->data['download'] = $this->url->link('catalog/download', 'token=' . $this->session->data['token'], 'SSL');

120 $this->data['error_log'] = $this->url->link('tool/error_log', 'token=' . $this->session->data['token'], 'SSL');

121 $this->data['feed'] = $this->url->link('extension/feed', 'token=' . $this->session->data['token'], 'SSL');

122

timber-image.php (https://gitlab.com/aristath/maera) PHP · 319 lines

1 <?php

2

3 class TimberImage extends TimberPost implements TimberCoreInterface {

202 } else {

203 if (is_array($iid) || is_object($iid)) {

204 TimberHelper::error_log('Not able to init in TimberImage with iid=');

205 TimberHelper::error_log($iid);

206 } else {

207 TimberHelper::error_log('Not able to init in TimberImage with iid=' . $iid);

208 }

209 }

login.php (https://gitlab.com/shapcy/opencart) PHP · 145 lines

1 <?php

2 class ControllerAffiliateLogin extends Controller {

3 private $error = array();

25 $this->model_affiliate_activity->addActivity('login', $activity_data);

26

27 // Added strpos check to pass McAfee PCI compliance test (http://forum.opencart.com/viewtopic.php?f=10&t=12043&p=151494#p151295)

28 if (isset($this->request->post['redirect']) && (strpos($this->request->post['redirect'], $this->config->get('config_url')) !== false || strpos($this->request->post['redirect'], $this->config->get('config_ssl')) !== false)) {

29 $this->response->redirect(str_replace('&amp;', '&', $this->request->post['redirect']));

133 if (!$this->error) {

134 if (!$this->affiliate->login($this->request->post['email'], $this->request->post['password'])) {

135 $this->error['warning'] = $this->language->get('error_login');

136

137 $this->model_account_customer->addLoginAttempt($this->request->post['email']);

web_payment_software.php (https://gitlab.com/reclamare/mao) PHP · 168 lines

1 <?php

2 class ControllerPaymentWebPaymentSoftware extends Controller {

3 private $error = array();

51

52 if (isset($this->error['login'])) {

53 $data['error_login'] = $this->error['login'];

54 } else {

55 $data['error_login'] = '';

157

158 if (!$this->request->post['web_payment_software_merchant_name']) {

159 $this->error['login'] = $this->language->get('error_login');

160 }

161

EMail.php (https://gitlab.com/karora/awl) PHP · 259 lines

1 <?php

2 /**

3 * Lightweight class for sending an e-mail.

9 */

10

11 require_once("AWLUtilities.php");

12 /**

13 * Lightweight class for sending an e-mail.

226 */

227 function PretendLog( $additional_headers = "" ) {

228 if ( !empty($this->From) ) dbg_error_log('LOG', "From: $this->From");

229 if ( !empty($this->Cc) ) dbg_error_log('LOG', "Cc: $this->Cc");

230 if ( !empty($this->Bcc) ) dbg_error_log('LOG', "Bcc: $this->Bcc");

231 if ( !empty($this->ReplyTo) ) dbg_error_log('LOG', "Reply-To: $this->ReplyTo");

TSocket.php (https://github.com/GunioRobot/phpcassa.git) PHP · 320 lines

1 <?php

2 /*

3 * Licensed to the Apache Software Foundation (ASF) under one

30

31 /**

32 * Handle to PHP socket

33 *

34 * @var resource

122 $this->port_ = $port;

123 $this->persist_ = $persist;

124 $this->debugHandler_ = $debugHandler ? $debugHandler : 'error_log';

125 }

126

errors.php (https://github.com/greevex/mzz-framework-blank-application.git) PHP · 288 lines

1 <?php

2 /**

3 * base include file for SimpleTest

4 * @package SimpleTest

5 * @subpackage UnitTester

6 * @version $Id: errors.php 2460 2008-04-08 21:03:22Z mz $

7 */

8

9 /**

10 * @ignore - PHP5 compatibility fix.

11 */

12 if (! defined('E_STRICT')) {

17 * Includes SimpleTest files.

18 */

19 require_once dirname(__FILE__) . '/invoker.php';

20 require_once dirname(__FILE__) . '/test_case.php';

Facebook.php (https://github.com/foetus/li3_facebook.git) PHP · 150 lines

1 <?php

2 /**

3 * Lithium: the most rad php framework

4 *

5 * @copyright Copyright 2011, Union of RAD (http://union-of-rad.org)

6 * @license http://opensource.org/licenses/bsd-license.php The BSD License

7 */

8

97 $uid = FacebookProxy::getUser();

98 } catch (Exception $e) {

99 //error_log($e);

100 }

101 }

112 $user_data = FacebookProxy::api('/me');

113 } catch(Exception $e) {

114 //error_log($e);

115 }

116

members.php (https://github.com/carlosepp/Eckl.git) PHP · 141 lines

1 <?php //INGLES

2 // LABELS

3 //INDEX

101 define("LANGUAGE_MEMBERS_TEXT_REMEMBER_LOGIN","Remember");

102 define("LANGUAGE_MEMBERS_ERROR_USER_LOGIN","Capture your user name.");

103 define("LANGUAGE_MEMBERS_ERROR_LOGIN_PASSWORD","Enter your password.");

104 define("LANGUAGE_MEMBERS_ERROR_LOGIN","Error, the user name and password are incorrect.");

http.php (https://bitbucket.org/bialikover/mapstrtpfndr.git) PHP · 415 lines

1 <?php

2 class Http_Exception extends Exception{

3 const NOT_MODIFIED = 304;

314 throw new Http_Exception("{$_dout->error->message}", $status);

315 }else{

316 error_log("Unknown http error: $_out, $err ($status)");

317 throw new Http_Exception($err, $status);

318 }

chamilo_session.class.php (https://bitbucket.org/frchico/chamilo_openshift.git) PHP · 215 lines

1 <?php

2 /**

3 * Chamilo session (i.e. the session that maintains the connection open after usr login)

93 * Prevent Session fixation bug fixes

94 * See http://support.chamilo.org/issues/3600

95 * http://php.net/manual/en/session.configuration.php

96 * @todo use session_set_cookie_params with some custom admin parameters

97 */

131 // if the session time has expired, refresh the starttime value, so we're starting to count down from a later time

132 if ( $session->has('starttime') && $session->is_valid()) {

133 //error_log('Time expired, cancel session');

134 $session->destroy();

135 } else {

136 //error_log('Time not expired, extend session for a bit more');

137 $session->write('starttime', time());

138 }

environment.php (https://github.com/sbourget/moodle.git) PHP · 167 lines

1 <?php

2 /**

3 * Info about the local environment, wrt RPC

4 *

5 * This should really be a singleton. A PHP5 Todo I guess.

6 */

7

119 $keypair = mnet_generate_keypair();

120 if (empty($keypair)) {

121 error_log('Can not generate keypair, sorry');

122 return;

123 }

146

147 $DB->update_record('mnet_host', $this);

148 if (!PHPUNIT_TEST) {

149 // We don't want to output this log for PHPUnit since it will make the test to fail as risky.

amazon_login.php (https://gitlab.com/shapcy/opencart) PHP · 190 lines

1 <?php

2 class ControllerModuleAmazonLogin extends Controller {

3 public function index() {

58 if (isset($user->error)) {

59 $this->model_payment_amazon_login_pay->logger($user->error . ': ' . $user->error_description);

60 $this->session->data['lpa']['error'] = $this->language->get('error_login');

61 $this->response->redirect($this->url->link('payment/amazon_login_pay/loginFailure', '', true));

62 }

90 } else {

91 $this->model_payment_amazon_login_pay->logger('Could not login to - ID: ' . $customer_info['customer_id'] . ', Email: ' . $customer_info['email']);

92 $this->session->data['lpa']['error'] = $this->language->get('error_login');

93 $this->response->redirect($this->url->link('payment/amazon_login_pay/loginFailure', '', true));

94 }

151 $this->model_payment_amazon_login_pay->logger('Could not login to - ID: ' . $customer_id . ', Email: ' . $user->email);

152

153 $this->session->data['lpa']['error'] = $this->language->get('error_login');

154 $this->response->redirect($this->url->link('payment/amazon_login_pay/loginFailure', '', true));

155 }

Plugin.php (https://github.com/MichaelMackus/OpenVBX.git) PHP · 308 lines

1 <?php

2 /**

3 * "The contents of this file are subject to the Mozilla Public License

78

79 /* Warn developers */

80 error_log('Plugin is missing plugin.json file: '. $this->dir_name);

81

82 }

113 if($page == 'config')

114 {

115 $script = $this->plugin_path . '/config.php';

116 if(!is_file($script))

117 {

118 throw new PluginException("Missing file in plugin: $this->dir_name :: config.php");

119 }

120 return $script;

Configuration.php (https://gitlab.com/CORP-RESELLER/shopping-cart-lite) PHP · 346 lines

1 <?php

2 /**

3 *

341 public static function logMessage($message)

342 {

343 error_log('[Braintree] ' . $message);

344 }

345

class-kirki-sanitize-values.php (https://gitlab.com/aristath/kirki) PHP · 230 lines

1 <?php

2 /**

3 * Additional sanitization methods for controls.

34 */

35 public static function __callStatic( $name, $arguments ) {

36 error_log( "Kirki_Sanitize_Values::$name does not exist" );

37 return $arguments;

38 }

backupTenant.php (https://github.com/ciniki/core.git) PHP · 186 lines

1 <?php

2 //

3 // Description

82 $rc = $fn($ciniki, $tenant);

83 if( $rc['stat'] != 'ok' ) {

84 error_log('BACKUP-ERR[' . $tenant['name'] . ']: ' . $rc['err']['code'] . ' - ' . $rc['err']['msg']);

85 }

86 } else {

90 $rc = ciniki_core_backupTenantModuleObjects($ciniki, $tenant, $mod['package'], $mod['module']);

91 if( $rc['stat'] != 'ok' ) {

92 error_log('BACKUP-ERR[' . $tenant['name'] . ']: ' . $rc['err']['code'] . ' - ' . $rc['err']['msg']);

93 }

94 }

102 $rc = $fn($ciniki, $tenant);

103 if( $rc['stat'] != 'ok' ) {

104 error_log('BACKUP-ERR[' . $tenant['name'] . ']: ' . $rc['err']['code'] . ' - ' . $rc['err']['msg']);

105 }

106 }

removeImage.php (https://github.com/ciniki/images.git) PHP · 190 lines

1 <?php

2 //

3 // Description

172 foreach ($files as $file) {

173 if( is_dir("$cache_dir/$file") ) {

174 error_log("CACHE-ERR: Unable to remove cache files, directory exists: $cache_dir/$file");

175 }

176 unlink("$cache_dir/$file");

permissions.inc.php (https://github.com/francisreboucas/revolution.git) PHP · 149 lines

1 <?php

2 /**

3 * Permissions English lexicon topic

56 $_lang['perm.element_tree_desc'] = 'The ability to view the Elements Tree on the left nav.';

57 $_lang['perm.empty_cache_desc'] = 'To empty the site cache.';

58 $_lang['perm.error_log_erase_desc'] = 'To erase the error log.';

59 $_lang['perm.error_log_view_desc'] = 'To view the error log.';

header.php (https://bitbucket.org/allanxyh/uniquemall.git) PHP · 89 lines

1 <?php

2 // Heading

3 $_['heading_title'] = '功能菜单';

22 $_['text_design'] = '设计';

23 $_['text_download'] = '下载设置';

24 $_['text_error_log'] = '错误日志';

25 $_['text_extension'] = '扩展功能';

26 $_['text_feed'] = '插件扩展';

error.php (https://github.com/serafin/fine.git) PHP · 293 lines

1 <?php

2

3 class f_error

7 const RENDER_FORMAT_TEXT = 'RENDER_FORAMT_TEXT';

8

9 public static $phpError = array(

10 E_ERROR => 'Fatal Error',

11 E_USER_ERROR => 'User Error',

39

40 /**

41 * @var int|string PHP Error code or name

42 */

43 public $errorType;

136 $this->file = $file;

137 $this->line = $line;

138 $this->errorType = self::$phpError[$no];

139 $this->trace = debug_backtrace();

140 array_shift($this->trace); // remove trace for this fuction call

initialize.php (https://github.com/dmagick/search.git) PHP · 212 lines

1 <?php

2

3 /**

46 * We know where *we* should be - let's check.

47 */

48 if (is_file($basedir.'/app/controllers/initialize.php') === FALSE) {

49 return FALSE;

50 }

74 * Let's include it now.

75 */

76 require self::$_basedir.'/app/controllers/template.php';

77

78 template::initialize(self::$_basedir);

79

80 $configFile = self::$_basedir.'/app/config.php';

81 if (is_file($configFile) === FALSE) {

82 template::printTemplate(NULL, 'configuration_required', 500);

Go.php (https://bitbucket.org/klab_zhang_j/igo.git) PHP · 469 lines

1 <?php

2 require_once 'Go/Pawn.php';

82 $point = new Point($x, $y);

83

84 //error_log("($x, $y)");

85 //var_dump($x,$y,$point);

86

Object.php (https://gitlab.com/hop23typhu/list-theme) PHP · 247 lines

1 <?php

2

3 namespace Stripe;

99 . "probably as a result of a save(). The attributes currently "

100 . "available on this object are: $attrs";

101 error_log($message);

102 return null;

103 } else {

104 $class = get_class($this);

105 error_log("Stripe Notice: Undefined property of $class instance: $k");

106 return null;

107 }

Service_Provider.php (https://github.com/livinglab/openlab.git) PHP · 176 lines

1 <?php

2 /**

3 * ${CARET}

73 $level_threshold = apply_filters( 'tribe_log_level', Logger::WARNING );

74

75 $error_log_handler = new ErrorLogHandler( ErrorLogHandler::OPERATING_SYSTEM, $level_threshold );

76

77 /**

85

86 if ( $use_canonical_format ) {

87 $error_log_handler->setFormatter( new Canonical_Formatter() );

88 }

89

90 $handlers = [

91 'default' => $error_log_handler

92 ];

93

web_payment_software.tpl (https://gitlab.com/shapcy/opencart) Smarty Template · 140 lines

6 <button type="submit" form="form-web-payment-software" data-toggle="tooltip" title="<?php echo $button_save; ?>" class="btn btn-primary"><i class="fa fa-save"></i></button>

7 <a href="<?php echo $cancel; ?>" data-toggle="tooltip" title="<?php echo $button_cancel; ?>" class="btn btn-default"><i class="fa fa-reply"></i></a></div>

8 <h1><?php echo $heading_title; ?></h1>

31 <input type="text" name="web_payment_software_merchant_name" value="<?php echo $web_payment_software_merchant_name; ?>" placeholder="<?php echo $entry_login; ?>" id="input-login" class="form-control" />

32 <?php if ($error_login) { ?>

33 <div class="text-danger"><?php echo $error_login; ?></div>

106 <?php if ($geo_zone['geo_zone_id'] == $web_payment_software_geo_zone_id) { ?>

107 <option value="<?php echo $geo_zone['geo_zone_id']; ?>" selected="selected"><?php echo $geo_zone['name']; ?></option>

108 <?php } else { ?>

109 <option value="<?php echo $geo_zone['geo_zone_id']; ?>"><?php echo $geo_zone['name']; ?></option>

110 <?php } ?>

130 <label class="col-sm-2 control-label" for="input-sort-order"><?php echo $entry_sort_order; ?></label>

131 <div class="col-sm-10">

132 <input type="text" name="web_payment_software_sort_order" value="<?php echo $web_payment_software_sort_order; ?>" placeholder="<?php echo $entry_sort_order; ?>" id="input-sort-order" class="form-control" />

133 </div>

134 </div>

core.php (https://github.com/didierjc/clear.git) PHP · 118 lines

1 <?php

2 /** Check if environment is development and display errors **/

3 function setReporting(){

4 if(DEVELOPMENT_ENVIRONMENT == true){

5 // error_reporting() | sets the error_reporting directive at runtime; PHP has many levels of errors, using this function sets that level for the duration of your script

6 error_reporting(E_ALL); // E_ALL | All errors and warnings

7 ini_set('display_errors', 1); // set the value of a configuration option -- display_errors: determines whether errors should be printed to the screen as part of the output

10 ini_set('display_errors', 0);

11 ini_set('log_errors', 1); // script error messages will be logged to the server's error log

12 ini_set('error_log', ROOT.DS.'tmp'.DS.'logs'.DS.'error_'.date("Ymd").'_'.date("His").'.log'); // name of the file where script errors should be logged

13 }

14 }

37 our URLs will look - yoursite.com/controllerName/actionName/queryString

38

39 callHook() basically takes the URL which we have received from index.php and separates it out as $controller, $action and the remaining as $queryString.

40 $model is the singular version of $controller.

41

WorkspaceLevels.php (https://github.com/TwakeApp/Twake.git) PHP · 415 lines

1 <?php

2

3 namespace Twake\Workspaces\Services;

63

64 if (!$user || !$workspace) {

65 error_log("no user / ws ");

66 return false;

67 }

cookbook.html (https://swig.svn.sourceforge.net/svnroot/swig) HTML · 238 lines ✨ Summary

This HTML code outputs a PHP tutorial on using MagpieRSS to parse and display RSS feeds. It provides examples of how to limit the number of items returned, display custom error messages, generate new RSS feeds, filter headlines by date, and parse local files containing RSS. The content is presented in a structured format with headings, paragraphs, and code snippets.

115 <a href="http://www.php.net/ini_set">http://www.php.net/ini_set</a>, <br />

116 <a

117 href="http://www.php.net/manual/en/ref.errorfunc.php">http://www.php.net/manual/en/ref.errorfunc.php</a><br

118 />

119

172 <h3>See: </h3>

173 <a

174 href="http://www.php.net/manual/en/ref.datetime.php">http://www.php.net/manual/en/ref.datetime.php</a>

175

176 <a name="from_file"></a>

215 <h3>See: </h3>

216 <a

217 href="http://www.php.net/manual/en/ref.filesystem.php">http://www.php.net/manual/en/ref.filesystem.php</a>,<br

218 />

219 <a

permissions.inc.php (https://github.com/hatone/revolution.git) PHP · 416 lines

1 <?php

2 /**

3 * Permissions Polish lexicon topic

155 $_lang['perm.empty_cache_desc'] = 'To empty the site cache.';

156

157 #$_lang['perm.error_log_erase_desc'] = 'To erase the error log.';

158 $_lang['perm.error_log_erase_desc'] = 'To erase the error log.';

159

160 #$_lang['perm.error_log_view_desc'] = 'To view the error log.';

161 $_lang['perm.error_log_view_desc'] = 'To view the error log.';

transport.policy.tpl.administrator.php (https://github.com/hatone/revolution.git) PHP · 864 lines

1 <?php

2 /**

3 * The default Permission scheme for the Administrator Policy Template.

242 ));

243 $permissions[] = $xpdo->newObject('modAccessPermission',array(

244 'name' => 'error_log_erase',

245 'description' => 'perm.error_log_erase_desc',

247 ));

248 $permissions[] = $xpdo->newObject('modAccessPermission',array(

249 'name' => 'error_log_view',

250 'description' => 'perm.error_log_view_desc',

functions.projects.php (https://bitbucket.org/unixcrab/colab-lims.git) PHP · 199 lines

1 <?php

2 include "config.common.php";

3 include_once "classes.php";

4 include_once "functions.db_connect.php";

7 global $dbtbl_projects_members;

8 $sql = "select * from ".$dbtbl_projects_members." where project_id=".$project_id." and person_id=".$person_id;

9 // error_log($sql);

10 $r = dbq($sql);

11 if( $r->num_rows >= 1 ) return -1;

12

13 $sql = "insert into ".$dbtbl_projects_members."(project_id,person_id) values(".$project_id.",".$person_id.")";

14 // error_log($sql);

15 dbq($sql);

16 return 1;

syncQueueProcess.php (https://github.com/ciniki/core.git) PHP · 105 lines

1 <?php

2 //

3 // Description

60 // Check if this is a sync we are to ignore, because the request came from that sync

61 //

62 // error_log("Sync: $sync_id, " . $queue_item['args']['ignore_sync_id']);

63 if( isset($queue_item['args']['ignore_sync_id']) && $queue_item['args']['ignore_sync_id'] == $sync_id ) {

64 continue;

77

78 // else {

79 // $method_filename = $ciniki['config']['ciniki.core']['root_dir'] . preg_replace('/^(.*)\.(.*)\.(.*)\.(.*)$/','/\1-mods/\2/sync/\3_\4.php', $queue_item['method']);

80 // $method_function = preg_replace('/^(.*)\.(.*)\.(.*)\.(.*)$/','\1_\2_\3_\4', $queue_item['method']);

81 // if( file_exists($method_filename) ) {

82 // require_once($method_filename);

83 // if( is_callable($method_function) ) {

84 // error_log("SYNC-INFO: [$tnid] " . $queue_item['method'] . '(' . serialize($queue_item['args']) . ')');

85 // $rc = $method_function($ciniki, $sync, $tnid, $queue_item['args']);

86 // if( $rc['stat'] != 'ok' ) {

login.php (https://github.com/elleeott/WPOC-boilerplate.git) PHP · 132 lines

1 <?php

2 class ControllerAccountLogin extends Controller {

3 private $error = array();

28 unset($this->session->data['guest']);

29

30 // Added strpos check to pass McAfee PCI compliance test (http://forum.opencart.com/viewtopic.php?f=10&t=12043&p=151494#p151295)

31 if (isset($this->request->post['redirect']) && (strpos($this->request->post['redirect'], HTTP_SERVER) !== false || strpos($this->request->post['redirect'], HTTPS_SERVER) !== false)) {

32 $this->redirect(str_replace('&amp;', '&', $this->request->post['redirect']));

81 $this->data['forgotten'] = $this->url->link('account/forgotten', '', 'SSL');

82

83 // Added strpos check to pass McAfee PCI compliance test (http://forum.opencart.com/viewtopic.php?f=10&t=12043&p=151494#p151295)

84 if (isset($this->request->post['redirect']) && (strpos($this->request->post['redirect'], HTTP_SERVER) !== false || strpos($this->request->post['redirect'], HTTPS_SERVER) !== false)) {

85 $this->data['redirect'] = $this->request->post['redirect'];

120 private function validate() {

121 if (!$this->customer->login($this->request->post['email'], $this->request->post['password'])) {

122 $this->error['warning'] = $this->language->get('error_login');

123 }

124

PDO_functions.php (https://gitlab.com/tutaalexandr/bot_local) PHP · 138 lines

1 <?php

2 /***************************************

3 * http://www.program-o.com

4 * PROGRAM O

5 * Version: 2.4.8

6 * FILE: library/PDO_functions.php

7 * AUTHOR: Elizabeth Perreau and Dave Morton

8 * DATE: MAY 17TH 2014

66 {

67 global $dbConn;

68 //error_log(print_r($dbConn, true), 3, _LOG_PATH_ . 'dbConn.txt');

69 try

70 {

76 catch (Exception $e)

77 {

78 //error_log("bad SQL encountered in file $file, line #$line. SQL:\n$sql\n", 3, _LOG_PATH_ . 'badSQL.txt');

79 $pdoError = print_r($dbConn->errorInfo(), true);

80 $psError = print_r($sth->errorInfo(), true);

CFileLogRoute.php (https://github.com/sassman/django-benchmark.git) PHP · 162 lines

1 <?php

2 /**

3 * CFileLogRoute class file.

21 *

22 * @author Qiang Xue <qiang.xue@gmail.com>

23 * @version $Id: CFileLogRoute.php 1678 2010-01-07 21:02:00Z qiang.xue $

24 * @package system.logging

25 * @since 1.0

136 $this->rotateFiles();

137 foreach($logs as $log)

138 error_log($this->formatLogMessage($log[0],$log[1],$log[2],$log[3]),3,$logFile);

139 }

140

header.php (https://bitbucket.org/allanxyh/uniquemall.git) PHP · 197 lines

1 <?php

2 class ControllerSupplierHeader extends Controller {

3 protected function index() {

42 $this->data['text_documentation'] = $this->language->get('text_documentation');

43 $this->data['text_download'] = $this->language->get('text_download');

44 $this->data['text_error_log'] = $this->language->get('text_error_log');

45 $this->data['text_extension'] = $this->language->get('text_extension');

46 $this->data['text_feed'] = $this->language->get('text_feed');

127 $this->data['custom_field'] = $this->url->link('design/custom_field', 'token=' . $this->session->data['token'], 'SSL');

128 $this->data['download'] = $this->url->link('catalog/download', 'token=' . $this->session->data['token'], 'SSL');

129 $this->data['error_log'] = $this->url->link('tool/error_log', 'token=' . $this->session->data['token'], 'SSL');

130 $this->data['feed'] = $this->url->link('extension/feed', 'token=' . $this->session->data['token'], 'SSL');

131 $this->data['filter'] = $this->url->link('catalog/filter', 'token=' . $this->session->data['token'], 'SSL');

authorizenet_aim.php (https://github.com/sansanwawa/e-commerse.git) PHP · 202 lines

1 <?php

2 class ControllerPaymentAuthorizenetAim extends Controller {

3 private $error = array();

52

53 if (isset($this->error['login'])) {

54 $this->data['error_login'] = $this->error['login'];

55 } else {

56 $this->data['error_login'] = '';

182

183 if (!$this->request->post['authorizenet_aim_login']) {

184 $this->error['login'] = $this->language->get('error_login');

185 }

186

respond.php (https://github.com/hxzyzz/ddc.git) PHP · 122 lines

1 <?php

2 defined('IN_PHPCMS') or exit('No permission resources.');

26 }

27 $this->update_recode_status_by_sn($return_data['order_id'],$return_data['order_status']);

28 showmessage(L('pay_success'),APP_PATH.'index.php?m=pay&c=deposit');

29 } else {

30 showmessage(L('pay_failed'),APP_PATH.'index.php?m=pay&c=deposit');

42 if ($_POST['code']){

43 $payment = $this->get_by_code($_POST['code']);

44 if(!$payment) error_log(date('m-d H:i:s',SYS_TIME).'| POST: payment is null |'."\r\n", 3, CACHE_PATH.'pay_error_log.php');;

45 $cfg = unserialize_config($payment['config']);

46 $pay_name = ucwords($payment['pay_code']);

91 return $this->member_db->update($data,array('userid'=>$orderinfo['userid']));

92 } else {

93 error_log(date('m-d H:i:s',SYS_TIME).'| POST: rechange failed! trade_sn:'.$$trade_sn.' |'."\r\n", 3, CACHE_PATH.'pay_error_log.php');

94 return false;

95 }

header.php (https://bitbucket.org/elena_dyavolova/omf.git) PHP · 197 lines

1 <?php

2 class ControllerCommonHeader extends Controller {

3 protected function index() {

42 $this->data['text_documentation'] = $this->language->get('text_documentation');

43 $this->data['text_download'] = $this->language->get('text_download');

44 $this->data['text_error_log'] = $this->language->get('text_error_log');

45 $this->data['text_extension'] = $this->language->get('text_extension');

46 $this->data['text_feed'] = $this->language->get('text_feed');

127 $this->data['custom_field'] = $this->url->link('design/custom_field', 'token=' . $this->session->data['token'], 'SSL');

128 $this->data['download'] = $this->url->link('catalog/download', 'token=' . $this->session->data['token'], 'SSL');

129 $this->data['error_log'] = $this->url->link('tool/error_log', 'token=' . $this->session->data['token'], 'SSL');

130 $this->data['feed'] = $this->url->link('extension/feed', 'token=' . $this->session->data['token'], 'SSL');

131 $this->data['filter'] = $this->url->link('catalog/filter', 'token=' . $this->session->data['token'], 'SSL');

upload.php (https://github.com/nunomorgadinho/SimplePhone.git) PHP · 145 lines

1 <?php

2

3 if (!function_exists('getallheaders'))

58 // }

59 // Uploaded file source

60 $source = file_get_contents('php://input');

61 // Image resize

62 file_put_contents($filename_original, $source);

71

72 // File path

73 $path = str_replace('upload.php', '', $_SERVER['SCRIPT_NAME']);

74 // Image tag

75 $r->filename = $filename;

78 echo json_encode($r);

79

80 // Image resize function with php + gd2 lib

81 function imageresize($source, $destination, $width = 0, $height = 0, $crop = false, $quality = 80) {

82 $quality = $quality ? $quality : 80;

permissions.inc.php (https://bitbucket.org/orchdork10159/dnsman.ly.git) PHP · 548 lines

1 <?php

2 /**

3 * Permissions Polish lexicon topic

158 $_lang['perm.empty_cache_desc'] = 'To empty the site cache.';

159

160 #$_lang['perm.error_log_erase_desc'] = 'To erase the error log.';

161 $_lang['perm.error_log_erase_desc'] = 'To erase the error log.';

162

163 #$_lang['perm.error_log_view_desc'] = 'To view the error log.';

164 $_lang['perm.error_log_view_desc'] = 'To view the error log.';

errors.php (https://bitbucket.org/laborautonomo/laborautonomo-site.git) PHP · 257 lines

1 <?php

2 /**

3 * base include file for SimpleTest

4 * @package SimpleTest

5 * @subpackage UnitTester

6 * @version $Id: errors.php 1784 2008-04-26 13:07:14Z pp11 $

7 */

8

10 * Includes SimpleTest files.

11 */

12 require_once dirname(__FILE__) . '/invoker.php';

13 require_once dirname(__FILE__) . '/test_case.php';

14 require_once dirname(__FILE__) . '/expectation.php';

15 /**#@-*/

16

class.photocrati_resource_manager.php (https://bitbucket.org/kenaku/karate.git) PHP · 199 lines

1 <?php

2

3 class C_Photocrati_Resource_Manager

43 else if (preg_match("/(js|css|xsl|xml|kml)$/", $_SERVER['REQUEST_URI'])) $retval = FALSE;

44 elseif (preg_match("/\\.(\\w{3,4})$/", $_SERVER['REQUEST_URI'], $match)) {

45 if (!in_array($match[1], array('htm', 'html', 'php'))) {

46 $retval = FALSE;

47 }

86

87 /**

88 * Output the buffer after PHP execution has ended (but before shutdown)

89 * @param $content

90 * @return string

130

131 /**

132 * When PHP has finished, we output the footer scripts and closing tags

133 */

134 function output_buffer($in_shutdown=FALSE)

setting.php (https://gitlab.com/hazelnuts23/unitedfoodstuff) PHP · 1162 lines

1 <?php

2 class ControllerSettingSetting extends Controller {

3 private $error = array();

151 $data['entry_compression'] = $this->language->get('entry_compression');

152 $data['entry_error_display'] = $this->language->get('entry_error_display');

153 $data['entry_error_log'] = $this->language->get('entry_error_log');

154 $data['entry_error_filename'] = $this->language->get('entry_error_filename');

155 $data['entry_google_analytics'] = $this->language->get('entry_google_analytics');

296

297 if (isset($this->error['login_attempts'])) {

298 $data['error_login_attempts'] = $this->error['login_attempts'];

299 } else {

300 $data['error_login_attempts'] = '';

menu.php (https://gitlab.com/hazelnuts23/unitedfoodstuff) PHP · 210 lines

1 <?php

2 class ControllerCommonMenu extends Controller {

3 public function index() {

27 $data['text_design'] = $this->language->get('text_design');

28 $data['text_download'] = $this->language->get('text_download');

29 $data['text_error_log'] = $this->language->get('text_error_log');

30 $data['text_extension'] = $this->language->get('text_extension');

31 $data['text_feed'] = $this->language->get('text_feed');

125 $data['custom_field'] = $this->url->link('sale/custom_field', 'token=' . $this->session->data['token'], 'SSL');

126 $data['download'] = $this->url->link('catalog/download', 'token=' . $this->session->data['token'], 'SSL');

127 $data['error_log'] = $this->url->link('tool/error_log', 'token=' . $this->session->data['token'], 'SSL');

128 $data['feed'] = $this->url->link('extension/feed', 'token=' . $this->session->data['token'], 'SSL');

129 $data['filter'] = $this->url->link('catalog/filter', 'token=' . $this->session->data['token'], 'SSL');

clearsystem.php (https://gitlab.com/phamngsinh/baitaplon_sinhvien) PHP · 181 lines

1 <?php

2

3 /**

129 if (in_array('clearerrorlogs', $deltype))

130 {

131 $dir = NV_ROOTDIR . '/' . NV_LOGS_DIR . '/error_logs';

132 $files = nv_clear_files($dir, NV_LOGS_DIR . '/error_logs');

137 }

138

139 $dir = NV_ROOTDIR . '/' . NV_LOGS_DIR . '/error_logs/errors256';

140 $files = nv_clear_files($dir, NV_LOGS_DIR . '/error_logs/errors256');

145 }

146

147 $dir = NV_ROOTDIR . '/' . NV_LOGS_DIR . '/error_logs/old';

148 $files = nv_clear_files($dir, NV_LOGS_DIR . '/error_logs/old');

export_import.php (https://gitlab.com/reclamare/mao) PHP · 193 lines

1 <?php

2 // Heading

3 $_['heading_title'] = 'Export / Import';

40 $_['entry_settings_use_filter_group_id'] = 'Use <em>filter_group_id</em> instead of <em>filter_group name</em> in worksheets \'ProductFilters\' and \'CategoryFilters\'';

41 $_['entry_settings_use_filter_id'] = 'Use <em>filter_id</em> instead of <em>filter name</em> in worksheets \'ProductFilters\' and \'CategoryFilters\'';

42 $_['entry_settings_use_export_cache'] = 'Use phpTemp cache for large Exports (will be slightly slower)';

43 $_['entry_settings_use_import_cache'] = 'Use phpTemp cache for large Imports (will be slightly slower)';

82 $_['error_option_values'] = 'Export/Import: Missing Options worksheet, or Options worksheet not listed before OptionValues';

83 $_['error_option_values_2'] = 'Export/Import: OptionValues worksheet also expected after an Options worksheet';

84 $_['error_post_max_size'] = 'File size is greater than %1 (see PHP setting \'post_max_size\')';

85 $_['error_upload_max_filesize'] = 'File size is greater than %1 (see PHP setting \'upload_max_filesize\')';

setting.php (https://gitlab.com/reclamare/mao) PHP · 1184 lines

1 <?php

2 class ControllerSettingSetting extends Controller {

3 private $error = array();

158 $data['entry_compression'] = $this->language->get('entry_compression');

159 $data['entry_error_display'] = $this->language->get('entry_error_display');

160 $data['entry_error_log'] = $this->language->get('entry_error_log');

161 $data['entry_error_filename'] = $this->language->get('entry_error_filename');

162 $data['entry_status'] = $this->language->get('entry_status');

299

300 if (isset($this->error['login_attempts'])) {

301 $data['error_login_attempts'] = $this->error['login_attempts'];

302 } else {

303 $data['error_login_attempts'] = '';

menu.php (https://gitlab.com/reclamare/mao) PHP · 212 lines

1 <?php

2 class ControllerCommonMenu extends Controller {

3 public function index() {

28 $data['text_design'] = $this->language->get('text_design');

29 $data['text_download'] = $this->language->get('text_download');

30 $data['text_error_log'] = $this->language->get('text_error_log');

31 $data['text_extension'] = $this->language->get('text_extension');

32 $data['text_feed'] = $this->language->get('text_feed');

127 $data['custom_field'] = $this->url->link('customer/custom_field', 'token=' . $this->session->data['token'], 'SSL');

128 $data['download'] = $this->url->link('catalog/download', 'token=' . $this->session->data['token'], 'SSL');

129 $data['error_log'] = $this->url->link('tool/error_log', 'token=' . $this->session->data['token'], 'SSL');

130 $data['feed'] = $this->url->link('extension/feed', 'token=' . $this->session->data['token'], 'SSL');

131 $data['filter'] = $this->url->link('catalog/filter', 'token=' . $this->session->data['token'], 'SSL');

Log.php (https://bitbucket.org/tduarte/atmailopen.git) PHP · 216 lines

1 <?php

2 // +----------------------------------------------------------------+

3 // | Log.php |

4 // +----------------------------------------------------------------+

5 // | AtMail Open - Licensed under the Apache 2.0 Open-source License|

6 // | http://opensource.org/licenses/apache2.0.php |

7 // +----------------------------------------------------------------+

8 // | Date: Febuary 2005 |

9 // +----------------------------------------------------------------+

10

11 require_once('header.php');

12

13 define ('QUERY_ERROR', 'Error in SQL Query');

14

15 require_once('Config.php');

16

17 class Log

minixml.inc.php (https://github.com/shafiqissani/Thunrianz.git) PHP · 134 lines

1 <?php if(!defined('_VALID')){header('Status: 404 Not Found');die;}

2 /***************************************************************************************************

3 ****************************************************************************************************

4 *****

5 ***** MiniXML - PHP class library for generating and parsing XML.

6 *****

7 ***** Copyright (C) 2002-2005 Patrick Deegan, Psychogenic.com

86 $MiniXMLLocation = dirname(__FILE__);

87 define("MINIXML_CLASSDIR", $MiniXMLLocation.'/classes');

88 require_once(MINIXML_CLASSDIR . '/doc.inc.php');

89

90 function _MiniXMLLog ($message)

91 {

92 error_log("MiniXML LOG MESSAGE:\n$message\n");

93 }

94

header.php (https://bitbucket.org/deringer/opencart.git) PHP · 197 lines

1 <?php

2 class ControllerCommonHeader extends Controller {

3 protected function index() {

42 $this->data['text_documentation'] = $this->language->get('text_documentation');

43 $this->data['text_download'] = $this->language->get('text_download');

44 $this->data['text_error_log'] = $this->language->get('text_error_log');

45 $this->data['text_extension'] = $this->language->get('text_extension');

46 $this->data['text_feed'] = $this->language->get('text_feed');

127 $this->data['custom_field'] = $this->url->link('sale/custom_field', 'token=' . $this->session->data['token'], 'SSL');

128 $this->data['download'] = $this->url->link('catalog/download', 'token=' . $this->session->data['token'], 'SSL');

129 $this->data['error_log'] = $this->url->link('tool/error_log', 'token=' . $this->session->data['token'], 'SSL');

130 $this->data['feed'] = $this->url->link('extension/feed', 'token=' . $this->session->data['token'], 'SSL');

131 $this->data['filter'] = $this->url->link('catalog/filter', 'token=' . $this->session->data['token'], 'SSL');

login.php (https://bitbucket.org/elena_dyavolova/omf.git) PHP · 218 lines

1 <?php

2 class ControllerAccountLogin extends Controller {

3 private $error = array();

96 }

97

98 // Added strpos check to pass McAfee PCI compliance test (http://forum.opencart.com/viewtopic.php?f=10&t=12043&p=151494#p151295)

99 if (isset($this->request->post['redirect']) && (strpos($this->request->post['redirect'], $this->config->get('config_url')) !== false || strpos($this->request->post['redirect'], $this->config->get('config_ssl')) !== false)) {

100 $this->redirect(str_replace('&amp;', '&', $this->request->post['redirect']));

149 $this->data['forgotten'] = $this->url->link('account/forgotten', '', 'SSL');

150

151 // Added strpos check to pass McAfee PCI compliance test (http://forum.opencart.com/viewtopic.php?f=10&t=12043&p=151494#p151295)

152 if (isset($this->request->post['redirect']) && (strpos($this->request->post['redirect'], $this->config->get('config_url')) !== false || strpos($this->request->post['redirect'], $this->config->get('config_ssl')) !== false)) {

153 $this->data['redirect'] = $this->request->post['redirect'];

200 protected function validate() {

201 if (!$this->customer->login($this->request->post['email'], $this->request->post['password'])) {

202 $this->error['warning'] = $this->language->get('error_login');

203 }

204

menu.php (https://gitlab.com/shapcy/opencart) PHP · 214 lines

1 <?php

2 class ControllerCommonMenu extends Controller {

3 public function index() {

28 $data['text_design'] = $this->language->get('text_design');

29 $data['text_download'] = $this->language->get('text_download');

30 $data['text_error_log'] = $this->language->get('text_error_log');

31 $data['text_extension'] = $this->language->get('text_extension');

32 $data['text_feed'] = $this->language->get('text_feed');

128 $data['custom_field'] = $this->url->link('customer/custom_field', 'token=' . $this->session->data['token'], true);

129 $data['download'] = $this->url->link('catalog/download', 'token=' . $this->session->data['token'], true);

130 $data['error_log'] = $this->url->link('tool/error_log', 'token=' . $this->session->data['token'], true);

131 $data['feed'] = $this->url->link('extension/feed', 'token=' . $this->session->data['token'], true);

132 $data['filter'] = $this->url->link('catalog/filter', 'token=' . $this->session->data['token'], true);

cppcms_api.php (https://gitlab.com/anonymous0/cppcms-ng) PHP · 335 lines

1 <?php

2

3 /* ----------------------------------------------------------------------------

13 // Try to load our extension if it's not already loaded.

14 if (!extension_loaded('cppcms_api')) {

15 if (strtolower(substr(PHP_OS, 0, 3)) === 'win') {

16 if (!dl('php_cppcms_api.dll')) return;

17 } else {

18 // PHP_SHLIB_SUFFIX gives 'dylib' on MacOS X but modules are 'so'.

19 if (PHP_SHLIB_SUFFIX === 'dylib') {

42 const ERROR_INVALID_ARGUMENT = ERROR_INVALID_ARGUMENT;

43

44 const ERROR_LOGIC = ERROR_LOGIC;

45

46 const ERROR_ALLOC = ERROR_ALLOC;

EventInvite.php (https://github.com/luthercollege/reason_package.git) PHP · 254 lines

1 <?php

2 /** Event Invite email class

3 *

13 *

14 * $invite = new EventInvite($recipient, $sender, $subject, $message, $ical_data, $debug_flag)

15 * $invite->send(True); // True = send debug information to error_log

16 *

17 * $invite->setRecipient($new_recipient);

42 * setMessage ( $new_message )

43 *

44 * // get/set the ical data -- see EventInviteExample.php for the appropriate set of ical fields

45 * getICalData ( )

46 * setICalData ( $new_ical_data )

81 {

82 if(is_null($this->recipient)){

83 if($this->debug){ error_log("EventInvite: recipient null."); }

84 return FALSE ;

85 }

factory.php (https://github.com/archoo/electionleaflets.git) PHP · 291 lines

1 <?php

2 /** @internal Set Callback for object unserialization */

3 ini_set('unserialize_callback_func', 'unserialize_callback_factory');

4

5 require_once('table_classes/leaflet.php');

6 require_once('table_classes/party.php');

7 require_once('table_classes/category.php');

8 require_once('table_classes/constituency.php');

16 switch ($class_name) {

17 case 'search':

18 require_once('search.php');

19 if (!$require_only) {

20 $object = new searcher();

erl_bifs.erl (https://github.com/cparedes/omnibus.git) Erlang · 219 lines

197 is_safe(erlang, term_to_binary, 1) -> true;

198 is_safe(erlang, time, 0) -> true;

199 is_safe(error_logger, warning_map, 0) -> true;

200 is_safe(_, _, _) -> false.

201

setting.php (https://bitbucket.org/mjalajel/opencart.git) PHP · 1080 lines

1 <?php

2 class ControllerSettingSetting extends Controller {

3 private $error = array();

141 $this->data['entry_compression'] = $this->language->get('entry_compression');

142 $this->data['entry_error_display'] = $this->language->get('entry_error_display');

143 $this->data['entry_error_log'] = $this->language->get('entry_error_log');

144 $this->data['entry_error_filename'] = $this->language->get('entry_error_filename');

145 $this->data['entry_google_analytics'] = $this->language->get('entry_google_analytics');

header.php (https://bitbucket.org/mjalajel/opencart.git) PHP · 238 lines

1 <?php

2 class ControllerCommonHeader extends Controller {

3 public function index() {

43 $this->data['text_documentation'] = $this->language->get('text_documentation');

44 $this->data['text_download'] = $this->language->get('text_download');

45 $this->data['text_error_log'] = $this->language->get('text_error_log');

46 $this->data['text_extension'] = $this->language->get('text_extension');

47 $this->data['text_feed'] = $this->language->get('text_feed');

133 $this->data['custom_field'] = $this->url->link('sale/custom_field', 'token=' . $this->session->data['token'], 'SSL');

134 $this->data['download'] = $this->url->link('catalog/download', 'token=' . $this->session->data['token'], 'SSL');

135 $this->data['error_log'] = $this->url->link('tool/error_log', 'token=' . $this->session->data['token'], 'SSL');

136 $this->data['feed'] = $this->url->link('extension/feed', 'token=' . $this->session->data['token'], 'SSL');

137 $this->data['filter'] = $this->url->link('catalog/filter', 'token=' . $this->session->data['token'], 'SSL');

facebook_api.php (https://github.com/josenelson/FbHackathon.git) PHP · 148 lines

1 <?php

2 require 'facebook.php';

35 $user_profile = $facebook->api('/me');

36 } catch (FacebookApiException $e) {

37 error_log($e);

38 $user = null;

39 }

test-engines.rb (https://github.com/joevandyk/merb-gems.git) Ruby · 370 lines

9 require 'erubis'

10 require 'erubis/engine/eruby'

11 require 'erubis/engine/ephp'

12 require 'erubis/engine/ec'

13 require 'erubis/engine/ejava'

69 _buf.to_s

70 ##

71 - name: php1

72 lang: php

73 class: Ephp

74 options:

75 input: |

108 </tbody>

109 </table>

110 <?php error_log('*** debug: $i='.($i), 0); ?>

111 ##

112 - name: c1

AbstractTokenArrayTransport.php (https://gitlab.com/mautic-master/mautic) PHP · 288 lines

1 <?php

2 /**

3 * @package Mautic

236 );

237 } catch (\Exception $e) {

238 error_log($e);

239 }

240 }

Logger.php (https://gitlab.com/blueprintmrk/cli) PHP · 209 lines

1 <?php

2

3 namespace Terminus\Loggers;

19 public function __construct(

20 array $options = array(),

21 $logDirectory = 'php://stderr',

22 $logLevelThreshold = LogLevel::INFO

23 ) {

37 $logDirectory = $_SERVER['TERMINUS_LOG_DIR'];

38 } elseif ($config['format'] == 'silent') {

39 $logDirectory = ini_get('error_log');

40 if ($logDirectory == '') {

41 die(

42 'You must either set error_log in your php.ini, or define '

43 . ' TERMINUS_LOG_DIR to use silent mode.' . PHP_EOL

init_auth.php (https://github.com/wilminator/authenticate.git) PHP · 129 lines

1 <?php

2 function init_system($host,$sysuser,$syspass,$db,$svc_user,$svc_pass,$svc_host,$user,$password,$sysadmin_email)

3 {

61 INSERT INTO `permissions` (permissionid, context, permission) VALUES (8, '_', 'LIST_ACCOUNTS');

62 INSERT INTO `permissions` (permissionid, context, permission) VALUES (9, '_', 'LIST_EMAILS');

63 INSERT INTO `permissions` (permissionid, context, permission) VALUES (10, '_', 'VIEW_ERROR_LOG');

64

65 CREATE TABLE `user_data` (

Exception.php (https://github.com/emiliocad/medtechtrade.git) PHP · 153 lines

1 <?php

2 /**

3 * ZFDebug Zend Additions

8 * @copyright Copyright (c) 2008-2009 ZF Debug Bar Team (http://code.google.com/p/zfdebug)

9 * @license http://code.google.com/p/zfdebug/wiki/License New BSD License

10 * @version $Id: Exception.php 289 2009-12-10 10:47:02Z huuphuoc $

11 */

12

117

118 /**

119 * Debug Bar php error handler

120 *

121 * @param string $level

148 self::$errors[] = array('type' => $type , 'message' => $message , 'file' => $file , 'line' => $line);

149 if (ini_get('log_errors'))

150 error_log(sprintf("%s: %s in %s on line %d", $type, $message, $file, $line));

151 return true;

152 }

database.php (https://github.com/shooray/oscommerce2-mypgsql.git) PHP · 199 lines

1 <?php

2 /*

3 $Id$

51

52 if (defined('STORE_DB_TRANSACTIONS') && (STORE_DB_TRANSACTIONS == 'true')) {

53 error_log('QUERY ' . $query . "\n", 3, STORE_PAGE_PARSE_TIME_LOG);

54 }

55

63 if (defined('STORE_DB_TRANSACTIONS') && (STORE_DB_TRANSACTIONS == 'true')) {

64 $result_error = mysql_error();

65 error_log('RESULT ' . $result . ' ' . $result_error . "\n", 3, STORE_PAGE_PARSE_TIME_LOG);

66 }

67

taxonomy-to-post_type-sync.class.php (https://github.com/mjangda/taxonomy-to-post_type-sync.git) PHP · 333 lines

1 <?php

2

3 class Tax2PostTypeSync {

130 // Watch for is_wp_error( $term )

131 if( $term_save && is_wp_error( $term_save ) ) {

132 error_log( sprintf( __( 'Uh oh! %1$s failed! Details: %2$s' ), __FUNCTION__, var_export( $term_save, true ) ) );

133 return;

134 }

checkout.php (https://gitlab.com/dadangnh/sb1-bon) PHP · 94 lines

1 <?php

2 // Heading

3 $_['heading_title'] = 'Checkout';

71 // Error

72 $_['error_warning'] = 'There was a problem while trying to process your order! If the problem persists please try selecting a different payment method or you can contact the store owner by <a href="%s">clicking here</a>.';

73 $_['error_login'] = 'Warning: No match for E-Mail Address and/or Password.';

74 $_['error_attempts'] = 'Warning: Your account has exceeded allowed number of login attempts. Please try again in 1 hour.';

75 $_['error_approved'] = 'Warning: Your account requires approval before you can login.';

errors.php (https://github.com/jeffmay/Bonfire.git) PHP · 288 lines

1 <?php

2 /**

3 * base include file for SimpleTest

4 * @package SimpleTest

5 * @subpackage UnitTester

6 * @version $Id: errors.php 1672 2008-03-02 04:47:34Z edwardzyang $

7 */

8

9 /**

10 * @ignore - PHP5 compatibility fix.

11 */

12 if (! defined('E_STRICT')) {

17 * Includes SimpleTest files.

18 */

19 require_once dirname(__FILE__) . '/invoker.php';

20 require_once dirname(__FILE__) . '/test_case.php';

Configuration.php (https://gitlab.com/hunt9310/ras) PHP · 475 lines

1 <?php

2 namespace Braintree;

3

141 /**

142 * Sets or gets the proxy type to use for connecting to Braintree. This value

143 * can be any of the CURLOPT_PROXYTYPE options in PHP cURL.

144 *

145 * @param string $value If provided, sets the proxy type

469 public function logMessage($message)

470 {

471 error_log('[Braintree] ' . $message);

472 }

473 }

events_controller.php (https://github.com/ajaykalia/groupalbum.git) PHP · 310 lines

1 <?php

2 /**

3 * file: app/controllers/events_controller.php

49

50 function gallery($slug = null) {

51 require $_SERVER['DOCUMENT_ROOT'].'files/config.php';

52

53 $session = $facebook->getSession();

62 $albums = $facebook->api('me/albums');

63 } catch (FacebookApiException $e) {

64 error_log($e);

65 }

66 }

225

226

227 require $_SERVER['DOCUMENT_ROOT'].'files/config.php';

228

229 $session = $facebook->getSession();

Writer.php (https://gitlab.com/techniconline/kmc) PHP · 375 lines

1 <?php namespace Illuminate\Log;

2

3 use Closure;

246

247 /**

248 * Register an error_log handler.

249 *

250 * @param string $level

Context.php (https://bitbucket.org/pastor399/newcastleunifc.git) PHP · 172 lines

1 <?php

2 /**

3 * @version $Id: Context.php 53534 2012-06-06 18:21:34Z btowles $

30 * All Rights Reserved.

31 *

32 * Port (from the Python port) to PHP5 by Toni Arnold

33 *

34 * Contributor(s):

54 $this->_debug_flag = FALSE;

55 // using STDERR works only on cli, but explicitly opening

56 // stderr writes to /var/log/apache2/error_log

57 $this->_debug_stream = fopen("php://stderr", "w");

task_test.php (https://bitbucket.org/kudutest1/moodlegit.git) PHP · 140 lines

1 <?php

2 // This file is part of Moodle - http://moodle.org/

3 //

17 /**

18 * @package core_backup

19 * @category phpunit

20 * @copyright 2010 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}

21 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

24 defined('MOODLE_INTERNAL') || die();

25

26 require_once(__DIR__.'/fixtures/plan_fixtures.php');

27

28

53

54 // Disable all loggers

55 $CFG->backup_error_log_logger_level = backup::LOG_NONE;

56 $CFG->backup_file_logger_level = backup::LOG_NONE;

57 $CFG->backup_database_logger_level = backup::LOG_NONE;

Logger.php (https://github.com/hhamon/symfony.git) PHP · 118 lines

1 <?php

2

3 /*

46 {

47 if (null === $minLevel) {

48 $minLevel = null === $output || 'php://stdout' === $output || 'php://stderr' === $output ? LogLevel::ERROR : LogLevel::WARNING;

49

50 if (isset($_ENV['SHELL_VERBOSITY']) || isset($_SERVER['SHELL_VERBOSITY'])) {

86 @fwrite($this->handle, $formatter($level, $message, $context));

87 } else {

88 error_log($formatter($level, $message, $context, false));

89 }

90 }

109 }

110

111 $log = sprintf('[%s] %s', $level, $message).\PHP_EOL;

112 if ($prefixDate) {

113 $log = date(\DateTime::RFC3339).' '.$log;

EbatNs_Session.php (https://github.com/iloveitaly/ebay-php.git) PHP · 1185 lines

1 <?php

2 // $Id: EbatNs_Session.php,v 1.4 2008/06/09 10:29:36 michael Exp $

3 // $Log: EbatNs_Session.php,v $

4 // Revision 1.4 2008/06/09 10:29:36 michael

5 // *** empty log message ***

9 //

10 // Revision 1.2 2008/05/02 15:04:05 carsten

11 // Initial, PHP5

12 //

13 //

14 require_once 'EbatNs_Defines.php';

15

16 class EbatNs_Session {

output.pdflib.1.6.class.php (https://github.com/tsnoad/Irondata.git) PHP · 225 lines

1 <?php

2 // $Header: /cvsroot/html2ps/output.pdflib.1.6.class.php,v 1.2 2006/11/11 13:43:53 Konstantin Exp $

3

4 require_once(HTML2PS_DIR.'output.pdflib.class.php');

5

6 class PDFLIBForm {

186 pdf_create_fieldgroup($this->pdf, $name, "fieldtype=mixed");

187

188 error_log(sprintf("Anonymous form generated with name %s; check your HTML for validity",

189 $name));

190 };

202 if (!$this->_valid_name($name)) {

203 $name = uniqid("AnonymousFormFieldObject_");

204 error_log(sprintf("Anonymous field generated with name %s; check your HTML for validity",

205 $name));

206 };

factories_test.php (https://bitbucket.org/kudutest1/moodlegit.git) PHP · 126 lines

30 require_once($CFG->dirroot . '/backup/util/loggers/base_logger.class.php');

31 require_once($CFG->dirroot . '/backup/util/loggers/error_log_logger.class.php');

32 require_once($CFG->dirroot . '/backup/util/loggers/output_indented_logger.class.php');

82 $CFG->debugdisplay = false;

83 $logger1 = backup_factory::get_logger_chain(backup::INTERACTIVE_YES, backup::EXECUTION_INMEDIATE, 'test');

84 $this->assertTrue($logger1 instanceof error_log_logger); // 1st logger is error_log_logger

85 $this->assertEquals($logger1->get_level(), backup::LOG_NONE);

86 $logger2 = $logger1->get_next();

98 unset($CFG->backup_error_log_logger_level);

99 $logger1 = backup_factory::get_logger_chain(backup::INTERACTIVE_YES, backup::EXECUTION_INMEDIATE, 'test');

100 $this->assertTrue($logger1 instanceof error_log_logger); // 1st logger is error_log_logger

101 $this->assertEquals($logger1->get_level(), backup::LOG_DEBUG); // and must have backup::LOG_DEBUG level

102 // Set $CFG->backup_error_log_logger_level to backup::LOG_WARNING and test again

103 $CFG->backup_error_log_logger_level = backup::LOG_WARNING;

104 $logger1 = backup_factory::get_logger_chain(backup::INTERACTIVE_YES, backup::EXECUTION_INMEDIATE, 'test');

105 $this->assertTrue($logger1 instanceof error_log_logger); // 1st logger is error_log_logger

106 $this->assertEquals($logger1->get_level(), backup::LOG_WARNING); // and must have backup::LOG_WARNING level

107

authlib_test.php (https://bitbucket.org/kudutest1/moodlegit.git) PHP · 194 lines

1 <?php

2 // This file is part of Moodle - http://moodle.org/

3 //

19 *

20 * @package core_auth

21 * @category phpunit

22 * @copyright 2012 Petr Skoda {@link http://skodak.org}

23 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

33 public function test_lockout() {

34 global $CFG;

35 require_once("$CFG->libdir/authlib.php");

36

37 $this->resetAfterTest();

38

39 $oldlog = ini_get('error_log');

40 ini_set('error_log', "$CFG->dataroot/testlog.log"); // Prevent standard logging.

index.php (https://github.com/teambravo/Instant-Message.git) PHP · 346 lines

1 <?php

2 /****************************************

3 * Server of Android IM Application

21 //TODO: show error off

22

23 require_once("mysql.class.php");

24

25 $dbHost = "localhost";

64 $out = NULL;

65

66 error_log($action."\r\n", 3, "error.log");

67 switch($action)

68 {

149 values ('".$username."', '".$password."', '".$email."') ";

150

151 error_log("$sql", 3 , "error_log");

152 if ($db->query($sql))

153 {

sql.php (https://github.com/episcopus/r8www.git) PHP · 137 lines

1 <?php

2

3 require_once('sql_config.php');

106 if (empty($result)) {

107 $errorStr = "R8: Failed to run query: $query, error: " . $this->conn->error;

108 error_log($errorStr);

109 throw new Exception($errorStr);

110 }

117 if (!$conn->real_connect(R8_DB_HOST, R8_DB_USER, R8_DB_PASS, R8_DB_NAME, 3306)) {

118 $errorStr = "R8: Failed to connect to T8 DB, err no: " . mysqli_connect_errno();

119 error_log($errorStr);

120 $conn = false;

121 throw new Exception($errorStr);

131 }

132 catch (Exception $e) {

133 error_log("R8: Failed to close connection, error: " . $e->getMessage());

134 }

135 }

external-fetch.php (https://gitlab.com/tiggerben/davical) PHP · 121 lines

1 <?php

2 /**

3 * Functions for managing external BIND resources

15 global $request;

16 if ( ! function_exists ( "curl_init" ) ) {

17 dbg_error_log("external", "external resource cannot be fetched without curl, please install curl");

18 $request->DoResponse( 503, translate('PHP5 curl support is required for external binds') );

43 {

44 if ( ! function_exists ( "curl_init" ) ) {

45 dbg_error_log("external", "external resource cannot be fetched without curl, please install curl");

46 $request->DoResponse( 503, translate('PHP5 curl support is required for external binds') );

65 curl_setopt ( $curl, CURLOPT_TIMEVALUE, $local_ts->format("U") );

66 curl_setopt ( $curl, CURLOPT_TIMECONDITION, CURL_TIMECOND_IFMODSINCE );

67 dbg_error_log("external", "checking external resource for remote changes " . $row->external_url );

68 $ics = curl_exec ( $curl );

69 $info = curl_getinfo ( $curl );

preset-3.php (https://gitlab.com/campus-academy/krowkaramel) PHP · 108 lines

39 if ( true === wc_get_loop_product_visibility( $product->get_id() ) || $product->is_visible() ) {

40 ?>

41 <li <?php post_class( ['product', 'swiper-slide'] ); ?>>

42 <div class="eael-product-carousel">

43 <div class="product-image-wrap">

44 <div class="image-wrap">

45 <?php

46 echo ( ! $product->managing_stock() && ! $product->is_in_stock() ? '<span class="eael-onsale outofstock '.$sale_badge_preset.' '.$sale_badge_align.'">'. $stockout_text .'</span>' : ($product->is_on_sale() ? '<span class="eael-onsale '.$sale_badge_preset.' '.$sale_badge_align.'">' . $sale_text . '</span>' : '') );

47 if( $should_print_image_clickable ) {

60 <?php if( $should_print_quick_view ){?>

61 <li class="eael-product-quick-view">

62 <a id="eael_quick_view_<?php echo uniqid(); ?>" data-quickview-setting="<?php echo htmlspecialchars(json_encode($quick_view_setting),ENT_QUOTES); ?>"

63 class="open-popup-link">

64 <i class="fas fa-eye"></i>

authorizenet_aim.tpl (https://bitbucket.org/allanxyh/uniquemall.git) Smarty Template · 132 lines

4 <?php foreach ($breadcrumbs as $breadcrumb) { ?>

5 <?php echo $breadcrumb['separator']; ?><a href="<?php echo $breadcrumb['href']; ?>"><?php echo $breadcrumb['text']; ?></a>

6 <?php } ?>

13 <h1><img src="view/image/payment.png" alt="" /> <?php echo $heading_title; ?></h1>

14 <div class="buttons"><a onclick="$('#form').submit();" class="button"><?php echo $button_save; ?></a><a href="<?php echo $cancel; ?>" class="button"><?php echo $button_cancel; ?></a></div>

15 </div>

16 <div class="content">

21 <td><input type="text" name="authorizenet_aim_login" value="<?php echo $authorizenet_aim_login; ?>" />

22 <?php if ($error_login) { ?>

23 <span class="error"><?php echo $error_login; ?></span>

90 <?php if ($order_status['order_status_id'] == $authorizenet_aim_order_status_id) { ?>

91 <option value="<?php echo $order_status['order_status_id']; ?>" selected="selected"><?php echo $order_status['name']; ?></option>

92 <?php } else { ?>

105 <?php } else { ?>

106 <option value="<?php echo $geo_zone['geo_zone_id']; ?>"><?php echo $geo_zone['name']; ?></option>

107 <?php } ?>

minify.php (https://github.com/eizzumdm/Kurogo-Mobile-Web.git) PHP · 194 lines

1 <?php

2 /**

3 * @package Minify

6 /**

7 */

8 require_once LIB_DIR.'/DiskCache.php';

9

10 //

165 $page, $pagetype, $platform, $jsDirs, $subDirs, $pageOnly),

166 );

167 //error_log(print_r($checkFiles, true));

168

169 $minifyConfig[$key] = buildFileList($checkFiles[$ext]);

170 //error_log(__FUNCTION__."($pagetype-$platform) scanned filesystem for $key");

171

172 $cache->write($minifyConfig, $cacheName);

Error_Handler.class.php (https://gitlab.com/albert925/lading-ach) PHP · 406 lines

1 <?php

2 /* vim: set expandtab sw=4 ts=4 sts=4: */

3 /**

5 *

6 * @version $Id$

7 * @package phpMyAdmin

8 */

9

11 *

12 */

13 require_once './libraries/Error.class.php';

14

15 /**

16 * handling errors

17 *

18 * @package phpMyAdmin

19 */

20 class PMA_Error_Handler

LocalFS.php (https://github.com/shanti/olio.git) PHP · 221 lines

1 <?php

2 /*

3 * Licensed to the Apache Software Foundation (ASF) under one

23 * existence of a file, etc.

24 */

25 //require_once("../classes/DirectoryType.php");

26 class LocalFS extends FileSystem {

27

140 $attrs["type"] .= "Lits";

141 } else {

142 error_log("Invalid file name pattern ".$filename);

143 $attrs["type"] = "invalid";

144 }

hrose_list.inc.php (https://bitbucket.org/cfraunholz/big-red-button.git) PHP · 284 lines

1 <?php

2 // The Big Red Red Button Source Code Generator

3 // Dipl.-Ing. (FH) Christian K. Fraunholz (php10.de)

78 if (isset(' . varname('delete') . ')) {

79 $sql = "DELETE FROM ' . $tableName . ' WHERE ' . $pkDelCode . ';

80 mysql_query($sql) or error_log(mysql_error());

81 }

82 ';

161 if ($_REQUEST['dynamic_list_header']) {

162 $code .= '

163 <?php

164 $header = array(\'' . implode(',', $array) . '\');

165 foreach ($header as $key => $value) {';

206 case 'ckb':

207 $code .= '

208 echo \'<td>\' . ((' . varname($value, $listMethod) . ' == \'1\') ? ' . trans('yes', 'php') . ' : ' . trans('no', 'php') . ') . \'</td>\';';

209 break;

210 case 'enum':

header.php (https://bitbucket.org/sandeepbhaskar/inspiredliving.git) PHP · 193 lines

1 <?php

2 class ControllerCommonHeader extends Controller {

3 protected function index() {

40 $this->data['text_documentation'] = $this->language->get('text_documentation');

41 $this->data['text_download'] = $this->language->get('text_download');

42 $this->data['text_error_log'] = $this->language->get('text_error_log');

43 $this->data['text_extension'] = $this->language->get('text_extension');

44 $this->data['text_feed'] = $this->language->get('text_feed');

123 $this->data['customer_blacklist'] = $this->url->link('sale/customer_blacklist', 'token=' . $this->session->data['token'], 'SSL');

124 $this->data['download'] = $this->url->link('catalog/download', 'token=' . $this->session->data['token'], 'SSL');

125 $this->data['error_log'] = $this->url->link('tool/error_log', 'token=' . $this->session->data['token'], 'SSL');

126 $this->data['feed'] = $this->url->link('extension/feed', 'token=' . $this->session->data['token'], 'SSL');

127 $this->data['filter'] = $this->url->link('catalog/filter', 'token=' . $this->session->data['token'], 'SSL');

Writer.php (https://gitlab.com/judielsm/Handora) PHP · 375 lines

1 <?php

2

3 namespace Illuminate\Log;

247

248 /**

249 * Register an error_log handler.

250 *

251 * @param string $level

CourseProfile.php (https://github.com/ashwanthkumar/webnaplo.git) PHP · 337 lines

1 <?php

2

3 /**

179

180 if(is_object($r) && get_class($r) == "PDOException") {

181 error_log($r->getMessage());

182 continue; // Need to use transactions to revert the datastore

183 }

194

195 if(is_object($cia_marks_status) && get_class($cia_marks_status) == "PDOException") {

196 error_log($cia_marks_status->getMessage());

197 continue; // Need to use transactions to revert the datastore

198 }

reminderEmailSend.php (https://github.com/ciniki/customers.git) PHP · 147 lines

1 <?php

2 //

3 // Description

91 }

92 } else {

93 error_log("CUSTOMER REMINDERS ERROR -- No emails specified for reminder " . $reminder_id);

94 }

95

php.xml (https://jedit.svn.sourceforge.net/svnroot/jedit) XML · 2590 lines

11 </PROPS>

12 <RULES IGNORE_CASE="TRUE">

13 <SPAN TYPE="MARKUP" DELEGATE="PHP">

14 <BEGIN>&lt;?php</BEGIN>

16 </SPAN>

17

18 <SPAN TYPE="MARKUP" DELEGATE="PHP">

19 <BEGIN>&lt;?</BEGIN>

20 <END>?&gt;</END>

21 </SPAN>

22

23 <SPAN TYPE="MARKUP" DELEGATE="PHP">

24 <BEGIN>&lt;%=</BEGIN>

25 <END>%&gt;</END>

64

65 <RULES SET="TAGS" DEFAULT="MARKUP">

66 <SPAN TYPE="MARKUP" DELEGATE="PHP">

67 <BEGIN>&lt;?php</BEGIN>

class.bp-sql-schema-parser.php (https://bitbucket.org/simplemediacode/bptrunk.git) PHP · 615 lines

1 <?php

2 /**

3 * Parses SQL schema statements for comparison to real table structures