| 1 | <?php |
| 2 | // this is LAMA work..tak plz no commentz:-)) |
| 3 | //a bacha kedze tato pica zas odjebava opacne lomitka |
| 4 | function generate_header_template() { |
| 5 | global $error; |
| 6 | $user_id=$_SESSION['user_id']; |
| 7 | $error="temporairy out of order. code is being revised";return false; |
| 8 | $name_1=$_POST['1_name']; |
| 9 | $id_1=$_POST['1_id']; |
| 10 | $name_2=$_POST['2_name']; |
| 11 | $id_2=$_POST['2_id']; |
| 12 | $name_3=$_POST['3_name']; |
| 13 | $id_3=$_POST['3_id']; |
| 14 | $name_4=$_POST['4_name']; |
| 15 | $id_4=$_POST['4_id']; |
| 16 | $name_5=$_POST['5_name']; |
| 17 | $id_5=$_POST['5_id']; |
| 18 | $name_6=$_POST['6_name']; |
| 19 | $id_6=$_POST['6_id']; |
| 20 | $name_7=$_POST['7_name']; |
| 21 | $id_7=$_POST['7_id']; |
| 22 | $name_8=$_POST['8_name']; |
| 23 | $id_8=$_POST['8_id']; |
| 24 | $name_9=$_POST['9_name']; |
| 25 | $id_9=$_POST['9_id']; |
| 26 | $name_10=$_POST['10_name']; |
| 27 | $id_10=$_POST['10_id']; |
| 28 | $name_11=$_POST['11_name']; |
| 29 | $id_11=$_POST['11_id']; |
| 30 | |
| 31 | $headertemplate="<html> |
| 32 | <head> |
| 33 | <META http-equiv='Default-Style' content='kyberia'> |
| 34 | <meta http-equiv='Cache-Control' content='Public'> |
| 35 | <meta http-equiv='Content-Type' content='text/html; |
| 36 | charset=windows-1250'> |
| 37 | <title>{include file='791948.tpl'}</title> |
| 38 | <script> function vymena() {ldelim} document.formular.mail_to.value = |
| 39 | document.formular.mail_to.value.toLowerCase() ; document.images['fricon'].src = |
| 40 | '/images/users/'+document.formular.mail_to.value+'.gif'; {rdelim} function |
| 41 | chngto(name,id) {ldelim} document.formular.mail_to.value = name ; name = name.toLowerCase() ; |
| 42 | document.images['fricon'].src = '/images/nodes/' |
| 43 | +id.substr(0,1)+'/'+id.substr(1,1)+'/'+id+'.gif'; {rdelim} |
| 44 | </script> |
| 45 | <script src='/id/1515428' type='text/javascript'></script> |
| 46 | <style type='text/css' media='all'> |
| 47 | @import '/id/2019722/'; |
| 48 | </style> |
| 49 | |
| 50 | </head> |
| 51 | <body> |
| 52 | <div id='panel' onmouseout='hideSubmenu();' onmouseover='km();'></div> <script |
| 53 | language='JavaScript' type='text/javascript'>p = |
| 54 | document.getElementById('panel');</script> |
| 55 | <div class='t1'> |
| 56 | <form enctype='multipart/form-data' action='/id/{$node.node_id}/{if $action neq |
| 57 | false}{$action}{/if}' method='post'> |
| 58 | <center> |
| 59 | <a href='/id/$id_1'>$name_1</a> ---- |
| 60 | <a href='/id/$id_2'>$name_2</a> ---- |
| 61 | <a href='/id/$id_3'>$name_3</a> ---- |
| 62 | <a href='/id/$id_4'>$name_4</a> ---- |
| 63 | <a href='/id/$id_5'>$name_5</a> ---- |
| 64 | <a href='/id/$id_6'>$name_6</a> ---- |
| 65 | <a href='/id/$id_7'>$name_7</a> ---- |
| 66 | <a href='/id/$id_8'>$name_8</a> ---- |
| 67 | <a href='/id/$id_9'>$name_9</a> ---- |
| 68 | <a href='/id/$id_10'>$name_10</a> ---- |
| 69 | <a href='/id/$id_11'>$name_11</a> ---- |
| 70 | <a href='/id/25'>search</a> ---- |
| 71 | <a href='/id/{$user_id}/1961033'>setup</a> ----- |
| 72 | <a href='/id/1017832'>help</a> ---- |
| 73 | <input type='submit' value='logout' name='event' |
| 74 | tabindex='23'> |
| 75 | </center> |
| 76 | </form> |
| 77 | </div><div class='t2'></div> |
| 78 | {if $error eq true}<center><span |
| 79 | class='most_important'>{$error}</span></center>{/if} |
| 80 | {if $new_mail eq true} |
| 81 | <center><a href='/id/24/' class='mail'>u have {$new_mail} new |
| 82 | mail,last from {$new_mail_name}</a></center> |
| 83 | {/if}"; |
| 84 | |
| 85 | |
| 86 | // echo $headertemplate; |
| 87 | $params['node_content']=addslashes($headertemplate); |
| 88 | $params['node_parent']=2153627; |
| 89 | $params['node_name']="Header templata"; |
| 90 | $params['node_creator']=$user_id; |
| 91 | $noda=nodes::addNode($params); |
| 92 | |
| 93 | $error="Vypada to tak, ze vsetko vypada tak, ze je to OK. ID tvojej header_templaty je $noda"; |
| 94 | return false; |
| 95 | } |
| 96 | ?> |