HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/RClaassen/stay-on-track.nl/wwwroot/mangsys/pages/change.php
<?php
  $sPagina = $_SERVER['PHP_SELF'];
  $sDirectoryFromRoot = "\\";
  $sDocumentRoot = $_SERVER['DOCUMENT_ROOT'] . $sDirectoryFromRoot;
  require_once($sDocumentRoot . "includes\\incl_connect_mysql.php");
  require_once($sDocumentRoot . "includes\\maintekst.php");
  require_once($sDocumentRoot . "includes\\sitestructure.php");
  include($sDocumentRoot . "mangsys\\pages\\fckeditor.php");

  session_start();

  $cDBConnection = fnCreateDatabaseConnectie();
  $arWaardes = fnGetTekst($sPagina, $cDBConnection);
  $sMainTekst     = $arWaardes[0];
  $iTypeId        = $arWaardes[1];
  $iAantalRegels  = $arWaardes[2];
  $sTypeTekst     = $arWaardes[3];

  if($_SESSION['bToonPagina']) {
    echo("		<form action=\"pagina_opslaan.php\" method=\"post\">\r\n");
    $sBasePath   = "/mangsys/pages/";
    $arWaardes   = fnGetTekst($_GET['sPagina'], $cDBConnection);
    $sPageSource = $arWaardes[0];
    $iAantalRegelsSource = intval($arWaardes[2]);
    $oFCKeditor = new FCKeditor('FCKeditor1');
    $oFCKeditor->BasePath	  = $sBasePath;
    $oFCKeditor->ToolbarSet = 'Spekzullekes';
    $oFCKeditor->Value		  = $sPageSource;
    $oFCKeditor->Width		  = '665';
    $oFCKeditor->Height     = '325';
    $sMainTekst = $oFCKeditor->Create() ;
    echo("&nbsp;<br />\r\n");
    echo("Geef aan hoeveel regels de tekst bevat.<br />\r\n");
    echo("<select name=\"iAantalRegels\">\r\n");
    for($iTeller = 20; $iTeller < 51;$iTeller++) {
      $sSelect = "";
      if($iTeller == $iAantalRegelsSource) {
        $sSelect = " SELECTED";
      }
      echo("  <option value=\"$iTeller\"" . $sSelect . ">$iTeller</option>\r\n");
    }
    echo("</select>\r\n");
    echo("&nbsp;<br />\r\n");
    echo("<input type=\"hidden\" name=\"sPagina\" value=\"" . $_GET['sPagina'] . "\">\r\n");
    echo("<input type=\"submit\" value=\"Submit\">\r\n");
    echo("</form>\r\n");

  } else {
    include($sDocumentRoot . "templates/template.html");
  }
?>