kabucek Posted December 19, 2008 Share Posted December 19, 2008 hi @LL, i have $agreement in .php file this holds text which I need to edit but I can't find it. I tried: print print_r and var_dump but it only display the data and not where this is located. how to find where actual text from $agreement is located? thanks Quote Link to comment https://forums.phpfreaks.com/topic/137724-edit-data-from-array/ Share on other sites More sharing options...
flyhoney Posted December 19, 2008 Share Posted December 19, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/137724-edit-data-from-array/#findComment-719911 Share on other sites More sharing options...
kabucek Posted December 19, 2008 Author Share Posted December 19, 2008 nope, there is nothing like this Quote Link to comment https://forums.phpfreaks.com/topic/137724-edit-data-from-array/#findComment-719926 Share on other sites More sharing options...
premiso Posted December 19, 2008 Share Posted December 19, 2008 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. Quote Link to comment https://forums.phpfreaks.com/topic/137724-edit-data-from-array/#findComment-719928 Share on other sites More sharing options...
kabucek Posted December 19, 2008 Author Share Posted December 19, 2008 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']}'>"; Quote Link to comment https://forums.phpfreaks.com/topic/137724-edit-data-from-array/#findComment-719942 Share on other sites More sharing options...
premiso Posted December 19, 2008 Share Posted December 19, 2008 Find getGenRef function and see what that does with $agreementName. It is most likely coming from a DB. Quote Link to comment https://forums.phpfreaks.com/topic/137724-edit-data-from-array/#findComment-719949 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.