Stud.IP  3.2 Revision
vote.config.php File Reference

Namespaces

 vote
 

Variables

const YES 1
 
const NO 0
 
const INSTANCEOF_VOTE "vote"
 
const INSTANCEOF_TEST "test"
 
const INSTANCEOF_AUTHOR_OBJECT "AuthorObject"
 
const INSTANCEOF_VOTEDB "VoteDB"
 
const VOTE_FILE_ADMIN "admin_vote.php"
 
const VOTE_FILE_SHOW "lib/vote/vote_show.inc.php"
 
const VOTE_ICON_BIG Assets::image_path('icons/16/white/vote.png')
 
const VOTE_ICON_VOTE Assets::image_path('icons/16/grey/vote.png')
 
const VOTE_ICON_TEST Assets::image_path('icons/16/grey/test.png')
 
const VOTE_ICON_STOPPED Assets::image_path('icons/16/grey/vote-stopped.png')
 
const VOTE_ICON_ARROW Assets::image_path('icons/16/white/admin.png')
 
const VOTE_ICON_SUCCESS Assets::image_path("icons/16/green/accept.png")
 
const VOTE_ICON_ERROR Assets::image_path("icons/16/red/decline.png")
 
const VOTE_ICON_INFO Assets::image_path("icons/16/grey/exclaim.png")
 
const VOTE_ICON_LIST Assets::image_path("icons/16/grey/file-generic.png")
 
const VOTE_BAR_LEFT Assets::image_path("bar_l.gif")
 
const VOTE_BAR_MIDDLE "vote_bar_"
 
const VOTE_BAR_RIGHT Assets::image_path("bar_r.gif")
 
const VOTE_ANSWER_CORRECT Assets::image_path("icons/16/green/accept.png")
 
const VOTE_ANSWER_WRONG Assets::image_path("icons/16/red/decline.png")
 
const VOTE_COLOR_SUCCESS "#008000"
 
const VOTE_COLOR_ERROR "#E00000"
 
const VOTE_COLOR_INFO "#333333"
 
const VOTE_ANSWER_MAXLEN 10
 
const VOTE_STATE_ACTIVE "active"
 
const VOTE_STATE_NEW "new"
 
const VOTE_STATE_STOPPED "stopped"
 
const VOTE_STATE_STOPVIS "stopvis"
 
const VOTE_STATE_STOPINVIS "stopinvis"
 
const VOTE_RESULTS_AFTER_VOTE "delivery"
 
const VOTE_RESULTS_AFTER_END "end"
 
const VOTE_RESULTS_ALWAYS "ever"
 
const VOTE_RESULTS_NEVER "never"
 
const VOTE_NEW "new"
 
const VOTE_ACTIVE "active"
 
const VOTE_STOPPED_VISIBLE "stopvis"
 
const VOTE_STOPPED_INVISIBLE "stopinvis"
 
const VOTE_IMAGETYPE_PIE 0
 
const VOTE_IMAGETYPE_BAR 1
 
const VOTE_IMAGETYPE_LINE 2
 
const VOTE_SHOW_MAXTITLELENGTH 80
 
 $_SESSION ['vote_HTTP_REFERER_2'] = $_SESSION['vote_HTTP_REFERER_1']
 
 $_SESSION ['vote_HTTP_REFERER_1'] = (($_SERVER['SERVER_PORT'] == 443 || $_SERVER['HTTPS'] == 'on')? 'https://':'http://') . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']
 

Variable Documentation

◆ $_SESSION [1/2]

$_SESSION[ 'vote_HTTP_REFERER_2'] = $_SESSION['vote_HTTP_REFERER_1']

◆ $_SESSION [2/2]

$_SESSION[ 'vote_HTTP_REFERER_1'] = (($_SERVER['SERVER_PORT'] == 443 || $_SERVER['HTTPS'] == 'on')? 'https://':'http://') . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']

◆ INSTANCEOF_AUTHOR_OBJECT

const INSTANCEOF_AUTHOR_OBJECT "AuthorObject"

◆ INSTANCEOF_TEST

const INSTANCEOF_TEST "test"

◆ INSTANCEOF_VOTE

const INSTANCEOF_VOTE "vote"

◆ INSTANCEOF_VOTEDB

const INSTANCEOF_VOTEDB "VoteDB"

◆ NO

const NO 0

◆ VOTE_ACTIVE

const VOTE_ACTIVE "active"

Votestate -> an active vote. public VOTE_ACTIVE

◆ VOTE_ANSWER_CORRECT

const VOTE_ANSWER_CORRECT Assets::image_path("icons/16/green/accept.png")

◆ VOTE_ANSWER_MAXLEN

const VOTE_ANSWER_MAXLEN 10

◆ VOTE_ANSWER_WRONG

