Skip to content
This repository has been archived by the owner on Oct 14, 2020. It is now read-only.

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeRow committed May 17, 2020
1 parent a382555 commit d8c5814
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 14 deletions.
4 changes: 0 additions & 4 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
ncm/data/
ncm/log/
nco/data/
test/
wiki/
.gitignore
.project
8 changes: 4 additions & 4 deletions lib/NanoTools.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,19 +73,19 @@ public static function bin_str2arr( string $string )
}


// *** Hexadecimal to decimal ***
// *** Hexadecimal string to decimal string ***


public static function hex2dec( string $string )
public static function str_hex2dec( string $string )
{
return hexToDec( $string );
}


// *** Decimal to hexadecimal ***
// *** Decimal string to hexadecimal string ***


public static function dec2hex( string $string )
public static function str_dec2hex( string $string )
{
return decToHex( $string );
}
Expand Down
8 changes: 4 additions & 4 deletions ncm/ncm.php
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@



define( 'data_dir' , __DIR__ . '/data' );
define( 'log_dir' , __DIR__ . '/log' );
define( 'data_dir' , __DIR__ . '/../../ncm/data' );
define( 'log_dir' , __DIR__ . '/../../ncm/log' );
define( 'config_file' , data_dir . '/config.json' );
define( 'ticker_file' , data_dir . '/ticker.json' );
define( 'tags_file' , data_dir . '/tags.json' );
Expand All @@ -45,7 +45,7 @@

if( !is_dir( data_dir ) )
{
mkdir( data_dir );
mkdir( data_dir, 0777, true );
}


Expand All @@ -54,7 +54,7 @@

if( !is_dir( log_dir ) )
{
mkdir( log_dir );
mkdir( log_dir, 0777, true );
}


Expand Down
4 changes: 2 additions & 2 deletions nco/nco.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@



define( 'data_dir' , __DIR__ . '/data' );
define( 'data_dir' , __DIR__ . '/../../nco/data' );
define( 'config_file' , data_dir . '/config.json' );
define( 'nodes_file' , data_dir . '/nodes.json' );

Expand All @@ -38,7 +38,7 @@

if( !is_dir( data_dir ) )
{
mkdir( data_dir );
mkdir( data_dir, 0777, true );
}


Expand Down

0 comments on commit d8c5814

Please sign in to comment.