Skip to content

Commit

Permalink
Some change to prepare artichow removal
Browse files Browse the repository at this point in the history
  • Loading branch information
eldy committed Jan 7, 2012
1 parent 9e065b2 commit 4c0d737
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 15 deletions.
2 changes: 1 addition & 1 deletion build/doxygen/dolibarr-doxygen.doxyfile
Expand Up @@ -611,7 +611,7 @@ RECURSIVE = YES
# excluded from the INPUT source files. This way you can easily exclude a
# subdirectory from a directory tree whose root is specified with the INPUT tag.

EXCLUDE = ../../mssql ../../mysql ../../pgsql ../../CVS ../../build ../../dev ../../doc ../../documents ../../htdocs/conf/conf.php ../../htdocs/includes/adodbtime ../../htdocs/includes/artichow ../../htdocs/includes/barcode ../../htdocs/includes/ckeditor ../../htdocs/includes/fckeditor ../../htdocs/includes/fpdfi ../../htdocs/includes/geoip ../../htdocs/includes/jquery ../../htdocs/includes/nusoap ../../htdocs/includes/odtphp ../../htdocs/includes/pear ../../htdocs/includes/phpexcel ../../htdocs/includes/smtps ../../htdocs/includes/tcpdf ../../htdocs/includes/vcard ../../htdocs/cashdesk/include/jscalendar ../../htdocs/avoir ../../htdocs/document ../../htdocs/documents ../../htdocs/lolix ../../htdocs/postnuke ../../htdocs/rapport ../../htdocs/telephonie ../../htdocs/voyage ../../htdocs/oscommerce_ws/ws_client_demo ../../htdocs/oscommerce_ws/ws_server ../../scripts/addons ../../scripts/courrier ../../scripts/lolix ../../scripts/energie
EXCLUDE = ../../mssql ../../mysql ../../pgsql ../../CVS ../../build ../../dev ../../doc ../../documents ../../htdocs/conf/conf.php ../../htdocs/includes ../../htdocs/document ../../htdocs/documents

# The EXCLUDE_SYMLINKS tag can be used select whether or not files or
# directories that are symbolic links (a Unix filesystem feature) are excluded
Expand Down
2 changes: 1 addition & 1 deletion htdocs/compta/bank/graph.php
Expand Up @@ -214,7 +214,7 @@
$i++;
}
// If we are the first of month, only $datas[0] is defined to an int value, others are defined to ""
// and this make artichow report a warning.
// and this may make graph lib report a warning.
//$datas[0]=100; KO
//$datas[0]=100; $datas[1]=90; OK
//var_dump($datas);
Expand Down
2 changes: 1 addition & 1 deletion htdocs/includes/artichow/Artichow.cfg.php
Expand Up @@ -11,7 +11,7 @@
* Path to Artichow
*/

define('ARTICHOW', dirname(__FILE__).DIRECTORY_SEPARATOR.'php'.substr(phpversion(), 0, 1));
define('ARTICHOW', dirname(__FILE__).DIRECTORY_SEPARATOR.'php5');


/*
Expand Down
8 changes: 3 additions & 5 deletions htdocs/main.inc.php
Expand Up @@ -348,13 +348,11 @@ function analyse_sql_and_script(&$var, $type)
// Verification security graphic code
if (GETPOST("username","alpha",2) && ! empty($conf->global->MAIN_SECURITY_ENABLECAPTCHA))
{
require_once(ARTICHOW_PATH.'Artichow.cfg.php');
require_once(ARTICHOW.'/AntiSpam.class.php');

$object = new AntiSpam();
$sessionkey = 'artichow_dol_antispam_value';
$ok=(array_key_exists($sessionkey, $_SESSION) === TRUE && (strtolower($_SESSION[$sessionkey]) == strtolower($_POST['code'])));

// Verifie code
if (! $object->check('dol_antispam_value',$_POST['code'],true))
if (! $ok)
{
dol_syslog('Bad value for code, connexion refused');
$langs->load('main');
Expand Down
8 changes: 3 additions & 5 deletions htdocs/user/passwordforgotten.php
Expand Up @@ -84,13 +84,11 @@
// Action modif mot de passe
if ($action == 'buildnewpassword' && $username)
{
require_once(ARTICHOW_PATH.'Artichow.cfg.php');
require_once(ARTICHOW.'/AntiSpam.class.php');

$object = new AntiSpam();
$sessionkey = 'artichow_dol_antispam_value';
$ok=(array_key_exists($sessionkey, $_SESSION) === TRUE && (strtolower($_SESSION[$sessionkey]) == strtolower($_POST['code'])));

// Verify code
if (! $object->check('dol_antispam_value',$_POST['code'],true))
if (! $ok)
{
$message = '<div class="error">'.$langs->trans("ErrorBadValueForCode").'</div>';
}
Expand Down
4 changes: 2 additions & 2 deletions test/phpunit/phpunittest.xml
Expand Up @@ -11,6 +11,7 @@
<directory suffix=".php">../../test/</directory>
<directory suffix=".php">../../htdocs/custom/</directory>
<directory suffix=".php">../../htdocs/custom2/</directory>
<directory suffix=".php">../../htdocs/core/menus/smartphone/</directory>
<directory suffix=".php">../../htdocs/products/canvas/</directory>
<directory suffix=".php">../../htdocs/contact/canvas/</directory>
<directory suffix=".php">../../htdocs/societe/canvas/</directory>
Expand All @@ -21,7 +22,6 @@
<directory suffix=".php">../../htdocs/includes/geoip/</directory>
<directory suffix=".php">../../htdocs/includes/jquery/</directory>
<directory suffix=".php">../../htdocs/includes/jsgantt/</directory>
<directory suffix=".php">../../htdocs/core/menus/smartphone/</directory>
<directory suffix=".php">../../htdocs/includes/nusoap/</directory>
<directory suffix=".php">../../htdocs/includes/odtphp/</directory>
<directory suffix=".php">../../htdocs/includes/phpexcel/</directory>
Expand All @@ -46,6 +46,7 @@
<directory suffix=".php">../../test/</directory>
<directory suffix=".php">../../htdocs/custom/</directory>
<directory suffix=".php">../../htdocs/custom2/</directory>
<directory suffix=".php">../../htdocs/core/menus/smartphone</directory>
<directory suffix=".php">../../htdocs/products/canvas/</directory>
<directory suffix=".php">../../htdocs/contact/canvas/</directory>
<directory suffix=".php">../../htdocs/societe/canvas/</directory>
Expand All @@ -56,7 +57,6 @@
<directory suffix=".php">../../htdocs/includes/geoip/</directory>
<directory suffix=".php">../../htdocs/includes/jquery/</directory>
<directory suffix=".php">../../htdocs/includes/jsgantt/</directory>
<directory suffix=".php">../../htdocs/core/menus/smartphone</directory>
<directory suffix=".php">../../htdocs/includes/nusoap/</directory>
<directory suffix=".php">../../htdocs/includes/odtphp/</directory>
<directory suffix=".php">../../htdocs/includes/phpexcel/</directory>
Expand Down

0 comments on commit 4c0d737

Please sign in to comment.