Bearsampp 2026.5.5
Loading...
Searching...
No Matches
Core Class Reference

Public Member Functions

 __construct ()
 __toString ()
 addLoadingPid ($pid)
 getAjaxPath ($aetrayPath=false)
 getAppVersion ()
 getExec ($aetrayPath=false)
 getFileFromUrl (string $moduleUrl, string $filePath, $progressBar=false)
 getHomepagePath ($aetrayPath=false)
 getHostsEditorExe ($aetrayPath=false)
 getHostsEditorPath ($aetrayPath=false)
 getIconsPath ($aetrayPath=false)
 getImagesPath ($aetrayPath=false)
 getisRootFilePath ($aetrayPath=false)
 getLangsPath ($aetrayPath=false)
 getLastPath ($aetrayPath=false)
 getLastPathContent ()
 getLibsPath ($aetrayPath=false)
 getLnExe ($aetrayPath=false)
 getLnPath ($aetrayPath=false)
 getLoadingPid ($aetrayPath=false)
 getNssmExe ($aetrayPath=false)
 getNssmPath ($aetrayPath=false)
 getOpenSslConf ($aetrayPath=false)
 getOpenSslExe ($aetrayPath=false)
 getOpenSslPath ($aetrayPath=false)
 getPhpExe ($aetrayPath=false)
 getPhpPath ($aetrayPath=false)
 getPreviousExec ()
 getPwgenExe ($aetrayPath=false)
 getPwgenPath ($aetrayPath=false)
 getResourcesPath ($aetrayPath=false)
 getScript ($type)
 getScriptsPath ($aetrayPath=false)
 getSetEnvExe ($aetrayPath=false)
 getSetEnvPath ($aetrayPath=false)
 getTmpPath ($aetrayPath=false)
 setExec ($action)
 unzipFile ($filePath, $destination, $progressCallback=null)

Data Fields

const APP_VERSION = 'version.dat'
const EXEC = 'exec.dat'
const HOSTSEDITOR_EXE = 'hEdit_x64.exe'
const isRoot_FILE = 'root.php'
const LAST_PATH = 'lastPath.dat'
const LN_EXE = 'ln.exe'
const LOADING_PID = 'loading.pid'
const NSSM_EXE = 'nssm.exe'
const OPENSSL_CONF = 'openssl.cfg'
const OPENSSL_EXE = 'openssl.exe'
const PATH_LIN_PLACEHOLDER = '~BEARSAMPP_LIN_PATH~'
const PATH_WIN_PLACEHOLDER = '~BEARSAMPP_WIN_PATH~'
const PHP_EXE = 'php-win.exe'
const PWGEN_EXE = "PWGenPortable.exe"
const SETENV_EXE = 'SetEnv.exe'

Detailed Description

Class Core

This class provides core functionalities and constants for the Bearsampp application. It includes methods for retrieving paths, managing application versions, and handling various executable files and configurations.

Definition at line 18 of file class.core.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( )

Core constructor.

Loads the WinBinder extension if available.

Definition at line 44 of file class.core.php.

45 {
46 if ( extension_loaded( 'winbinder' ) ) {
47 require_once $this->getLibsPath() . '/winbinder/winbinder.php';
48 }
49 }
getLibsPath($aetrayPath=false)

References getLibsPath().

Member Function Documentation

◆ __toString()

__toString ( )

Provides a string representation of the core object.

Returns
string A string describing the core object.

Definition at line 467 of file class.core.php.

468 {
469 return 'core object';
470 }

◆ addLoadingPid()

addLoadingPid ( $pid)

Adds a PID to the loading PID file.

Parameters
int$pidThe PID to add.

Definition at line 277 of file class.core.php.

278 {
279 file_put_contents( $this->getLoadingPid(), $pid . PHP_EOL, FILE_APPEND );
280 }
getLoadingPid($aetrayPath=false)

References getLoadingPid().

◆ getAjaxPath()

getAjaxPath ( $aetrayPath = false)

Definition at line 138 of file class.core.php.

139 {
140 return $this->getHomepagePath( $aetrayPath ) . '/ajax';
141 }
getHomepagePath($aetrayPath=false)

References getHomepagePath().

◆ getAppVersion()

getAppVersion ( )

Retrieves the application version.

Returns
string|null The application version or null if not found.

Definition at line 188 of file class.core.php.

189 {
190 global $bearsamppLang;
191
192 $filePath = $this->getResourcesPath() . '/' . self::APP_VERSION;
193 if ( !is_file( $filePath ) ) {
194 Log::error( sprintf( $bearsamppLang->getValue( Lang::ERROR_CONF_NOT_FOUND ), APP_TITLE, $filePath ) );
195
196 return null;
197 }
198
199 return trim( file_get_contents( $filePath ) );
200 }
global $bearsamppLang
getResourcesPath($aetrayPath=false)
const ERROR_CONF_NOT_FOUND
static error($data, $file=null)
const APP_TITLE
Definition root.php:13

References $bearsamppLang, APP_TITLE, Log\error(), Lang\ERROR_CONF_NOT_FOUND, and getResourcesPath().

◆ getExec()

getExec ( $aetrayPath = false)

Retrieves the path to the exec file.

Parameters
bool$aetrayPathWhether to format the path for AeTrayMenu.
Returns
string The path to the exec file.

Definition at line 245 of file class.core.php.

246 {
247 return $this->getTmpPath( $aetrayPath ) . '/' . self::EXEC;
248 }
getTmpPath($aetrayPath=false)

References getTmpPath().

Referenced by getPreviousExec(), and setExec().

◆ getFileFromUrl()

getFileFromUrl ( string $moduleUrl,
string $filePath,
$progressBar = false )

Fetches a file from a given URL and saves it to a specified file path.

This method attempts to retrieve the content from the provided URL and save it to the specified file path. If any error occurs during fetching or saving, it logs the error and returns an error message. If the operation is successful, it returns the file path. The method also logs the file size if the input stream is a valid resource.

Parameters
string$moduleUrlThe URL from which to fetch the file content.
string$filePathThe path where the file content should be saved.
bool$progressBarOptional. Whether to display a progress bar during the download process. Default is false.
Returns
array Returns the file path if successful, or an array with an error message if an error occurs.

Definition at line 567 of file class.core.php.

568 {
569 // Open the URL for reading
570 $inputStream = @fopen( $moduleUrl, 'rb' );
571 if ( $inputStream === false ) {
572 Log::error( 'Error fetching content from URL: ' . $moduleUrl );
573
574 return ['error' => 'Error fetching module'];
575 }
576
577 // Open the file for writing
578 $outputStream = @fopen( $filePath, 'wb' );
579 if ( $outputStream === false ) {
580 Log::error( 'Error opening file for writing: ' . $filePath );
581 fclose( $inputStream );
582
583 return ['error' => 'Error saving module'];
584 }
585
586 // Read and write in chunks to avoid memory overload
587 $bufferSize = 8096; // 8KB
588 $chunksRead = 0;
589
590 while ( !feof( $inputStream ) ) {
591 $buffer = fread( $inputStream, $bufferSize );
592 fwrite( $outputStream, $buffer );
593 $chunksRead++;
594
595 // Send progress update
596 if ( $progressBar ) {
597 $progress = $chunksRead;
598 echo json_encode( ['progress' => $progress] );
599
600 // Check if output buffering is active before calling ob_flush()
601 if ( ob_get_length() !== false ) {
602 ob_flush();
603 }
604 flush();
605 }
606 }
607
608 fclose( $inputStream );
609 fclose( $outputStream );
610
611 return ['success' => true];
612 }

References Log\error().

◆ getHomepagePath()

getHomepagePath ( $aetrayPath = false)

