[ Index ]
 

Code source de vtiger CRM 5.0.2

Accédez au Source d'autres logiciels libresSoutenez Angelica Josefina !

title

Body

[fermer]

/modules/Users/ -> upload.php (source)

   1  <?php
   2  
   3  /***********************************************************************************
   4  ** The contents of this file are subject to the vtiger CRM Public License Version 1.0
   5   * ("License"); You may not use this file except in compliance with the License
   6   * The Original Code is:  vtiger CRM Open Source
   7   * The Initial Developer of the Original Code is vtiger.
   8   * Portions created by vtiger are Copyright (C) vtiger.
   9   * All Rights Reserved.
  10  * 
  11   ********************************************************************************/
  12  
  13  require_once ('Smarty_setup.php');
  14  require_once ('include/database/PearDatabase.php');
  15  require_once ('include/utils/utils.php');
  16  require_once ('modules/Users/add2db.php');
  17  
  18  global $app_strings;
  19  global $mod_strings;
  20  global $app_list_strings;
  21  global $adb;
  22  global $upload_maxsize;
  23  global $theme;
  24  $theme_path="themes/".$theme."/";
  25  $image_path=$theme_path."images/";
  26  require_once ($theme_path.'layout_utils.php');
  27  
  28  $smarty = new vtigerCRM_Smarty;
  29  //error handling
  30  if(isset($_REQUEST['flag']) && $_REQUEST['flag'] != '')
  31  {
  32      $flag = $_REQUEST['flag'];
  33      switch($flag)
  34      {
  35          case 1:
  36              $smarty->assign("ERRORFLAG","<font color='red'><B>File has to be a Document of type doc/msword</B></font>");
  37              break;
  38          default:
  39              $smarty->assign("ERRORFLAG","");
  40      }        
  41  }
  42  
  43  $smarty->assign("MOD", return_module_language($current_language,'Settings'));
  44  $smarty->assign("IMAGE_PATH",$image_path);
  45  $smarty->assign("APP", $app_strings);
  46  $smarty->assign("UMOD", $mod_strings);
  47  $smarty->assign("PARENTTAB", $_REQUEST['parenttab']);
  48  $smarty->assign("MAX_FILE_SIZE", $upload_maxsize);
  49  
  50  $smarty->display('CreateWordTemplate.tpl');
  51  
  52  ?>
  53  
  54  
  55  
  56  
  57  
  58  


Généré le : Sun Feb 25 10:22:19 2007 par Balluche grâce à PHPXref 0.7