/* Decoded by unphp.net */ ?>loadLibrary("gw", "generalWorks", "generalworks.php"); $this->loadLibrary("related", "related", "related.php"); // library that handles all related links functions (add,modify,delete,fetch) } function index() { $id = $_REQUEST['id']; if (empty($id)) $this->ses->redirect("index.php?notfound=1","refresh"); if (!empty($_REQUEST['saveOrder'])) $this->related->saveOrder($id,'page'); if (!empty($_REQUEST['hideShowLink'])) $this->related->hideShowLink($_REQUEST['linkid'], $_REQUEST['show']); if (!empty($_REQUEST['editpage'])) { $this->related->editpage($id,'page'); // Changing Tabs $s_tab = $_REQUEST['tab']; if ($s_tab=='index') $this->ses->redirect("edit.php?id=".$id,"refresh"); elseif ($s_tab=='images') $this->ses->redirect("images.php?id=".$id,"refresh"); } return array_merge($this->getData($id),$this->related->getData('page',$id)); } function getData($id, $err=null) { $data = array( 'baseurl' => $this->baseurl, 'error' => $this->gw->getError($err), 'id' => $id ); // select page title titles $strSQL = "select heading from cmspage where pageid = $id"; $rstitle = $this->db->query($strSQL); if (!empty($rstitle)) { $rstitlerow = $rstitle->row_array(); $data['parentname'] = $rstitlerow['heading']; } return $data; } } $page = new cmsRelatedPages(); extract($page->index(),EXTR_OVERWRITE); ?>