const VOTE_ANSWER_WRONG Assets::image_path("icons/16/red/decline.png")

◆ VOTE_BAR_LEFT

const VOTE_BAR_LEFT Assets::image_path("bar_l.gif")

◆ VOTE_BAR_MIDDLE

const VOTE_BAR_MIDDLE "vote_bar_"

◆ VOTE_BAR_RIGHT

const VOTE_BAR_RIGHT Assets::image_path("bar_r.gif")

◆ VOTE_COLOR_ERROR

const VOTE_COLOR_ERROR "#E00000"

◆ VOTE_COLOR_INFO

const VOTE_COLOR_INFO "#333333"

◆ VOTE_COLOR_SUCCESS

const VOTE_COLOR_SUCCESS "#008000"

◆ VOTE_FILE_ADMIN

const VOTE_FILE_ADMIN "admin_vote.php"

◆ VOTE_FILE_SHOW

const VOTE_FILE_SHOW "lib/vote/vote_show.inc.php"

◆ VOTE_ICON_ARROW

const VOTE_ICON_ARROW Assets::image_path('icons/16/white/admin.png')

◆ VOTE_ICON_BIG

const VOTE_ICON_BIG Assets::image_path('icons/16/white/vote.png')

◆ VOTE_ICON_ERROR

const VOTE_ICON_ERROR Assets::image_path("icons/16/red/decline.png")

◆ VOTE_ICON_INFO

const VOTE_ICON_INFO Assets::image_path("icons/16/grey/exclaim.png")

◆ VOTE_ICON_LIST

const VOTE_ICON_LIST Assets::image_path("icons/16/grey/file-generic.png")

◆ VOTE_ICON_STOPPED

const VOTE_ICON_STOPPED Assets::image_path('icons/16/grey/vote-stopped.png')

◆ VOTE_ICON_SUCCESS

const VOTE_ICON_SUCCESS Assets::image_path("icons/16/green/accept.png")

◆ VOTE_ICON_TEST

const VOTE_ICON_TEST Assets::image_path('icons/16/grey/test.png')

◆ VOTE_ICON_VOTE

const VOTE_ICON_VOTE Assets::image_path('icons/16/grey/vote.png')

◆ VOTE_IMAGETYPE_BAR

const VOTE_IMAGETYPE_BAR 1

Imagetype BAR-Graph public VOTE_IMAGETYPE_BAR

◆ VOTE_IMAGETYPE_LINE

const VOTE_IMAGETYPE_LINE 2

Imagetype LINE-Graph public VOTE_IMAGETYPE_LINE

◆ VOTE_IMAGETYPE_PIE

const VOTE_IMAGETYPE_PIE 0

Imagetype PIE-Graph public VOTE_IMAGETYPE_PIE

◆ VOTE_NEW

const VOTE_NEW "new"

Votestate -> a new vote. public VOTE_NEW

◆ VOTE_RESULTS_AFTER_END

const VOTE_RESULTS_AFTER_END "end"

State for resultVisibility. Show the result after the end of the vote. public VOTE_RESULTS_AFTER_END

◆ VOTE_RESULTS_AFTER_VOTE

const VOTE_RESULTS_AFTER_VOTE "delivery"

State for resultvisibility. Show the result after the user has voted. public VOTE_RESULTS_AFTER_VOTE

◆ VOTE_RESULTS_ALWAYS

const VOTE_RESULTS_ALWAYS "ever"

State for resultVisibility. Show the result at any time. public VOTE_RESULTS_ALWAYS

◆ VOTE_RESULTS_NEVER

const VOTE_RESULTS_NEVER "never"

State for resultVisibility. Show the result never. public VOTE_RESULTS_NEVER

◆ VOTE_SHOW_MAXTITLELENGTH

const VOTE_SHOW_MAXTITLELENGTH 80

max length of the title in a headline public VOTE_SHOW_MAXTITLELENGTH

◆ VOTE_STATE_ACTIVE

const VOTE_STATE_ACTIVE "active"

◆ VOTE_STATE_NEW

const VOTE_STATE_NEW "new"

◆ VOTE_STATE_STOPINVIS

const VOTE_STATE_STOPINVIS "stopinvis"

◆ VOTE_STATE_STOPPED

const VOTE_STATE_STOPPED "stopped"

◆ VOTE_STATE_STOPVIS

const VOTE_STATE_STOPVIS "stopvis"

◆ VOTE_STOPPED_INVISIBLE

const VOTE_STOPPED_INVISIBLE "stopinvis"

Votestate -> stopped an invisible public VOTE_STOPPED_INVISIBLE

◆ VOTE_STOPPED_VISIBLE

const VOTE_STOPPED_VISIBLE "stopvis"

Votestate -> stopped and visible public VOTE_STOPPED_VISIBLE

◆ YES

const YES 1