Code Search for Developers
 
 
  

admin.old.php from ECP (EliteCore Project) at Krugle


Show admin.old.php syntax highlighted

<?php
switch ($_GET['op']) {
	case "delete" :
		$TA = new TA();
		$TA->addQuery(TA :: DELETE, "xcs_module_comments");
		$TA->WHERE("`id`='".$_GET['id']."'");
		$TA->LIMIT(1);
		$TA->Execute();
		$TA->End();
		Engine :: Redirect("index.php?file=admin&module=comments");
		break;
	case "change_approve" :
		if ($_GET['approved'] == 1) {
			$approved = 0;
		} else {
			$approved = 1;
		}
		$TA = new TA();
		$TA->addQuery(TA :: UPDATE, "xcs_module_comments");
		$TA->addParam("approved", TA :: NUMBER, $approved);
		$TA->WHERE("`id`='".$_GET['id']."'");
		$TA->LIMIT(1);
		$TA->Execute();
		$TA->End();
		Engine :: Redirect("index.php?file=admin&module=comments");
		break;
	default :
		$comments = $currentModule->object->getNotApprovedComments();
		$currentModule->addContent("content_admin.php");
		$currentModule->registerVariable($comments, "comments");
}
?>



See more files for this project here

ECP (EliteCore Project)

EliteCore Project is a PHP5.1/Javascript/AJAX/XHTML/CSS framework for creating WEB 2.0 applications and services.The basic open-source instalation can be also used as an interactive personal page or BLOG.This project uses the latest features available.

Project homepage: http://sourceforge.net/projects/elitecore
Programming language(s): JavaScript,PHP,XML
License: cpl

  language/
    czech.xml
    english.xml
  templates/
    default/
      images/
        0.png
        1.png
        delete.png
      admin.php
      content.php
      content_admin.php
      form.php
  admin.old.php
  class.old.php
  config.xml
  install.sql.tpl
  module.old.php
  subroutines.php
  uninstall.sql.tpl