示例#1
0
文件: setup.php 项目: mmr/b1n
/*
 * $Id: setup.php,v 1.3 2005/09/11 23:29:43 mmr Exp $
 * mmr 2005-02-10
 */
// Headers
header('Expires: Wed, 06 Aug 2003 15:50:00 GMT');
header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
// HTTP/1.1
header('Cache-Control: no-store, no-cache, must-revalidate');
header('Cache-Control: post-check=0, pre-check=0', false);
header('Cache-Control: private');
// HTTP/1.0
header('Pragma: no-cache');
// Getting vars from $_REQUEST
Data::getVar('id', $d['id']);
Data::getVar('action', $d['action']);
Data::getVar('language', $d['language']);
Data::getVar('author', $d['author']);
Data::getVar('title', $d['title']);
Data::getVar('source', $d['source']);
Data::getVar('seccode', $d['seccode']);
// Rewrite
if (b1n_REWRITE_ON) {
    define('b1n_URL', 'http://' . $_SERVER['HTTP_HOST']);
    define('b1n_URL_ACTION', b1n_URL . '/' . $_SERVER['SCRIPT_NAME']);
    define('b1n_URL_ID', b1n_URL . '/');
} else {
    define('b1n_URL', 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['SCRIPT_NAME']);
    define('b1n_URL_ID', b1n_URL . '?id=');
}
示例#2
0
文件: left.inc.php 项目: mmr/b1n
<?php

/*
 * $Id: left.inc.php,v 1.3 2005/09/11 23:29:43 mmr Exp $
 * mmr 2005-01-28
 */
$q = Data::getVar('q', $d['q']);
?>
<div id='links'>
  <a href='<?php 
echo b1n_URL;
?>
'
    title='Novo Paste'>Novo Paste</a> |
  <a href='<?php 
echo b1n_URL_ACTION;
?>
?action=random'
    title='Aleatório'>Aleat&oacute;rio</a>

  <form id='fs' method='get' action='<?php 
echo b1n_URL;
?>
'>
  <p>
    <b>Busca</b><br />
      <input type='hidden' name='action' value='list' />
      <input type='text' name='q' value='<?php 
echo $d['q'];
?>
'
示例#3
0
文件: list.inc.php 项目: mmr/b1n
<?php

// $Id: list.inc.php,v 1.10 2005/02/07 04:05:41 mmr Exp $
Data::getVar('pg', $d['pg']);
Data::getVar('order', $d['order']);
Data::getVar('q', $d['q']);
Data::getVar('orderby', $d['orderby']);
$d['per_page'] = b1n_SEARCH_PER_PAGE;
require b1n_PATH_LIB . '/Search.lib.php';
$search = new Search($sql);
echo $search->show($d);