Project

General

Profile

« Previous | Next » 

Revision 944

Added by Matthias about 15 years ago

added skinable Admin Interface

View differences:

functions.php
741 741
		if(isset($template_name)) {
742 742
			if(!isset($template_license)) { $template_license = 'GNU General Public License'; }
743 743
			if(!isset($template_platform) AND isset($template_designed_for)) { $template_platform = $template_designed_for; }
744
			if(!isset($template_function)) { $template_function = 'template'; }
744 745
			// Check that it doesn't already exist
745 746
			$result = $database->query("SELECT addon_id FROM ".TABLE_PREFIX."addons WHERE directory = '".$template_directory."' LIMIT 0,1");
746 747
			if($result->numRows() == 0) {
747 748
				// Load into DB
748 749
				$query = "INSERT INTO ".TABLE_PREFIX."addons ".
749
				"(directory,name,description,type,version,platform,author,license) ".
750
				"(directory,name,description,type,function,version,platform,author,license) ".
750 751
				"VALUES ('$template_directory','$template_name','".addslashes($template_description)."','template',".
751
				"'$template_version','$template_platform','$template_author','$template_license')";
752
				"'$template_function','$template_version','$template_platform','$template_author','$template_license')";
752 753
				$database->query($query);
753 754
			}
754 755
		}

Also available in: Unified diff