Changeset 5590

Show
Ignore:
Timestamp:
01/12/08 20:28:36 (5 years ago)
Author:
p_lindheimer
Message:

move helper functions up to top of install script now that they are in if function_exists() condition

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.4/framework/install.php

    r5544 r5590  
    11<?php 
     2 
     3// HELPER FUNCTIONS: 
     4 
     5function framework_print_errors($src, $dst, $errors) { 
     6  echo "error copying framework files:<br />'cp -rf' from src: '$src' to dst: '$dst'...details follow<br />"; 
     7  foreach ($errors as $error) { 
     8    echo "$error<br />"; 
     9  } 
     10} 
     11 
     12if (! function_exists('out')) { 
     13  function out($text) { 
     14    echo $text."<br>"; 
     15  } 
     16} 
     17 
     18if (! function_exists('outn')) { 
     19  function outn($text) { 
     20    echo $text; 
     21  } 
     22} 
     23 
     24if (! function_exists('error')) { 
     25  function error($text) { 
     26    echo "[ERROR] ".$text."<br>"; 
     27  } 
     28} 
     29 
     30if (! function_exists('fatal')) { 
     31  function fatal($text) { 
     32    echo "[FATAL] ".$text."<br>"; 
     33    exit(1); 
     34  } 
     35} 
     36 
     37if (! function_exists('debug')) { 
     38  function debug($text) { 
     39    global $debug; 
     40     
     41    if ($debug) echo "[DEBUG-preDB] ".$text."<br>"; 
     42  } 
     43} 
    244 
    345include dirname(__FILE__)."/libfreepbx.install.php"; 
     
    77119  } 
    78120 
    79  
    80 // HELPER FUNCTIONS: 
    81  
    82 function framework_print_errors($src, $dst, $errors) { 
    83   echo "error copying framework files:<br />'cp -rf' from src: '$src' to dst: '$dst'...details follow<br />"; 
    84   foreach ($errors as $error) { 
    85     echo "$error<br />"; 
    86   } 
    87 } 
    88  
    89 if (! function_exists("out")) { 
    90   function out($text) { 
    91     echo $text."<br>"; 
    92   } 
    93 } 
    94  
    95 if (! function_exists("outn")) { 
    96   function outn($text) { 
    97     echo $text; 
    98   } 
    99 } 
    100  
    101 if (! function_exists("error")) { 
    102   function error($text) { 
    103     echo "[ERROR] ".$text."<br>"; 
    104   } 
    105 } 
    106  
    107 if (! function_exists("fatal")) { 
    108   function fatal($text) { 
    109     echo "[FATAL] ".$text."<br>"; 
    110     exit(1); 
    111   } 
    112 } 
    113  
    114 if (! function_exists("debug")) { 
    115   function debug($text) { 
    116     global $debug; 
    117      
    118     if ($debug) echo "[DEBUG-preDB] ".$text."<br>"; 
    119   } 
    120 } 
    121121?> 
  • modules/branches/2.4/framework/module.xml

    r5579 r5590  
    22  <rawname>framework</rawname> 
    33  <name>FreePBX Framework</name> 
    4   <version>2.4.0beta2.1</version> 
     4  <version>2.4.0beta2.2</version> 
    55  <candisable>no</candisable> 
    66  <canuninstall>no</canuninstall> 
    77  <changelog> 
     8    *2.4.0beta2.2* fixed install script breaking download module admin 
    89    *2.4.0beta2.1* #2578 Asterisk 1.6 change for LANGUAGE, add addSwitch to extenions class 
    910    *2.4.0beta2.0* #2539, increase module_xml data field size, #2568 move features.conf to core, add details what online update transmits