Changeset 11109

Show
Ignore:
Timestamp:
01/25/11 01:55:59 (2 years ago)
Author:
p_lindheimer
Message:

remove functions now always included by utility.functions.php

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.9/announcement/install.php

    r8342 r11109  
    1717//    Copyright 2006 Greg MacLellan 
    1818// 
    19 if (! function_exists("out")) { 
    20   function out($text) { 
    21     echo $text."<br />"; 
    22   } 
    23 } 
    24  
    25 if (! function_exists("outn")) { 
    26   function outn($text) { 
    27     echo $text; 
    28   } 
    29 } 
    30  
    3119global $db; 
    3220global $amp_conf; 
  • modules/branches/2.9/backup/install.php

    r11027 r11109  
    2525global $db; 
    2626global $amp_conf; 
    27  
    28 if (! function_exists("out")) { 
    29   function out($text) { 
    30     echo $text."<br />"; 
    31   } 
    32 } 
    33  
    34 if (! function_exists("outn")) { 
    35   function outn($text) { 
    36     echo $text; 
    37   } 
    38 } 
    3927 
    4028$autoincrement = (($amp_conf["AMPDBENGINE"] == "sqlite") || ($amp_conf["AMPDBENGINE"] == "sqlite3")) ? "AUTOINCREMENT":"AUTO_INCREMENT"; 
  • modules/branches/2.9/cidlookup/install.php

    r8664 r11109  
    1818global $db; 
    1919global $amp_conf; 
    20  
    21 if (! function_exists("out")) { 
    22   function out($text) { 
    23     echo $text."<br />"; 
    24   } 
    25 } 
    26  
    27 if (! function_exists("outn")) { 
    28   function outn($text) { 
    29     echo $text; 
    30   } 
    31 } 
    3220 
    3321$autoincrement = (($amp_conf["AMPDBENGINE"] == "sqlite") || ($amp_conf["AMPDBENGINE"] == "sqlite3")) ? "AUTOINCREMENT":"AUTO_INCREMENT"; 
  • modules/branches/2.9/conferences/install.php

    r9099 r11109  
    11<?php 
    2 if (! function_exists("out")) { 
    3   function out($text) { 
    4     echo $text."<br />"; 
    5   } 
    6 } 
    7  
    8 if (! function_exists("outn")) { 
    9   function outn($text) { 
    10     echo $text; 
    11   } 
    12 } 
    13  
    142global $db; 
    153global $amp_conf; 
  • modules/branches/2.9/core/install.php

    r11057 r11109  
    3131_("In-Call Asterisk Toggle Call Recording"); 
    3232_("In-Call Asterisk Disconnect Code"); 
    33 } 
    34  
    35 if (! function_exists("out")) { 
    36   function out($text) { 
    37     echo $text."<br />"; 
    38   } 
    39 } 
    40  
    41 if (! function_exists("outn")) { 
    42   function outn($text) { 
    43     echo $text; 
    44   } 
    4533} 
    4634 
  • modules/branches/2.9/daynight/install.php

    r11026 r11109  
    55global $db; 
    66global $amp_conf; 
    7  
    8 if (! function_exists("out")) { 
    9   function out($text) { 
    10     echo $text."<br />"; 
    11   } 
    12 } 
    13  
    14 if (! function_exists("outn")) { 
    15   function outn($text) { 
    16     echo $text; 
    17   } 
    18 } 
    197 
    208$sql = "CREATE TABLE IF NOT EXISTS daynight  
  • modules/branches/2.9/directory/install.php

    r10867 r11109  
    11<?php 
    22global $db, $amp_conf; 
    3  
    4 if (! function_exists("out")) { 
    5   function out($text) { 
    6     echo $text."<br />"; 
    7   } 
    8 } 
    9  
    10 if (! function_exists("outn")) { 
    11   function outn($text) { 
    12     echo $text; 
    13   } 
    14 } 
    153 
    164$autoincrement = (($amp_conf["AMPDBENGINE"] == "sqlite") || ($amp_conf["AMPDBENGINE"] == "sqlite3")) ? "AUTOINCREMENT":"AUTO_INCREMENT"; 
  • modules/branches/2.9/directory/uninstall.php

    r10867 r11109  
    11<?php 
    2 if (! function_exists("out")) { 
    3   function out($text) { 
    4     echo $text."<br />"; 
    5   } 
    6 } 
    7  
    8 if (! function_exists("outn")) { 
    9   function outn($text) { 
    10     echo $text; 
    11   } 
    12 } 
    132outn(_('dropping directory_details, directory_entries..')); 
    143sql('DROP TABLE IF EXISTS directory_details, directory_entries'); 
  • modules/branches/2.9/endpointman/install.php

    r11086 r11109  
    77 * @package Endpoint Manager 
    88 */ 
     9 
     10// Leaving these conditional functions for now since this module is used 
     11// by some earlier releases of FreePBX which may not have them. 
     12// 
    913if (! function_exists("out")) { 
    1014    function out($text) { 
  • modules/branches/2.9/fax/install.php

    r10609 r11109  
    44if (false) { 
    55_("Dial System FAX"); 
    6 } 
    7  
    8 if (! function_exists("out")) { 
    9   function out($text) { 
    10     echo $text."<br />"; 
    11   } 
    12 } 
    13  
    14 if (! function_exists("outn")) { 
    15   function outn($text) { 
    16     echo $text; 
    17   } 
    186} 
    197 
  • modules/branches/2.9/findmefollow/install.php

    r6892 r11109  
    88global $amp_conf; 
    99global $astman; 
    10  
    11 if (! function_exists("out")) { 
    12   function out($text) { 
    13     echo $text."<br />"; 
    14   } 
    15 } 
    16  
    17 if (! function_exists("outn")) { 
    18   function outn($text) { 
    19     echo $text; 
    20   } 
    21 } 
    2210 
    2311$sql = " 
  • modules/branches/2.9/framework/install.php

    r10867 r11109  
    77  foreach ($errors as $error) { 
    88    echo "$error<br />"; 
    9   } 
    10 } 
    11  
    12 if (! function_exists('out')) { 
    13   function out($text) { 
    14     echo $text."<br>"; 
    15   } 
    16 } 
    17  
    18 if (! function_exists('outn')) { 
    19   function outn($text) { 
    20     echo $text; 
    21   } 
    22 } 
    23  
    24 if (! function_exists('error')) { 
    25   function error($text) { 
    26     echo "[ERROR] ".$text."<br>"; 
    27   } 
    28 } 
    29  
    30 if (! function_exists('fatal')) { 
    31   function fatal($text) { 
    32     echo "[FATAL] ".$text."<br>"; 
    33     exit(1); 
    34   } 
    35 } 
    36  
    37 if (! function_exists('debug')) { 
    38   function debug($text) { 
    39     global $debug; 
    40      
    41     if ($debug) echo "[DEBUG-preDB] ".$text."<br>"; 
    429  } 
    4310} 
  • modules/branches/2.9/fw_ari/install.php

    r9488 r11109  
    2323  foreach ($errors as $error) { 
    2424    echo "$error<br />"; 
    25   } 
    26 } 
    27  
    28 if (! function_exists('out')) { 
    29   function out($text) { 
    30     echo $text."<br>"; 
    31   } 
    32 } 
    33  
    34 if (! function_exists('outn')) { 
    35   function outn($text) { 
    36     echo $text; 
    37   } 
    38 } 
    39  
    40 if (! function_exists('error')) { 
    41   function error($text) { 
    42     echo "[ERROR] ".$text."<br>"; 
    43   } 
    44 } 
    45  
    46 if (! function_exists('fatal')) { 
    47   function fatal($text) { 
    48     echo "[FATAL] ".$text."<br>"; 
    49     exit(1); 
    50   } 
    51 } 
    52  
    53 if (! function_exists('debug')) { 
    54   function debug($text) { 
    55     global $debug; 
    56      
    57     if ($debug) echo "[DEBUG-preDB] ".$text."<br>"; 
    5825  } 
    5926} 
  • modules/branches/2.9/fw_fop/install.php

    r10011 r11109  
    2323  foreach ($errors as $error) { 
    2424    echo "$error<br />"; 
    25   } 
    26 } 
    27  
    28 if (! function_exists('out')) { 
    29   function out($text) { 
    30     echo $text."<br>"; 
    31   } 
    32 } 
    33  
    34 if (! function_exists('outn')) { 
    35   function outn($text) { 
    36     echo $text; 
    37   } 
    38 } 
    39  
    40 if (! function_exists('error')) { 
    41   function error($text) { 
    42     echo "[ERROR] ".$text."<br>"; 
    43   } 
    44 } 
    45  
    46 if (! function_exists('fatal')) { 
    47   function fatal($text) { 
    48     echo "[FATAL] ".$text."<br>"; 
    49     exit(1); 
    50   } 
    51 } 
    52  
    53 if (! function_exists('debug')) { 
    54   function debug($text) { 
    55     global $debug; 
    56      
    57     if ($debug) echo "[DEBUG-preDB] ".$text."<br>"; 
    5825  } 
    5926} 
  • modules/branches/2.9/fw_langpacks/install.php

    r9488 r11109  
    99  } 
    1010} 
    11  
    12 if (! function_exists('out')) { 
    13   function out($text) { 
    14     echo $text."<br>"; 
    15   } 
    16 } 
    17  
    18 if (! function_exists('outn')) { 
    19   function outn($text) { 
    20     echo $text; 
    21   } 
    22 } 
    23  
    24 if (! function_exists('error')) { 
    25   function error($text) { 
    26     echo "[ERROR] ".$text."<br>"; 
    27   } 
    28 } 
    29  
    30 if (! function_exists('fatal')) { 
    31   function fatal($text) { 
    32     echo "[FATAL] ".$text."<br>"; 
    33     exit(1); 
    34   } 
    35 } 
    36  
    37 if (! function_exists('debug')) { 
    38   function debug($text) { 
    39     global $debug; 
    40      
    41     if ($debug) echo "[DEBUG-preDB] ".$text."<br>"; 
    42   } 
    43 } 
    44  
    4511global $amp_conf; 
    4612 
  • modules/branches/2.9/iaxsettings/install.php

    r9435 r11109  
    2222global $db; 
    2323global $amp_conf; 
    24  
    25 if (! function_exists("out")) { 
    26   function out($text) { 
    27     echo $text."<br />"; 
    28   } 
    29 } 
    30  
    31 if (! function_exists("outn")) { 
    32   function outn($text) { 
    33     echo $text; 
    34   } 
    35 } 
    3624 
    3725$sql = <<< END 
  • modules/branches/2.9/ivr/install.php

    r9798 r11109  
    11<?php 
    2  
    32require_once dirname(__FILE__)."/functions.inc.php"; 
    4  
    5 if (! function_exists("out")) { 
    6   function out($text) { 
    7     echo $text."<br />"; 
    8   } 
    9 } 
    10  
    11 if (! function_exists("outn")) { 
    12   function outn($text) { 
    13     echo $text; 
    14   } 
    15 } 
    163 
    174global $db; 
  • modules/branches/2.9/manager/install.php

    r8803 r11109  
    11<?php 
    2  
    32global $db; 
    43global $amp_conf; 
    5  
    6 if (! function_exists("out")) { 
    7   function out($text) { 
    8     echo $text."<br />"; 
    9   } 
    10 } 
    11  
    12 if (! function_exists("outn")) { 
    13   function outn($text) { 
    14     echo $text; 
    15   } 
    16 } 
    17  
    184 
    195$autoincrement = (($amp_conf["AMPDBENGINE"] == "sqlite") || ($amp_conf["AMPDBENGINE"] == "sqlite3")) ? "AUTOINCREMENT":"AUTO_INCREMENT"; 
  • modules/branches/2.9/outroutemsg/install.php

    r8059 r11109  
    1212//MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the 
    1313//GNU General Public License for more details. 
    14  
    15 if (! function_exists("out")) { 
    16   function out($text) { 
    17     echo $text."<br />"; 
    18   } 
    19 } 
    20  
    21 if (! function_exists("outn")) { 
    22   function outn($text) { 
    23     echo $text; 
    24   } 
    25 } 
    2614 
    2715global $db; 
  • modules/branches/2.9/parking/install.php

    r11026 r11109  
    11<?php 
    2 if (! function_exists("out")) { 
    3   function out($text) { 
    4     echo $text."<br />"; 
    5   } 
    6 } 
    7  
    8 if (! function_exists("outn")) { 
    9   function outn($text) { 
    10     echo $text; 
    11   } 
    12 } 
    13  
    142global $db; 
    153global $amp_conf; 
  • modules/branches/2.9/phpagiconf/install.php

    r6277 r11109  
    11<?php 
    2  
    3 if (! function_exists("out")) { 
    4   function out($text) { 
    5     echo $text."<br />"; 
    6   } 
    7 } 
    8  
    9 if (! function_exists("outn")) { 
    10   function outn($text) { 
    11     echo $text; 
    12   } 
    13 } 
    14  
    152global $db; 
    163global $amp_conf; 
  • modules/branches/2.9/pinsets/install.php

    r10179 r11109  
    33global $db; 
    44global $amp_conf; 
    5  
    6 if (! function_exists("out")) { 
    7   function out($text) { 
    8     echo $text."<br />"; 
    9   } 
    10 } 
    11  
    12 if (! function_exists("outn")) { 
    13   function outn($text) { 
    14     echo $text; 
    15   } 
    16 } 
    175 
    186$autoincrement = (($amp_conf["AMPDBENGINE"] == "sqlite") || ($amp_conf["AMPDBENGINE"] == "sqlite3")) ? "AUTOINCREMENT":"AUTO_INCREMENT"; 
  • modules/branches/2.9/queues/install.php

    r11026 r11109  
    99$fcc->update(); 
    1010unset($fcc); 
    11  
    12 if (! function_exists("out")) { 
    13   function out($text) { 
    14     echo $text."<br />"; 
    15   } 
    16 } 
    17  
    18 if (! function_exists("outn")) { 
    19   function outn($text) { 
    20     echo $text; 
    21   } 
    22 } 
    2311 
    2412$results = array(); 
  • modules/branches/2.9/recordings/install.php

    r11032 r11109  
    99global $amp_conf; 
    1010global $db; 
    11  
    12 if (! function_exists("out")) { 
    13   function out($text) { 
    14     echo $text."<br />"; 
    15   } 
    16 } 
    17  
    18 if (! function_exists("outn")) { 
    19   function outn($text) { 
    20     echo $text; 
    21   } 
    22 } 
    2311 
    2412$recordings_astsnd_path = isset($amp_conf['ASTVARLIBDIR'])?$amp_conf['ASTVARLIBDIR']:'/var/lib/asterisk'; 
  • modules/branches/2.9/restart/install.php

    r10103 r11109  
    11<?php 
    2  
    3 if (! function_exists("out")) { 
    4   function out($text) { 
    5     echo $text."<br />"; 
    6   } 
    7 } 
    8  
    9 if (! function_exists("outn")) { 
    10   function outn($text) { 
    11     echo $text; 
    12   } 
    13 } 
    142global $amp_conf; 
    153 
  • modules/branches/2.9/ringgroups/install.php

    r6822 r11109  
    11<?php 
    2  
    3 if (! function_exists("out")) { 
    4   function out($text) { 
    5     echo $text."<br />"; 
    6   } 
    7 } 
    8  
    9 if (! function_exists("outn")) { 
    10   function outn($text) { 
    11     echo $text; 
    12   } 
    13 } 
    142 
    153global $db; 
  • modules/branches/2.9/sipsettings/install.php

    r9437 r11109  
    2222global $db; 
    2323global $amp_conf; 
    24  
    25 if (! function_exists("out")) { 
    26   function out($text) { 
    27     echo $text."<br />"; 
    28   } 
    29 } 
    30  
    31 if (! function_exists("outn")) { 
    32   function outn($text) { 
    33     echo $text; 
    34   } 
    35 } 
    3624 
    3725$sql = <<< END 
  • modules/branches/2.9/sipstation/install.php

    r10179 r11109  
    99global $db; 
    1010global $amp_conf; 
    11  
    12 if (! function_exists("out")) { 
    13   function out($text) { 
    14     echo $text."<br />"; 
    15   } 
    16 } 
    17 if (! function_exists("outn")) { 
    18   function outn($text) { 
    19     echo $text; 
    20   } 
    21 } 
    2211 
    2312/* Delete all occurences of the specified trunk from all routes that may use it 
  • modules/branches/2.9/timeconditions/install.php

    r11026 r11109  
    3838    } 
    3939  } 
    40  
    41 if (! function_exists("out")) { 
    42   function out($text) { 
    43     echo $text."<br />"; 
    44   } 
    45 } 
    46  
    47 if (! function_exists("outn")) { 
    48   function outn($text) { 
    49     echo $text; 
    50   } 
    51 } 
    5240 
    5341if($amp_conf["AMPDBENGINE"] == "sqlite3")  { 
  • modules/branches/2.9/vmblast/install.php

    r9798 r11109  
    66 
    77global $db; 
    8  
    9 if (! function_exists("out")) { 
    10   function out($text) { 
    11     echo $text."<br />"; 
    12   } 
    13 } 
    14  
    15 if (! function_exists("outn")) { 
    16   function outn($text) { 
    17     echo $text; 
    18   } 
    19 } 
    208 
    219outn(_("Upgrading vmblast to add audio_label field..")); 
  • modules/branches/2.9/voicemail/install.php

    r10874 r11109  
    2222_("Dial Voicemail"); 
    2323_("Voicemail Admin"); 
    24 } 
    25  
    26 if (! function_exists("out")) { 
    27   function out($text) { 
    28     echo $text."<br />"; 
    29   } 
    30 } 
    31 if (! function_exists("outn")) { 
    32   function outn($text) { 
    33     echo $text; 
    34   } 
    3524} 
    3625