Jelajahi Sumber

Remove unused scripts.

Julio Montoya 9 tahun lalu
induk
melakukan
6a1d7bee48
3 mengubah file dengan 13 tambahan dan 146 penghapusan
  1. 13 12
      main/course_info/maintenance.php
  2. 0 82
      main/course_info/postpone.php
  3. 0 52
      main/coursecopy/backup.php

+ 13 - 12
main/course_info/maintenance.php

@@ -4,9 +4,7 @@
  * @author Created on 18 October 2006 by Elixir Interactive http://www.elixir-interactive.com
  * @package chamilo.course_info
  */
-/**
- * Code
- */
+
 require_once '../inc/global.inc.php';
 $current_course_tool  = TOOL_COURSE_MAINTENANCE;
 $this_section = SECTION_COURSES;
@@ -20,16 +18,19 @@ echo Display::page_header($nameTools);
 
 ?>
 
-<div class="sectiontitle"><?php Display::display_icon('save_import.gif', get_lang('Backup')); ?>&nbsp;&nbsp;<a href="../coursecopy/backup.php?<?php echo api_get_cidreq(); ?>"><?php echo get_lang('Backup'); ?></a></div>
+<div class="sectiontitle">
+    <?php Display::display_icon('save_import.gif', get_lang('Backup')); ?>&nbsp;&nbsp;
+    <?php echo get_lang('Backup'); ?>
+</div>
 <div class="sectioncomment">
-		<ul>
-		    <li><a href="../coursecopy/create_backup.php?<?php echo api_get_cidreq(); ?>"><?php echo get_lang('CreateBackup'); ?></a><br/>
-		    <?php echo get_lang('CreateBackupInfo'); ?>
-		    </li>
-		    <li><a href="../coursecopy/import_backup.php?<?php echo api_get_cidreq(); ?>"><?php echo get_lang('ImportBackup'); ?></a><br/>
-		    <?php echo get_lang('ImportBackupInfo'); ?>
-		    </li>
-	    </ul>
+    <ul>
+        <li><a href="../coursecopy/create_backup.php?<?php echo api_get_cidreq(); ?>"><?php echo get_lang('CreateBackup'); ?></a><br/>
+        <?php echo get_lang('CreateBackupInfo'); ?>
+        </li>
+        <li><a href="../coursecopy/import_backup.php?<?php echo api_get_cidreq(); ?>"><?php echo get_lang('ImportBackup'); ?></a><br/>
+        <?php echo get_lang('ImportBackupInfo'); ?>
+        </li>
+    </ul>
 </div>
 
 <div class="sectiontitle"><?php Display::display_icon('copy.gif', get_lang('CopyCourse')); ?>&nbsp;&nbsp;<a href="../coursecopy/copy_course.php?<?php echo api_get_cidreq(); ?>"><?php echo get_lang('CopyCourse'); ?></a></div>

+ 0 - 82
main/course_info/postpone.php

@@ -1,82 +0,0 @@
-<?php
-/* For licensing terms, see /license.txt */
-
-// TODO: Is this file needed anymore?
-
-/**
- * MODIFY COURSE INFO
- * Modify course settings like:
- * 1. Course title
- * 2. Department
- * 3. Course description URL in the university web
- * Course code cannot be modified, because it gives the name for the
- * course database and course web directory. Professor cannot be
- * changed either as it determines who is allowed to modify the course.
- *
- * @author Thomas Depraetere
- * @author Hugues Peeters
- * @author Christophe Gesche
- *
- * @package chamilo.course_info
- */
-/**
- * Code
- */
-
-/*	INIT SECTION */
-
-// Language file that needs to be included
-$language_file = 'postpone';
-
-//$interbreadcrumb[] = array('url' => 'index.php', 'name' => get_lang('Admin'));
-$htmlHeadXtra[] = "
-<style type=\"text/css\">
-<!--
-.month {font-weight : bold;color : #FFFFFF;background-color : #4171B5;padding-left : 15px;padding-right : 15px;}
-.content {position: relative; left: 25px;}
--->
-</style>
-<STYLE media=\"print\" type=\"text/css\">
-TD {border-bottom: thin dashed Gray;}
-</STYLE>";
-
-require '../inc/global.inc.php';
-$this_section = SECTION_COURSES;
-
-Display::display_header($nameTools, 'Settings');
-
-//include api_get_path(CONFIGURATION_PATH).'postpone.conf.php';
-
-$nameTools					= get_lang('Postpone');
-$TABLECOURSE				= Database::get_main_table(TABLE_MAIN_COURSE);
-$is_allowedToEdit			= $is_courseAdmin;
-$currentCourseID			= $_course['sysCode'];
-$currentCourseRepository	= $_course['path'];
-
-
-$sqlCourseExtention 			= "SELECT last_visit, last_edit, creation_date, expiration_date FROM ".$TABLECOURSE." WHERE code = '".$_cid."'";
-$resultCourseExtention 			= Database::query($sqlCourseExtention);
-$currentCourseExtentionData 	= Database::fetch_array($resultCourseExtention);
-$currentCourseLastVisit 		= $currentCourseExtentionData['last_visit'];
-$currentCourseLastEdit			= $currentCourseExtentionData['last_edit'];
-$currentCourseCreationDate 		= $currentCourseExtentionData['creation_date'];
-$currentCourseExpirationDate	= $currentCourseExtentionData['expiration_date'];
-// HERE YOU CAN EDIT YOUR RULES TO EXTEND THE LIFE OF COURSE
-
-// $newCourseExpirationDate	= now() + $extendDelay
-
-
-
-?>
-<h3>
-	<?php echo $nameTools ?>
-</h3>
-
-This script  would be  called  by
-	professor,
-	or administrator,
-	or other  script
-to give more time to a course before expiration.
-
-<?php
-Display::display_footer();

+ 0 - 52
main/coursecopy/backup.php

@@ -1,52 +0,0 @@
-<?php
-/* For licensing terms, see /license.txt */
-/**
- * Create a backup.
- *
- * @author Bart Mollet <bart.mollet@hogent.be>
- * @package chamilo.backup
- */
-/**
- * Code
- */
-
-// Including the global initialization file
-require_once '../inc/global.inc.php';
-$current_course_tool  = TOOL_COURSE_MAINTENANCE;
-
-api_protect_course_script(true);
-api_block_anonymous_users();
-
-// Check access rights (only teachers allowed)
-if (!api_is_allowed_to_edit()) {
-	api_not_allowed(true);
-}
-
-// Section for the tabs
-$this_section = SECTION_COURSES;
-
-// Breadcrumbs
-$interbreadcrumb[] = array('url' => '../course_info/maintenance.php', 'name' => get_lang('Maintenance'));
-
-// Displaying the header
-$nameTools = get_lang('Backup');
-Display::display_header($nameTools);
-
-// Display the tool title
-echo Display::page_header($nameTools);
-
-/*		MAIN CODE	*/
-
-?>
-  <ul>
-    <li><a href="create_backup.php"><?php echo get_lang('CreateBackup')  ?></a><br/>
-    <?php echo get_lang('CreateBackupInfo'); ?>
-    </li>
-    <li><a href="import_backup.php"><?php echo get_lang('ImportBackup')  ?></a><br/>
-    <?php echo get_lang('ImportBackupInfo'); ?>
-    </li>
-  </ul>
-<?php
-
-// Display the footer
-Display::display_footer();