This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Question2Answer by Gideon Greenspan and contributors | |
http://www.question2answer.org/ | |
Description: Miscellaneous language phrases | |
This program is free software; you can redistribute it and/or | |
modify it under the terms of the GNU General Public License |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Question2Answer by Gideon Greenspan and contributors | |
http://www.question2answer.org/ | |
File: qa-plugin/wysiwyg-editor/qa-wysiwyg-upload.php | |
Description: Page module class for WYSIWYG editor (CKEditor) file upload receiver | |
This program is free software; you can redistribute it and/or |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function process_request($request) | |
{ | |
$qa_content=qa_content_prepare(); | |
$qa_content['title']=qa_lang('badges/badge_list_title'); | |
$badges = qa_get_badge_list(); | |
$totalawarded = 0; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/* | |
Snow Theme for Question2Answer Package | |
Copyright (C) 2014 Q2A Market <http://www.q2amarket.com> | |
File: qa-theme.php | |
Version: Snow 1.4 | |
Description: Q2A theme class | |
This program is free software: you can redistribute it and/or modify |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
public function initialize() | |
{ | |
parent::initialize(); | |
$this->displayUserTitleInProfileSectionTitle(); | |
} | |
private function displayUserTitleInProfileSectionTitle() | |
{ | |
if ($this->template !== 'user') { | |
return; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(() => { | |
var refactoring = () => { | |
var node = document.createTextNode("Refactored!"); | |
var body = document.getElementsByTagName("BODY")[0]; | |
if (body.hasChildNodes()) { | |
body.insertBefore(node, body.firstChild); | |
} else { | |
body.appendChild(node); | |
} | |
}; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
document.addEventListener("readystatechange", function (event) { | |
// Unable to use jQuery here | |
if (document.readyState == "complete") { | |
var page = document.getElementById("page"); | |
if (!page) { | |
return; | |
} | |
var performChanges = () => { | |
var videoTitleSpan = document.getElementById("eow-title"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{"contentType":"application/gliffy+json","version":"1.3","stage":{"background":"#FFFFFF","width":2224,"height":541,"nodeIndex":159,"autoFit":true,"exportBorder":false,"gridOn":true,"snapToGrid":true,"drawingGuidesOn":true,"pageBreaksOn":false,"printGridOn":false,"printPaper":null,"printShrinkToFit":false,"printPortrait":false,"maxWidth":5000,"maxHeight":5000,"themeData":{"uid":"com.gliffy.theme.daily_glyph","name":"The Daily Glyph","shape":{"primary":{"strokeWidth":2,"strokeColor":"#333333","fillColor":"#EEEEEE","gradient":false,"dropShadow":false,"opacity":1,"text":{"color":"#000000"}},"secondary":{"strokeWidth":2,"strokeColor":"#666666","fillColor":"#FFFFFF","gradient":false,"dropShadow":false,"opacity":1,"text":{"color":"#000000"}},"tertiary":{"strokeWidth":2,"strokeColor":"#333333","fillColor":"#CCCCCC","gradient":false,"dropShadow":false,"opacity":1,"text":{"color":"#000000"}},"highlight":{"strokeWidth":2,"strokeColor":"#333333","fillColor":"#333333","gradient":false,"dropShadow":false,"opacity":1,"text" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$permits = array( | |
QA_PERMIT_ALL => 'QA_PERMIT_ALL', | |
QA_PERMIT_USERS => 'QA_PERMIT_USERS', | |
QA_PERMIT_CONFIRMED => 'QA_PERMIT_CONFIRMED', | |
QA_PERMIT_POINTS => 'QA_PERMIT_POINTS', | |
QA_PERMIT_POINTS_CONFIRMED => 'QA_PERMIT_POINTS_CONFIRMED', | |
QA_PERMIT_APPROVED => 'QA_PERMIT_APPROVED', | |
QA_PERMIT_APPROVED_POINTS => 'QA_PERMIT_APPROVED_POINTS', | |
QA_PERMIT_EXPERTS => 'QA_PERMIT_EXPERTS', | |
QA_PERMIT_EDITORS => 'QA_PERMIT_EDITORS', |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function doctype() { | |
if (qa_get_logged_in_handle() === 'admin') { | |
echo "Starting tests...<br>\n"; | |
if(!fsockopen("www.google.com", 80, &$errno, &$errstr, 15)) | |
echo "www.google.com 80 - $errstr ($errno)<br>\n"; | |
else | |
echo "www.google.com 80 - ok<br>\n"; | |
if(!fsockopen("smtp.gmail.com", 465, &$errno, &$errstr, 15)) | |
echo "smtp.gmail.com 465 - $errstr ($errno)<br>\n"; |
NewerOlder