Changeset 16 for npc_list.php


Ignore:
Timestamp:
Sep 30, 2008, 10:24:14 PM (16 years ago)
Author:
maron
Message:

Přidáno zkontrolování adminem

File:
1 edited

Legend:

Unmodified
Added
Removed
  • npc_list.php

    r1 r16  
    103103        NOT EXISTS(SELECT 1 FROM npc_text sub WHERE sub.Language <> 0 AND sub.entry = items.entry) ", $_SESSION['limitx'].','.$_SESSION['limity'],'notran');
    104104      }
    105 
     105     
     106      if(array_key_exists('nocheck', $_GET)) {
     107        echo '<a Title="Zobrazit npc_texty podle vlasního filtru" href="npc_list.php?filter">Filtr npc_textù</a> ->
     108        <a Title="Zatím nezkontrolované npc_texty" href="npc_list.php?nocheck">Nezkontrolované npc_texty</a><br><br>';
     109
     110          WritePages('npc_list.php?nocheck'," WHERE Language <> 0 AND npc_text.Complete = '1' AND admin_check <> 1");
     111
     112        Write_npc_text("SELECT *, (SELECT user.user FROM user WHERE user.id = npc_text.user) as User
     113         FROM npc_text  WHERE Language <> 0 AND npc_text.Complete = '1' AND admin_check <> 1", $_SESSION['limitx'].','.$_SESSION['limity'],'nocheck');
     114      }
     115
     116      if(array_key_exists('check', $_GET)) {
     117        echo '<a Title="Zobrazit npc_texty podle vlasního filtru" href="npc_list.php?filter">Filtr npc_textù</a> ->
     118        <a Title="Zkontrolované npc_texty" href="npc_list.php?nocheck">Zkontrolované npc_texty</a><br><br>';
     119
     120          WritePages('npc_list.php?nocheck'," WHERE Language <> 0 AND npc_text.Complete = '1' AND admin_check = 1");
     121
     122        Write_npc_text("SELECT *, (SELECT user.user FROM user WHERE user.id = npc_text.user) as User
     123         FROM npc_text  WHERE Language <> 0 AND npc_text.Complete = '1' AND admin_check = 1", $_SESSION['limitx'].','.$_SESSION['limity'],'check');
     124      }
    106125      if(array_key_exists('notvote', $_GET)) {
    107126        echo '<a Title="Zobrazit npc_texty podle vlasního filtru" href="npc_list.php?filter">Filtr npc_textù</a> ->
Note: See TracChangeset for help on using the changeset viewer.