• Main Page
  • Related Pages
  • Namespaces
  • Data Structures
  • Files
  • Examples
  • File List
  • Globals

cms/inheritedinfo.lib.php

Go to the documentation of this file.
00001 <?php
00002 if(!defined('__PRAGYAN_CMS'))
00003 { 
00004         header($_SERVER['SERVER_PROTOCOL'].' 403 Forbidden');
00005         echo "<h1>403 Forbidden<h1><h4>You are not authorized to access the page.</h4>";
00006         echo '<hr/>'.$_SERVER['SERVER_SIGNATURE'];
00007         exit(1);
00008 }
00028 function inheritedinfo($array) {
00029 
00030         $query = "SELECT `page_inheritedinfoid` FROM `" . MYSQL_DATABASE_PREFIX . "pages` WHERE `page_id` IN(" . join($array, ",") . ")";
00031         $data = mysql_query($query);
00032         $inheritedinfoid = -1;
00033         while ($temp = mysql_fetch_assoc($data))
00034                 if ($temp['page_inheritedinfoid'] != -1)
00035                         $inheritedinfoid = $temp['page_inheritedinfoid'];
00036         if ($inheritedinfoid != -1) {
00037                 $query = "SELECT `page_inheritedinfocontent` FROM `" . MYSQL_DATABASE_PREFIX . "inheritedinfo` WHERE `page_inheritedinfoid` = $inheritedinfoid";
00038                 $data = mysql_query($query);
00039                 $temp = mysql_fetch_assoc($data);
00040         }
00041         $inheritedinfocontent = $temp['page_inheritedinfocontent'];
00042         return $inheritedinfocontent;
00043 }
00044 

Generated on Sun Jan 2 2011 04:55:31 for Pragyan CMS by  doxygen 1.7.1