function Commit($data)
  {
    global $partyID;

    $sql = array();
    $sql["download"] = $data["download"];
    $sql["csdb"] = $data["csdbID"];
    $sql["slengpung"] = $data["slengpungID"];
    //$sql["zxdemo"] = $data["zxdemoID"];
    $sql["demozoo"] = $data["demozooID"];
    $sql["artcity"] = $data["artcity"];

    $links = SQLLib::selectRow(sprintf_esc("select * from partylinks where party = %d and year = %d",$this->id,$this->year));
    if ($links)
    {
      SQLLib::UpdateRow("partylinks",$sql,sprintf_esc("party = %d and year = %d",$this->id,$this->year));
    }
    else
    {
      $sql["party"] = $this->id;
      $sql["year"] = $this->year;
      SQLLib::InsertRow("partylinks",$sql);
    }

    if (is_uploaded_file($_FILES["results"]["tmp_name"]))
    {
      move_uploaded_file_fake($_FILES["results"]["tmp_name"],get_local_partyresult_path($this->id,$this->year));
    }

    gloperator_log( "party", (int)$this->id, "party_edit_links", array("year"=>$this->year) );

    return array();
  }
Example #2
0
 function RenderContent()
 {
   if ($_GET["font"]=="none")
   {
     echo "<pre>";
     echo _html( process_ascii( file_get_contents( get_local_partyresult_path( $_GET["which"], $_GET["when"] ) ) ) );
     echo "</pre>";
   }
   else
     printf("<img src='img_ascii.php?results=%d&amp;year=%d&amp;font=%d' alt='nfo'/>\n",$_GET["which"],$_GET["when"],$_GET["font"]);
 }
Example #3
0
 function GetResultsLocalFileName($year)
 {
   return get_local_partyresult_path($this->id,$year);
 }
Example #4
0
$r3=$r2-32;
$g3=$g2-32;
$b3=$b2-32;
if($r3<0) $r3=0;
if($g3<0) $g3=0;
if($b3<0) $b3=0;

$path = "";
if ($_GET["nfo"])
{
  $path = get_local_nfo_path($_GET["nfo"]);
}
elseif ($_GET["results"])
{
  $path = get_local_partyresult_path($_GET["results"],$_GET["year"]);
}
elseif ($_GET["boardnfo"])
{
  $path = get_local_boardnfo_path($_GET["boardnfo"]);
}

if(!$path || !file_exists($path))
{
  $txt=array(
    "ÚÄÄÄÄÄÄÄÄÄ¿  ",
    "³WRONG URL³  ",
    "ÀÄÄÄÄÄÄÄÄÄÙ  ");
  $s=0;
  $f=2;
}