function delete() { // delete link in childs objects foreach ($this->content as $link) { $content = $this->loadContentObj($link); if (!is_object($content)) { continue; } $content->parent = ""; superprint($content->title); superprint($content->parent); $content->save(); } //delete link in parent if (is_file($this->parent)) { $parent = file_load_object($this->parent); $parent->removeContent($this->id); $parent->setDefaultID(); $parent->save(); //superprint($parent); } // delete section object $obj = $this->getFileName(); if (is_file($obj)) { copy($obj, BACKUP_FOLDER . "/" . $this->id . ".obj"); unlink($obj); } }
<?php superprint($_GET); $form_content_file = "system/process/admin/process/forms/edit_form_body.php"; //include base template for edit/design objects include "system/include/admin/templates/object_edit_design_properties.php";
<?php /* * To change this license header, choose License Headers in Project Properties. * To change this template file, choose Tools | Templates * and open the template in the editor. */ superprint($_POST); superprint($_GET); include "system/include/admin/filters/http_sent_vars.php"; include "system/include/admin/filters/http_get_vars.php"; include "system/include/admin/filters/http_post_vars.php"; superprint($object_id);
* To change this template file, choose Tools | Templates * and open the template in the editor. */ /** libs */ include "system/config/const.php"; include "system/include/libs/bases.php"; include "system/include/libs/classes.php"; include "system/include/libs/boot.php"; include "system/include/libs/menus.php"; $siteFileObj = OBJECTS_FOLDER . "/site/site.obj"; $site = file_load_object($siteFileObj); $obj = $site->getContent(); $image = new image("test"); $upload_filename = "df sdçsd_çèsdfhsdn dsjflskdfjd .png"; $image->init_from_upload_filename($upload_filename); superprint($image->getContentFileName()); /* $object_file=OBJECTS_FOLDER."/process/admin_data_index.obj"; superprint($object_file); $object= file_load_object($object_file); $object_file=OBJECTS_FOLDER."/process/admin_data_edit.obj"; superprint($object_file); $object= file_load_object($object_file); */ /* function fileWriteHtm($filename, $data) { $html = stripslashes($data); $file = fopen($filename, "w+"); //echo $txt;