Definition at line 133 of file class.core.php.

134 {
135 return $this->getResourcesPath( $aetrayPath ) . '/homepage';
136 }

References getResourcesPath().

Referenced by getAjaxPath().

◆ getHostsEditorExe()

getHostsEditorExe ( $aetrayPath = false)

Retrieves the path to the HostsEditor executable.

Parameters
bool$aetrayPathWhether to format the path for AeTrayMenu.
Returns
string The path to the HostsEditor executable.

Definition at line 409 of file class.core.php.

410 {
411 return $this->getHostsEditorPath( $aetrayPath ) . '/' . self::HOSTSEDITOR_EXE;
412 }
getHostsEditorPath($aetrayPath=false)

References getHostsEditorPath().

◆ getHostsEditorPath()

getHostsEditorPath ( $aetrayPath = false)

Retrieves the path to the HostsEditor directory.

Parameters
bool$aetrayPathWhether to format the path for AeTrayMenu.
Returns
string The path to the HostsEditor directory.

Definition at line 397 of file class.core.php.

398 {
399 return $this->getLibsPath( $aetrayPath ) . '/hostseditor';
400 }

References getLibsPath().

Referenced by getHostsEditorExe().

◆ getIconsPath()

getIconsPath ( $aetrayPath = false)

Retrieves the path to the icons.

Parameters
bool$aetrayPathWhether to format the path for AeTrayMenu.
Returns
string The path to the icons.

Definition at line 100 of file class.core.php.

101 {
102 return $this->getImagesPath($aetrayPath) . '/icons';
103 }
getImagesPath($aetrayPath=false)

References getImagesPath().

◆ getImagesPath()

getImagesPath ( $aetrayPath = false)

Retrieves the path to the images.

Parameters
bool$aetrayPathWhether to format the path for AeTrayMenu.
Returns
string The path to the images.

Definition at line 112 of file class.core.php.

113 {
114 global $bearsamppCore;
115
116 return $bearsamppCore->getHomepagePath($aetrayPath) . '/img';
117 }
global $bearsamppCore

References $bearsamppCore.

Referenced by getIconsPath().

◆ getisRootFilePath()

getisRootFilePath ( $aetrayPath = false)

Retrieves the path to the root file.

Parameters
bool$aetrayPathWhether to format the path for AeTrayMenu.
Returns
string The path to the root file.

Definition at line 176 of file class.core.php.

177 {
178 global $bearsamppRoot;
179
180 return $bearsamppRoot->getCorePath( $aetrayPath ) . '/' . self::isRoot_FILE;
181 }
global $bearsamppRoot

References $bearsamppRoot.

◆ getLangsPath()

getLangsPath ( $aetrayPath = false)

Retrieves the path to the language files.

Parameters
bool$aetrayPathWhether to format the path for AeTrayMenu.
Returns
string The path to the language files.

Definition at line 58 of file class.core.php.

59 {
60 global $bearsamppRoot;
61
62 return $bearsamppRoot->getCorePath( $aetrayPath ) . '/langs';
63 }

References $bearsamppRoot.

◆ getLastPath()

getLastPath ( $aetrayPath = false)

Retrieves the path to the last path file.

Parameters
bool$aetrayPathWhether to format the path for AeTrayMenu.
Returns
string The path to the last path file.

Definition at line 209 of file class.core.php.

210 {
211 return $this->getResourcesPath( $aetrayPath ) . '/' . self::LAST_PATH;
212 }

References getResourcesPath().

Referenced by getLastPathContent().

◆ getLastPathContent()

getLastPathContent ( )

Retrieves the content of the last path file.

Returns
string|false The content of the last path file or false on failure.

Definition at line 219 of file class.core.php.

220 {
221 return @file_get_contents( $this->getLastPath() );
222 }
getLastPath($aetrayPath=false)

References getLastPath().

◆ getLibsPath()

getLibsPath ( $aetrayPath = false)

