Commit 87c134ad authored by Imran Hussain's avatar Imran Hussain

PHP files need to start with proper tags

parent 892d1c50
Pipeline #489 passed with stage
in 4 minutes and 56 seconds
<?
<?php
exec("/usr/local/bin/shame.py -a", $Shame);
for ($i = 1; $i < (count($Shame) - 1); $i++) {
list($space, $place, $user, $size) = preg_split("/ +/", $Shame[$i]);
......
<? exec("/usr/local/bin/shame.py -a", $Shame);
<?php exec("/usr/local/bin/shame.py -a", $Shame);
$max = 10; //SET to number of users to display
$smarty->assign('title', "The SUCS Hall of Shame");
//$o="<div style='text-align: center;'><img src=\"/images/disk.graph.php\" alt=\"pie chart of top 12 disk users\"/></div>";
......
<?
<?php
$out = exec("/usr/bin/id");
$smarty->assign("body", $out);
?>
<?
<?php
// guard against corrupt folder data
define("TOOBIG", 102400);
......
<?
<?php
$res = $sucsDB->Execute("select username, sum(pages) as pages from printer where username != 'old' group by username order by sum(pages) desc");
$num = $res->RecordCount();
......
<?
<?php
require_once("../lib/validation.php");
// don't output the site template
$no_template = TRUE;
......
<?
<?php
function make_password($length = 8)
{
$vowels = "aeiouy";
......
<?
<?php
function piechart($title, $slice, $itemName, $fsizes = 0)
{
......
<?
<?php
function sanitizePhone($phone)
{
return preg_replace("/[ ()]/", "", $phone);
......
<?
<?php
require_once("validationData.php");
require_once("sanitization.php");
/* useful validation functions */
......
<?
<?php
// lookup real names from sid's using campus ldap
function lookupSID($sid)
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment