summaryrefslogtreecommitdiff
path: root/views/mods
diff options
context:
space:
mode:
authorDaniel Schmitzer <noreply@maennchen1.de>2019-04-29 08:20:56 +0000
committerDaniel Schmitzer <noreply@maennchen1.de>2019-04-29 08:20:56 +0000
commita2c95c8c19ee24f5cdaddcb1dda9b51959c16e89 (patch)
tree78929c20b891f470370457e4b8c6e14bb0fcdb6f /views/mods
parent3e4732295bcdb021e6dbffad0bc8d19157ca7862 (diff)
- Cron nur über URL aufrufbar
git-svn-id: https://[internal]/wordpress/plugins/wpsg4@7400 0d5edaf7-2b12-4e95-93f4-047927463d4b
Diffstat (limited to 'views/mods')
-rw-r--r--views/mods/mod_downloadplus/settings_edit.phtml4
-rw-r--r--views/mods/mod_export/profil.phtml3
2 files changed, 3 insertions, 4 deletions
diff --git a/views/mods/mod_downloadplus/settings_edit.phtml b/views/mods/mod_downloadplus/settings_edit.phtml
index 64fcb8f..5098855 100644
--- a/views/mods/mod_downloadplus/settings_edit.phtml
+++ b/views/mods/mod_downloadplus/settings_edit.phtml
@@ -182,12 +182,12 @@
<p>
<?php echo __('Eintrag in der Crontab:', 'wpsg'); ?>:<br /><br />
<span style="font-weight:bold; font-family:monospace;">
- */5 * * * * /usr/bin/php <?php echo WPSG_PATH.DIRECTORY_SEPARATOR; ?>cron.php
+ */5 * * * * wget -q --spider <?php site_url().'/?wpsg_cron=1'; ?>
</span>
</p>
<p>
<?php echo __('HTTP Aufruf des Cron Scriptes:', 'wpsg'); ?><br /><br />
- <a href="<?php echo WPSG_PLUGIN_URL; ?>/<?php echo WPSG_FOLDERNAME; ?>/cron.php" target="_blank"><?php echo WPSG_PLUGIN_URL.WPSG_FOLDERNAME; ?>/cron.php</a>
+ <a href="<?php echo site_url(); ?>/?wpsg_cron=1" target="_blank"><?php echo site_url(); ?>/?wpsg_cron=1</a>
</p>
</div>
diff --git a/views/mods/mod_export/profil.phtml b/views/mods/mod_export/profil.phtml
index af4236b..5a946c3 100644
--- a/views/mods/mod_export/profil.phtml
+++ b/views/mods/mod_export/profil.phtml
@@ -89,8 +89,7 @@
<?php echo wpsg_drawForm_Text(__('Pfad', 'wpsg'), $this->view['profil']['cron_path'], 'cron_path', array('inlineEdit' => true, 'inlineEdit_url' => $inlineEdit_url)); ?>
<?php echo wpsg_drawForm_Text(__('Letzte Ausführung', 'wpsg'), (($this->view['profil']['cron_lastrun'] == '0000-00-00')?__('Noch nie', 'wpsg'):wpsg_formatTimestamp($this->view['profil']['cron_lastrun'], true)), false, array('noP' => false)); ?>
- <?php echo wpsg_drawForm_Text(__('Cron Pfad', 'wpsg'), WPSG_PATH.DIRECTORY_SEPARATOR.'cron.php', false, array('noP' => false)); ?>
- <?php echo wpsg_drawForm_Text(__('Cron URL', 'wpsg'), '<a href="'.WPSG_PLUGIN_URL.WPSG_FOLDERNAME.'/cron.php">'.WPSG_PLUGIN_URL.WPSG_FOLDERNAME.'/cron.php</a>', false, array('noP' => false)); ?>
+ <?php echo wpsg_drawForm_Text(__('Cron URL', 'wpsg'), '<a href="'.site_url().'/?wpsg_cron=1">'.site_url().'/?wpsg_cron=1</a>', false, array('noP' => false)); ?>
<?php if ($this->view['profil']['export_type'] === wpsg_mod_export::TYPE_ORDER) { ?>
<fieldset id="wpsg_mod_export_orderfilter">