diff --git a/docroot/include/config.php b/docroot/include/config.php new file mode 100644 index 0000000..ce40c71 --- /dev/null +++ b/docroot/include/config.php @@ -0,0 +1,50 @@ + + All rights reserved. + + Redistribution and use in source and binary forms, with or without modification, are + permitted provided that the following conditions are met: + + Redistributions of source code must retain the above copyright notice, this list of + conditions, the following disclaimer and the list of authors. Redistributions in binary + form must reproduce the above copyright notice, this list of conditions, the following + disclaimer and the list of authors in the documentation and/or other materials provided + with the distribution. Neither the name of the uBix Cube Project nor the names of its + contributors may be used to endorse or promote products derived from this software + without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY + EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + *****************************************************************************************/ + +/* Set up data because globals should be off for security */ +$data = array (); + +if (isset ( $_REQUEST ['data'] )) + $data ['data'] = $_REQUEST ['data']; +else if (isset ( $_POST ['data'] )) + $data ['data'] = $_POST ['data']; + +/* Start Session */ +if (session_start () === false) + print "[css]"; // Need a better way to handle failure here! + +if (! isset ( $_SESSION )) + $_SESSION = array (); +/* End Session */ + +/* Required Includes Start */ +// if ((include('db_config.local.php')) === false) +include ("db_config.php"); + +?> diff --git a/docroot/include/db_config.php b/docroot/include/db_config.php new file mode 100644 index 0000000..5e67f59 --- /dev/null +++ b/docroot/include/db_config.php @@ -0,0 +1,53 @@ + + All rights reserved. + + Redistribution and use in source and binary forms, with or without modification, are + permitted provided that the following conditions are met: + + Redistributions of source code must retain the above copyright notice, this list of + conditions, the following disclaimer and the list of authors. Redistributions in binary + form must reproduce the above copyright notice, this list of conditions, the following + disclaimer and the list of authors in the documentation and/or other materials provided + with the distribution. Neither the name of the uBix Cube Project nor the names of its + contributors may be used to endorse or promote products derived from this software + without specific prior written permission. + + THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY + EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF + MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL + THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, + SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT + OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) + HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR + TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS + SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + $Id: config.php 1770 2014-11-07 02:31:21Z reddawg $ + + *****************************************************************************************/ + +/* MySQL Connections Start */ + +/* Infrastructure Databases */ +$data['ubix_db'] = new mysqli("SPBX-DB002.SpherePBX.com", "spherepbx", "5558585", "spherepbx"); +//$data['ticket_db'] = new mysqli("10.50.25.85", "spherepbx", "5558585", "ubix_kayako"); + +/* Dialer Databases */ +//$data['as-dialer-002'] = new mysqli("64.72.93.147", "dialer", "5558585", "as_dialer_002"); +//$data['as-dialer-003'] = new mysqli("10.0.10.54", "dialer", "5558585", "as_dialer_003"); +//MrOlsen (2015-02-05) - Temporarily Disabled:$data['as-dialer-004'] = new mysqli("10.0.30.62", "dialer", "5558585", "as_dialer_004"); + +/* VoIP Databases */ +//MrOlsen (2015-06-17) - Temporarily Disabled:$data['at_db'] = new mysqli("10.0.30.62", "astertrace", "5558585", "at"); +$data['cdr_db'] = new mysqli("SPBX-DB002.SpherePBX.com", "spherepbx", "5558585", "call_log"); +$data['voicemail_db'] = new mysqli("SPBX-MariaDB-001.SpherePBX.com", "ubixcube", "5551212", "ub_vm_db001"); +$data['voip_db'] = new mysqli("SPBX-MariaDB-001.SpherePBX.com", "ubixcube", "5551212", "ub_as_db001"); + +$data['db_init'] = 1; + +/* MySQL Connections End */ + +?> diff --git a/docroot/index.php b/docroot/index.php index ff047d7..230cabc 100755 --- a/docroot/index.php +++ b/docroot/index.php @@ -1,4 +1,9 @@