mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 01:55:13 +00:00
rename Code to src
This commit is contained in:
parent
4c2f80ba5f
commit
64cb01c166
563 changed files with 35382 additions and 35382 deletions
|
@ -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
|
||||
|
|
|
@ -68,7 +68,7 @@
|
|||
"autoload": {
|
||||
"psr-4": {
|
||||
"Include\\": "include/",
|
||||
"Code\\": "Code/"
|
||||
"Code\\": "src/"
|
||||
}
|
||||
},
|
||||
"autoload-dev": {
|
||||
|
|
|
@ -304,9 +304,9 @@ function configure_daily_update {
|
|||
function configure_cron_daily {
|
||||
print_info "configuring cron..."
|
||||
# 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
|
||||
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
|
||||
|
||||
# Run external script daily at 05:30 to update repository core and addon
|
||||
|
|
|
@ -518,9 +518,9 @@ function configure_daily_update {
|
|||
function configure_cron_daily {
|
||||
print_info "configuring cron..."
|
||||
# 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
|
||||
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
|
||||
# Run external script daily at 05:30
|
||||
# - stop apache/nginx and mysql-server
|
||||
|
|
|
@ -34,7 +34,7 @@ Then we're going to create a comment block to describe the addon. There's a spec
|
|||
[/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:'.
|
||||
|
||||
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]
|
||||
use Code\Lib\Apps;
|
||||
|
|
|
@ -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:
|
||||
|
||||
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.
|
||||
|
||||
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.
|
||||
|
||||
|
|
|
@ -8,7 +8,7 @@ namespace Code\Web;
|
|||
* @brief The main entry point to the application.
|
||||
*/
|
||||
|
||||
require_once 'Code/Web/WebServer.php';
|
||||
require_once 'src/Web/WebServer.php';
|
||||
|
||||
$server = new WebServer();
|
||||
$server->run();
|
||||
|
|
|
@ -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
|
||||
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.
|
||||
|
||||
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:
|
||||
|
||||
*/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
|
||||
have troubles with this section please contact your hosting provider for
|
||||
|
|
|
@ -112,7 +112,7 @@ jquery.i18n:
|
|||
min:
|
||||
[echo] Building ./jquery.i18n.min.js
|
||||
[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.
|
||||
|
||||
BUILD SUCCESSFUL
|
||||
|
|
|
@ -50,7 +50,7 @@ class Run
|
|||
return;
|
||||
}
|
||||
|
||||
proc_run('php', 'Code/Daemon/Run.php', $arr);
|
||||
proc_run('php', 'src/Daemon/Run.php', $arr);
|
||||
}
|
||||
|
||||
/** @noinspection PhpUnusedParameterInspection */
|
|
@ -55,7 +55,7 @@ class Thumbnail implements DaemonInterface
|
|||
|
||||
$default_controller = null;
|
||||
|
||||
$files = glob('Code/Thumbs/*.php');
|
||||
$files = glob('src/Thumbs/*.php');
|
||||
if ($files) {
|
||||
foreach ($files as $f) {
|
||||
$clsname = '\\Code\\Thumbs\\' . ucfirst(basename($f, '.php'));
|
|
@ -67,7 +67,7 @@ class DB_Upgrade
|
|||
$retval = $update->run();
|
||||
|
||||
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
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Reference in a new issue