function PouetBoxIndexWatchlist() {
    parent::__construct();
    $this->uniqueID = "pouetbox_watchlist";
    $this->title = "your watchlist";

    $this->limit = 5;
  }
Example #2
0
  function PouetBoxSubmitProd()
  {
    parent::__construct();
    $this->uniqueID = "pouetbox_submitprod";
    $this->title = "submit a prod!";
    $this->formifier = new Formifier();
    $this->fields = array();

    $row = SQLLib::selectRow("DESC prods type");
    preg_match_all("/'([^']+)'/",$row->Type,$m);
    $this->types = $m[1];

    global $COMPOTYPES;
    $this->compos = $COMPOTYPES;
    $this->compos[0] = "";
    asort($this->compos);

    $this->ranks = array(0=>"");
    $this->ranks[97] = "disqualified";
    $this->ranks[98] = "not applicable";
    $this->ranks[99] = "not shown";
    for ($x=1; $x<=96; $x++) $this->ranks[$x] = $x;

    $this->years = array("");
    for ($x=date("Y"); $x>=POUET_EARLIEST_YEAR; $x--) $this->years[$x] = $x;
    $this->yearsFuture = array("");
    for ($x=date("Y")+2; $x>=POUET_EARLIEST_YEAR; $x--) $this->yearsFuture[$x] = $x;
  }
 function PouetBoxSubmitPartyEdition()
 {
   parent::__construct();
   $this->uniqueID = "pouetbox_submitpartyedition";
   $this->title = "submit a party edition!";
   $this->formifier = new Formifier();
   $this->fields = array();
 }
Example #4
0
 function PouetBoxSubmitBoard()
 {
   parent::__construct();
   $this->uniqueID = "pouetbox_submitboard";
   $this->title = "submit a board!";
   $this->formifier = new Formifier();
   $this->fields = array();
 }
Example #5
0
 function PouetBoxSubmitGroup()
 {
   parent::__construct();
   $this->uniqueID = "pouetbox_submitgroup";
   $this->title = "submit a group!";
   $this->formifier = new Formifier();
   $this->fields = array();
 }
 function PouetBoxModificationRequest()
 {
   parent::__construct();
   $this->uniqueID = "pouetbox_modificationrequest";
   $this->title = "submit a change request";
   $this->formifier = new Formifier();
   $this->fields = array();
 }
Example #7
0
  function PouetBoxBBSTopicList() {
    parent::__construct();
    $this->uniqueID = "pouetbox_bbslist";

    $row = SQLLib::selectRow("DESC bbs_topics category");
    preg_match_all("/'([^']+)'/",$row->Type,$m);
    $this->categories = $m[1];
  }
Example #8
0
  function PouetBoxBBSOpen() {
    parent::__construct();
    $this->uniqueID = "pouetbox_bbsopen";
    $this->title = "open a new bbs thread";

    $row = SQLLib::selectRow("DESC bbs_topics category");
    preg_match_all("/'([^']+)'/",$row->Type,$m);
    $this->categories = $m[1];
  }
Example #9
0
 function PouetBoxModalMessage( $allowHTML = false, $enableFooter = false )
 {
   parent::__construct();
   $this->uniqueID = "pouetbox_modalmessage";
   $this->title = "";
   $this->allowHTML = $allowHTML;
   $this->enableFooter = $enableFooter;
   $this->returnPage = $_SERVER['HTTP_REFERER'];
 }
Example #10
0
  function PouetBoxProdPost($prod) {
    global $currentUser;
    
    parent::__construct();
    $this->prod = (int)$prod;
    $this->uniqueID = "pouetbox_prodpost";
    $this->title = "add a comment";

    $this->myVote = SQLLib::SelectRow(sprintf_esc("SELECT * FROM comments WHERE who=%d AND which=%d AND rating!=0 LIMIT 1",(int)$currentUser->id,$this->prod));
  }
Example #11
0
  function PouetBoxTopList() {
    parent::__construct();
    $this->uniqueID = "pouetbox_toplist";

    $this->formifier = new Formifier();

    $row = SQLLib::selectRow("DESC prods type");
    preg_match_all("/'([^']+)'/",$row->Type,$m);

    $this->types = array();
    $this->types[""] = "- none - ";
    foreach($m[1] as $v) $this->types[$v] = $v;
  }
Example #12
0
  function PouetBoxAdminEditTopic( $id )
  {
    parent::__construct();
    $this->id = (int)$id;
    $this->uniqueID = "pouetbox_edittopic";
    $this->topic = SQLLib::SelectRow(sprintf_esc("select * from bbs_topics where id = %d",$this->id));
    $this->title = "edit this topic: "._html($this->topic->topic);
    $this->formifier = new Formifier();
    $this->fields = array();

    $row = SQLLib::selectRow("DESC bbs_topics category");
    preg_match_all("/'([^']+)'/",$row->Type,$m);
    $this->categories = $m[1];
  }
Example #13
0
  function PouetBoxAdminDeleteGroup( $group )
  {
    parent::__construct();

    $this->uniqueID = "pouetbox_groupdelete";

    $this->classes[] = "errorbox";

    $this->group = $group;

    global $verificationStrings;
    $this->checkString = $verificationStrings[ array_rand($verificationStrings) ];

    $this->title = "delete this group: ".$group->RenderLong();
  }
Example #14
0
  function PouetBoxAdminDeleteBoard( $board )
  {
    parent::__construct();

    $this->uniqueID = "pouetbox_boarddelete";

    $this->classes[] = "errorbox";

    $this->board = $board;

    global $verificationStrings;
    $this->checkString = $verificationStrings[ array_rand($verificationStrings) ];

    $this->title = "delete this board: "._html($board->name);
  }
Example #15
0
  function PouetBoxAdminDeleteParty( $party )
  {
    parent::__construct();

    $this->uniqueID = "pouetbox_partydelete";

    $this->classes[] = "errorbox";

    $this->party = $party;

    global $verificationStrings;
    $this->checkString = $verificationStrings[ array_rand($verificationStrings) ];

    $this->title = "delete this party: ".$party->PrintLinked();
  }
Example #16
0
  function PouetBoxPartyList($letter) {
    parent::__construct();
    $this->uniqueID = "pouetbox_partylist";

    $letter = substr($letter,0,1);
    if (preg_match("/^[a-z]$/",$letter))
      $this->letter = $letter;
    else
      $this->letter = "#";

    $a = array();
    $a[] = "<a href='parties.php?pattern=%23'>#</a>";
    for($x=ord("a");$x<=ord("z");$x++)
      $a[] = sprintf("<a href='parties.php?pattern=%s'>%s</a>",chr($x),chr($x));

    $this->letterselect = "[ ".implode(" |\n",$a)." ]";
  }
Example #17
0
 function PouetBoxSubmitList()
 {
   parent::__construct();
   $this->uniqueID = "pouetbox_submitlist";
   $this->title = "create a new list!";
   $this->formifier = new Formifier();
   $this->fields = array(
     "name"=>array(
       "name" => "list name",
       "info" => " ",
       "required" => true,
     ),
     "desc"=>array(
       "name" => "short description",
       "type" => "textarea",
       "info" => "be concise."
     ),
   );
 }
Example #18
0
 function PouetBoxProdlist() {
   parent::__construct();
   $this->uniqueID = "pouetbox_prodlist";
 }
Example #19
0
 function PouetBoxBBSView($id) {
   parent::__construct();
   $this->uniqueID = "pouetbox_bbsview";
   $this->title = "comments";
   $this->id = (int)$id;
 }
Example #20
0
 function PouetBoxCDCUser() {
   parent::__construct();
   $this->uniqueID = "pouetbox_cdcuser";
   $this->title = "users' coup de coeur toplist";
 }
Example #21
0
 function PouetBoxPreview() {
   parent::__construct();
   $this->uniqueID = "pouetbox_preview";
   $this->title = "this is what marcellus wallace looks like";
 }
Example #22
0
  function PouetBoxAdminDeleteProd( $prod )
  {
    parent::__construct();

    $this->uniqueID = "pouetbox_proddelete";

    $this->classes[] = "errorbox";

    $this->prod = $prod;

    global $verificationStrings;
    $this->checkString = $verificationStrings[ array_rand($verificationStrings) ];

    $this->title = "delete this prod: ".$this->prod->RenderLink();
  }
Example #23
0
 function PouetBoxProdSneakyCDCs() {
   parent::__construct();
   $this->uniqueID = "pouetbox_prodsneakycdcs";
   $this->title = "sneaky cdcs";
 }
Example #24
0
 function PouetBoxSubmitLogo()
 {
   parent::__construct();
   $this->uniqueID = "pouetbox_submitlogo";
   $this->title = "submit a logo!";
 }
Example #25
0
 function PouetBoxProdNfo() {
   parent::__construct();
   $this->uniqueID = "pouetbox_prodnfo";
   $this->title = "prod nfo";
 }
Example #26
0
 function PouetBoxSubmit() {
   parent::__construct();
   $this->uniqueID = "pouetbox_submit";
   $this->title = "What do you want to do?";
 }
 function PouetBoxAdminModificationRequests( )
 {
   parent::__construct();
   $this->uniqueID = "pouetbox_adminreq";
   $this->title = "process the following requests";
 }
Example #28
0
 function PouetBoxPartyView() {
   parent::__construct();
   $this->uniqueID = "pouetbox_partyview";
 }
Example #29
0
 function PouetBoxSubmitAvatar()
 {
   parent::__construct();
   $this->uniqueID = "pouetbox_submitavatar";
   $this->title = "submit an avatar!";
 }
Example #30
0
 function PouetBoxIndexRandom() {
   parent::__construct();
   $this->uniqueID = "pouetbox_random";
   $this->title = "a random prod";
 }