[ 3 posts ]

Phil Ewington

  • Username: N-IGMA
  • Joined: Sat Jul 03, 2010 1:54 pm
  • Posts: 3
  • Offline
  • Profile

phploader does nothing, what am I doing wrong?

Post Posted: Sun Sep 18, 2011 7:28 am
+0-
Hi All,

I cannot seem to get phploader to work and desperately need some help! Unless there is another way to get YUI3 working under SSL?

installed under /phploader/*

I amended loader.php:

Code:
var $base = "https://mydomain.com/phploader/lib/3.2.0/build/";
var $comboBase = "https://mydomain.com/phploader/combo.php?";


I amended config_3.2.0.php:

Code:
'base' => 'https://mydomain.com/phploader/lib/3.2.0/build/',


Firstly config files could not be found so I amended the code in loader.php:

Code:
$phpConfigFile = $parentDir . '/phploader/lib/meta/config_' . $yuiVersion . '.php';
$jsonConfigFile = $parentDir . '/phploader/lib/meta/json_' . $yuiVersion . '.txt';


I have the following set-up:

/phploader/lib/3.2.0/build/*
/phploader/lib/meta/config_3.2.0.php
/phploader/lib/meta/json_3.2.0.txt

The following code outputs nothing at all:
Code:
<?
$loader = new YAHOO_util_Loader("3.2.0");
$loader->allowRollups = true;
$loader->load("yui", "node", "event", "io", "json", "anim", "node-event-simulate");
$loader->tags();
?>


What am I doing wrong??

TIA

Phil.

Kai Schwarz

  • Username: papakai
  • Joined: Fri Nov 13, 2009 8:26 am
  • Posts: 301
  • Location: Germany
  • Offline
  • Profile
Tags:

Re: phploader does nothing, what am I doing wrong?

Post Posted: Thu Oct 06, 2011 12:22 am
+0-
I had the problem while using LDAP access and https with phploader.
I had to change the loader.php getRemoteContent method as follows to support it. (used phploader in version 1.0.0b2)

Code:
//before curl_init
if (isset($_SERVER["PHP_AUTH_USER"])){
   $url  = preg_replace(
              "/^http:\/\//",
               "http://" . $_SERVER["PHP_AUTH_USER"]. ":" . $_SERVER["PHP_AUTH_PW"] . "@",
               $url
   );
   if (preg_match("/^on$/i", $_SERVER["HTTPS"])){
      $url = preg_replace("/^http:\/\//", "https://", $url);
   }
}


Code:
//after curl_init
if (preg_match("/^https:\/\//", $url)){
   curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);//only if peer does not match the one in ssl cert
}


Dont know if this helps you. If not this may help other guys having similar problems.

Regards
Kai

Phil Ewington

  • Username: N-IGMA
  • Joined: Sat Jul 03, 2010 1:54 pm
  • Posts: 3
  • Offline
  • Profile

Re: phploader does nothing, what am I doing wrong?

Post Posted: Mon Oct 17, 2011 2:46 am
+0-
Thanks for your response
  [ 3 posts ]
Display posts from previous:  Sort by  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum