Skip to content

Commit

Permalink
Composer support
Browse files Browse the repository at this point in the history
  • Loading branch information
ekzobrain committed Jan 31, 2016
1 parent 03dbbac commit a97e259
Show file tree
Hide file tree
Showing 3 changed files with 98 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
/global_defines.php
# Created by .ignore support plugin (hsz.mobi)
27 changes: 27 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
{
"name": "soulhunter/freeswitch-curl",
"description": "A PHP module to generate and serve FreeSwitch configuration via mod_curl",
"keywords": [
"freeswitch",
"php",
"mod_curl",
"mysql",
"postgres",
"oracle",
"mssql"
],
"authors": [
{
"name": "Balaji BHR",
"email": "balajibhr@gmail.com"
},
{
"name": "Dmitry Arkhipov",
"email": "da@netcitylife.ru"
}
],
"minimum-stability": "stable",
"require": {
"php": ">=5.6.0"
}
}
70 changes: 70 additions & 0 deletions global_defines.sample.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,70 @@
<?php
/**
* @package FS_CURL
* @license
* @author Raymond Chandler (intralanman) <intralanman@gmail.com>
* @version 0.1
*/

if (basename($_SERVER['PHP_SELF']) == basename(__FILE__)) {
header('Location: index.php');
}

/**
* Defines the default dsn for the FS_PDO class
*/
define('DEFAULT_DSN', 'mysql:dbname=freeswitch;host=127.0.0.1');
/**
* Defines the default dsn login for the PDO class
*/
define('DEFAULT_DSN_LOGIN', 'root');
/**
* Defines the default dsn password for the PDOclass
*/
define('DEFAULT_DSN_PASSWORD', '');
/**
* Generic return success
*/
define('FS_CURL_SUCCESS', 0);
/**
* Generic return success
*/
define('FS_SQL_SUCCESS', '00000');
/**
* Generic return warning
*/
define('FS_CURL_WARNING', 1);
/**
* Generic return critical
*/
define('FS_CURL_CRITICAL', 2);

/**
* determines how the error handler handles warnings
*/
define('RETURN_ON_WARN', true);

/**
* Determines whether or not users should be domain specific
* If GLOBAL_USERS is true, user info will be returned for whatever
* domain is passed.....
* NOTE: using a1 hashes will NOT work with this setting
*/
define('GLOBAL_USERS', false);

/**
* Define debug level... should not be used in production for performance reasons
*/
//define('FS_CURL_DEBUG', 9);
/**
* define how debugging should be done (depends on FS_CURL_DEBUG)
* 0 syslog
* 1 xml comment
* 2 file (named in FS_DEBUG_FILE), take care when using this option as there's currently nothing to watch the file's size
*/
define('FS_DEBUG_TYPE', 0);

/**
* File to use for debugging to file
*/
define('FS_DEBUG_FILE', '/tmp/fs_curl.debug');

0 comments on commit a97e259

Please sign in to comment.