This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| php /usr/local/ispconfig/server/cron_debug.php --cronjob=500-backup.inc.php | |
| 100-mailbox_stats.inc.php 100-monitor_mail_queue.inc.php 150-webalizer.inc.php | |
| 100-monitor_clamav_log.inc.php 100-monitor_mem_usage.inc.php 200-ftplogfiles.inc.php | |
| 100-monitor_cpu.inc.php 100-monitor_mongodb.inc.php~ 200-logfiles.inc.php | |
| 100-monitor_database_size.inc.php 100-monitor_openvz.inc.php 300-quota_notify.inc.php | |
| 100-monitor_disk_usage.inc.php 100-monitor_os_version.inc.php 400-openvz.inc.php | |
| 100-monitor_email_quota.inc.php 100-monitor_raid.inc.php 500-backup.inc.php | |
| 100-monitor_fail2ban.inc.php 100-monitor_rkhunter.inc.php 500-backup_mail.inc.php |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| To make it work you only need to know if the connection is secure (davs) or not (webdav) and if the package davfs2 is installed (open a terminal and type “sudo apt-get install davfs2”). | |
| However in some cases you may want to have this share always mounted in your system and without the need to put credentials. If this is your case, the solution is pretty easy: | |
| Create a folder on your disk into which the web share will be mounted: | |
| sudo mkdir /mnt/sharename | |
| sudo nano /etc/davfs2/secrets | |
| add the line: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| php_flag display_startup_errors on | |
| php_flag display_errors on | |
| php_flag html_errors on | |
| php_flag log_errors on |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # apt-get install --reinstall ca-certificates | |
| # update-ca-certificates |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| function MakeSafe($unsafestring) | |
| { | |
| $unsafestring= htmlentities($unsafestring, ENT_QUOTES); | |
| if (get_magic_quotes_gpc()) | |
| { | |
| $unsafestring= stripslashes($unsafestring); | |
| } | |
| $unsafestring= mysql_real_escape_string(trim($unsafestring)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| /* ---------------------------------------------------------------------------- | |
| * Remove default image sizes | |
| * ------------------------------------------------------------------------- */ | |
| //Remove default image sizes | |
| add_action('init', 'remove_plugin_image_sizes'); | |
| function remove_plugin_image_sizes() { | |
| remove_image_size('shop_thumbnail'); | |
| remove_image_size('shop_catalog'); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| global $product; | |
| // $product->is_type( $type ) checks the product type, string/array $type ( 'simple', 'grouped', 'variable', 'external' ), returns boolean | |
| if ( $product->is_type( 'variable' ) ) {} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| WP_PLUGIN_DIR // full path, no trailing slash | |
| WP_PLUGIN_URL // full url, no trailing slash |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| $page_id = get_queried_object_id(); | |
| echo $page_id; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| //indentation filter spring in text tyinimce | |
| function modify_tinymce_settings($settings) { | |
| $settings['indentation'] = '10px'; | |
| return $settings; | |
| } | |
| add_filter('tiny_mce_before_init', 'modify_tinymce_settings'); |