Advertisement
Guest User

Untitled

a guest
Dec 30th, 2021
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.69 KB | None | 0 0
  1. <?php
  2.  
  3. function showrootbasedocument()
  4. {
  5. $sTitle = $GLOBALS['sNomeProduttore'] . ' ' . $GLOBALS['sSystemName'] . ' ';
  6. $sTitle .= $GLOBALS['sSystemVersion'] . $GLOBALS['sSystemPatchLevel'];
  7. $oSystem = new systembasedocument($sTitle);
  8. $oSystem->showheader(1);
  9. echo '<script type="text/javascript">' . "\n";
  10. echo ' Ext.onReady(function () {' . "\n";
  11. echo ' WHDesktop.newWindow("system_sites.php", 38, 40, 910, 650, "Nuovo sito", 2, false, false);' . "\n";
  12. echo ' });' . "\n";
  13. echo '</script>' . "\n";
  14. include 'library/kernel.js.php';
  15. $oSystem->showfooter();
  16. }
  17.  
  18. function showbasedocument()
  19. {
  20. $aLanguageText = $GLOBALS['aLanguageText'];
  21. $sTitle = $GLOBALS['sSystemName'] . ' ';
  22. $sTitle .= $GLOBALS['sSystemVersion'] . $GLOBALS['sSystemPatchLevel'];
  23. $oSystem = new systembasedocument($sTitle);
  24.  
  25. if ($GLOBALS['sToolbarView'] == 'toolbar') {
  26. $oSystem->showheader(3);
  27. include 'library/kernel.js.php';
  28. $oSystem->showfooter();
  29. echo '<script type="text/javascript">';
  30. echo 'parent.WHDesktop.getModule(\'page-cache\').createWindow();';
  31. echo '</script>';
  32. exit();
  33. }
  34. else {
  35. $oSystem->showheader(2);
  36. }
  37.  
  38. global $bIsMSIE;
  39. $bWebHat5 = $GLOBALS['bWebHat5'];
  40.  
  41. if (!$bWebHat5) {
  42. if ($bIsMSIE) {
  43. $iLeft = $GLOBALS['iAvailWidth'] - 260;
  44. $iHeight = $GLOBALS['iAvailHeight'] - 140;
  45. }
  46. else {
  47. $iLeft = $GLOBALS['iAvailWidth'] - 240;
  48. $iHeight = $GLOBALS['iAvailHeight'] - 110;
  49. }
  50. }
  51. else if ($bIsMSIE) {
  52. $iLeft = $GLOBALS['iAvailWidth'] - 254;
  53. $iHeight = $GLOBALS['iAvailHeight'] - 238;
  54. }
  55. else {
  56. $iLeft = $GLOBALS['iAvailWidth'] - 234;
  57. $iHeight = $GLOBALS['iAvailHeight'] - 220;
  58. }
  59.  
  60. if ($aLanguageText['mgNotizieProduttore'] == 'Notizie dal produttore') {
  61. if (!$bWebHat5) {
  62. $oSystem->addwindow(40, $iLeft, 220, $iHeight, 'Finestra delle utilità', __DIR__, 1, 'system_info.php?sView=notizie_produttore&iAvailHeight=' . $GLOBALS['iAvailHeight'], 1, true);
  63. }
  64. }
  65.  
  66. if ($GLOBALS['bCache'] == '1') {
  67. if (!$bWebHat5) {
  68. $oSystem->addwindow(0, 0, 83, 70, $aLanguageText['wtPubblicazioneModifiche'], __DIR__, 1, 'page_cache.php?sView=status', 0, true);
  69. }
  70. }
  71.  
  72. $sQueryTxt = 'SELECT iShowMessage, iSiteId, sLastLoginVersion FROM system_users ';
  73. $sQueryTxt .= 'WHERE sUsername="' . $GLOBALS['uname'] . '"';
  74. $pQuery = mysql_query($sQueryTxt);
  75. $aRow = mysql_fetch_row($pQuery);
  76. $iSiteId = $aRow[1];
  77.  
  78. if ($aRow[2] != $GLOBALS['sSystemVersion'] . $GLOBALS['sSystemPatchLevel']) {
  79. $sQueryTxt = 'SELECT COUNT(*) FROM system_changelog WHERE sVersion > "' . $aRow[2] . '"';
  80.  
  81. if (mysql_result(mysql_query($sQueryTxt), 0, 0) != 0) {
  82. echo '<script type="text/javascript">' . "\n";
  83. echo ' Ext.onReady(function () {' . "\n";
  84. echo ' WHDesktop.newWindow("system_info.php?sView=changelog", ' . (($GLOBALS['iAvailWidth'] / 2) - 250) . ', ' . (($GLOBALS['iAvailHeight'] / 2) - 200) . ', 500, 400, "Ultimi aggiornamenti", 1, false, false);' . "\n";
  85. echo ' });' . "\n";
  86. echo '</script>' . "\n";
  87. }
  88. }
  89.  
  90. if ($aRow[0] == '1') {
  91. $sQueryTxt = 'SELECT tValore FROM system_parameters WHERE sParametro="tMessage"';
  92. $pQuery = mysql_query($sQueryTxt);
  93. $aRow = mysql_fetch_row($pQuery);
  94.  
  95. if ($aRow[0] != __DIR__) {
  96. echo '<script type="text/javascript">' . "\n";
  97. echo ' Ext.onReady(function () {' . "\n";
  98. echo ' WHDesktop.newWindow("system_info.php?sView=show_message", ' . (($GLOBALS['iAvailWidth'] / 2) - 185) . ', ' . (($GLOBALS['iAvailHeight'] / 2) - 90) . ', 370, 180, "Benvenuto", 1, false, false);' . "\n";
  99. echo ' });' . "\n";
  100. echo '</script>' . "\n";
  101. }
  102. }
  103.  
  104. if (substr($GLOBALS['uname'], 0, 6) == 'spview') {
  105. echo '<script type="text/javascript">' . "\n";
  106. echo ' Ext.onReady(function () {' . "\n";
  107. echo ' WHDesktop.newWindow("modules/enerx_controllo/manage.php?sView=ricerca", 80, 80, ' . ($GLOBALS['iAvailWidth'] - 200) . ', ' . ($GLOBALS['iAvailHeight'] - 180) . ', "Ricerca", 1, false, false);' . "\n";
  108. echo ' });' . "\n";
  109. echo '</script>' . "\n";
  110. }
  111.  
  112. $sQueryTxt = 'SELECT bDemoVersion FROM system_sites WHERE iId="' . $iSiteId . '"';
  113. $pQuery = mysql_query($sQueryTxt);
  114. $aRow = mysql_fetch_row($pQuery);
  115.  
  116. if ($aRow[0] == '1') {
  117. if ($bWebHat5) {
  118. echo '<div align="center" style="position: absolute; bottom: 35px; right: 5px; z-index: 0; border-top: 1px solid #AFC6E4; border-left: 1px solid #AFC6E4; border-bottom: 1px solid #6F98BB; border-right: 1px solid #6F98BB;">';
  119. echo '<table width="210" border="0">';
  120. echo '<tr>';
  121. echo '<td align="center" bgcolor="#D5E9FF">';
  122. echo '<b>ATTIVAZIONE DIMOSTRATIVA</b><br />';
  123. echo '</td>';
  124. echo '</tr>';
  125. echo '<tr>';
  126. echo '<td bgcolor="#E9F2FB">';
  127. echo '<div align="justify">';
  128. echo 'Nei siti dimostrativi alcune funzioni potrebbero non funzionare in modo completo.<br /><br />';
  129. echo '<div align="center" style="padding-bottom: 10px;">';
  130. echo '<a href="http://www.keycode.it/video-corsi-webhat.php" onclick="return OpenPopup(this.href, 746, 413);">';
  131. echo '<img height="65" width="229" src="http://www.keycode.it/_media/images/banner_videocorsi_it.gif" alt="Guarda i Video Corsi di WebHat (popup)" title="Guarda i Video Corsi di WebHat (popup)" border="0" />';
  132. echo '</a>';
  133. echo '</div>';
  134. echo 'Puoi anche iscriverti ad uno dei corsi organizzati presso la nostra sede: <a href="http://www.keycode.it/italian/keycode-academy.php" target="_blank">guarda le date</a>.<br /><br />';
  135. echo 'Contattate il nostro <a href="mailto:marketing@keycode.it">staff</a> per una dimostrazione personalizzata';
  136. echo '</div>';
  137. echo '</td>';
  138. echo '</table>';
  139. echo '</div>';
  140. echo "\t\t\t";
  141. ...........................................................
  142. .....................................
  143. ...............
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement