rename Code to src

This commit is contained in:
Mike Macgirvin 2024-03-13 16:21:03 +11:00
parent 4c2f80ba5f
commit 64cb01c166
563 changed files with 35382 additions and 35382 deletions

View file

@ -1 +1 @@
*/10 * * * * cd /app; /usr/local/bin/php Code/Daemon/Run.php Cron > /dev/null 2>&1 */10 * * * * cd /app; /usr/local/bin/php src/Daemon/Run.php Cron > /dev/null 2>&1

View file

@ -68,7 +68,7 @@
"autoload": { "autoload": {
"psr-4": { "psr-4": {
"Include\\": "include/", "Include\\": "include/",
"Code\\": "Code/" "Code\\": "src/"
} }
}, },
"autoload-dev": { "autoload-dev": {

View file

@ -304,9 +304,9 @@ function configure_daily_update {
function configure_cron_daily { function configure_cron_daily {
print_info "configuring cron..." print_info "configuring cron..."
# every 10 min for Run.php # every 10 min for Run.php
if [[ -z $(grep "/var/www/$install_folder; php Code/Daemon/Run.php" /etc/crontab) ]] if [[ -z $(grep "/var/www/$install_folder; php src/Daemon/Run.php" /etc/crontab) ]]
then then
echo "*/10 * * * * www-data cd $install_path; php Code/Daemon/Run.php Cron >> /dev/null 2>&1" >> /etc/crontab echo "*/10 * * * * www-data cd $install_path; php src/Daemon/Run.php Cron >> /dev/null 2>&1" >> /etc/crontab
fi fi
# Run external script daily at 05:30 to update repository core and addon # Run external script daily at 05:30 to update repository core and addon

View file

@ -518,9 +518,9 @@ function configure_daily_update {
function configure_cron_daily { function configure_cron_daily {
print_info "configuring cron..." print_info "configuring cron..."
# every 10 min for poller.php # every 10 min for poller.php
if [ -z "`grep 'php Code/Daemon/Run.php' /etc/crontab`" ] if [ -z "`grep 'php src/Daemon/Run.php' /etc/crontab`" ]
then then
echo "*/10 * * * * www-data cd $install_path; php Code/Daemon/Run.php Cron >> /dev/null 2>&1" >> /etc/crontab echo "*/10 * * * * www-data cd $install_path; php src/Daemon/Run.php Cron >> /dev/null 2>&1" >> /etc/crontab
fi fi
# Run external script daily at 05:30 # Run external script daily at 05:30
# - stop apache/nginx and mysql-server # - stop apache/nginx and mysql-server

View file

@ -34,7 +34,7 @@ Then we're going to create a comment block to describe the addon. There's a spec
[/code] [/code]
These tags will be seen by the site administrator when he/she installs or manages plugins from the admin panel. There can be more than one author. Just add another line starting with 'Author:'. These tags will be seen by the site administrator when he/she installs or manages plugins from the admin panel. There can be more than one author. Just add another line starting with 'Author:'.
Next we will create a 'use' statement to include the code in Code/Lib/Apps.php Next we will create a 'use' statement to include the code in src/Lib/Apps.php
[code] [code]
use Code\Lib\Apps; use Code\Lib\Apps;

View file

@ -115,13 +115,13 @@ Ze względu na bezpieczeństwo witryny nie ma możliwości zapewnienia dostępu
Skonfiguruj zadanie crona lub zaplanowane zadanie, aby uruchamiać menedżera crona co 10-15 minut do wykonywania w tle zadań przetwarzania i konserwacji. Przykład: Skonfiguruj zadanie crona lub zaplanowane zadanie, aby uruchamiać menedżera crona co 10-15 minut do wykonywania w tle zadań przetwarzania i konserwacji. Przykład:
cd /base/directory; /path/to/php Code/Daemon/Run.php Cron cd /base/directory; /path/to/php src/Daemon/Run.php Cron
Zmień "/base/directory" i "/path/to/php" na swoje rzeczywiste ścieżki. Zmień "/base/directory" i "/path/to/php" na swoje rzeczywiste ścieżki.
Jeśli używasz serwera Linux, uruchom "crontab -e" i dodaj linię podobną do pokazanej niżej, zastępując ścieżki i ustawienia swoimi danymi: Jeśli używasz serwera Linux, uruchom "crontab -e" i dodaj linię podobną do pokazanej niżej, zastępując ścieżki i ustawienia swoimi danymi:
*/10 * * * * cd /home/myname/mywebsite; /usr/bin/php Code/Daemon/Run.php Cron > /dev/null 2>&1 */10 * * * * cd /home/myname/mywebsite; /usr/bin/php src/Daemon/Run.php Cron > /dev/null 2>&1
Na ogół możesz znaleźć lokalizację PHP, wykonując "which php". Jeśli masz problemy z tą sekcją, skontaktuj się z dostawcą usług hostingowych w celu uzyskania pomocy. Oprogramowanie nie będzie działać poprawnie, jeśli nie możesz wykonać tego kroku. Na ogół możesz znaleźć lokalizację PHP, wykonując "which php". Jeśli masz problemy z tą sekcją, skontaktuj się z dostawcą usług hostingowych w celu uzyskania pomocy. Oprogramowanie nie będzie działać poprawnie, jeśli nie możesz wykonać tego kroku.

View file

@ -8,7 +8,7 @@ namespace Code\Web;
* @brief The main entry point to the application. * @brief The main entry point to the application.
*/ */
require_once 'Code/Web/WebServer.php'; require_once 'src/Web/WebServer.php';
$server = new WebServer(); $server = new WebServer();
$server->run(); $server->run();

View file

@ -214,14 +214,14 @@ using web forms.
8. Set up a cron job or scheduled task to run the Cron manager once every 10-15 8. Set up a cron job or scheduled task to run the Cron manager once every 10-15
minutes to perform background processing and maintenance. Example: minutes to perform background processing and maintenance. Example:
cd /base/directory; /path/to/php Code/Daemon/Run.php Cron cd /base/directory; /path/to/php src/Daemon/Run.php Cron
Change "/base/directory", and "/path/to/php" as appropriate for your situation. Change "/base/directory", and "/path/to/php" as appropriate for your situation.
If you are using a Linux server, run "crontab -e" and add a line like the If you are using a Linux server, run "crontab -e" and add a line like the
one shown, substituting for your unique paths and settings: one shown, substituting for your unique paths and settings:
*/10 * * * * cd /home/myname/mywebsite; /usr/bin/php Code/Daemon/Run.php Cron > /dev/null 2>&1 */10 * * * * cd /home/myname/mywebsite; /usr/bin/php src/Daemon/Run.php Cron > /dev/null 2>&1
You can generally find the location of PHP by executing "which php". If you You can generally find the location of PHP by executing "which php". If you
have troubles with this section please contact your hosting provider for have troubles with this section please contact your hosting provider for

View file

@ -112,7 +112,7 @@ jquery.i18n:
min: min:
[echo] Building ./jquery.i18n.min.js [echo] Building ./jquery.i18n.min.js
[apply] Applied java to 1 file and 0 directories. [apply] Applied java to 1 file and 0 directories.
[delete] Deleting: /Users/dave/Documents/Code/jquery/jquery-i18n/tmpmin [delete] Deleting: /Users/dave/Documents/src/jquery/jquery-i18n/tmpmin
[echo] ./jquery.i18n.min.js built. [echo] ./jquery.i18n.min.js built.
BUILD SUCCESSFUL BUILD SUCCESSFUL

View file

@ -50,7 +50,7 @@ class Run
return; return;
} }
proc_run('php', 'Code/Daemon/Run.php', $arr); proc_run('php', 'src/Daemon/Run.php', $arr);
} }
/** @noinspection PhpUnusedParameterInspection */ /** @noinspection PhpUnusedParameterInspection */

View file

@ -55,7 +55,7 @@ class Thumbnail implements DaemonInterface
$default_controller = null; $default_controller = null;
$files = glob('Code/Thumbs/*.php'); $files = glob('src/Thumbs/*.php');
if ($files) { if ($files) {
foreach ($files as $f) { foreach ($files as $f) {
$clsname = '\\Code\\Thumbs\\' . ucfirst(basename($f, '.php')); $clsname = '\\Code\\Thumbs\\' . ucfirst(basename($f, '.php'));

View file

@ -67,7 +67,7 @@ class DB_Upgrade
$retval = $update->run(); $retval = $update->run();
if ($retval != UPDATE_SUCCESS) { if ($retval != UPDATE_SUCCESS) {
$source = t('Source code of failed update: ') . "\n\n" . @file_get_contents('Code/Update/' . $configString . '.php'); $source = t('Source code of failed update: ') . "\n\n" . @file_get_contents('src/Update/' . $configString . '.php');
// Prevent sending hundreds of thousands of emails by creating // Prevent sending hundreds of thousands of emails by creating

Some files were not shown because too many files have changed in this diff Show more