Your IP : 3.146.221.131


Current Path : /home/bitrix/ext_www/easy-comfort.com.ua/bitrix/modules/main/include/
Upload File :
Current File : /home/bitrix/ext_www/easy-comfort.com.ua/bitrix/modules/main/include/dbquery_error.php

<br>
<table cellpadding="1" cellspacing="0" width="35%" bgcolor="#9C9A9C">
	<tr>
		<td><table cellpadding="5" cellspacing="0" width="100%">
			<tr>
				<td bgcolor="#FFFFFF" align="center">
					<FONT face="Verdana, Arial, Helvetica, sans-serif" size="-1">
					<font color="#FF0000"><b><?echo "DB query error."?></b></font><br>
					Please try later.
					</font><br>
					<?if (is_object($GLOBALS["USER"]) && $GLOBALS["USER"]->IsAdmin()):?>
						</form>
						<form method="post" action="/bitrix/admin/site_checker.php?tabControl_active_tab=edit5#edit5">
							<?
							$strSupportErrorText = "";
							$strSupportErrorText .= "File: ".__FILE__."\n";

							if (strlen($error_position)>0)
								$strSupportErrorText .= "[".$error_position."]\n";
							if (strlen($strSql)>0)
								$strSupportErrorText .= "Query: ".$strSql."\n";
							if (isset($this) && is_object($this) && strlen($this->db_Error)>0)
								$strSupportErrorText .= "[".$this->db_Error."]\n";

							$d = Bitrix\Main\Diag\Helper::getBackTrace();
							$trace = array();  // due to memory limitations
							foreach($d as $tmp)
							{
								$trace[] = array(
									'file' => $tmp['file'],
									'line' => $tmp['line'],
									'class' =>  $tmp['class'],
									'function' => $tmp['function'],
									'args' => $tmp['args']
								);
							}
							$strSupportErrorText .= "debug_backtrace:\n".print_r($trace, True)."\n";
							?>
							<input type="hidden" name="last_error_query" value="<?= htmlspecialcharsbx($strSupportErrorText) ?>">
							<?echo bitrix_sessid_post();?>
							<input type="submit" value="Send error report to support">
						</form>
					<?endif;?>
				</td>
			</tr>
		</table></td>
	</tr>
</table>
<br><br><br>