Skip to content

Commit

Permalink
Renormalized all line endings and replaced tabulators with four spaces (
Browse files Browse the repository at this point in the history
  • Loading branch information
Maaiins authored Mar 31, 2020
1 parent 44531db commit ee71d92
Show file tree
Hide file tree
Showing 542 changed files with 75,377 additions and 75,277 deletions.
95 changes: 95 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@
# Set the default behavior, in case people don't have core.autocrlf set.
* text=lf

#
## These files are binary and should be left untouched
#

# (binary is a macro for -text -diff)
*.png binary
*.jpg binary
*.jpeg binary
*.gif binary
*.ico binary
*.mov binary
*.mp4 binary
*.mp3 binary
*.flv binary
*.fla binary
*.swf binary
*.gz binary
*.zip binary
*.7z binary
*.ttf binary
*.eot binary
*.woff binary
*.pyc binary
*.pdf binary

# source code
*.php text filter=spabs
*.css text filter=spabs
*.sass text filter=spabs
*.scss text filter=spabs
*.less text filter=spabs
*.styl text filter=spabs
*.js text filter=spabs
*.coffee text filter=spabs
*.json text filter=spabs
*.htm text filter=spabs
*.html text filter=spabs
*.xml text filter=spabs
*.svg text filter=spabs
*.txt text filter=spabs
*.ini text filter=spabs
*.inc text filter=spabs
*.pl text filter=spabs
*.rb text filter=spabs
*.py text filter=spabs
*.scm text filter=spabs
*.sql text filter=spabs
*.sh text filter=spabs
*.bat text filter=spabs

# templates
*.ejs text filter=spabs
*.hbt text filter=spabs
*.jade text filter=spabs
*.haml text filter=spabs
*.hbs text filter=spabs
*.dot text filter=spabs
*.tmpl text filter=spabs
*.tpl text filter=spabs
*.phtml text filter=spabs

# server config
.htaccess text filter=spabs

# git config
.gitattributes text filter=spabs
.gitignore text filter=spabs
.gitconfig text filter=spabs

# code analysis config
.jshintrc text filter=spabs
.jscsrc text filter=spabs
.jshintignore text filter=spabs
.csslintrc text filter=spabs

# misc config
*.yaml text filter=spabs
*.yml text filter=spabs
.editorconfig text filter=spabs

# build config
*.npmignore text filter=spabs
*.bowerrc text filter=spabs

# Heroku
Procfile text filter=spabs
.slugignore text filter=spabs

# Documentation
*.md text filter=spabs
LICENSE text filter=spabs
AUTHORS text filter=spabs
6 changes: 6 additions & 0 deletions .gitconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[filter "spabs"]
clean = expand --initial -t 4
smudge = expand --initial -t 4
required
[merge]
renormalize = true
12 changes: 6 additions & 6 deletions action.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
* @license http://www.gnu.org/copyleft/gpl.html GPL v2.0
* @category owa
* @package owa
* @version $Revision$
* @since owa 1.0.0
* @version $Revision$
* @since owa 1.0.0
* @depricated
*/

Expand All @@ -38,11 +38,11 @@

if ( $owa->isEndpointEnabled( basename( __FILE__ ) ) ) {

// run controller or view and echo page content
echo $owa->handleRequestFromURL();
// run controller or view and echo page content
echo $owa->handleRequestFromURL();
} else {
// unload owa
$owa->restInPeace();
// unload owa
$owa->restInPeace();
}

?>
14 changes: 7 additions & 7 deletions api.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
* @license http://www.gnu.org/copyleft/gpl.html GPL v2.0
* @category owa
* @package owa
* @version $Revision$
* @since owa 1.3.0
* @link http://wiki.openwebanalytics.com/index.php?title=REST_API
* @version $Revision$
* @since owa 1.3.0
* @link http://wiki.openwebanalytics.com/index.php?title=REST_API
*/

// define entry point cnstant
Expand All @@ -39,11 +39,11 @@

if ( $owa->isEndpointEnabled( basename( __FILE__ ) ) ) {

// run api command and echo page content
echo $owa->handleRequest('', 'base.apiRequest');
// run api command and echo page content
echo $owa->handleRequest('', 'base.apiRequest');
} else {
// unload owa
$owa->restInPeace();
// unload owa
$owa->restInPeace();
}

?>
84 changes: 42 additions & 42 deletions cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,65 +28,65 @@
* @license http://www.gnu.org/copyleft/gpl.html GPL v2.0
* @category owa
* @package owa
* @version $Revision$
* @since owa 1.2.1
* @version $Revision$
* @since owa 1.2.1
*/

define('OWA_CLI', true);

if (!empty($_POST)) {
exit();
exit();
} elseif (!empty($_GET)) {
exit();
exit();
} elseif (!empty($argv)) {
$params = array();
// get params from the command line args
// $argv is a php super global variable
for ($i=1; $i<count($argv);$i++)
{
$it = explode("=",$argv[$i]);
$params[$it[0]] = $it[1];
}
unset($params['action']);
unset($params['do']);
$params = array();
// get params from the command line args
// $argv is a php super global variable

for ($i=1; $i<count($argv);$i++)
{
$it = explode("=",$argv[$i]);
$params[$it[0]] = $it[1];
}
unset($params['action']);
unset($params['do']);

} else {
// No params found
exit();
// No params found
exit();
}

// Initialize owa
$owa = new owa_caller;

if ( $owa->isEndpointEnabled( basename( __FILE__ ) ) ) {

// setting CLI mode to true
$owa->setSetting('base', 'cli_mode', true);
// setting user auth
$owa->setCurrentUser('admin', 'cli-user');
// run controller or view and echo page content
$s = owa_coreAPI::serviceSingleton();
$s->loadCliCommands();
if (array_key_exists('cmd', $params)) {
$cmd = $s->getCliCommandClass($params['cmd']);
if ($cmd) {
$params['do'] = $cmd;
echo $owa->handleRequest($params);
} else {
echo "Invalid command name.";
}
} else {
echo "Missing a command argument.";
}
// setting CLI mode to true
$owa->setSetting('base', 'cli_mode', true);
// setting user auth
$owa->setCurrentUser('admin', 'cli-user');
// run controller or view and echo page content
$s = owa_coreAPI::serviceSingleton();
$s->loadCliCommands();

if (array_key_exists('cmd', $params)) {

$cmd = $s->getCliCommandClass($params['cmd']);

if ($cmd) {
$params['do'] = $cmd;
echo $owa->handleRequest($params);
} else {
echo "Invalid command name.";
}

} else {
echo "Missing a command argument.";
}

} else {
// unload owa
$owa->restInPeace();
// unload owa
$owa->restInPeace();
}

?>
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,6 @@


"require": {
"ua-parser/uap-php": "~3.9.7"
"ua-parser/uap-php": "~3.9.7"
}
}
Loading

0 comments on commit ee71d92

Please sign in to comment.