Browse Source

Minor adding comments

Julio Montoya 12 years ago
parent
commit
f86719e350
2 changed files with 8 additions and 2 deletions
  1. 7 2
      app/console.php
  2. 1 0
      certificates/index.php

+ 7 - 2
app/console.php

@@ -1,14 +1,20 @@
 #!/usr/bin/env php
 <?php
+/* For licensing terms, see /license.txt */
+
 set_time_limit(0);
 
+if (PHP_SAPI != 'cli') {
+    die("Cannot be called by any other method than the command line.");
+}
+
 require_once dirname(__FILE__).'/../main/inc/global.inc.php';
 
 // Variable $helperSet is defined inside cli-config.php
 require __DIR__ . '/config/console-config.php';
 
 //$cli = new \Symfony\Component\Console\Application('Doctrine Command Line Interface', Doctrine\Common\Version::VERSION);
-$cli = new \Symfony\Component\Console\Application('Chamilo Command Line Interface');
+$cli = new \Symfony\Component\Console\Application('Chamilo CLI');
 $cli->setCatchExceptions(true);
 
 $helperSet = $cli->getHelperSet();
@@ -62,6 +68,5 @@ $cli->addCommands(array(
         new Chash\Command\Files\CleanConfigFiles(),
         new Chash\Command\Translation\ExportLanguageCommand(),
         new Chash\Command\Translation\ImportLanguageCommand()
-
     ));
 $cli->run();

+ 1 - 0
certificates/index.php

@@ -7,6 +7,7 @@
 
 /**
  * Initialization
+ * @todo replace me with a controller
  */
 
 $language_file= array('admin', 'gradebook', 'document');