Retrieves the path to the libraries.

Parameters
bool$aetrayPathWhether to format the path for AeTrayMenu.
Returns
string The path to the libraries.

Definition at line 72 of file class.core.php.

73 {
74 global $bearsamppRoot;
75
76 return $bearsamppRoot->getCorePath( $aetrayPath ) . '/libs';
77 }

References $bearsamppRoot.

Referenced by __construct(), getHostsEditorPath(), getLnPath(), getNssmPath(), getOpenSslPath(), getPhpPath(), getPwgenPath(), getSetEnvPath(), and unzipFile().

◆ getLnExe()

getLnExe ( $aetrayPath = false)

Retrieves the path to the LN executable.

Parameters
bool$aetrayPathWhether to format the path for AeTrayMenu.
Returns
string The path to the LN executable.

Definition at line 433 of file class.core.php.

434 {
435 return $this->getLnPath( $aetrayPath ) . '/' . self::LN_EXE;
436 }
getLnPath($aetrayPath=false)

References getLnPath().

◆ getLnPath()

getLnPath ( $aetrayPath = false)

Retrieves the path to the LN directory.

Parameters
bool$aetrayPathWhether to format the path for AeTrayMenu.
Returns
string The path to the LN directory.

Definition at line 421 of file class.core.php.

422 {
423 return $this->getLibsPath( $aetrayPath ) . '/ln';
424 }

References getLibsPath().

Referenced by getLnExe().

◆ getLoadingPid()

getLoadingPid ( $aetrayPath = false)

Retrieves the path to the loading PID file.

Parameters
bool$aetrayPathWhether to format the path for AeTrayMenu.
Returns
string The path to the loading PID file.

Definition at line 267 of file class.core.php.

268 {
269 return $this->getResourcesPath( $aetrayPath ) . '/' . self::LOADING_PID;
270 }

References getResourcesPath().

Referenced by addLoadingPid().

◆ getNssmExe()

getNssmExe ( $aetrayPath = false)

Retrieves the path to the NSSM executable.

Parameters
bool$aetrayPathWhether to format the path for AeTrayMenu.
Returns
string The path to the NSSM executable.

Definition at line 349 of file class.core.php.

350 {
351 return $this->getNssmPath( $aetrayPath ) . '/' . self::NSSM_EXE;
352 }
getNssmPath($aetrayPath=false)

References getNssmPath().

◆ getNssmPath()

getNssmPath ( $aetrayPath = false)

Retrieves the path to the NSSM directory.

Parameters
bool$aetrayPathWhether to format the path for AeTrayMenu.
Returns
string The path to the NSSM directory.

Definition at line 337 of file class.core.php.

338 {
339 return $this->getLibsPath( $aetrayPath ) . '/nssm';
340 }

References getLibsPath().

Referenced by getNssmExe().

◆ getOpenSslConf()

getOpenSslConf ( $aetrayPath = false)

Retrieves the path to the OpenSSL configuration file.

Parameters
bool$aetrayPathWhether to format the path for AeTrayMenu.
Returns
string The path to the OpenSSL configuration file.

Definition at line 385 of file class.core.php.

386 {
387 return $this->getOpenSslPath( $aetrayPath ) . '/' . self::OPENSSL_CONF;
388 }
getOpenSslPath($aetrayPath=false)

References getOpenSslPath().

◆ getOpenSslExe()

getOpenSslExe ( $aetrayPath = false)

Retrieves the path to the OpenSSL executable.

Parameters
bool$aetrayPathWhether to format the path for AeTrayMenu.
Returns
string The path to the OpenSSL executable.

Definition at line 373 of file class.core.php.

374 {
375 return $this->getOpenSslPath( $aetrayPath ) . '/' . self::OPENSSL_EXE;
376 }

References getOpenSslPath().

◆ getOpenSslPath()

getOpenSslPath ( $aetrayPath = false)

Retrieves the path to the OpenSSL directory.

