PluginProbe
Affiliate Super Assistent / 4.1.17
Affiliate Super Assistent v4.1.17
1.10.3 1.10.2 1.10.1 trunk 0.9.0 0.9.1 0.9.10 0.9.10.1 0.9.10.2 0.9.11 0.9.11.1 0.9.11.2 0.9.12 0.9.13 0.9.14 0.9.15 0.9.16 0.9.17 0.9.18 0.9.2 0.9.22 0.9.3 0.9.3.1 0.9.4 0.9.4.1 All 73 releases
amazonsimpleadmin / amazonsimpleadmin.php

amazonsimpleadmin.php in Affiliate Super Assistent 4.1.17, at amazonsimpleadmin.php

51 lines 2.3 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 /*
3 Plugin Name: Affiliate Simple Assistent (ASA1)
4 Plugin URI: http://www.wp-amazon-plugin.com/
5 Description: Lets you easily <strong>embed Amazon products</strong> into your WordPress posts by use of <strong>[asa]ASIN[/asa]</strong> shortcode. Supports the use of custom templates. You can choose from various presentation styles and of course create your own template in a few seconds.
6 Version: 1.4.17
7 Author: Timo Reith
8 Author URI: http://www.ifeelweb.de/
9 */
10
11 /* Copyright 2007-2013 Timo Reith (email : support@wp-amazon-plugin.com)
12
13 This program is free software; you can redistribute it and/or modify
14 it under the terms of the GNU General Public License as published by
15 the Free Software Foundation; either version 2 of the License, or
16 (at your option) any later version.
17
18 This program is distributed in the hope that it will be useful,
19 but WITHOUT ANY WARRANTY; without even the implied warranty of
20 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
21 GNU General Public License for more details.
22
23 You should have received a copy of the GNU General Public License
24 along with this program; if not, write to the Free Software
25 Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
26 */
27 if (version_compare(phpversion(), '5.5') === -1) {
28
29 $active_plugins = get_option('active_plugins');
30
31 if (in_array('amazonsimpleadmin/amazonsimpleadmin.php', $active_plugins)) {
32
33 // foreach loop removes all entries if there are more than one for the same plugin
34 // like I discovered in my test database
35 // array_splice($active_plugins, array_search('amazonsimpleadmin/amazonsimpleadmin.php', $active_plugins), 1);
36 // array_splice only removes one entry which could be not enough in some cases
37 $new_plungins = array();
38 foreach($active_plugins as $plugin) {
39 if ($plugin != 'amazonsimpleadmin/amazonsimpleadmin.php' && !empty($plugin)) {
40 $new_plungins[] = $plugin;
41 }
42 }
43 update_option('active_plugins', $new_plungins);
44 }
45
46 die('Your PHP Version is not compatible with this Plugin. <a href="plugins.php">back</a>');
47 }
48
49 define('ASA_BASE_FILE', __FILE__);
50 define('ASA_LIB_DIR', dirname(__FILE__) . '/lib/');
51 include_once(dirname(__FILE__) . '/AsaCore.php');