Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

jmhaf

Members
  • Content count

    14
  • Joined

  • Last visited

About jmhaf

  • Birthday 02/19/1975

Profile Information

  • Real Name
    James
  • Gender
    Male
  • Location
    USA
  1. jmhaf

    Oscommerce 3 and Wisiwig

    If i were to impliment this editor, where would you suggest installing it in, im not much of a coder so im not sure how i can use your code.
  2. Im slowly learning my way around osc3 and im liking it alot so far, im not a very competent programmer kinda guy since i specialize in hardware mostly. So if there is a payment module that i can integrate without feeling like its brain surgery for osc3 id appreciate the recommendations.
  3. jmhaf

    SVN Code repository

    looked in the svn library and found a 1107 patch for session.php that fixes the login problem. Thanks hdlp and ryan!
  4. jmhaf

    SVN Code repository

    I get the same results, but i'll show you my code so you know what im using... I reset the webserver, i emptied out my browser cache but it still does that same annoying behavior. ID and Password are all correct, when i hit enter to log into the page it still loops! <?php /* $Id: compatibility.php 1465 2007-03-26 15:44:40Z hpdl $ osCommerce, Open Source E-Commerce Solutions http://www.oscommerce.com Copyright © 2007 osCommerce Released under the GNU General Public License */ /* * file_get_contents() natively supported from PHP 4.3 */ if (!function_exists('file_get_contents')) { function file_get_contents($filename) { if ($handle = @fopen($filename, 'rb')) { $data = fread($handle, filesize($filename)); fclose($fh); return $data; } else { return false; } } } /* * posix_getpwuid() not implemented on Microsoft Windows platforms */ if (!function_exists('posix_getpwuid')) { function posix_getpwuid($id) { return '-?-'; } } /* * posix_getgrgid() not implemented on Microsoft Windows platforms */ if (!function_exists('posix_getgrgid')) { function posix_getgrgid($id) { return '-?-'; } } /* * http_build_query() natively supported from PHP 5.0 * From Pear::PHP_Compat */ if ( !function_exists('http_build_query') ) { function http_build_query($formdata, $numeric_prefix = null, $arg_separator = null) { // If $formdata is an object, convert it to an array if ( is_object($formdata) ) { $formdata = get_object_vars($formdata); } // Check we have an array to work with if ( !is_array($formdata) || !empty($formdata) ) { return false; } // Argument seperator if ( empty($arg_separator) ) { $arg_separator = ini_get('arg_separator.output'); if ( empty($arg_separator) ) { $separator = '&'; } } // Start building the query $tmp = array(); foreach ( $formdata as $key => $val ) { if ( is_null($val) ) { continue; } if ( is_integer($key) && ( $numeric_prefix != null ) ) { $key = $numeric_prefix . $key; } if ( is_scalar($val) ) { array_push($tmp, urlencode($key) . '=' . urlencode($val)); continue; } // If the value is an array, recursively parse it if ( is_array($val) || is_object($val) ) { array_push($tmp, http_build_query_helper($val, urlencode($key), $arg_separator)); continue; } // The value is a resource return null; } return implode($separator, $tmp); } // Helper function function http_build_query_helper($array, $name, $arg_separator) { $tmp = array(); foreach ( $array as $key => $value ) { if ( is_array($value) ) { array_push($tmp, http_build_query_helper($value, sprintf('%s[%s]', $name, $key), $arg_separator)); } elseif ( is_scalar($value) ) { array_push($tmp, sprintf('%s[%s]=%s', $name, urlencode($key), urlencode($value))); } elseif ( is_object($value) ) { array_push($tmp, http_build_query_helper(get_object_vars($value), sprintf('%s[%s]', $name, $key), $arg_separator)); } } return implode($arg_separator, $tmp); } } ?> heres the error dump from my webserver logs this might help i think.. [Tue Mar 27 19:36:43 2007] [notice] Apache/1.3.33 (Darwin) PHP/5.2.1 mod_ssl/2.8.24 OpenSSL/0.9.7l configured -- resuming normal operations [Tue Mar 27 19:36:43 2007] [notice] Accept mutex: flock (Default: flock) [Tue Mar 27 19:37:17 2007] [error] PHP Fatal error: Call to a member function query() on a non-object in /Library/WebServer/Documents/oscommerce/includes/classes/session.php on line 205 [Tue Mar 27 19:37:17 2007] [error] PHP Fatal error: Call to a member function query() on a non-object in /Library/WebServer/Documents/oscommerce/includes/classes/session.php on line 205 [Tue Mar 27 19:37:47 2007] [error] PHP Fatal error: Call to a member function query() on a non-object in /Library/WebServer/Documents/oscommerce/includes/classes/session.php on line 205 [Tue Mar 27 19:38:01 2007] [error] PHP Fatal error: Call to a member function query() on a non-object in /Library/WebServer/Documents/oscommerce/includes/classes/session.php on line 205 [Tue Mar 27 19:38:01 2007] [error] PHP Fatal error: Call to a member function query() on a non-object in /Library/WebServer/Documents/oscommerce/includes/classes/session.php on line 205
  5. Ive read the documentation for svn and it didnt help. I am using smartsvn for mac, my osc3a3 keeps looping when attempting to log into the administrative tools page. I was told that it was fixed in the svn now and i could find it there but no luck so far finding the right files. plz help! :blink:
×