Parameters
bool$aetrayPathWhether to format the path for AeTrayMenu.
Returns
string The path to the OpenSSL directory.

Definition at line 361 of file class.core.php.

362 {
363 return $this->getLibsPath( $aetrayPath ) . '/openssl';
364 }

References getLibsPath().

Referenced by getOpenSslConf(), and getOpenSslExe().

◆ getPhpExe()

getPhpExe ( $aetrayPath = false)

Retrieves the path to the PHP executable.

Parameters
bool$aetrayPathWhether to format the path for AeTrayMenu.
Returns
string The path to the PHP executable.

Definition at line 301 of file class.core.php.

302 {
303 return $this->getPhpPath( $aetrayPath ) . '/' . self::PHP_EXE;
304 }
getPhpPath($aetrayPath=false)

References getPhpPath().

◆ getPhpPath()

getPhpPath ( $aetrayPath = false)

Retrieves the path to the PHP directory.

Parameters
bool$aetrayPathWhether to format the path for AeTrayMenu.
Returns
string The path to the PHP directory.

Definition at line 289 of file class.core.php.

290 {
291 return $this->getLibsPath( $aetrayPath ) . '/php';
292 }

References getLibsPath().

Referenced by getPhpExe().

◆ getPreviousExec()

getPreviousExec ( )

Retrieves the content of the exec file without unlinking it.

Returns
string|false The content of the exec file or false if it doesn't exist.

Definition at line 229 of file class.core.php.

230 {
231 $file = $this->getExec();
232 if (file_exists($file)) {
233 return trim(file_get_contents($file));
234 }
235 return false;
236 }
getExec($aetrayPath=false)

References getExec().

◆ getPwgenExe()

getPwgenExe ( $aetrayPath = false)

Retrieves the path to the PWGen executable.

Parameters
bool$aetrayPathWhether to format the path for AeTrayMenu.
Returns
string The path to the PWGen executable.

Definition at line 457 of file class.core.php.

458 {
459 return $this->getPwgenPath( $aetrayPath ) . '/' . self::PWGEN_EXE;
460 }
getPwgenPath($aetrayPath=false)

References getPwgenPath().

◆ getPwgenPath()

getPwgenPath ( $aetrayPath = false)

Retrieves the path to the PWGen directory.

Parameters
bool$aetrayPathWhether to format the path for AeTrayMenu.
Returns
string The path to the PWGen directory.

Definition at line 445 of file class.core.php.

446 {
447 return $this->getLibsPath( $aetrayPath ) . '/pwgen';
448 }

References getLibsPath().

Referenced by getPwgenExe().

◆ getResourcesPath()

getResourcesPath ( $aetrayPath = false)

Retrieves the path to the resources.

Parameters
bool$aetrayPathWhether to format the path for AeTrayMenu.
Returns
string The path to the resources.

Definition at line 86 of file class.core.php.

87 {
88 global $bearsamppRoot;
89
90 return $bearsamppRoot->getCorePath( $aetrayPath ) . '/resources';
91 }

References $bearsamppRoot.

Referenced by getAppVersion(), getHomepagePath(), getLastPath(), and getLoadingPid().

◆ getScript()

getScript ( $type)

Retrieves the path to a specific script.

Parameters
string$typeThe type of script.
Returns
string The path to the script.

Definition at line 150 of file class.core.php.

151 {
152 return $this->getScriptsPath() . '/' . $type;
153 }
getScriptsPath($aetrayPath=false)

References getScriptsPath().

◆ getScriptsPath()

getScriptsPath ( $aetrayPath = false)

Retrieves the path to the scripts.

Parameters
bool$aetrayPathWhether to format the path for AeTrayMenu.
Returns
string The path to the scripts.

Definition at line 126 of file class.core.php.

127 {
128 global $bearsamppRoot;
129
130 return $bearsamppRoot->getCorePath( $aetrayPath ) . '/scripts';
131 }

References $bearsamppRoot.

Referenced by getScript().

◆ getSetEnvExe()

getSetEnvExe ( $aetrayPath = false)

Retrieves the path to the SetEnv executable.

Parameters
bool$aetrayPathWhether to format the path for AeTrayMenu.
Returns
string The path to the SetEnv executable.

Definition at line 325 of file class.core.php.

326 {
327 return $this->getSetEnvPath( $aetrayPath ) . '/' . self::SETENV_EXE;
328 }
getSetEnvPath($aetrayPath=false)

References getSetEnvPath().

◆ getSetEnvPath()

getSetEnvPath ( $aetrayPath = false)

Retrieves the path to the SetEnv directory.

Parameters
bool$aetrayPathWhether to format the path for AeTrayMenu.
Returns
string The path to the SetEnv directory.

Definition at line 313 of file class.core.php.

314 {
315 return $this->getLibsPath( $aetrayPath ) . '/setenv';
316 }

References getLibsPath().

Referenced by getSetEnvExe().

◆ getTmpPath()

getTmpPath ( $aetrayPath = false)

Retrieves the path to the temporary directory.

Parameters
bool$aetrayPathWhether to format the path for AeTrayMenu.
Returns
string The path to the temporary directory.

Definition at line 162 of file class.core.php.

163 {
164 global $bearsamppRoot;
165
166 return $bearsamppRoot->getCorePath( $aetrayPath ) . '/tmp';
167 }

References $bearsamppRoot.

Referenced by getExec().

◆ setExec()

setExec ( $action)

Sets the content of the exec file.

Parameters
string$actionThe content to set in the exec file.

Definition at line 255 of file class.core.php.

256 {
257 file_put_contents( $this->getExec(), $action );
258 }

References getExec().

◆ unzipFile()

unzipFile ( $filePath,
$destination,
$progressCallback = null )

Unzips a file to the specified directory and provides progress updates.

This method uses the 7-Zip command-line tool to extract the contents of a zip file. It first tests the archive to determine the number of files to be extracted, then proceeds with the extraction while providing progress updates via a callback function.

Parameters
string$filePathThe path to the zip file.
string$destinationThe directory to extract the files to.
callable | null$progressCallbackA callback function to report progress. The callback receives two parameters:
  • int $currentFile: The current file number being extracted.
  • int $totalFiles: The total number of files to be extracted.

@global object $bearsamppRoot Global object to get core paths.

Returns
array|false An array containing the result of the extraction on success or failure:
  • On success: ['success' => true, 'numFiles' => int]
  • On failure: ['error' => string, 'numFiles' => int]
  • Returns false if the 7-Zip executable is not found.

Definition at line 492 of file class.core.php.

493 {
494 global $bearsamppRoot;
495
496 $sevenZipPath = $this->getLibsPath() . '/7zip/7za.exe';
497
498 if ( !file_exists( $sevenZipPath ) ) {
499 Log::error( '7za.exe not found at: ' . $sevenZipPath );
500
501 return false;
502 }
503
504 // Test the archive to determine the number of files
505 $testOutput = CommandRunner::exec($sevenZipPath, ['t', $filePath, '-y', '-bsp1']);
506 preg_match('/Files: (\d+)/', $testOutput !== false ? $testOutput : '', $matches);
507 $numFiles = isset($matches[1]) ? (int) $matches[1] : 0;
508 Log::trace('Number of files to be extracted: ' . $numFiles);
509
510 // Extract the archive, streaming progress line-by-line
511 $returnVar = CommandRunner::stream(
512 $sevenZipPath,
513 ['x', $filePath, '-y', '-bsp1', '-bb0', '-o' . $destination],
514 function (string $line) use ($progressCallback) {
515 Log::trace("Processing line: $line");
516 if ($line === 'Everything is Ok') {
517 if ($progressCallback) {
518 Log::trace('Extraction progress: 100%');
519 call_user_func($progressCallback, 100);
520 }
521 } elseif ($progressCallback && preg_match('/(?:^|\s)(\d+)%/', $line, $matches)) {
522 $currentPercentage = intval($matches[1]);
523 Log::trace("Extraction progress: $currentPercentage%");
524 call_user_func($progressCallback, $currentPercentage);
525 } else {
526 Log::trace("Line did not match pattern: $line");
527 }
528 }
529 );
530
531 if ($returnVar === false) {
532 Log::error('Failed to open process for: ' . $sevenZipPath);
533 return ['error' => 'Failed to open process', 'numFiles' => $numFiles];
534 }
535
536 Log::trace('Command return value: ' . $returnVar);
537
538 if ($returnVar === 0 && $progressCallback) {
539 Log::trace('Extraction completed successfully. Setting progress to 100%');
540 call_user_func($progressCallback, 100);
541 usleep(100000); // 100 milliseconds
542 }
543
544 if ($returnVar === 0) {
545 Log::debug('Successfully unzipped file to: ' . $destination);
546 return ['success' => true, 'numFiles' => $numFiles];
547 }
548
549 Log::error('Failed to unzip file. Command return value: ' . $returnVar);
550 return ['error' => 'Failed to unzip file', 'numFiles' => $numFiles];
551 }
static stream(string $executable, array $args, callable $lineCallback)
static exec(string $executable, array $args=[], string &$stderr='')
static debug($data, $file=null)
static trace($data, $file=null)

References $bearsamppRoot, Log\debug(), Log\error(), CommandRunner\exec(), getLibsPath(), CommandRunner\stream(), and Log\trace().

Field Documentation

◆ APP_VERSION

const APP_VERSION = 'version.dat'

Definition at line 34 of file class.core.php.

◆ EXEC

const EXEC = 'exec.dat'

Definition at line 36 of file class.core.php.

◆ HOSTSEDITOR_EXE

const HOSTSEDITOR_EXE = 'hEdit_x64.exe'

Definition at line 30 of file class.core.php.

◆ isRoot_FILE

const isRoot_FILE = 'root.php'

Definition at line 21 of file class.core.php.

Referenced by Batch\exitApp(), TplApp\getActionRun(), and Util\startLoading().

◆ LAST_PATH

const LAST_PATH = 'lastPath.dat'

Definition at line 35 of file class.core.php.

◆ LN_EXE

const LN_EXE = 'ln.exe'

Definition at line 31 of file class.core.php.

◆ LOADING_PID

const LOADING_PID = 'loading.pid'

Definition at line 37 of file class.core.php.

◆ NSSM_EXE

const NSSM_EXE = 'nssm.exe'

Definition at line 27 of file class.core.php.

◆ OPENSSL_CONF

const OPENSSL_CONF = 'openssl.cfg'

Definition at line 29 of file class.core.php.

◆ OPENSSL_EXE

const OPENSSL_EXE = 'openssl.exe'

Definition at line 28 of file class.core.php.

◆ PATH_LIN_PLACEHOLDER

const PATH_LIN_PLACEHOLDER = '~BEARSAMPP_LIN_PATH~'

Definition at line 23 of file class.core.php.

Referenced by Util\changePath().

◆ PATH_WIN_PLACEHOLDER

const PATH_WIN_PLACEHOLDER = '~BEARSAMPP_WIN_PATH~'

Definition at line 22 of file class.core.php.

Referenced by Util\changePath().

◆ PHP_EXE

const PHP_EXE = 'php-win.exe'

Definition at line 25 of file class.core.php.

◆ PWGEN_EXE

const PWGEN_EXE = "PWGenPortable.exe"

Definition at line 32 of file class.core.php.

◆ SETENV_EXE

const SETENV_EXE = 'SetEnv.exe'

Definition at line 26 of file class.core.php.


The documentation for this class was generated from the following file: