This topic is locked
[SOLVED]

 Permanent change to source files

4/23/2014 10:25:53 PM
PHPRunner General questions
J
jcutts author

I want to have a certain script appear on every edit page when I create a new project. The script causes the form to submit every three minutes. I can add the script manually to every page. I would like to know where I can make a change in the source files so that the code is included automatically for every edit page. Thank you.

admin 4/24/2014

It greatly depends on the version of PHPRunner you use. For instance in PHPRunner 7.1 you can modify C:\Program Files (x86)\PHPRunner7.1\source\edit.php file.

J
jcutts author 4/24/2014



It greatly depends on the version of PHPRunner you use. For instance in PHPRunner 7.1 you can modify C:\Program Files (x86)\PHPRunner7.1\source\edit.php file.



Sorry, I forgot to say it is 5.2. I looked at edit.php and I can't tell where I would put the code. This is what I want to be included on the edit page:
<script>

function submit_form(){

document.forms.editform1.submit();

}
var t;

t=setTimeout("submit_form()",180000);
</SCRIPT>
How would I put this into the source/edit.php file? Thanks so much.

admin 4/24/2014

The same idea, modify PHP files in source folder where PHPRunner is installed.

jwoker 4/28/2014



The same idea, modify PHP files in source folder where PHPRunner is installed.


I bet something like that could help me with ...

"When using phprunner's built-in email verification system, how do I Change the page people are sent to on activation process?"
What file in the source might I edit with PHPRunner 7.1?