Changeset 4587

Show
Ignore:
Timestamp:
07/28/07 00:04:57 (1 year ago)
Author:
p_lindheimer
Message:

#1770 add uninstall to pinset

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • modules/branches/2.3/pinsets/module.xml

    r4242 r4587  
    22        <rawname>pinsets</rawname> 
    33        <name>PIN Sets</name> 
    4         <version>1.2</version> 
     4        <version>1.2.1</version> 
    55        <type>setup</type> 
    66        <category>Internal Options &amp; Configuration</category> 
    77        <description>Allow creation of lists of PINs (numbers for passwords) that can be used by other modules (eg, trunks).</description> 
    88        <changelog> 
     9                *1.2.1* #1770 added proper uninstall 
    910                *1.2* Add SQLite3 support, fixes http://freepbx.org/trac/ticket/1778 
    1011                *1.1* Add he_IL translation, add naftali5's fixes where pinsets were being lost when moved around. 
  • modules/branches/2.3/pinsets/uninstall.php

    r4241 r4587  
    11<?php 
    22 
     3global $db; 
     4global $amp_conf; 
     5 
     6$pinsets = pinsets_list(); 
     7foreach ($pinsets as $item) { 
     8        echo "removing ".$item['description'].".."; 
     9        pinsets_del($item['pinsets_id']); 
     10        echo "done<br>\n"; 
     11} 
     12 
     13echo "dropping table pinsets.."; 
    314sql('DROP TABLE IF EXISTS `pinsets`'); 
     15echo "done<br>\n"; 
     16 
    417 
    518?> 
Donate



Support
Download
Develop
Forums
News
Documentation
Paid Support
About

Paid Ads