root/contributed_modules/modules/cdrcost/generator.php

Revision 5074, 1.0 kB (checked in by p_lindheimer, 5 years ago)

#1209 add cdrcost to contributed module repository

Line 
1 #!/usr/bin/php
2
3 <?php /* $Id$ */
4 //Copyright (C) 2006 Lenux Inc. (info@lenux.eu)
5 //
6 //This program is free software; you can redistribute it and/or
7 //modify it under the terms of the GNU General Public License
8 //as published by the Free Software Foundation; either version 2
9 //of the License, or (at your option) any later version.
10 //
11 //This program is distributed in the hope that it will be useful,
12 //but WITHOUT ANY WARRANTY; without even the implied warranty of
13 //MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
14 //GNU General Public License for more details.
15
16 // this file should called through cron
17 // eg. link cdrcost into /etc/cron.d/
18 // ln -s /var/www/html/admin/modules/cdrcost/cdrcost /etc/cron.d/
19
20 require_once('../../functions.inc.php');
21 // get settings
22 $amp_conf = parse_amportal_conf("/etc/amportal.conf");
23 // connect to database
24 require_once('../../common/db_connect.php');
25 // cdrcost's functions
26 require_once('functions.inc.php');
27
28 fill_cdrcost();
29
30 ?>
Note: See TracBrowser for help on using the browser.