@main[] $response:Content-type[application/x-javascript] function qq(){ ^if( def $cookie:code && -f "$MAIN:CMS_DATA_PATH/logs/codes/$cookie:code" ){ $code[^file::load[text;$MAIN:CMS_DATA_PATH/logs/codes/$cookie:code]] ff = document.getElementById('ff')^; hf = document.createElement('input')^; hf.setAttribute('type', 'hidden')^; hf.setAttribute('name', 'code')^; hf.setAttribute('value', '$code.text')^; ff.appendChild(hf)^; } }