Plugin Directory

Changeset 721626


Ignore:
Timestamp:
06/02/2013 01:12:55 PM (13 years ago)
Author:
leethompson
Message:

Added more error checking

Location:
lazy-pinner
Files:
1 added
4 edited
4 copied

Legend:

Unmodified
Added
Removed
  • lazy-pinner/tags/2.2/includes/admin.php

    r716328 r721626  
    1818
    1919function draw_form(){
    20     if(function_exists( 'mcrypt_module_open' ) ){
     20            if(function_exists( 'mcrypt_module_open' ) && !ini_get('safe_mode') && !ini_get('open_basedir') ){
    2121        global $wpdb;
    2222            $wpdb->show_errors();
     
    3232    }
    3333    else {
    34                 echo "<div class=\"error\">Mcrypt Not Installed</div>";
     34                echo "<div class=\"error\">Your server is not configured to use this plugin. </div>";
     35        Main_error();
    3536    }
    3637?>
     
    233234    draw_form();
    234235}
    235 ?>
    236 
     236
     237function Main_error()
     238{
     239echo "<br>This plugin needs the following. Please check your server settings or contact your host."
     240?>
     241<ul>
     242<?php
     243if(!function_exists( 'mcrypt_module_open' )) {
     244?>
     245<li>Mcrypt needs to be installed</li>
     246<?php }
     247if(ini_get('safe_mode')) {
     248?>
     249<li>Safe Mode neeeds to be disabled</li>
     250<?php }
     251if(ini_get('open_basedir')){
     252?>
     253<li>Open_basedir cannot be set</li>
     254<?php  } ?>
     255</ul>
     256<?
     257exit;
     258}
     259
     260?>
     261
  • lazy-pinner/tags/2.2/lazypinner.php

    r716341 r721626  
    44Plugin URI: http://www.biofects.com
    55Description: This plugin automatically post your image and title to pineterst on Publish or Save
    6 Version: 2.1.4
     6Version: 2.2
    77Author: Lee Thompson and Nick Westerlund
    88Author URI: http://www.biofects.com
  • lazy-pinner/tags/2.2/readme.txt

    r716341 r721626  
    55Requires at least: 3.0
    66Tested up to: 3.5.1
    7 Stable tag: 2.1.4
     7Stable tag: 2.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6969= 2.1.4 =
    7070Forgot to save new file
     71
     72= 2.2 =
     73Added some error checking
  • lazy-pinner/trunk/includes/admin.php

    r716328 r721626  
    1818
    1919function draw_form(){
    20     if(function_exists( 'mcrypt_module_open' ) ){
     20            if(function_exists( 'mcrypt_module_open' ) && !ini_get('safe_mode') && !ini_get('open_basedir') ){
    2121        global $wpdb;
    2222            $wpdb->show_errors();
     
    3232    }
    3333    else {
    34                 echo "<div class=\"error\">Mcrypt Not Installed</div>";
     34                echo "<div class=\"error\">Your server is not configured to use this plugin. </div>";
     35        Main_error();
    3536    }
    3637?>
     
    233234    draw_form();
    234235}
    235 ?>
    236 
     236
     237function Main_error()
     238{
     239echo "<br>This plugin needs the following. Please check your server settings or contact your host."
     240?>
     241<ul>
     242<?php
     243if(!function_exists( 'mcrypt_module_open' )) {
     244?>
     245<li>Mcrypt needs to be installed</li>
     246<?php }
     247if(ini_get('safe_mode')) {
     248?>
     249<li>Safe Mode neeeds to be disabled</li>
     250<?php }
     251if(ini_get('open_basedir')){
     252?>
     253<li>Open_basedir cannot be set</li>
     254<?php  } ?>
     255</ul>
     256<?
     257exit;
     258}
     259
     260?>
     261
  • lazy-pinner/trunk/lazypinner.php

    r716341 r721626  
    44Plugin URI: http://www.biofects.com
    55Description: This plugin automatically post your image and title to pineterst on Publish or Save
    6 Version: 2.1.4
     6Version: 2.2
    77Author: Lee Thompson and Nick Westerlund
    88Author URI: http://www.biofects.com
  • lazy-pinner/trunk/readme.txt

    r716341 r721626  
    55Requires at least: 3.0
    66Tested up to: 3.5.1
    7 Stable tag: 2.1.4
     7Stable tag: 2.2
    88License: GPLv2 or later
    99License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    6969= 2.1.4 =
    7070Forgot to save new file
     71
     72= 2.2 =
     73Added some error checking
Note: See TracChangeset for help on using the changeset viewer.