Exemplo n.º 1
0
function SaveCopyToArchive($dbi, $pagename, $pagehash)
{
    global $ArchivePageStore;
    $adbi = OpenDataBase($ArchivePageStore);
    InsertPage($adbi, $pagename, $pagehash);
}
Exemplo n.º 2
0
//<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
//<!-- $Id: wiki.php,v 1.1 2004/09/28 21:48:40 gcasse Exp $ -->
// Gilles Casse (2003-01-21) for the Oralux website
require_once "include/webpage.php";
ini_set("output_buffering", "1");
ob_start();
/*
      The main page, i.e. the main loop.
      This file is always called first.
*/
if (!defined('WIKI_ADMIN')) {
    // w_index.php not included by w_admin.php?
    include "w_lib/config.php";
    include "w_lib/stdlib.php";
    // All requests require the database
    $dbi = OpenDataBase($WikiPageStore);
}
// Gilles Casse (2003-01-21) for the Oralux website.
// Limited features at the moment (for translations).
// Allow choice of submit buttons to determine type of search:
// if (isset($searchtype) && ($searchtype == 'full'))
//      $full = $searchstring;
//      elseif (isset($searchstring))     // default to title search
//      $search = $searchstring;
if (isset($edit)) {
    include "w_lib/editpage.php";
} elseif (isset($post)) {
    include "w_lib/savepage.php";
} elseif (isset($diff)) {
    include "w_lib/diff.php";
} else {
Exemplo n.º 3
0
function GetHitCount($dbi, $pagename)
{
    return;
    // kluge: we ignore the $dbi for hit counting
    global $WikiDB;
    $hcdb = OpenDataBase($WikiDB['hitcount']);
    if (dbmexists($hcdb['active'], $pagename)) {
        // increase the hit count
        $count = dbmfetch($hcdb['active'], $pagename);
        return $count;
    } else {
        return 0;
    }
    CloseDataBase($hcdb);
}