</td></tr> <tr><td class="title" ><?php i18n('BACKUP_OF'); ?> :</td><td> <?php if (isset($id)) { echo '<a target="_blank" href="' . find_url($url, $parent) . '">' . find_url($url, $parent) . '</a>'; } ?> </td></tr> <tr><td class="title" ><?php i18n('DATE'); ?> :</td><td><?php echo lngDate($pubDate); ?> </td></tr> <tr><td class="title" ><?php i18n('TAG_KEYWORDS'); ?> :</td><td><em><?php echo $metak; ?> </em></td></tr> <tr><td class="title" ><?php i18n('META_DESC'); ?> :</td><td><em><?php echo $metad; ?>
} //check if its an ip address if (do_reg($d, $ip_regex)) { if ($d == $_SERVER['REMOTE_ADDR']) { $d = i18n_r('THIS_COMPUTER') . ' (<a href="' . $whois_url . $d . '" target="_blank" >' . $d . '</a>)'; } else { $d = '<a href="' . $whois_url . $d . '" target="_blank" >' . $d . '</a>'; } } //check if its an email address if (check_email_address($d)) { $d = '<a href="mailto:' . $d . '">' . $d . '</a>'; } //check if its a date if ($n === 'date') { $d = lngDate($d); } echo stripslashes($d); echo ' <br />'; } echo "</p></li>"; $count++; } } ?> </ol> </div> </div> <div id="sidebar" >
?> </a></li> <?php } ?> </ul> </div> </div> <?php if ($url != '') { ?> <p class="backuplink" ><?php if (isset($pubDate)) { echo sprintf(i18n_r('LAST_SAVED'), '<em>' . $author . '</em>') . ' ' . lngDate($pubDate) . ' '; } if (file_exists(GSBACKUPSPATH . 'pages/' . $url . '.bak.xml')) { echo '• <a href="backup-edit.php?p=view&id=' . $url . '" target="_blank" >' . i18n_r('BACKUP_AVAILABLE') . '</a>'; } ?> </p> <?php } ?> </form> <?php if (isset($EDTOOL)) { $EDTOOL = returnJsArray($EDTOOL);
i18n('ARCHIVE_DATE'); ?> </th><th style="text-align:right;" ><?php i18n('FILE_SIZE'); ?> </th><th></th></tr> <?php $count = "0"; $path = tsl(GSBACKUPSPATH . 'zip/'); $filenames = getFiles($path); natsort($filenames); rsort($filenames); foreach ($filenames as $file) { if ($file[0] != ".") { $timestamp = explode('_', $file); $name = lngDate($timestamp[0]); clearstatcache(); $ss = stat($path . $file); $size = fSize($ss['size']); echo '<tr> <td><a title="' . i18n_r('DOWNLOAD') . ' ' . $name . '" href="download.php?file=' . $path . $file . '&nonce=' . get_nonce("archive", "download.php") . '">' . $name . '</a></td> <td style="width:70px;text-align:right;" ><span>' . $size . '</span></td> <td class="delete" ><a class="delconfirm" title="' . i18n_r('DELETE_ARCHIVE') . ': ' . $name . '?" href="deletefile.php?zip=' . $file . '&nonce=' . get_nonce("delete", "deletefile.php") . '">×</a></td> </tr>'; $count++; } } ?> </table> <p><em><b><span id="pg_counter"><?php echo $count;
function get_cat_list($cat, $page) { $cfile = array(); $cfile = get_filecat($cat); $numitems = 7; //determine offset $page_ = $page - 1; $total = count($cfile); $offset = $page_ * $numitems; $total_pages = ceil($total / $numitems); for ($i = $offset; $i < $offset + $numitems and $i < $total; $i++) { $file = CONTENTPATH . $cfile[$i] . '.xml'; $data = getXML($file); $title = stripslashes(htmlspecialchars_decode($data->title, ENT_QUOTES)); $intro = stripslashes(htmlspecialchars_decode($data->intro, ENT_QUOTES)); $parent = stripslashes(htmlspecialchars_decode($data->parent, ENT_QUOTES)); $author_edit = stripslashes(htmlspecialchars_decode($data->author_edit, ENT_QUOTES)); $date = stripslashes(htmlspecialchars_decode($data->pubDate, ENT_QUOTES)); $url = stripslashes(htmlspecialchars_decode($data->url, ENT_QUOTES)); $metad = stripslashes(htmlspecialchars_decode($data->metad, ENT_QUOTES)); $imgb = imagenesHTML(html_entity_decode(strip_decode($intro))); ?> <span class="blog_title"><a href="<?php echo find_url($data->url, $data->parent); ?> "><?php echo $title; ?> </a></span> <br /><span><i><?php echo lngDate($date); ?> </i> | <?php echo $parent; ?> </span> <div class="blog_item"> <img src="<?php echo $imgb[0]; ?> "> <?php $patron = "<img[^<>]*/>"; echo eregi_replace($patron, "", $intro); ?> <div class="clear"></div> </div> <?php } echo '<div class="pagination-links">'; if ($page_ > 0) { echo '<a href="?page=' . $page_ . '"> Anterior</a> '; } for ($i = 1; $i <= $total_pages; $i++) { if ($page == $i) { echo '<span class="current">Pagina ' . $page . '</span> '; } else { echo ' <a href="?page=' . $i . '">' . $i . '</a>'; } } $page++; if (++$page_ < $total_pages) { echo ' <a href="?page=' . $page . '"> Siguiente </a>'; } echo "</div>"; }
echo get_nonce("delete", "deletefile.php"); ?> " title="<?php i18n('DELETEPAGE_TITLE'); ?> " ><?php i18n('ASK_DELETE'); ?> </a><?php } ?> </p> <small><?php if (isset($pubDate)) { echo i18n_r('LAST_SAVED') . ': ' . lngDate($pubDate) . ' '; } if (file_exists(GSBACKUPSPATH . 'pages/' . $url . '.bak.xml')) { echo '- <a href="backup-edit.php?p=view&id=' . $url . '" >' . i18n_r('BACKUP_AVAILABLE') . '</a>'; } ?> </small> </form> <?php if (defined('GSEDITORHEIGHT')) { $EDHEIGHT = GSEDITORHEIGHT . 'px'; } else { $EDHEIGHT = '500px'; } if (defined('GSEDITORLANG')) {
echo get_nonce("delete", "deletefile.php"); ?> " title="<?php echo $i18n['DELETEPAGE_TITLE']; ?> " ><?php echo $i18n['ASK_DELETE']; ?> </a><?php } ?> </p> <small><?php if (isset($pubDate)) { echo $i18n['LAST_SAVED'] . ': ' . lngDate(@$pubDate) . ' '; } if (file_exists(GSBACKUPSPATH . 'pages/' . @$url . '.bak.xml')) { echo '- <a href="backup-edit.php?p=view&id=' . @$url . '" target="_blank" >' . $i18n['BACKUP_AVAILABLE'] . '</a>'; } ?> </small> </form> <?php if (defined('GSEDITORHEIGHT')) { $EDHEIGHT = GSEDITORHEIGHT . 'px'; } else { $EDHEIGHT = '500px'; } if (defined('GSEDITORLANG')) {