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