Hi JakeJ,
Scriptcase is a WEB Framework that create PHP applications and increase web development productivity. All the files of Scriptcase are encrypted with Zend.
But I have installed on the Firefox Browser the Firebug plugin. In this way, analyzing a scriptcase application, I could deduce the following source code:
Code: Select all
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML>
<HEAD>
<META http-equiv="Expires" content="Fri, Jan 01 1900 00:00:00 GMT">
<META http-equiv="Last-Modified" content="Sun, 22 Aug 2010 06:44:59" GMT">
<META http-equiv="Cache-Control" content="no-store, no-cache, must-revalidate">
<META http-equiv="Cache-Control" content="post-check=0, pre-check=0">
<META http-equiv="Pragma" content="no-cache">
<META http-equiv="Content-Type" content="text/html; charset=UTF-8">
<META name="author" content="NetMake">
<META name="generator" content="ScriptCase">
<TITLE><ScriptCase></TITLE>
<LINK REL="stylesheet" HREF="/scriptcase/tmp/sc_css_c27e780a1d1e0c66c78b343b9b156afb_b461.css">
<SCRIPT language="javascript">
function nm_edit(str_file)
{
bol_pode = true;
if (parent && parent.nmFrmEditPhpEdit && parent.nmFrmEditPhpEdit.nm_form && parent.nmFrmEditPhpEdit.nm_form.modificado && parent.nmFrmEditPhpEdit.nm_form.modificado.value == "S" && !confirm('O arquivo foi editado modificado. \ Em nClique OK para abrir o novo arquivo descartar e come modificaes.'))
{
bol_pode = false;
}
if (bol_pode)
{
document.nm_form.action='nm_edit_php_edit.php';
document.nm_form.field_file.value = str_file;
document.nm_form.submit();
}
}
function nm_delete(str_file)
{
bol_pode = true;
if (parent && parent.nmFrmEditPhpEdit && parent.nmFrmEditPhpEdit.nm_form && parent.nmFrmEditPhpEdit.nm_form.modificado && parent.nmFrmEditPhpEdit.nm_form.modificado.value == "S" && !confirm('O arquivo foi editado modificado. \ Em nClique OK para abrir o novo arquivo descartar e come modificaes.'))
{
bol_pode = false;
}
if (bol_pode && confirm('Fare clic su OK per confermare l'eliminazione di file.'))
{
document.nm_form_del.field_file.value = str_file;
document.nm_form_del.submit();
}
}
function nm_change_module(obj_sel)
{
document.nm_form_del.enviado.value = "S_EditPhpMod";
document.nm_form_del.field_file.value = obj_sel.options[obj_sel.selectedIndex].value;
document.nm_form_del.submit();
}
function nm_window_upload_(str_mod)
{
obj_win = window.open("/scriptcase/devel/iface/upload.php?mod=" + str_mod, "nmWinUpload_", "toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=yes,resizable=yes,width=320,height=240");
obj_win.focus();
}
function nm_window_upload(str_mod)
{
document.nm_form.arq_rename.value = '';
document.nm_form.upload_target.value = document.nm_form.elements['field_module'].value;
document.nm_form.action = '/scriptcase/devel/iface/upload.php?redir=nm_edit_php_list&mod=' + str_mod;
document.nm_form.submit();
}
function nm_view_source_lib(arq)
{
document.nm_form.action = "/scriptcase/devel/generator/nm_gp_view_lib.php?tmp=&rand=41604040d1306b45" + "&opendiv=S&arq=" + arq;
document.nm_form.submit();
}
function nm_window_upload_rename(str_mod, str_arq)
{
document.nm_form.arq_rename.value = str_arq;
document.nm_form.upload_target.value = document.nm_form.elements['field_module'].value;
document.nm_form.action = '/scriptcase/devel/iface/upload.php?redir=nm_edit_php_list&mod=' + str_mod;
document.nm_form.submit();
}
function nm_user_not_access()
{
alert("Nome utente senza il permesso!");
}
</SCRIPT>
</HEAD>
<BODY CLASS="nmPage">
<table>
<tr>
<td> </td>
<td>
<form name="nm_form" action="nm_edit_php_edit.php" method="post" target="nmFrmEditPhpEdit">
<input type="hidden" name="arq_rename">
<input type="hidden" name="field_file">
<input type="hidden" name="upload_target">
<input type="hidden" name="form_upload" value='open'>
<select name="field_module" class="nmText" onChange="nm_change_module(this)">
<option value="scriptcase" selected="selected"></option>
<option value="sys">Pubblico</option>
<option value="grp">Progetto</option>
<option value="usr">Utente</option>
</select>
<br />
<br />
<div style="height:270px; width:230px; overflow:auto">
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td nowrap><span class="nmText">
<label title="Eliminare"><a href="javascript:nm_delete('sc_calc_processos.php')"><img src="/scriptcase/devel/conf/scriptcase/img/btnnew/crystal//trash.gif" border="0" align="absmiddle"></a></label>
<label title="Rinominare"><a href="javascript:nm_window_upload_rename('php', 'sc_calc_processos.php')"><img src="/scriptcase/devel/conf/scriptcase/img/btnnew/crystal//menu_tree_fld_text.gif" border="0" align="absmiddle"></a></label>
<label title="Visualizazione"><a href="javascript:nm_view_source_lib('scriptcase__NM__sc_calc_processos.php')"><img src="/scriptcase/devel/conf/scriptcase/img/btnnew/crystal//menu_tree_filtervisual.gif" border="0" align="absmiddle"></a></label>
sc_calc_processos.php </span></td>
</tr>
<tr>
<td nowrap><span class="nmText">
<label title="Eliminare"><a href="javascript:nm_delete('sc_ssn.php')"><img src="/scriptcase/devel/conf/scriptcase/img/btnnew/crystal//trash.gif" border="0" align="absmiddle"></a></label>
<label title="Rinominare"><a href="javascript:nm_window_upload_rename('php', 'sc_ssn.php')"><img src="/scriptcase/devel/conf/scriptcase/img/btnnew/crystal//menu_tree_fld_text.gif" border="0" align="absmiddle"></a></label>
<label title="Visualizazione"><a href="javascript:nm_view_source_lib('scriptcase__NM__sc_ssn.php')"><img src="/scriptcase/devel/conf/scriptcase/img/btnnew/crystal//menu_tree_filtervisual.gif" border="0" align="absmiddle"></a></label>
sc_ssn.php </span></td>
</tr>
</table>
</div>
</form>
<form name="nm_form_del" action="nm_edit_php_list.php" method="post" target="nmFrmEditPhpList">
<input type="hidden" name="enviado" value="S_EditPhpDel">
<input type="hidden" name="field_file">
</form>
</td>
</tr>
</table>
</FONT>
</BODY>
</HTML>
Firebug return me this message:
The code in this line is
if (bol_pode && confirm('Fare clic su OK per confermare l'eliminazione di file.'))
I suppose that the error is the second single quote in the string
'Fare clic su OK per confermare l'eliminazione di file.'. This is interpreted as the end of string and generate the error.
Is it correct ?
Of course, the wrong string was created by the authors of Scriptcase and not by me.
Thank You and Best Regards