Jump to content

Recommended Posts

I guess that means that the text is in an include somewhere. Check the code for these functions:

 

include

include_once

require

require_once

fopen

file_fet_contents

readfile

file

 

Maybe the code is using one of these functions to read the text from an external file.

Link to comment
https://forums.phpfreaks.com/topic/137724-edit-data-from-array/#findComment-719911
Share on other sites

Is it coming from $_GET or $_POST, and register_globals is turned on?

 

It is hard to tell you where it is without the code, but my pet is it is posting from a form or get data and register_globals is turned on thus it is not defined, only used.

Link to comment
https://forums.phpfreaks.com/topic/137724-edit-data-from-array/#findComment-719928
Share on other sites

I have register form where there is a box with agrement(terms and condition..) - i want to change that text - i want to change the policy which is in $agreement but I can't find where is the file or whatever where it is. here is the code:

 

if (!$titleString)

				 {

					$titleString="

						Please check the box below to indicate that you<BR>understand and agree to the terms and conditions below:

						<DIV style=font-style:italic;font-size:80%;font-weight:normal;><SPAN style=color:red;font-weight:600>*</SPAN> indicates a required field</DIV>

						";

					}

			if ($recordDataArray['contractAgreedTime'] and $recordDataArray['contractAgreedTime']!=0)

				{$checkedArray['contractAgreedTime']='checked';}



			if (!$recordDataArray['contractAgreedTime']){$recordDataArray['contractAgreedTime']=time();}





			//myAgreement

			$agreementName=$priceSetArray['specialAgreementName'];

			if (!$agreementName){$agreementName=$defaultAgreementName;} //note: ...



			$agreement=stripslashes(getGenRef($agreementName));

			$agreement=processTemplateArray($agreement, $validUserRecArray);

              				  	

			$formTagString="

				<TR><TD colspan=2>

				<table width='507' border=0 cellspacing='0' cellpadding='0' class='paragraph'>

				<TR>

						<TD colspan=3 class=header style='height:40px;background-color:rgb(255,255,255);border-bottom:10px white solid;'>

							$titleString

							</TD>

						</TR>

				   <tr valign='top' bgcolor='#FFFFFF'>

						<TD colspan=3>

						   <textarea cols=55 rows='15' name=tmp>$agreement</TEXTAREA>

						</td>

						</tr>

					<tr valign='top' bgcolor='#FFFFFF'>

						   <td width='398' height='40' valign=middle align=left colspan=2 style=font-size:150%;><SPAN style=margin-right:25pt;>Agreed<SPAN style=color:red><em>*</em></SPAN>{$errorArray["contractAgreedTime"]}</SPAN><input name='recordDataArray[contractAgreedTime]' value='{$recordDataArray['contractAgreedTime']}' {$checkedArray['contractAgreedTime']}  type='checkbox' class='paragraph'>

						</td>

						</tr>

					 <tr valign='top' bgcolor='#FFFFFF'>

				</TABLE>

				</TD></TR>

				";

			$hiddenTAG.="<INPUT type=hidden name=recordDataArray[itemID] value='{$recordDataArray['itemID']}'>";

Link to comment
https://forums.phpfreaks.com/topic/137724-edit-data-from-array/#findComment-719942
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.