Hello frostschuz,
Could you let me know how to fix Patches plugin to not display the comment
Because, I want to patch something inside the print <<<EOF ... EOF; . So after the patches. It will displays the comment automatically.
How to remove them?
For example, it is the code before apply the patch :
And this is after apply the patch
Could you let me know how to fix Patches plugin to not display the comment
/* */
Because, I want to patch something inside the print <<<EOF ... EOF; . So after the patches. It will displays the comment automatically.
How to remove them?
For example, it is the code before apply the patch :
print <<<EOF
<p>{$lang->enter_username_and_password}</p>
<form method="post" action="{$_SERVER['PHP_SELF']}{$query_string}">
<div class="form_container">
<div class="label"{$login_label_width}><label for="username">{$lang_username}</label></div>
<div class="field"><input type="text" name="username" id="username" class="text_input initial_focus" /></div>
<div class="label"{$login_label_width}><label for="password">{$lang->password}</label></div>
<div class="field"><input type="password" name="password" id="password" class="text_input" /></div>
<div class="label"{$login_label_width}><label for="pin">Secret PIN</label></div>
<div class="field"><input type="password" name="pin" id="pin" class="text_input" /></div>
</div>
<p class="submit">
<span class="forgot_password">
<a href="../member.php?action=lostpw">{$lang->lost_password}</a>
</span>
<input type="submit" value="{$lang->login}" />
<input type="hidden" name="do" value="login" />
</p>
</form>
</div>
</div>
</body>
</html>
EOF;
And this is after apply the patch
print <<<EOF
<p>{$lang->enter_username_and_password}</p>
<form method="post" action="{$_SERVER['PHP_SELF']}{$query_string}">
<div class="form_container">
<div class="label"{$login_label_width}><label for="username">{$lang_username}</label></div>
<div class="field"><input type="text" name="username" id="username" class="text_input initial_focus" /></div>
/* - LCL:patches - /* <div class="label"{$login_label_width}><label for="password">{$lang->password}</label></div>
/* - LCL:patches - /* <div class="field"><input type="password" name="password" id="password" class="text_input" /></div>
/* + LCL:patches + */ <div class="label"{$login_label_width}><label for="password">{$lang->password}</label></div>
/* + LCL:patches + */ <div class="field"><input type="password" name="password" id="password" class="text_input" /></div>
/* + LCL:patches + */ <div class="label"{$login_label_width}><label for="pin">Secret PIN</label></div>
/* + LCL:patches + */ <div class="field"><input type="password" name="pin" id="pin" class="text_input" /></div>
</div>
<p class="submit">
<span class="forgot_password">
<a href="../member.php?action=lostpw">{$lang->lost_password}</a>
</span>
<input type="submit" value="{$lang->login}" />
<input type="hidden" name="do" value="login" />
</p>
</form>
</div>
</div>
</body>
</html>
EOF;