WebCalendar PHP Cross Reference Groupware Applications

Source: /about.php - 90 lines - 2942 bytes - Summary - Text - Print

   1  <?php
   2  /* $Id: about.php,v 1.16.2.3 2007/08/06 02:28:29 cknudsen Exp $ */
   3  include_once  'includes/init.php';
   4  
   5  $credits = getPostValue ( 'Credits' );
   6  $data = '';
   7  
   8  if ( ! empty ( $credits ) ) {
   9    // Get Names from AUTHORS file.
  10    if ( $fd = @fopen ( 'AUTHORS', 'r' ) ) {
  11      // Read in contents of entire file first.
  12      while ( ! feof ( $fd ) && empty ( $error ) ) {
  13        $data .= fgets ( $fd, 4096 );
  14      }
  15      fclose ( $fd );
  16    }
  17    // $data = unhtmlentities ( $data );
  18    $data = preg_replace ( '/<.+>+/', '', $data );
  19    $data = preg_replace ( "/\n\s/", '<br />&nbsp;', $data );
  20    $data = preg_replace ( '/\s\s+/', '&nbsp;&nbsp;', $data );
  21    $data = preg_replace ( '/\n/', '<br />', $data );
  22  }
  23  
  24  print_header ( '', '', '', true, false, true );
  25  echo '
  26      <div align="left" style="margin-left:4px; position:absolute; bottom:0">';
  27  if ( empty ( $credits ) )
  28    echo '
  29        <a title="' . $PROGRAM_NAME . '" href="' . $PROGRAM_URL . '" target="_blank">
  30        <h2 style="margin:0">' . translate ( 'Title' ) . '</h2>
  31        <p>' . str_replace ( 'XXX', $PROGRAM_VERSION,
  32          // translate ( 'version' )
  33          translate ( 'version XXX' ) ) . '</p>
  34        <p>' . $PROGRAM_DATE . '</p></a>
  35        <p>&nbsp;</p>
  36        <p>' . translate ( 'WebCalendar is a PHP application used...' ) . '</p>';
  37  else {
  38  
  39    ?>
  40        <script language="javascript1.2" type="text/javascript">
  41          var
  42            scrollW="235px",
  43            scrollH="250px",
  44            copyS=scrollS=1,
  45            pauseS=0,
  46            scrollcontent='<?php echo $data ?>',
  47            actualH='',
  48            cross_scroll;
  49  
  50          function populate (){
  51            cross_scroll=document.getElementById("scroller");
  52            cross_scroll.innerHTML=scrollcontent;
  53            actualH=cross_scroll.offsetHeight;
  54            lefttime=setInterval("scrollMe ()",30);
  55          }
  56  
  57          window.onload=populate;
  58  
  59          function scrollMe (){
  60            if (parseInt (cross_scroll.style.top)>(actualH* (-1)+8))
  61              cross_scroll.style.top=parseInt(cross_scroll.style.top)-copyS+"px";
  62            else
  63              cross_scroll.style.top=parseInt(scrollH)+8+"px";
  64          }
  65  
  66          with (document){
  67            write('<div style="position:relative; width:'+scrollW+'; height: '
  68              + scrollH +'; overflow:hidden;" onMouseover="copyS=pauseS" '
  69              + 'onMouseout="copyS=scrollS"><div id="scroller"></div></div>');
  70          }
  71        </script>
  72  <?php
  73  }
  74  
  75  echo '
  76        <hr />
  77        <div align="center" style="margin:10px;">
  78          <form action="about.php" name="aboutform" method="post">
  79            <input type="submit" name=' . ( empty ( $credits )
  80    ? '"Credits" value="' . translate ( 'Credits' )
  81    : '"About" value="<< ' . translate ( 'About' ) )
  82   . '" />' . '&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
  83            <input type="button" name="ok" value="' . translate ( 'OK' )
  84   . '" onclick="window.close()" />
  85          </form>
  86        </div>
  87      </div>
  88      ' . print_trailer ( false, true, true );
  89  
  90  ?>

title

Description

title

Description

title

Description

title

title

Body