Jump to content

BREZ

Members
  • Posts

    28
  • Joined

  • Last visited

Everything posted by BREZ

  1. I dont believe i ever asked anyone to solve my errors. I mentioned i am not up on PHP, so if i hired a programmer to fix my script, i would not only be missing the chance to learn how to fix it, i really dont believe my pension would stretch that far! Basically, i was really asking what other .php files would determine the LANG so i could go and fix it myself. and, as for some third party script, perhaps i misread both the Heading and subheading of this forum!
  2. Yes i did answer that question in the 2nd line of my post following the post that asked it! I understand, Thank You for your assistance anyway.
  3. Just discovered the LANG is defined in the defines.inc.php This is where the 0 is mentioned. But as i am not up on php i dont know what to replace it with. I have en.dinamic.inc.php en.inc.php defines.inc.php
  4. The problem starts with the installation on a fresh domain and the error log is showing blank. 0.inc.php is not a file in the LANG. The config.inc.php is not defining the LANG. <?php /* ######### ### GRAFX ONLINE DATING BUILDER ################# ############################################################ DATING $Name$ Revision $Revision: 8961 $ Author $Author: lvalics $ Created 03/01/03 $Date: 2008-03-19 07:25:28 +0000 (Wed, 19 Mar 2008) $ Writed by GraFX (webmaster@grafxsoftware.com) Scripts Home: http://www.grafxsoftware.com ############################################################ File purpose * CONFIG FILE ############################################################ */ // define your database informations define( "DB_USR", "myirishm_XXXXXXXX" ); define( "DB_PWD", "XXXXXXXXXX" ); define( "DB_NAME", "myirishm_XXXXXX" ); define( "DB_HOST", "localhost" ); $dir = str_replace("\\","/",dirname($_SERVER['PHP_SELF'])); if (substr($dir,-1)!="/") $dir.= "/"; if (!strstr(PHP_OS, 'WIN')) define("SEPARATOR", "/"); else define("SEPARATOR", "\\"); // define where you index.php URL is, usually is http://www.yourdomain.com define( "INDEX_URL", "http://www.WEBSITE.com/G-Dating/" ); $license=""; @include_once("defines.inc.php"); @include_once("tmp/extraconfig.inc.php"); ?>
  5. Grafxsoftware appears to no longer support their scripts. or at least they are not answering my requests for the past month, plus their support forum has disappeared. I am attempting to install a clean version of their G-Dating script without success. Index.php file attached index.php
  6. BREZ

    Creating Table

    Yes that installed, except for the single 0 in default showed as invalid. This is how it now looks (table1) But according to my Admin cp, db is not installed (cp21) PHP version 5.2.17 MySQL version 5.5.23-55
  7. BREZ

    Creating Table

    This i dont understand.... I am a novice pensioner learning late anyway, i left the default as NONE. Now this happens.. #1067 - Invalid default value for 'prior_auth_number' so i changed the default to NONE Not sure if i should but now..... #1064 - You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'id) NOT NULL, PRIMARY KEY (`id`)) ENGINE = MyISAM' at line 1
  8. Installing db i got this error.. So i had my first go ever at creating the table. #1067 - Invalid default value for 'pid' The only thing in "default" is NULL as the above suggests.
  9. The script is care2x-2.5_RC2.tar I downloaded it from http://sourceforge.net/directory/natlanguage%3Aenglish/os%3Alinux/freshness%3Arecently-updated/?q=care2x
  10. now, i think i understand a bit more. on my laptop i have a tar.gz folder of the program (15.8mb) on my website i have the extracted files, but cant install them because of this error. Now, on my laptop, if i unzip the tar.gz folder, i can view(and edit) files using my notepad++ editor. This has the find option. and, dont apologize for your english, after all, i am in the Medical trade so its a daily occurrence for me!
  11. Now i am really confused! Have i been searched? Yes i downloaded this project into my download folder, then uploaded it onto my website using ftp. i dont know what is IDE. Sorry i really am a novice at this.
  12. @Jazzman, I possibly could... if i knew how to do that! I am literally a novice with anything above html.
  13. Apologies for the wrong forum, i guess i was in too much haste to ask. the over file reads like this which part can i change to "disable checking" <?php /* * DBVersionOver * * Tests that the running Database Version is >= the supplied parameter */ class DBVersionOver extends BaseTest { var $server; var $username; var $password; var $type; var $version; function DBVersionOver($params) { parent::BaseTest($params); if(!is_array($this->params) || count($this->params) <= 0){ ErrorStack::addError("Invalid parameters, you need to provide the field names and version", ERRORSTACK_ERROR, 'DBVersionOver'); $this->result = INSTALLER_TEST_FAIL; return $this->result; } } function prepareParameters() { $engine =& $GLOBALS['INSTALLER']['ENGINE']; if (isset($this->params['server_field'])) { $server_field = $engine->getField($this->params['server_field']); $this->server = $server_field->value; } else if (isset($this->params['server'])) { $this->server = $this->params['server']; } else { $this->result_message = "Could not determine server name, please provide a server_field or server parameter!"; return FALSE; } if (isset($this->params['username_field'])) { $username_field = $engine->getField($this->params['username_field']); $this->username = $username_field->value; } else if (isset($this->params['username'])) { $this->username = $this->params['username']; } else { $this->result_message = "Could not determine datbase username, please provide a username_field or username parameter!"; return FALSE; } if (isset($this->params['password_field'])) { $password_field = $engine->getField($this->params['password_field']); $this->password = $password_field->value; } else if (isset($this->params['password'])) { $this->password = $this->params['password']; } else { $this->result_message = "Could not determine datbase password, please provide a password_field or password parameter!"; return FALSE; } if (isset($this->params['type_field'])) { $type_field = $engine->getField($this->params['type_field']); $this->type = $type_field->value; } else if (isset($this->params['type'])) { $this->type = $this->params['type']; } else { $this->result_message = "Could not determine datbase type, please provide a type_field or type parameter!"; return FALSE; } if(isset($this->params['version'])) { $this->version = $this->params['version']; } else { $this->result_message = "Could not find required version number, please provide a version parameter!"; return FALSE; } } function perform(){ if ($this->prepareParameters() === FALSE) { $this->result = INSTALLER_TEST_FAIL; return $this->result; } # include ADOdb class files require_once('../classes/adodb/adodb.inc.php'); require_once('../classes/adodb/adodb-errorhandler.inc.php'); # Create ADODB connection object @$db = ADONewConnection($this->type); if (!$db) { $this->result = INSTALLER_TEST_FAIL; $this->result_message = "Cannot create ADODB connection of type $this->type"; return $this->result; } # Construct the database address $address = $this->server; # Connect to the database @$ok = $db->Connect($address, $this->username, $this->password); if (!$ok) { $this->result = INSTALLER_TEST_FAIL; $this->result_message = "Could not connect to $this->dbtype database server $address with username $this->username: ".$db->ErrorMsg(); return $this->result; } # Obtain version information about the database @$info = $db->ServerInfo(); if (!$info) { $this->result = INSTALLER_TEST_FAIL; $this->result_message = "Error getting database server version information: ".$db->ErrorMsg(); return $this->result; } $ver = $info['version']; $target_version = $this->version[$this->type]; if (version_compare($ver, $target_version, '>=')) { $this->result = INSTALLER_TEST_SUCCESS; $this->result_message = "You are running $this->type version $ver which is >= $target_version"; } else { $this->result = INSTALLER_TEST_FAIL; $this->result_message = "You are running $this->type version $ver which is < $target_version"; } return $this->result; } } ?>
  14. Installing a prog on a linux server i get the following error... PHP Version lower than 5.0.0 is required, you are running 5.2.17 can i safely step back, and if so how? I am using cpanel version 11.32.3 (build 23) with root access if that helps but i am not a programmer. PHP version 5.2.17 MySQL version 5.5.23-55
  15. Over the last month i am unable to get any support from the supplier, or even a reply to emails. This is included within the purchase and i like the script itself.
  16. I am attempting to change the currency from $ to € in a script i purchased. In addons/paypal-gateway there are 3 folders. Folder 1 "admin" holds index.php <?session_start(); require("../../../includes/vars.inc.php"); require("../../../includes/functions.inc.php"); require("../../../includes/templates.inc.php"); require("../../../includes/apt_functions.inc.php"); $access_level=_ADMINLEVEL_; db_connect(_DBHOSTNAME_,_DBUSERNAME_,_DBPASSWORD_,_DBNAME_,_PCONN_); check_login_member(); $tpl = new phemplate(_BASEPATH_."/addons/gateway-paypal/templates/",'remove_nonjs'); $tpl->set_file('content','admin/sell_plans.html'); $message=''; if ($_SERVER['REQUEST_METHOD']=='POST') { $plan_id=addslashes_mq($_POST['plan_id']); $plan_name=addslashes_mq($_POST['plan_name']); $plan_diz=addslashes_mq($_POST['plan_diz']); $amount=addslashes_mq($_POST['amount']); $rec_period=addslashes_mq($_POST['rec_period']); $rec_increment=addslashes_mq($_POST['rec_increment']); $query="UPDATE sell_plans_paypal SET plan_name='$plan_name',plan_diz='$plan_diz',amount='$amount',recurring=1,rec_period='$rec_period',rec_increment='$rec_increment' WHERE plan_id='$plan_id'"; if (!($res=mysql_query($query))) {general_error(mysql_error(),__LINE__,__FILE__);} } if (isset($_GET['act']) && !empty($_GET['act'])) { $action=addslashes_mq($_GET['act']); if ($action=='delete') { $plan_id=addslashes_mq($_GET['plan_id']); $query="DELETE FROM sell_plans_paypal WHERE plan_id='$plan_id'"; if (!($res=mysql_query($query))) {general_error(mysql_error(),__LINE__,__FILE__);} } elseif ($action=='add') { $query="INSERT INTO sell_plans_paypal SET plan_name=''"; if (!($res=mysql_query($query))) {general_error(mysql_error(),__LINE__,__FILE__);} } } $query="SELECT plan_id,plan_name,plan_diz,amount,rec_period,rec_increment FROM sell_plans_paypal"; if (!($res=mysql_query($query))) {general_error(mysql_error(),__LINE__,__FILE__);} $plans=array(); if (mysql_num_rows($res)) { $i=0; while ($rsrow=mysql_fetch_row($res)) { $plans[$i]['plan_id']=$rsrow[0]; $plans[$i]['plan_name']=$rsrow[1]; $plans[$i]['plan_diz']=$rsrow[2]; $plans[$i]['amount']=$rsrow[3]; $plans[$i]['rec_period']=$rsrow[4]; $plans[$i]['rec_increment']="<option value='D' ".(($rsrow[5]=='D') ? ("selected") : ("")).">Days</option>\n"; $plans[$i]['rec_increment'].="<option value='W' ".(($rsrow[5]=='W') ? ("selected") : ("")).">Weeks</option>\n"; $plans[$i]['rec_increment'].="<option value='M' ".(($rsrow[5]=='M') ? ("selected") : ("")).">Months</option>\n"; $plans[$i]['rec_increment'].="<option value='Y' ".(($rsrow[5]=='Y') ? ("selected") : ("")).">Years</option>\n"; $i++; } } $tpl->set_loop('plans',$plans); $content=$tpl->process('out','content',1); $tpl = new phemplate(_TPLPATH_,'remove_nonjs'); $tpl->set_file('frame','admin/frame.html'); $tpl->set_var('title','Sell Plans'); $tpl->set_var('content',$content); $tpl->set_var('message',$message); $tpl->set_var('baseurl',_BASEURL_); $tpl->set_var('relative_path',$relative_path); $tpl->set_var('addon_links',insert_addon_admin_links()); print $tpl->process('out','frame'); ?> Folder 2 "includes" holds apt_functions.inc.php <? define('_CARTMODULE_','paypal'); define('_PAYPAL_BIZNAME_','sales@sites.com'); // your PayPal business email if you use paypal function display_subscribe_plans() { return display_subscribe_plans_paypal(); } function display_subscribe_plans_paypal() { $tpl = new phemplate(_BASEPATH_."/addons/gateway-paypal/templates/",'remove_nonjs'); $tpl->set_file('middlecontent','subscribe_paypal.html'); $tpl->set_var('baseurl',_BASEURL_); $tpl->set_var('sitename',_SITENAME_); $tpl->set_var('mybizemail',_PAYPAL_BIZNAME_); $tpl->set_var('user_id',$_SESSION['user_id']); $query="SELECT plan_id,plan_name,plan_diz,amount,recurring,rec_period,rec_increment,buys FROM sell_plans_paypal"; if (!($res=mysql_query($query))) {error(mysql_error(),__LINE__,__FILE__);} if (mysql_num_rows($res)) { $payplans=array(); $i=0; while ($rsrow=mysql_fetch_row($res)) { list($plan_id,$plan_name,$plan_diz,$amount,$recurring,$rec_period,$rec_increment,$buys)=$rsrow; $payplans[$i]['plan_id']=$plan_id; $payplans[$i]['plan_name']=$plan_name." (\$$amount)"; $payplans[$i]['plan_diz']=$plan_diz; $payplans[$i]['amount']=$amount; $payplans[$i]['rec_period']=$rec_period; $payplans[$i]['rec_increment']=$rec_increment; $i++; } $tpl->set_loop('payplans',$payplans); } return $tpl->process('out','middlecontent',1,true); } ?> Folder 3 has a couple of files "subscribe_paypal.html" {h_menu} <table cellspacing="5" cellpadding="0" width="100%" border="0"> <tr> <td class="headertext">Subscribe<td> </tr> <tr> <td align="center"><font class="alert">{message}</font></td> </tr> <tr> <td class=textspace> To become a premier member please use the signup form below. Subscriptions are handled by PayPal payment services. Subscriptions are handled on a recurring basis. PayPal will continue to bill you according to the cycle you select below until you cancel your membership. <table width=100% cellpadding="5" align="center"> <loop name="payplans"> <tr> <td align="center"> <table width=100% cellpadding=2 cellspacing=2 border=0><tr> <td class=subheadertext width=30%>{payplans.plan_name}</td> <td class=headertext width=55%>{payplans.plan_diz}</td> <td valign=middle class=border align=center width=15%> <form action="http://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_xclick-subscriptions" /> <input type="hidden" name="business" value="{mybizemail}" /> <input type="hidden" name="no_shipping" value="1" /> <input type="hidden" name="return" value="{baseurl}/addons/gateway-paypal/paypal_thankyou.php" /> <input type="hidden" name="cancel_return" value="{baseurl}/subscribe.php" /> <input type="hidden" name="no_note" value="1" /> <input type="hidden" name="quantity" value="1" /> <input type="hidden" name="no_shipping" value="1" /> <input type="hidden" name="rm" value="2" /> <input type="hidden" name="item_name" value="{payplans.plan_name}" /> <input type="hidden" name="item_number" value="{payplans.plan_id}" /> <input type="hidden" name="p3" value="{payplans.rec_period}" /> <input type="hidden" name="t3" value="{payplans.rec_increment}" /> <input type="hidden" name="a3" value="{payplans.amount}" /> <input type="hidden" name="custom" value="{user_id}" /> <input type="hidden" name="src" value="1" /> <input type="hidden" name="sra" value="1" /> <input class="aptbutton" type="submit" value="Buy with PayPal" /> </td><td></form></td></tr></table> </td> </tr> </loop name="payplans"> </table> </td> </tr> </table> "interface_single_item.html" <table cellpadding="5" align="center"> <tr> <td class="headertext" align="center"> <form action="http://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_xclick" /> <input type="hidden" name="business" value="{mybizemail}" /> <input type="hidden" name="no_shipping" value="1" /> <input type="hidden" name="return" value="{baseurl}/addons/gateway-paypal/paypal_thankyou.php" /> <input type="hidden" name="cancel_return" value="{baseurl}/subscribe.php" /> <input type="hidden" name="no_note" value="1" /> <input type="hidden" name="quantity" value="1" /> <input type="hidden" name="no_shipping" value="1" /> <input type="hidden" name="rm" value="2" /> <input type="hidden" name="item_name" value="{item_name}" /> <input type="hidden" name="amount" value="{amount}" /> <input type="hidden" name="custom" value="{user_id}" /> <input type="hidden" name="src" value="1" /> <input type="hidden" name="sra" value="1" /> {item_name}<br /> {item_diz}<br /> <input class="aptbutton" type="submit" value="Buy" /> </form> </td> </tr> </table> and "sell_plans.html" <table> <tr> <td colspan="6" height="30"> Make changes to the desired plan and click the coresponding submit button:<br /> </td> </tr> </table> <table> <tr class=hcell align="center"> <td></td> <td><font class=hcellfont>Plan Name</font></td> <td><font class=hcellfont>Plan Description</font></td> <td><font class=hcellfont>Amount</font></td> <td align="center"><font class=hcellfont>Period</font></td> <td align="center"><font class=hcellfont>Term</font></td> <td></td> </tr> <loop name="plans"> <form action="{relative_path}index.php" method="post"> <input type="hidden" name="plan_id" value="{plans.plan_id}"> <tr> <td class=admcell><a href="{relative_path}index.php?act=delete&plan_id={plans.plan_id}">Delete</a></td> <td class=admcell><input type="text" size="15" name="plan_name" value="{plans.plan_name}" /></td> <td class=admcell><input type="text" size="20" name="plan_diz" value="{plans.plan_diz}" /></td> <td class=admcell><input type="text" size="5" name="amount" value="{plans.amount}" /></td> <td class=admcell align="center"><input type="text" size="3" name="rec_period" value="{plans.rec_period}" /></td> <td class=admcell> <select name="rec_increment" size="1"> {plans.rec_increment} </select> </td> <td class=admcell><input type="submit" value="Change"/></td> </tr> </form> </loop name="plans"> <tr> <td colspan="6" height="30" align="center"> <a href="{relative_path}index.php?act=add">Add new plan</a> </td> </tr> </table> The script itself does not have the normal config.php to change currency. Is there something in the above new to me? all i need to do is change currency to euros.
  17. BREZ

    1024 syntax error

    Pardon my old eyes but.... Is that not exactly the same? Without the CREATE and USE i get an 1064
  18. :facewall:Me old head is sore! My .sql file is 20Mb in size and keeps timing out on import. I tried uploading the first table on its own with this error as a result.
  19. Is it possible to re-write anything to overcome this problem, the bits section? as i mentioned i like the script but the errors cause some headaches.
  20. So exactly what sections of PHP do the Output?
  21. Hard coded! now thats a new one on me. How will i know if its hard coded? Also, What sections would output it? I would really like to use this script but, the vender that sells it seems to provide absolutely no support!
  22. As i said i am "Raw" to PHP. But my editing tells me that < or > is the proper php code, but opened in an html editor it is < or >
  23. The errors are on header and footer of every page The frame.html is responsible for every page
  24. The install.txt Here is bits/outmenu.html Here is bits/outmenu_in.html and extra.html PFMaBiSmAd The host informs me he has not changed anything in 3 wks. I have been using a php.ini with RG globaks set to ON. "Posting the code" Do you mean the page source code or another?
  25. The ONLY files i have changed are .txt ones as i am too raw to alter the PHP ones unless it gives instructions in install.txt There seems to be a few templates that run on this, the install.txt states...
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.