PluginProbe
ووسلام – همگام سازی ووکامرس و باسلام / 1.10.29
ووسلام – همگام سازی ووکامرس و باسلام v1.10.29
1.10.29 1.10.28 1.1.26 1.10.27 1.10.24 1.10.25 1.10.23 1.10.22 1.10.21 1.10.19 1.10.20 1.10.18 1.10.17 1.10.15 1.10.14 1.10.13 1.10.12 1.10.10 1.10.9 1.10.8 1.10.7 1.10.6 1.10.5 1.10.4 1.10.3 All 62 releases
sync-basalam / tests / integration / webservers / install.php

install.php in ووسلام – همگام سازی ووکامرس و باسلام 1.10.29, at tests/integration/webservers/install.php

18 lines 947 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 if (PHP_SAPI !== 'cli' || !getenv('MATRIX_TOKEN')) throw new RuntimeException('Disposable matrix CLI only.');
3 define('WP_INSTALLING', true);
4 require '/var/www/html/wp-load.php';
5 if (wp_get_environment_type() !== 'local') throw new RuntimeException('Local matrix only.');
6 require_once ABSPATH . 'wp-admin/includes/upgrade.php';
7 if (!is_blog_installed()) {
8 wp_install('Async worker matrix', 'matrix-admin', '[email protected]', true, '', 'disposable-local-only');
9 }
10 require_once ABSPATH . 'wp-admin/includes/plugin.php';
11 foreach (['woocommerce/woocommerce.php', 'sync-basalam/sync-basalam.php'] as $plugin) {
12 $result = activate_plugin($plugin);
13 if (is_wp_error($result)) throw new RuntimeException($result->get_error_message());
14 }
15 update_option('sync_basalam_settings', ['tasks_per_minute' => 600, 'tasks_per_minute_auto' => false]);
16 update_option('sync_basalam_version', '1.10.29');
17 echo "Disposable WordPress installed.\n";
18