本文整理汇总了PHP中unhtmlspecialchars函数的典型用法代码示例。如果您正苦于以下问题:PHP unhtmlspecialchars函数的具体用法?PHP unhtmlspecialchars怎么用?PHP unhtmlspecialchars使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了unhtmlspecialchars函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: log_vbulletin_error
/**
* Log errors to a file
*
* @param string The error message to be placed within the log
* @param string The type of error that occured. php, database, security, etc.
*
* @return boolean
*/
function log_vbulletin_error($errstring, $type = 'database')
{
global $vbulletin;
$options = vB::getDatastore()->getValue('options');
// do different things depending on the error log type
switch ($type) {
// log PHP E_USER_ERROR, E_USER_WARNING, E_WARNING to file
case 'php':
if (!empty($options['errorlogphp'])) {
$errfile = $options['errorlogphp'];
$errstring .= "\r\nDate: " . date('l dS \\o\\f F Y h:i:s A') . "\r\n";
$errstring .= "Username: {$vbulletin->userinfo['username']}\r\n";
$errstring .= 'IP Address: ' . IPADDRESS . "\r\n";
}
break;
// log database error to file
// log database error to file
case 'database':
if (!empty($options['errorlogdatabase'])) {
$errstring = preg_replace("#(\r\n|\r|\n)#s", "\r\n", $errstring);
$errfile = $options['errorlogdatabase'];
}
break;
// log admin panel login failure to file
// log admin panel login failure to file
case 'security':
if (!empty($options['errorlogsecurity'])) {
$errfile = $options['errorlogsecurity'];
$username = $errstring;
$errstring = 'Failed admin logon in ' . $vbulletin->db->appname . ' ' . $vbulletin->options['templateversion'] . "\r\n\r\n";
$errstring .= 'Date: ' . date('l dS \\o\\f F Y h:i:s A') . "\r\n";
$errstring .= "Script: http://{$_SERVER['HTTP_HOST']}" . unhtmlspecialchars($vbulletin->scriptpath) . "\r\n";
$errstring .= 'Referer: ' . REFERRER . "\r\n";
$errstring .= "Username: {$username}\r\n";
$errstring .= 'IP Address: ' . IPADDRESS . "\r\n";
$errstring .= "Strikes: {$GLOBALS['strikes']}/5\r\n";
}
break;
}
// if no filename is specified, exit this function
if (!isset($errfile) or !($errfile = trim($errfile)) or defined('DEMO_MODE') and DEMO_MODE == true) {
return false;
}
// rotate the log file if filesize is greater than $vbulletin->options[errorlogmaxsize]
if ($vbulletin->options['errorlogmaxsize'] != 0 and $filesize = @filesize("{$errfile}.log") and $filesize >= $vbulletin->options['errorlogmaxsize']) {
@copy("{$errfile}.log", $errfile . TIMENOW . '.log');
@unlink("{$errfile}.log");
}
// write the log into the appropriate file
if ($fp = @fopen("{$errfile}.log", 'a+')) {
@fwrite($fp, "{$errstring}\r\n=====================================================\r\n\r\n");
@fclose($fp);
return true;
} else {
return false;
}
}
示例2: api_result_prewhitelist_1
function api_result_prewhitelist_1(&$value)
{
if ($value['response']) {
$value['response']['layout']['content']['contents'] = $value['response']['layout']['content']['content_rendered']['contents'];
foreach ($value['response']['layout']['content']['contents'] as $k => &$v) {
$v['title'] = unhtmlspecialchars($v['title']);
}
}
}
示例3: api_result_prewhitelist
function api_result_prewhitelist(&$value)
{
if (is_array($value['response']['activitybits']['activitybits'])) {
$value['response']['activitybits'] = $value['response']['activitybits']['activitybits'];
}
foreach ($value['response']['activitybits'] as $k => &$v) {
if (isset($v['threadinfo'])) {
$v['threadinfo']['title'] = unhtmlspecialchars($v['threadinfo']['title']);
$v['threadinfo']['preview'] = unhtmlspecialchars($v['threadinfo']['preview']);
}
if (isset($v['albuminfo'])) {
$v['albuminfo']['title'] = unhtmlspecialchars($v['albuminfo']['title']);
}
if (isset($v['articleinfo'])) {
$v['articleinfo']['preview'] = unhtmlspecialchars($v['articleinfo']['preview']);
}
if (isset($v['bloginfo'])) {
$v['bloginfo']['title'] = unhtmlspecialchars($v['bloginfo']['title']);
$v['bloginfo']['blog_title'] = unhtmlspecialchars($v['bloginfo']['blog_title']);
$v['bloginfo']['preview'] = unhtmlspecialchars($v['bloginfo']['preview']);
}
if (isset($v['blogtextinfo'])) {
$v['blogtextinfo']['preview'] = unhtmlspecialchars($v['blogtextinfo']['preview']);
}
if (isset($v['calendarinfo'])) {
$v['calendarinfo']['preview'] = unhtmlspecialchars($v['calendarinfo']['preview']);
}
if (isset($v['commentinfo'])) {
$v['commentinfo']['preview'] = unhtmlspecialchars($v['commentinfo']['preview']);
}
if (isset($v['discussioninfo'])) {
$v['discussioninfo']['title'] = unhtmlspecialchars($v['discussioninfo']['title']);
$v['discussioninfo']['preview'] = unhtmlspecialchars($v['discussioninfo']['preview']);
}
if (isset($v['eventinfo'])) {
$v['eventinfo']['title'] = unhtmlspecialchars($v['eventinfo']['title']);
$v['eventinfo']['preview'] = unhtmlspecialchars($v['eventinfo']['preview']);
}
if (isset($v['foruminfo'])) {
$v['foruminfo']['title'] = unhtmlspecialchars($v['foruminfo']['title']);
}
if (isset($v['groupinfo'])) {
$v['groupinfo']['name'] = unhtmlspecialchars($v['groupinfo']['name']);
}
if (isset($v['messageinfo'])) {
$v['messageinfo']['preview'] = unhtmlspecialchars($v['messageinfo']['preview']);
}
if (isset($v['nodeinfo'])) {
$v['nodeinfo']['title'] = unhtmlspecialchars($v['nodeinfo']['title']);
$v['nodeinfo']['parenttitle'] = unhtmlspecialchars($v['nodeinfo']['parenttitle']);
}
if (isset($v['postinfo'])) {
$v['postinfo']['preview'] = unhtmlspecialchars($v['postinfo']['preview']);
}
}
}
示例4: draw
/**
* This function is used for drawing the html-code out to the templates.
* It just returns the code
* @param string Optional parameters for the draw-function. There are none supported.
* @return string HTML-CODE to be written into the template.
*/
function draw($param = "") {
global $cds, $c;
if ($cds->is_development) {
$content = '<div style="border:1px solid black; background-color:#e0e0e0;align:center;vertical-align:middle;padding:10px;">Adsene Placeholder. <br>Avoids influences to your adsense statistics.</div>';
} else {
$content = unhtmlspecialchars(getDBCell("pgn_adsense", "ADTEXT", "FKID = $this->fkid"));
$content.= '<script type="text/javascript">bug = new Image(); bug.src=\''.$c["livedocroot"]."sys/hit.php?id=".$this->fkid.'&scope=adsense\';</script>';
}
return $content;
}
示例5: parse_wysiwyg_html
function parse_wysiwyg_html($html, $ishtml = 0, $forumid = 0, $allowsmilie = 1)
{
global $vbulletin;
if ($ishtml) {
// parse HTML into vbcode
// I DON'T THINK THIS IS EVER USED NOW - KIER
$html = convert_wysiwyg_html_to_bbcode($html);
} else {
$html = unhtmlspecialchars($html, 0);
}
// parse the message back into WYSIWYG-friendly HTML
require_once DIR . '/includes/class_bbcode_alt.php';
$wysiwyg_parser =& new vB_BbCodeParser_Wysiwyg($vbulletin, fetch_tag_list());
$wysiwyg_parser->set_parse_userinfo($vbulletin->userinfo);
return $wysiwyg_parser->parse($html, $forumid, $allowsmilie);
}
示例6: api_result_prerender
function api_result_prerender($t, &$r)
{
switch ($t) {
case 'threadbit_announcement':
$r['announcement']['postdate'] = $r['announcement']['startdate'];
break;
case 'FORUMDISPLAY':
if ($r['threadbits'][0]) {
foreach ($r['threadbits'] as $k => &$v) {
$v['thread']['threadtitle'] = unhtmlspecialchars($v['thread']['threadtitle']);
}
} else {
$r['threadbits']['thread']['threadtitle'] = unhtmlspecialchars($r['threadbits']['thread']['threadtitle']);
}
break;
}
}
示例7: api_result_prerender
function api_result_prerender($t, &$r)
{
switch ($t) {
case 'showthread_similarthreadbit':
$r['simthread']['lastreplytime'] = $r['simthread']['lastpost'];
break;
case 'SHOWTHREAD':
$r['thread']['title'] = unhtmlspecialchars($r['thread']['title']);
if ($r['postbits'][0]) {
foreach ($r['postbits'] as $k => &$v) {
$v['post']['title'] = unhtmlspecialchars($v['post']['title']);
}
} else {
$r['postbits']['post']['title'] = unhtmlspecialchars($r['postbits']['post']['title']);
}
break;
}
}
示例8: admin_login_error
function admin_login_error($error, array $args = array())
{
global $vbulletin;
if ($vbulletin->GPC['logintype'] === 'cplogin' or $vbulletin->GPC['logintype'] === 'modcplogin') {
require_once DIR . '/includes/adminfunctions.php';
$url = unhtmlspecialchars($vbulletin->url);
$urlarr = vB_String::parseUrl($url);
$urlquery = $urlarr['query'];
$oldargs = array();
if ($urlquery) {
parse_str($urlquery, $oldargs);
}
$args = array_merge($oldargs, $args);
unset($args['loginerror']);
$argstr = http_build_query($args);
$url = "/{$urlarr['path']}?loginerror=" . $error;
if ($argstr) {
$url .= '&' . $argstr;
}
print_cp_redirect($url);
}
}
示例9: processregistered
protected function processregistered(&$value, $charset)
{
global $VB_API_REQUESTS;
if (is_array($value)) {
foreach ($value as &$el) {
$this->processregistered($el, $charset);
}
}
if (is_string($value)) {
$value = to_utf8($value, $charset, true);
if ($VB_API_REQUESTS['api_version'] < 4) {
$value = unhtmlspecialchars($value, true);
}
}
if ($VB_API_REQUESTS['api_version'] > 1 and is_bool($value)) {
if ($value) {
$value = 1;
} else {
$value = 0;
}
}
}
示例10: smileys
function smileys($text, $specialchars = 0, $calledfrom = 'root')
{
if ($specialchars) {
$text = unhtmlspecialchars($text);
}
$splits = preg_split("/(\\[[\\/]{0,1}code\\])/si", $text, -1, PREG_SPLIT_DELIM_CAPTURE);
$anz = count($splits);
for ($i = 0; $i < $anz; $i++) {
$opentags = 0;
$closetags = 0;
$match = false;
if (strtolower($splits[$i]) == "[code]") {
$opentags++;
for ($z = $i + 1; $z < $anz; $z++) {
if (strtolower($splits[$z]) == "[code]") {
$opentags++;
}
if (strtolower($splits[$z]) == "[/code]") {
$closetags++;
}
if ($closetags == $opentags) {
$match = true;
break;
}
}
}
if ($match == false) {
$splits[$i] = replace_smileys($splits[$i], $calledfrom);
} else {
$i = $z;
}
}
$text = implode("", $splits);
if ($specialchars) {
$text = htmlspecialchars($text);
}
return $text;
}
示例11: fetch_entry_tagbits
/**
* Fetches the tagbits for display in an entry
*
* @param array Blog info
*
* @return string Tag bits
*/
function fetch_entry_tagbits($bloginfo, &$userinfo)
{
global $vbulletin, $vbphrase, $show, $template_hook;
if ($bloginfo['taglist'])
{
$tag_array = explode(',', $bloginfo['taglist']);
$tag_list = array();
foreach ($tag_array AS $tag)
{
$tag = trim($tag);
if ($tag === '')
{
continue;
}
$tag_url = urlencode(unhtmlspecialchars($tag));
$tag = fetch_word_wrapped_string($tag);
($hook = vBulletinHook::fetch_hook('blog_tag_fetchbit')) ? eval($hook) : false;
$templater = vB_Template::create('blog_tagbit');
$templater->register('tag', $tag);
$templater->register('tag_url', $tag_url);
$templater->register('userinfo', $userinfo);
$templater->register('pageinfo', array('tag' => $tag_url));
$tag_list[] = trim($templater->render());
}
}
else
{
$tag_list = array();
}
($hook = vBulletinHook::fetch_hook('blog_tag_fetchbit_complete')) ? eval($hook) : false;
return implode(", ", $tag_list);
}
示例12: deliver
/**
* Delivers the HTML for a given media tag.
* This is the BBCode callback function (wrapped in a public callback, rather).
*
* @param string URL to deliver
* @param string Options to customize delivery
*
* @return string HTML output
*/
public function deliver($url, $options)
{
global $vbphrase, $stylevar;
$url = unhtmlspecialchars($url);
if (!($info = $this->media[$url])) {
if ($this->debug) {
goldbrick_debug('Media Cache', $this->media);
goldbrick_debug('Requested URL', $url);
trigger_error('URL not pre-cached!', E_USER_WARNING);
}
$url = htmlspecialchars_uni($url);
return "<a href=\"{$url}\" target=\"_blank\">{$url}</a>";
}
$info['unique'] = substr($info['hash'], 0, 8);
if ($info['site'] !== 0) {
//$info['profile'] = $this->get_config_profile($info['site']);
} else {
$info['profile'] = $this->get_config_ext_profile($info['profile']);
}
if (is_integer($url)) {
$info = array_merge($info, $this->parse_media_options($options));
}
eval('$content = "' . fetch_template('gb_player') . '";');
if ($this->debug) {
goldbrick_debug('Delivering Media', $url);
echo $content . '<hr />';
}
$cutoff = 1;
#$this->registry->options['gb_expiration_period'] * 86400;
// cleanup
if ($info['dateline'] + $cutoff < TIMENOW) {
if (empty($this->expired)) {
goldbrick_inject_plugin('global_complete', "require_once(DIR . '/goldbrick/plugins/global_complete.php');");
}
$this->expired[] = md5($url);
}
return $content;
}
示例13: page
function page($p = '', $id = 0)
{
$whereSQL = empty($p) && $id ? "`id`='{$id}'" : "`dir`='{$p}'";
$cp = $this->db->getRow("SELECT * FROM `#iCMS@__catalog` WHERE {$whereSQL}");
if (empty($cp)) {
$this->error('error:page');
} else {
$_urlArray = array('link' => $cp->dir, 'url' => $cp->url);
$this->jumptohtml($this->iurl('page', $_urlArray, '', iPATH));
$pd = $this->db->getRow("SELECT * FROM `#iCMS@__page` WHERE cid='{$cp->id}'", ARRAY_A);
if ($pd) {
$this->assign('page', $pd);
$this->assign(array('title' => $pd['title'], 'keywords' => $pd['keyword'], 'description' => $pd['description'], 'body' => unhtmlspecialchars($pd['body']), 'creater' => $pd['creater'], 'updater' => $pd['updater'], 'createtime' => $pd['createtime'], 'updatetime' => $pd['updatetime']));
$this->get['title'] = $pd['title'];
}
if ($this->config['linkmode'] == 'id' || $id) {
$this->iList($cp->id, false);
} elseif ($this->config['linkmode'] == 'title') {
$this->iList($cp->dir, false);
}
return $this->iPrint($cp->tpl_index, 'page');
}
}
示例14: fetch_quotable_posts
/**
* Fetches and prepares posts for quoting. Returned text is BB code.
*
* @param array Array of post IDs to pull from
* @param integer The ID of the thread that is being quoted into
* @param integer Returns the number of posts that were unquoted because of the value of the next argument
* @param array Returns the IDs of the posts that were actually quoted
* @param string Controls what posts are successfully quoted: all, only (only the thread ID), other (only other thread IDs)
* @param boolean Whether to undo the htmlspecialchars calls; useful when returning HTML to be entered via JS
*/
function fetch_quotable_posts($quote_postids, $threadid, &$unquoted_posts, &$quoted_post_ids, $limit_thread = 'only', $unhtmlspecialchars = false)
{
global $vbulletin;
$unquoted_posts = 0;
$quoted_post_ids = array();
$quote_postids = array_diff_assoc(array_unique(array_map('intval', $quote_postids)), array(0));
// limit to X number of posts
if ($vbulletin->options['mqlimit'] > 0) {
$quote_postids = array_slice($quote_postids, 0, $vbulletin->options['mqlimit']);
}
if (empty($quote_postids)) {
// nothing to quote
return '';
}
$hook_query_fields = $hook_query_joins = '';
($hook = vBulletinHook::fetch_hook('quotable_posts_query')) ? eval($hook) : false;
$quote_post_data = $vbulletin->db->query_read_slave("\n\t\tSELECT post.postid, post.title, post.pagetext, post.dateline, post.userid, post.visible AS postvisible,\n\t\t\tIF(user.username <> '', user.username, post.username) AS username,\n\t\t\tthread.threadid, thread.title AS threadtitle, thread.postuserid, thread.visible AS threadvisible,\n\t\t\tforum.forumid, forum.password\n\t\t\t{$hook_query_fields}\n\t\tFROM " . TABLE_PREFIX . "post AS post\n\t\tLEFT JOIN " . TABLE_PREFIX . "user AS user ON (post.userid = user.userid)\n\t\tINNER JOIN " . TABLE_PREFIX . "thread AS thread ON (post.threadid = thread.threadid)\n\t\tINNER JOIN " . TABLE_PREFIX . "forum AS forum ON (thread.forumid = forum.forumid)\n\t\t{$hook_query_joins}\n\t\tWHERE post.postid IN (" . implode(',', $quote_postids) . ")\n\t");
$quote_posts = array();
while ($quote_post = $vbulletin->db->fetch_array($quote_post_data)) {
if ((!$quote_post['postvisible'] or $quote_post['postvisible'] == 2) and !can_moderate($quote_post['forumid']) or (!$quote_post['threadvisible'] or $quote_post['threadvisible'] == 2) and !can_moderate($quote_post['forumid'])) {
// no permission to view this post
continue;
}
$forumperms = fetch_permissions($quote_post['forumid']);
if (!($forumperms & $vbulletin->bf_ugp_forumpermissions['canview']) or !($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewthreads']) or !($forumperms & $vbulletin->bf_ugp_forumpermissions['canviewothers']) and ($quote_post['postuserid'] != $vbulletin->userinfo['userid'] or $vbulletin->userinfo['userid'] == 0) or !verify_forum_password($quote_post['forumid'], $quote_post['password'], false) or in_coventry($quote_post['postuserid']) and !can_moderate($quote_post['forumid']) or in_coventry($quote_post['userid']) and !can_moderate($quote_post['forumid'])) {
// no permission to view this post
continue;
}
if ($limit_thread == 'only' and $quote_post['threadid'] != $threadid or $limit_thread == 'other' and $quote_post['threadid'] == $threadid or $limit_thread == 'all') {
$unquoted_posts++;
continue;
}
$skip_post = false;
($hook = vBulletinHook::fetch_hook('quotable_posts_logic')) ? eval($hook) : false;
if ($skip_post) {
continue;
}
$quote_posts["{$quote_post['postid']}"] = $quote_post;
}
$message = '';
foreach ($quote_postids as $quote_postid) {
if (!isset($quote_posts["{$quote_postid}"])) {
continue;
}
$quote_post =& $quote_posts["{$quote_postid}"];
$originalposter = fetch_quote_username($quote_post['username'] . ";{$quote_post['postid']}");
$postdate = vbdate($vbulletin->options['dateformat'], $quote_post['dateline']);
$posttime = vbdate($vbulletin->options['timeformat'], $quote_post['dateline']);
$pagetext = htmlspecialchars_uni($quote_post['pagetext']);
$pagetext = trim(strip_quotes($pagetext));
($hook = vBulletinHook::fetch_hook('newreply_quote')) ? eval($hook) : false;
eval('$message .= "' . fetch_template('newpost_quote', 0, false) . '\\n";');
$quoted_post_ids[] = $quote_postid;
}
if ($unhtmlspecialchars) {
$message = unhtmlspecialchars($message);
}
return $message;
}
示例15: combinar_csv
//.........这里部分代码省略.........
}
if ($tip_doc == 1) {
$codigo_oem = $this->btt->grabar_oem($doc_us1, $nombre_us1, $direccion_us1, $prim_apell_us1, $seg_apell_us1, $telefono_us1, $mail_us1, $muni_us1);
$tipo_emp_us1 = 2;
$documento_us1 = $codigo_oem;
}
if ($tip_doc == 0) {
$sgd_esp_codigo = $this->arregloEsp[$nombre_us1];
$tipo_emp_us1 = 1;
$documento_us1 = $sgd_esp_codigo;
}
$documento_us2 = "";
$documento_us3 = "";
$mail_us1;
$cc_documento_us1 = "documento";
$grbNombresUs1 = trim($nombre_us1) . " " . trim($prim_apel_us1) . " " . trim($seg_apel_us1);
$conexion =& $this->conexion;
include "{$ruta_raiz}/radicacion/grb_direcciones.php";
// En esta parte registra el envio en la tabla SGD_RENV_REGENVIO
if (!$this->codigo_envio) {
$isql = "select max(SGD_RENV_CODIGO) as MAX FROM SGD_RENV_REGENVIO";
$rs = $this->conexion->query($isql);
if (!$rs->EOF) {
$nextval = $rs->fields['MAX'];
}
$nextval++;
$this->codigo_envio = $nextval;
$this->radi_nume_grupo = $nurad;
$radi_nume_grupo = $this->radi_nume_grupo;
} else {
$nextval = $this->codigo_envio;
}
$dep_radicado = substr($verrad_sal, 4, 3);
$carp_codi = substr($dep_radicado, 0, 2);
$dir_tipo = 1;
$nombre_us = substr(trim($nombre_us), 0, 49);
$direccion_us1 = substr(trim($direccion_us1), 0, 29);
if (!$muni_nomb) {
$muni_nomb = $muni_tmp1;
}
if (!$valor_unit) {
$valor_unit = 0;
}
//
$isql = "INSERT INTO SGD_RENV_REGENVIO (USUA_DOC, SGD_RENV_CODIGO, SGD_FENV_CODIGO, SGD_RENV_FECH,\n\t\t\t\t\t\tRADI_NUME_SAL, SGD_RENV_DESTINO, SGD_RENV_TELEFONO, SGD_RENV_MAIL, SGD_RENV_PESO, SGD_RENV_VALOR,\n\t\t\t\t\t\tSGD_RENV_CERTIFICADO, SGD_RENV_ESTADO, SGD_RENV_NOMBRE, SGD_DIR_CODIGO, DEPE_CODI, SGD_DIR_TIPO,\n\t\t\t\t\t\tRADI_NUME_GRUPO, SGD_RENV_PLANILLA, SGD_RENV_DIR, SGD_RENV_PAIS, SGD_RENV_DEPTO, SGD_RENV_MPIO,\n\t\t\t\t\t\tSGD_RENV_TIPO, SGD_RENV_OBSERVA,SGD_DEPE_GENERA)\n\t\t\t\t\t\tVALUES\n\t\t\t\t\t\t({$usua_doc}, {$nextval}, 101, " . $this->btt->sqlFechaHoy . ", {$nurad}, '{$muni_nomb}', '{$telefono_us1}', '{$mail}','',\n\t\t\t\t\t\t'{$valor_unit}', 0, 1, '{$nombre_us}', NULL, {$dependencia}, '{$dir_tipo}', " . $this->radi_nume_grupo . ", '00',\n\t\t\t\t\t\t'{$direccion_us1}', '{$pais}','{$dpto_nombre}', '{$muni_nombre}', 1, 'Masiva grupo " . $this->radi_nume_grupo . "',\n\t\t\t\t\t\t{$dependencia}) ";
$rs = $this->conexion->conn->Execute($isql);
if (!$rs) {
$this->conexion->conn->RollbackTrans();
die("<span class='etextomenu'>No se ha podido insertar la información en SGD_RENV_REGENVIO.");
}
/*
* Registro de la clasificacion TRD
*/
$isql = "INSERT INTO SGD_RDF_RETDOCF(USUA_DOC, SGD_MRD_CODIGO, SGD_RDF_FECH, RADI_NUME_RADI, DEPE_CODI, USUA_CODI)\n\t\t\t\t\t\tVALUES({$usua_doc}, {$codiTRD}," . $this->btt->sqlFechaHoy . ", {$nurad}, '{$dependencia}', {$codusuario} )";
$rs = $this->conexion->query($isql);
if (!$rs) {
$this->conexion->conn->RollbackTrans();
die("<span class='etextomenu'>No se ha podido insertar la informaci&ocute;n en SGD_RENV_REGENVIO");
}
} else {
$sec = $ii;
$sec = str_pad($sec, 5, "X", STR_PAD_LEFT);
$nurad = date("Y") . $dependencia . $sec . "1X";
}
// Comentariada por HLP. Cambiar , por ;
fputs($fp, implode(",", $this->datos[$ii]) . ",{$nurad}," . date("d/m/Y") . "," . str_ireplace(",", " ", $b->traducefecha(date("m/d/Y"))) . " \n");
//fputs ($fp,implode( ";", $this->datos[$ii]).";$nurad;".date("d/m/Y")."\n");
$contador = $ii + 1;
echo "<tr><td class='listado2'>{$contador}</td><td class='listado2' >{$nurad}</td>\n\t\t \t <td class='listado2'>" . unhtmlspecialchars($nombre_us) . "</td><td class='listado2'>" . unhtmlspecialchars($direccion_us1) . "</td>\n\t\t \t<td class='listado2' >{$dpto_nombre}</td><td class='listado2'>{$muni_nombre}</td>\n\t\t \t<td class='listado2'>{$numeroExpediente}</td></tr>";
if (connection_status() != 0) {
echo "<h1>Error de conexión</h1>";
$objError = new CombinaError(NO_DEFINIDO);
echo $objError->getMessage();
die;
}
$nombPdf = iconv($odt->codificacion($nombre_us), 'ISO-8859-1', $nombre_us);
$dirPdf = iconv($odt->codificacion($direccion_us1), 'ISO-8859-1', $direccion_us1);
$dptoPdf = iconv($odt->codificacion($dpto_nombre), 'ISO-8859-1', $dpto_nombre);
$muniPdf = iconv($odt->codificacion($muni_nombre), 'ISO-8859-1', $muni_nombre);
$data = array_merge($data, array(array('#' => $contador, 'Radicado' => $nurad, 'Nombre' => $nombPdf, 'Direccion' => $dirPdf, 'Departamento' => $dptoPdf, 'Municipio' => $muniPdf)));
$arrRadicados[] = $nurad;
}
fclose($fp);
echo "</table>";
echo "<span class='info'>Número de registros {$contador}</span>";
$this->pdf->ezTable($data);
$this->pdf->ezText("\n", 15, $justCentro);
$this->pdf->ezText("Total Registros {$contador} \n", 15, $justCentro);
$pdfcode = $this->pdf->ezOutput();
$fp = fopen($this->arcPDF, 'wb');
fwrite($fp, $pdfcode);
fclose($fp);
if ($this->definitivo == "si") {
$objHist->insertarHistorico($arrRadicados, $dependencia, $codusuario, $dependencia, $codusuario, "Radicado insertado del grupo de masiva {$radi_nume_grupo}", 30);
}
$this->resulComb = $data;
} else {
exit("No se pudo crear el archivo {$this->archivo_insumo}");
}
}