Revision [16828]

This is an old revision of UnCategoryAction made by Tn5Mzv on 2007-05-31 10:52:50.

 

Uncategory Actions


actions/uncategory.php
%%(php)
<?php
define('PAGE_HEADING',"Uncategory Pages");
define('TEXT_CAPTION',"This is a list of pages without category on the wiki so that your can categorized");

if ($cattag = $_REQUEST["wakka"])
{
$tmp_sql_like = ; $str = ;

if (!isset($col)) $col=1;
if (!isset($compact)) $compact=0;
if (!isset($page)) $page=$this->getPageTag();
$tag = $this->getPageTag();

$categorys = $this->LoadAll("select tag from ".$this->config["table_prefix"]."pages where latest = 'Y' and body like '%{{category%'");

foreach ($categorys as $i)
{
$tmp_sql_like .= " and body not like '%" . $i['tag'] . "%'";
}

$results = $this->LoadAll("select tag from ".$this->config["table_prefix"]."pages where latest = 'Y' and tag !='" .$tag. "' " .$tmp_sql_like);

if ($results)
{
if (!$compact) $str .= ' pages: <br /><table '.$class.' width="100%"><tr>';
else $str .= '<div '.$class.'><ul>';

$count = 0;
$pagecount = 0;
$list = array();

echo $this->Format('

' . PAGE_HEADING . '


'. TEXT_CAPTION. '
 

');

foreach ($results as $i => $cpage)
check page distint current page and user write privileges
if($cpage['tag'] != $page
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki