Skip to content

Commit

Permalink
grunt install from branch dev commit 10b502e
Browse files Browse the repository at this point in the history
  • Loading branch information
potsky committed May 23, 2015
1 parent 6dee99e commit a546e5e
Show file tree
Hide file tree
Showing 31 changed files with 93 additions and 66 deletions.
4 changes: 2 additions & 2 deletions cfg/apache.config.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
/*! pimpmylog - 1.7.7 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*! pimpmylog - 1.7.8 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*
* pimpmylog
* http://pimpmylog.com
*
* Copyright (c) 2014 Potsky, contributors
* Copyright (c) 2015 Potsky, contributors
* Licensed under the GPLv3 license.
*/
?>
Expand Down
4 changes: 2 additions & 2 deletions cfg/apache.paths.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
/*! pimpmylog - 1.7.7 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*! pimpmylog - 1.7.8 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*
* pimpmylog
* http://pimpmylog.com
*
* Copyright (c) 2014 Potsky, contributors
* Copyright (c) 2015 Potsky, contributors
* Licensed under the GPLv3 license.
*/
?>
Expand Down
4 changes: 2 additions & 2 deletions cfg/config.example.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
/*! pimpmylog - 1.7.7 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*! pimpmylog - 1.7.8 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*
* pimpmylog
* http://pimpmylog.com
*
* Copyright (c) 2014 Potsky, contributors
* Copyright (c) 2015 Potsky, contributors
* Licensed under the GPLv3 license.
*/
?>
Expand Down
4 changes: 2 additions & 2 deletions cfg/iis.config.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
/*! pimpmylog - 1.7.7 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*! pimpmylog - 1.7.8 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*
* pimpmylog
* http://pimpmylog.com
*
* Copyright (c) 2014 Potsky, contributors
* Copyright (c) 2015 Potsky, contributors
* Licensed under the GPLv3 license.
*/
?>
Expand Down
4 changes: 2 additions & 2 deletions cfg/iis.paths.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
/*! pimpmylog - 1.7.7 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*! pimpmylog - 1.7.8 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*
* pimpmylog
* http://pimpmylog.com
*
* Copyright (c) 2014 Potsky, contributors
* Copyright (c) 2015 Potsky, contributors
* Licensed under the GPLv3 license.
*/
?>
Expand Down
4 changes: 2 additions & 2 deletions cfg/nginx.config.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
/*! pimpmylog - 1.7.7 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*! pimpmylog - 1.7.8 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*
* pimpmylog
* http://pimpmylog.com
*
* Copyright (c) 2014 Potsky, contributors
* Copyright (c) 2015 Potsky, contributors
* Licensed under the GPLv3 license.
*/
?>
Expand Down
4 changes: 2 additions & 2 deletions cfg/nginx.paths.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
/*! pimpmylog - 1.7.7 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*! pimpmylog - 1.7.8 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*
* pimpmylog
* http://pimpmylog.com
*
* Copyright (c) 2014 Potsky, contributors
* Copyright (c) 2015 Potsky, contributors
* Licensed under the GPLv3 license.
*/
?>
Expand Down
4 changes: 2 additions & 2 deletions cfg/php.config.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
/*! pimpmylog - 1.7.7 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*! pimpmylog - 1.7.8 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*
* pimpmylog
* http://pimpmylog.com
*
* Copyright (c) 2014 Potsky, contributors
* Copyright (c) 2015 Potsky, contributors
* Licensed under the GPLv3 license.
*/
?>
Expand Down
4 changes: 2 additions & 2 deletions cfg/php.paths.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
/*! pimpmylog - 1.7.7 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*! pimpmylog - 1.7.8 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*
* pimpmylog
* http://pimpmylog.com
*
* Copyright (c) 2014 Potsky, contributors
* Copyright (c) 2015 Potsky, contributors
* Licensed under the GPLv3 license.
*/
?>
Expand Down
4 changes: 2 additions & 2 deletions cfg/pimpmylog.config.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
/*! pimpmylog - 1.7.7 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*! pimpmylog - 1.7.8 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*
* pimpmylog
* http://pimpmylog.com
*
* Copyright (c) 2014 Potsky, contributors
* Copyright (c) 2015 Potsky, contributors
* Licensed under the GPLv3 license.
*/
?>
Expand Down
4 changes: 2 additions & 2 deletions cfg/softwares.inc.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
/*! pimpmylog - 1.7.7 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*! pimpmylog - 1.7.8 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*
* pimpmylog
* http://pimpmylog.com
*
* Copyright (c) 2014 Potsky, contributors
* Copyright (c) 2015 Potsky, contributors
* Licensed under the GPLv3 license.
*/
?>
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name" : "potsky/pimp-my-log",
"description" : "Log viewer for your web server",
"version" : "1.7.7",
"version" : "1.7.8",
"license" : "GPL-3.0+",
"type" : "project",
"homepage" : "http://pimpmylog.com",
Expand Down
4 changes: 2 additions & 2 deletions css/config.inc.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
/*! pimpmylog - 1.7.7 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*! pimpmylog - 1.7.8 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*
* pimpmylog
* http://pimpmylog.com
*
* Copyright (c) 2014 Potsky, contributors
* Copyright (c) 2015 Potsky, contributors
* Licensed under the GPLv3 license.
*/
/*
Expand Down
4 changes: 2 additions & 2 deletions inc/configure.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
/*! pimpmylog - 1.7.7 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*! pimpmylog - 1.7.8 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*
* pimpmylog
* http://pimpmylog.com
*
* Copyright (c) 2014 Potsky, contributors
* Copyright (c) 2015 Potsky, contributors
* Licensed under the GPLv3 license.
*/
?><?php
Expand Down
4 changes: 2 additions & 2 deletions inc/error.inc.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
/*! pimpmylog - 1.7.7 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*! pimpmylog - 1.7.8 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*
* pimpmylog
* http://pimpmylog.com
*
* Copyright (c) 2014 Potsky, contributors
* Copyright (c) 2015 Potsky, contributors
* Licensed under the GPLv3 license.
*/
?><?php
Expand Down
4 changes: 2 additions & 2 deletions inc/favicon.inc.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
/*! pimpmylog - 1.7.7 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*! pimpmylog - 1.7.8 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*
* pimpmylog
* http://pimpmylog.com
*
* Copyright (c) 2014 Potsky, contributors
* Copyright (c) 2015 Potsky, contributors
* Licensed under the GPLv3 license.
*/
?><?php
Expand Down
4 changes: 2 additions & 2 deletions inc/getlog.pml.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
/*! pimpmylog - 1.7.7 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*! pimpmylog - 1.7.8 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*
* pimpmylog
* http://pimpmylog.com
*
* Copyright (c) 2014 Potsky, contributors
* Copyright (c) 2015 Potsky, contributors
* Licensed under the GPLv3 license.
*/
?><?php
Expand Down
37 changes: 29 additions & 8 deletions inc/global.inc.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
/*! pimpmylog - 1.7.7 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*! pimpmylog - 1.7.8 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*
* pimpmylog
* http://pimpmylog.com
*
* Copyright (c) 2014 Potsky, contributors
* Copyright (c) 2015 Potsky, contributors
* Licensed under the GPLv3 license.
*/
?><?php
Expand Down Expand Up @@ -897,21 +897,40 @@ function clean_json_version($data)
return str_replace( array( '/*PSK*/pml_version_cb(/*PSK*/' , '/*PSK*/);/*PSK*/' , '/*PSK*/)/*PSK*/' ) , array( '' , '' , '' ) , $data );
}

/**
* Do nothing for set_error_handler PHP5.2 style
*
* @param integer $errno
* @param string $errstr
*
* @return void
*/
function dumb_test($errno, $errstr)
{

}

/**
* Try to guess who runs the server
*
* @return string a user information
*/
function get_server_user()
{
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN') {
if (strtoupper(substr(PHP_OS, 0, 3)) === 'WIN')
{
return '';
} else if ( SAFE_MODE === true ) {
}
else if ( SAFE_MODE === true )
{
// for Suhosin
return '';
} else {
}
else
{
// for PHP disabled_func
set_error_handler( function($errno, $errstr, $errfile, $errline, array $errcontext) {});
set_error_handler( "dumb_test" );

$a = exec( 'whoami' );
restore_error_handler();

Expand Down Expand Up @@ -1181,13 +1200,15 @@ function get_non_UTC_timstamp( $timestamp = null , $tzfrom = null )
function upgrade_is_composer() {
$a = false;

// Catch errors for people who has activated open_basedire restrictions
set_error_handler( function($errno, $errstr, $errfile, $errline, array $errcontext) {});
// Catch errors for people who has activated open_basedir restrictions
set_error_handler( "dumb_test" );

if ( basename( PML_BASE ) !== 'pimp-my-log' ) $a = false;
else if ( ! is_dir( PML_BASE . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'potsky' ) ) $a = false;
else if ( ! is_dir( PML_BASE . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'vendor' ) ) $a = false;
else if ( ! file_exists( PML_BASE . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'composer.json' ) ) $a = false;
else $a = true;

restore_error_handler();

return $a;
Expand Down
4 changes: 2 additions & 2 deletions inc/login.inc.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
/*! pimpmylog - 1.7.7 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*! pimpmylog - 1.7.8 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*
* pimpmylog
* http://pimpmylog.com
*
* Copyright (c) 2014 Potsky, contributors
* Copyright (c) 2015 Potsky, contributors
* Licensed under the GPLv3 license.
*/
?><?php
Expand Down
4 changes: 2 additions & 2 deletions inc/rss.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
/*! pimpmylog - 1.7.7 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*! pimpmylog - 1.7.8 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*
* pimpmylog
* http://pimpmylog.com
*
* Copyright (c) 2014 Potsky, contributors
* Copyright (c) 2015 Potsky, contributors
* Licensed under the GPLv3 license.
*/
?><?php
Expand Down
4 changes: 2 additions & 2 deletions inc/rss.pml.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
/*! pimpmylog - 1.7.7 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*! pimpmylog - 1.7.8 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*
* pimpmylog
* http://pimpmylog.com
*
* Copyright (c) 2014 Potsky, contributors
* Copyright (c) 2015 Potsky, contributors
* Licensed under the GPLv3 license.
*/
?><?php
Expand Down
4 changes: 2 additions & 2 deletions inc/test.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
/*! pimpmylog - 1.7.7 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*! pimpmylog - 1.7.8 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*
* pimpmylog
* http://pimpmylog.com
*
* Copyright (c) 2014 Potsky, contributors
* Copyright (c) 2015 Potsky, contributors
* Licensed under the GPLv3 license.
*/
?><?php
Expand Down
4 changes: 2 additions & 2 deletions inc/upgrade.pml.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
/*! pimpmylog - 1.7.7 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*! pimpmylog - 1.7.8 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*
* pimpmylog
* http://pimpmylog.com
*
* Copyright (c) 2014 Potsky, contributors
* Copyright (c) 2015 Potsky, contributors
* Licensed under the GPLv3 license.
*/
?><?php
Expand Down
4 changes: 2 additions & 2 deletions inc/users.pml.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
/*! pimpmylog - 1.7.7 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*! pimpmylog - 1.7.8 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*
* pimpmylog
* http://pimpmylog.com
*
* Copyright (c) 2014 Potsky, contributors
* Copyright (c) 2015 Potsky, contributors
* Licensed under the GPLv3 license.
*/
?><?php
Expand Down
4 changes: 2 additions & 2 deletions index.php
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
<?php
/*! pimpmylog - 1.7.7 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*! pimpmylog - 1.7.8 - 82a1a7504873a6aed42a95a13b42ec8f8d12213f*/
/*
* pimpmylog
* http://pimpmylog.com
*
* Copyright (c) 2014 Potsky, contributors
* Copyright (c) 2015 Potsky, contributors
* Licensed under the GPLv3 license.
*/
?><?php
Expand Down
4 changes: 2 additions & 2 deletions js/configure.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit a546e5e

Please sign in to comment.