Beispiel #1
0
         }
         log::insert("Data Entry: Object: Successful update", $engine->cleanGet['MYSQL']['objectID'], $form['ID']);
     } else {
         if (isset($engine->cleanPost['MYSQL']['projectForm'])) {
             $engine->cleanPost['MYSQL']['projects'] = isset($engine->cleanPost['MYSQL']['projects']) ? $engine->cleanPost['MYSQL']['projects'] : array();
             // Add All the new ones
             if (objects::addProjects($engine->cleanGet['MYSQL']['objectID'], $engine->cleanPost['MYSQL']['projects']) === FALSE) {
                 throw new Exception("Error adding projects to Object.");
             }
             log::insert("Data Entry: Object: Successful Project Update", $engine->cleanGet['MYSQL']['objectID'], $form['ID']);
         }
     }
 }
 // build the files list for displaying
 if (isset($engine->cleanGet['MYSQL']['objectID'])) {
     if (($filesViewer = files::buildFilesPreview($engine->cleanGet['MYSQL']['objectID'])) === FALSE) {
         throw new Exception("Error building files preview.");
     }
     localvars::add("filesViewer", $filesViewer);
     //////////
     // Children Tab Stuff
     if (($formList = listGenerator::generateFormSelectList($engine->cleanGet['MYSQL']['objectID'])) === FALSE) {
         errorHandle::errorMsg("Error getting Forms Listing");
         throw new Exception('Error');
     } else {
         localvars::add("formList", $formList);
     }
     localVars::add("childrenList", listGenerator::generateChildList($engine->cleanGet['MYSQL']['objectID']));
     // Children Tab Stuff
     //////////
 }