repo stringlengths 7 63 | file_url stringlengths 81 284 | file_path stringlengths 5 200 | content stringlengths 0 32.8k | language stringclasses 1
value | license stringclasses 7
values | commit_sha stringlengths 40 40 | retrieved_at stringdate 2026-01-04 15:02:33 2026-01-05 05:24:06 | truncated bool 2
classes |
|---|---|---|---|---|---|---|---|---|
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/RequestPhone.php | application/Model/Item/RequestPhone.php | <?php
class RequestPhone_Item extends Item {
public $type = 'request_phone';
public $no_user_input_required = false;
public $hasChoices = false;
public $mysql_field = 'VARCHAR(20) DEFAULT NULL';
protected $classes_input = array('btn', 'btn-primary', 'request-phone');
protected function setMore... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/Url.php | application/Model/Item/Url.php | <?php
class Url_Item extends Text_Item {
public $type = 'url';
public $input_attributes = array('type' => 'url');
public $mysql_field = 'VARCHAR(255) DEFAULT NULL';
protected $prepend = 'fa-link';
public function validateInput($reply) {
if ($this->optional && trim($reply) == ''):
... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/McButton.php | application/Model/Item/McButton.php | <?php
class McButton_Item extends Mc_Item {
public $mysql_field = 'TINYINT UNSIGNED DEFAULT NULL';
protected $js_hidden = true;
protected function setMoreOptions() {
parent::setMoreOptions();
$this->classes_wrapper[] = 'btn-radio';
}
protected function render_appended() {
... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/Referrer.php | application/Model/Item/Referrer.php | <?php
class Referrer_Item extends Item {
public $type = 'referrer';
public $input_attributes = array('type' => 'hidden');
public $mysql_field = 'TEXT DEFAULT NULL';
public $no_user_input_required = true;
public $optional = 1;
protected function setMoreOptions() {
$this->input_attribut... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/Calculate.php | application/Model/Item/Calculate.php | <?php
class Calculate_Item extends Item {
public $type = 'calculate';
public $input_attributes = array('type' => 'hidden');
public $no_user_input_required = true;
public $mysql_field = 'MEDIUMTEXT DEFAULT NULL';
public function render() {
return $this->render_input();
}
}
| php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/RatingButton.php | application/Model/Item/RatingButton.php | <?php
class RatingButton_Item extends McButton_Item {
public $mysql_field = 'SMALLINT DEFAULT NULL';
public $type = "rating_button";
private $step = 1;
private $lower_limit = 1;
private $upper_limit = 5;
protected function setMoreOptions() {
parent::setMoreOptions();
$this->st... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/RangeTicks.php | application/Model/Item/RangeTicks.php | <?php
/**
* Slider with ticks
*/
class RangeTicks_Item extends Number_Item {
public $type = 'range_ticks';
public $input_attributes = array('type' => 'range', 'step' => 1, 'min' => 0, 'max' => 100);
protected $labels = array();
protected $left_label = '';
protected $right_labeel = '';
protec... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/Check.php | application/Model/Item/Check.php | <?php
/*
* Single checkbox
*/
class Check_Item extends McMultiple_Item {
public $mysql_field = 'TINYINT UNSIGNED DEFAULT NULL';
public $choice_list = NULL;
protected $hasChoices = false;
protected function setMoreOptions() {
parent::setMoreOptions();
$this->input_attributes['name']... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/Server.php | application/Model/Item/Server.php | <?php
class Server_Item extends Item {
public $type = 'server';
public $input_attributes = array('type' => 'hidden');
public $mysql_field = 'TEXT DEFAULT NULL';
public $no_user_input_required = true;
public $optional = 1;
private $get_var = 'HTTP_USER_AGENT';
protected function setMoreOpt... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/Submit.php | application/Model/Item/Submit.php | <?php
class Submit_Item extends Item {
public $type = 'submit';
public $input_attributes = array('type' => 'submit', 'value' => 1);
public $mysql_field = null;
public $save_in_results_table = false;
protected function setMoreOptions() {
$this->classes_input[] = 'btn';
$this->class... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/Browser.php | application/Model/Item/Browser.php | <?php
class Browser_Item extends Server_Item {
}
| php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/Get.php | application/Model/Item/Get.php | <?php
class Get_Item extends Item {
public $type = 'get';
public $input_attributes = array('type' => 'hidden');
public $no_user_input_required = true;
public $probably_render = true;
public $mysql_field = 'TEXT DEFAULT NULL';
protected $hasChoices = false;
private $get_var = 'referred_by';... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/Geopoint.php | application/Model/Item/Geopoint.php | <?php
class Geopoint_Item extends Item {
public $type = 'geopoint';
public $input_attributes = array('type' => 'text', 'readonly');
public $mysql_field = 'TEXT DEFAULT NULL';
protected $append = true;
protected function setMoreOptions() {
$this->input_attributes['name'] = $this->name . '[... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/File.php | application/Model/Item/File.php | <?php
class File_Item extends Item {
public $type = 'file';
public $input_attributes = array('type' => 'file', 'accept' => "image/*,video/*,audio/*,text/*");
public $mysql_field = 'VARCHAR(1000) DEFAULT NULL';
public $hasChoices = false;
protected $file_endings = array(
// JPEG ima... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/NoteIframe.php | application/Model/Item/NoteIframe.php | <?php
// notes are rendered at full width
class NoteIframe_Item extends Note_Item {
public $type = 'note_iframe';
public $mysql_field = null;
public $input_attributes = array('type' => 'hidden', "value" => 1);
public $save_in_results_table = false;
public function needsDynamicLabel($vars = [], $c... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/Item.php | application/Model/Item/Item.php | <?php
class ItemFactory {
public $errors;
public $showifs = array();
public $openCPU_errors = array();
private $choice_lists = array();
private $used_choice_lists = array();
function __construct($choice_lists) {
$this->choice_lists = $choice_lists;
}
public function make($ite... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/McHeading.php | application/Model/Item/McHeading.php | <?php
class McHeading_Item extends Mc_Item {
public $type = 'mc_heading';
public $mysql_field = null;
public $save_in_results_table = false;
protected function setMoreOptions() {
$this->input_attributes['disabled'] = 'disabled';
}
protected function render_label() {
$template... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/Tel.php | application/Model/Item/Tel.php | <?php
class Tel_Item extends Text_Item {
public $type = 'tel';
public $input_attributes = array('type' => 'tel');
public $mysql_field = 'VARCHAR(100) DEFAULT NULL';
protected $prepend = 'fa-phone';
protected function setMoreOptions() {
$this->classes_input[] = 'form-control';
}
}
| php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/SelectMultiple.php | application/Model/Item/SelectMultiple.php | <?php
/**
* Dropdown to select multiple items
*/
class SelectMultiple_Item extends SelectOne_Item {
public $type = 'select_multiple';
public $mysql_field = 'VARCHAR(40) DEFAULT NULL';
protected function chooseResultFieldBasedOnChoices() {
$choices = array_keys($this->choices);
$max = im... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/Year.php | application/Model/Item/Year.php | <?php
class Year_Item extends Datetime_Item {
public $type = 'year';
public $input_attributes = array('type' => 'year');
public $mysql_field = 'YEAR DEFAULT NULL';
protected $html5_date_format = 'Y';
protected $prepend = 'fa-calendar-o';
}
| php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/SelectOrAddMultiple.php | application/Model/Item/SelectOrAddMultiple.php | <?php
class SelectOrAddMultiple_Item extends SelectOrAddOne_Item {
public $type = 'select_or_add_multiple';
public $mysql_field = 'TEXT DEFAULT NULL';
public $input_attributes = array('type' => 'text');
public $text_choices;
protected function setMoreOptions() {
parent::setMoreOptions();
... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/Yearmonth.php | application/Model/Item/Yearmonth.php | <?php
class Yearmonth_Item extends Datetime_Item {
public $type = 'yearmonth';
public $input_attributes = array('type' => 'yearmonth');
public $mysql_field = 'DATE DEFAULT NULL';
//protected $prepend = 'fa-calendar-o';
protected $html5_date_format = 'Y-m-01';
protected function render_input()... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/RequestCookie.php | application/Model/Item/RequestCookie.php | <?php
class RequestCookie_Item extends Item {
public $type = 'request_cookie';
public $no_user_input_required = false;
public $hasChoices = true;
public $mysql_field = "VARCHAR(20) DEFAULT NULL";
// Use same classes as other button-style items
protected $classes_input = array('btn', 'btn-prima... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/Audio.php | application/Model/Item/Audio.php | <?php
class Audio_Item extends File_Item {
public $type = 'audio';
public $input_attributes = array('type' => 'file', 'capture' => "user");
public $mysql_field = 'VARCHAR(1000) DEFAULT NULL';
protected $file_endings = array(
'audio/webm' => '.webm', // Chrome/Edge
'audio/mpeg'... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/Timezone.php | application/Model/Item/Timezone.php | <?php
class Timezone_Item extends SelectOne_Item {
public $mysql_field = 'VARCHAR(255)';
public $choice_list = '*';
public $offsets;
protected function chooseResultFieldBasedOnChoices() {
}
protected function setMoreOptions() {
$this->classes_input[] = 'select2zone';
... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/Block.php | application/Model/Item/Block.php | <?php
class Block_Item extends Note_Item {
public $type = 'block';
public $input_attributes = array('type' => 'checkbox');
public $optional = 0;
public function setMoreOptions() {
$this->classes_wrapper[] = 'alert alert-danger';
}
}
| php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/Color.php | application/Model/Item/Color.php | <?php
class Color_Item extends Item {
public $type = 'color';
public $input_attributes = array('type' => 'color');
public $mysql_field = 'CHAR(7) DEFAULT NULL';
protected $prepend = 'fa-tint';
protected function setMoreOptions() {
$this->classes_input[] = 'form-control';
}
public... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/Note.php | application/Model/Item/Note.php | <?php
// notes are rendered at full width
class Note_Item extends Item {
public $type = 'note';
public $mysql_field = null;
public $input_attributes = array('type' => 'hidden', "value" => 1);
public $save_in_results_table = false;
public $optional = 1;
protected function render_label() {
... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Model/Item/Sex.php | application/Model/Item/Sex.php | <?php
class Sex_Item extends McButton_Item {
public $mysql_field = 'TINYINT UNSIGNED DEFAULT NULL';
protected function setMoreOptions() {
parent::setMoreOptions();
$this->setChoices(array());
}
public function setChoices($choices) {
$this->choices = array(1 => '♂', 2 => '♀');... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Controller/AdminAccountController.php | application/Controller/AdminAccountController.php | <?php
use RobThree\Auth\TwoFactorAuth;
class AdminAccountController extends Controller {
public function __construct(Site &$site) {
parent::__construct($site);
if (!Request::isAjaxRequest()) {
$this->registerAssets('admin');
}
}
public function indexAction() {
... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Controller/AdminSurveyController.php | application/Controller/AdminSurveyController.php | <?php
class AdminSurveyController extends AdminController {
public function __construct(Site &$site) {
parent::__construct($site);
}
public function indexAction($survey_name = '', $private_action = '') {
$this->setStudy($survey_name);
if ($private_action) {
if (empty(... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Controller/PublicController.php | application/Controller/PublicController.php | <?php
class PublicController extends Controller {
public function __construct(Site &$site) {
parent::__construct($site);
if (!Request::isAjaxRequest()) {
$this->registerAssets('frontend');
}
}
public function indexAction() {
$this->setView('public/home');
... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Controller/AdminRunController.php | application/Controller/AdminRunController.php | <?php
class AdminRunController extends AdminController {
public function __construct(Site &$site) {
parent::__construct($site);
}
public function indexAction($run_name = '', $private_action = '') {
$this->setRun($run_name);
if ($private_action) {
if (empty($this->run) ... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Controller/Controller.php | application/Controller/Controller.php | <?php
abstract class Controller {
/**
*
* @var Site
*/
protected $site;
/**
*
* @var User
*/
protected $user;
/**
*
* @var Run
*/
public $run;
/**
*
* @var DB
*/
protected $fdb;
/**
*
* @var SurveyStudy
... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Controller/AdminController.php | application/Controller/AdminController.php | <?php
class AdminController extends Controller {
public function __construct(Site &$site) {
parent::__construct($site);
$this->header();
if (!Request::isAjaxRequest()) {
$this->registerAssets('admin');
}
}
public function indexAction() {
$this->setView(... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Controller/RunController.php | application/Controller/RunController.php | <?php
class RunController extends Controller {
public function __construct(Site &$site) {
parent::__construct($site);
if (!Request::isAjaxRequest()) {
$this->registerAssets('frontend');
}
}
public function indexAction($runName = '', $privateAction = null) {
... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Controller/AdminAdvancedController.php | application/Controller/AdminAdvancedController.php | <?php
class AdminAdvancedController extends AdminController {
public function indexAction() {
$this->request->redirect('/');
}
public function infoAction() {
$this->setView('advanced/info');
return $this->sendResponse();
}
public function timingAction() {
$ocpu = ... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Controller/AdminAjaxController.php | application/Controller/AdminAjaxController.php | <?php
/**
* Group Admin Ajax requests here
* Takes in a controller of type AdminController
* which already have most required 'global' variables defined
*
*/
class AdminAjaxController {
/**
*
* @var AdminController
*/
protected $controller;
/**
*
* @var Site
*/
pro... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Controller/AdminMailController.php | application/Controller/AdminMailController.php | <?php
class AdminMailController extends AdminController {
public function __construct(Site &$site) {
parent::__construct($site);
}
public function indexAction() {
$vars = array(
'accs' => $this->user->getEmailAccounts(),
'form_title' => 'Add Mail Account',
... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Controller/ApiController.php | application/Controller/ApiController.php | <?php
/**
* @todo
* Wrap all public actions in try..catch construct
*/
class ApiController extends Controller {
/**
* POST Request variables
*
* @var Request
*/
protected $post;
/**
* GET Request variables
*
* @var Request
*/
protected $get;
/**
* ... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Services/RateLimitService.php | application/Services/RateLimitService.php | <?php
class RateLimitService
{
protected DB $db;
protected array $thresholds;
protected bool $testing;
protected bool $isSelfMessage;
/**
* @param DB $db Database connection
* @param bool $testing Whether this is a test run
* @param bool $isSelfMessage Whether the message is being s... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Services/OSF.php | application/Services/OSF.php | <?php
/**
* Interface for the Open Sciecne Framework API
* Class responsible for handling oauth and node operations
*
*/
class OSF {
/**
* OSF API entry point
*
* @var string
*/
protected $api = 'https://api.osf.io/v2';
/**
* URI to exchange for access token
*
* @va... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Services/OpenCPU.php | application/Services/OpenCPU.php | <?php
// todo:
// differentiate calls into those that need auth and those that don't
// in the call function, check whether opencpu server was set up with auth
//
class OpenCPU {
protected $localUrl = null;
protected $publicUrl = null;
protected $libUri = '/ocpu/library';
protected $last_message = nul... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Services/PushNotificationService.php | application/Services/PushNotificationService.php | <?php
use Minishlink\WebPush\WebPush;
use Minishlink\WebPush\Subscription;
class PushNotificationService
{
protected WebPush $webPush;
protected array $vapidKeys;
protected int $maxRetries;
protected int $batchSize;
protected int $rateLimit; // messages per minute per session
protected DB $db;... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Helper/UserHelper.php | application/Helper/UserHelper.php | <?php
class UserHelper {
public static function getUserManagementTablePdoStatement($params = array()) {
$count = DB::getInstance()->count('survey_users');
$pagination = new Pagination($count, 200, true);
$limits = $pagination->getLimits();
$where = " ";
if (!empty($params['... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Helper/ApiHelper.php | application/Helper/ApiHelper.php | <?php
class ApiHelper {
/**
* @var DB
*/
protected $db;
/**
* @var Request
*/
protected $request;
/**
* A conainer to hold processed request's outcome
*
* @var array
*/
protected $data = array(
'statusCode' => Response::STATUS_OK,
'stat... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Helper/RunHelper.php | application/Helper/RunHelper.php | <?php
class RunHelper {
/**
*
* @var Request
*/
protected $request;
/**
*
* @var string
*/
protected $run_name;
/**
* @var Run
*/
protected $run;
/**
*
* @var RunSession
*/
protected $runSession;
/**
*
* @var DB
... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Helper/OAuthHelper.php | application/Helper/OAuthHelper.php | <?php
/**
* This class acts as a Data Access Object for the OAuth2 Library
* imported from https://github.com/bshaffer/oauth2-server-php
*/
class OAuthHelper {
/**
* @var \OAuth2\Server
*/
protected $server;
/**
*
* @var \OAuth2\Storage\Pdo
*/
protected $storage;
/**
... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Queue/EmailQueue.php | application/Queue/EmailQueue.php | <?php
/**
*
* the email queue takes emails grouped by sending accounts (to minimize opening and closing connections)
* it sends queued emails and logs the result to the email_log, the user_sessions, and a .log file (the latter is more immediately visible to the researcher)
* it also takes action if emails fail to ... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Queue/Queue.php | application/Queue/Queue.php | <?php
/**
* Queue Base Class
*
*/
class Queue {
/**
*
* @var DB
*/
protected $db;
/**
* Interval in seconds for which loop should be rested
*
* @var int
*/
protected $loopInterval;
/**
* Flag used to exit or stay in run loop
*
* @var boolean
... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/Queue/UnitSessionQueue.php | application/Queue/UnitSessionQueue.php | <?php
/**
* UnitSessionQueue
* Process unit sessions in survey_unit_sessions
*
*/
class UnitSessionQueue extends Queue {
protected $name = 'UnitSession-Queue';
protected $logFile = 'session-queue.log';
const QUEUED_TO_EXECUTE = 1;
const QUEUED_TO_END = 2;
const QUEUED_NOT = 0;
const ... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/application/View/View.php | application/View/View.php | <?php
class View {
protected $template = null;
protected $variables = array();
public function __construct($template = null, $variables = array()) {
$this->setTemplate($template);
$this->setVariables($variables);
}
public function setTemplate($template) {
if ($te... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/bin/import-results.php | bin/import-results.php | #!/usr/bin/php
<?php
/**
* Manual import of formr exported results
* Export file must be in CSV format
*
*/
require_once dirname(__FILE__) . '/../setup.php';
function quoteCols($db, $cols) {
foreach ($cols as $i => $col) {
$cols[$i] = DB::quoteCol($col);
}
return $cols;
}
function quoteVals($... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/bin/cron_cleanup_orphaned_files.php | bin/cron_cleanup_orphaned_files.php | #!/usr/bin/php
<?php
require_once dirname(__FILE__) . '/../setup.php';
require_once dirname(__FILE__) . '/../application/CleanupOrphanedFilesOnCron.php';
// Global required variables
$site = Site::getInstance();
$fdb = DB::getInstance();
$user = new User(null, null, ['cron' => true]);
$cronConfig = Config::get('cron')... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/bin/queue.php | bin/queue.php | #!/usr/bin/php
<?php
require_once dirname(__FILE__) . '/../setup.php';
Session::configure([]);
/**
* Usage:
* - php queue.php
* - php queue.php -a 123 -t Email
* - php queue.php -t UnitSession
*
* Parameters:
* - t : The type if the queue to process. Values: 'Email', 'UnitSession'
* - a : In the case of Emai... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/bin/cron_run_expiry.php | bin/cron_run_expiry.php | #!/usr/bin/php
<?php
require_once dirname(__FILE__) . '/../setup.php';
require_once dirname(__FILE__) . '/../application/RunExpiresOnCron.php';
// Global required variables
$site = Site::getInstance();
$fdb = DB::getInstance();
$user = new User(null, null, ['cron' => true]);
$cronConfig = Config::get('cron');
$params... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/bin/cron.php | bin/cron.php | #!/usr/bin/php
<?php
require_once dirname(__FILE__) . '/../setup.php';
// If we are processing unit sessions via db queue then cron should not run
if (Config::get('unit_session.use_queue')) {
echo "\n Processing Sessions in DB Queue \n";
exit(0);
}
// Global required variables
$site = Site::getInstance();
$f... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/bin/add_user.php | bin/add_user.php | #!/usr/bin/php
<?php
require_once dirname(__FILE__) . '/../setup.php';
$opts = getopt('e:p:l:');
if (empty($opts['e']) || empty($opts['p'])) {
throw new Exception("Specify [e]mail and [p]assword");
}
$config = array();
$config['email'] = $opts['e'];
$config['password'] = $opts['p'];
if(empty($opts['l'])) {
$... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/bin/queue-migration.php | bin/queue-migration.php | #!/usr/bin/php
<?php
require_once dirname(__FILE__) . '/../setup.php';
function update_unit_sessions_table(DB $db) {
$query = "SELECT unit_session_id, run_session_id, created, run, expires, execute FROM survey_sessions_queue";
$stmt = $db->query($query, true);
while ($row = $stmt->fetch(PDO::FETCH_ASS... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/bin/reset_2fa.php | bin/reset_2fa.php | #!/usr/bin/php
<?php
/**
* Command line script to reset 2FA for any user
* Usage: php bin/reset_2fa.php <email>
* If no email is provided, it will list all users with 2FA enabled
*/
require_once dirname(__FILE__) . '/../setup.php';
if (php_sapi_name() !== 'cli') {
die("This script can only be run from the comm... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/bin/initialize.php | bin/initialize.php | #!/usr/bin/php
<?php
require_once dirname(__FILE__) . '/../setup.php';
$db = DB::getInstance();
$settings = $db->count('survey_settings');
if($settings > 0) {
print("Settings were already initialized");
} else {
$default_settings = Config::get("content_settings");
foreach ($default_settings as $setting => $value)... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/bin/tasks.php | bin/tasks.php | #!/usr/bin/php
<?php
require_once dirname(__FILE__) . '/../setup.php';
function _e($str) {
echo $str . "\n\n";
}
/**
* Migrate existing special units to new table
*
*/
function migrateSpecialUnits() {
$sql = "SELECT survey_runs.id, survey_runs.reminder_email, survey_runs.service_message, survey_runs.overv... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/templates/admin/footer.php | templates/admin/footer.php |
<footer class="main-footer">
<div class="pull-right hidden-xs">Copyright © <?= date('Y') ?> formr<?php
if (!empty($user) && $user->loggedIn()) {
echo ' - ' . FORMR_VERSION;
}
?></div>
<ul class="nav navbar-nav">
<li><a href="https:/... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/templates/admin/home.php | templates/admin/home.php | <?php Template::loadChild('admin/header'); ?>
<div class="content-wrapper">
<section class="content-header">
<h1>Dashboard <small>Quick Links</small></h1>
</section>
<section class="content">
<?php Template::loadChild('public/alerts'); ?>
<div class="row">
<div class="... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/templates/admin/header.php | templates/admin/header.php | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>formr admin</title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/templates/admin/advanced/active_users.php | templates/admin/advanced/active_users.php | <?php Template::loadChild('admin/header'); ?>
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>User Management <small>Superadmin</small></h1>
</section>
<!-- Main content -->
<section class="content">
<div class="row">
... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/templates/admin/advanced/test_opencpu_speed.php | templates/admin/advanced/test_opencpu_speed.php | <?php
Template::loadChild('admin/header');
// Get the OpenCPU instance
$openCPU = OpenCPU::getInstance();
echo "<h2>OpenCPU test</h2>";
echo '<h5>Testing ' . Config::get('opencpu_instance')['public_url'] . '</h5>';
$max = 30;
// Check if OpenCPU instance requires authentication
$requires_auth = Config::get('opencp... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/templates/admin/advanced/user_detail.php | templates/admin/advanced/user_detail.php | <?php Template::loadChild('admin/header'); ?>
<div class="content-wrapper">
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-md-10">
<div class="box box-primary">
<div class="box-header with-border">
... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/templates/admin/advanced/runs_management.php | templates/admin/advanced/runs_management.php | <?php Template::loadChild('admin/header'); ?>
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>Runs Management <small>Superadmin</small></h1>
</section>
<!-- Main content -->
<section class="content">
<div class="row">
... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/templates/admin/advanced/timing.php | templates/admin/advanced/timing.php | <table>
<tr>
<th>
PHP
</th>
<td><?=$php?></td>
</tr>
<tr>
<th>
DB
</th>
<td><?=$db?></td>
</tr>
<tr>
<th>
OCPU
</th>
<td><?=$ocpu?></td>
</tr>
</table> | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/templates/admin/advanced/runs_management_queue.php | templates/admin/advanced/runs_management_queue.php | <?php Template::loadChild('admin/header'); ?>
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>Runs Management <small>Superadmin</small></h1>
</section>
<!-- Main content -->
<section class="content">
<div class="row">
... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/templates/admin/advanced/test_opencpu.php | templates/admin/advanced/test_opencpu.php | <?php
Template::loadChild('admin/header');
echo '<div class="col-md-12">';
echo '<h2>OpenCPU test</h2>';
echo '<h3>testing ' . Config::get('opencpu_instance')['base_url'] . '</h3>';
$nocache = '';
$source = '{
library(knitr)
knit2html(text = "' . addslashes("__Hello__ World `r 1`
```{r}
# " . $nocache . "
library(g... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | true |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/templates/admin/advanced/settings.php | templates/admin/advanced/settings.php | <?php Template::loadChild('admin/header'); ?>
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>Content Settings</h1>
</section>
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-md-1... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/templates/admin/advanced/user_management.php | templates/admin/advanced/user_management.php | <?php Template::loadChild('admin/header');
$default_email = Config::get('default_admin_email');
$has_default_email= $default_email !== null && $default_email['host'] !== null;
?>
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>User Management <sm... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/templates/admin/advanced/info.php | templates/admin/advanced/info.php | <?php
phpinfo();
| php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/templates/admin/advanced/settings/footer.php | templates/admin/advanced/settings/footer.php | <form class="form-horizontal" id="content_settings" method="post" action="<?php echo admin_url('advanced/content-settings'); ?>">
<p class="pull-right">
<input type="submit" name="submit_settings" value="Save" class="btn btn-primary save_settings">
</p>
<div class="form-group">
<label>Logo ... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/templates/admin/advanced/settings/docu-page.php | templates/admin/advanced/settings/docu-page.php | <form class="form-horizontal" enctype="multipart/form-data" method="post" action="<?php echo admin_url('advanced/content_settings'); ?>">
<p class="pull-right">
<input type="submit" name="content_settings" value="Save" class="btn btn-primary save_settings">
</p>
<?php
$val = array_val($sett... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/templates/admin/advanced/settings/publications-page.php | templates/admin/advanced/settings/publications-page.php | <form class="form-horizontal" enctype="multipart/form-data" method="post" action="<?php echo admin_url('advanced/content_settings'); ?>">
<p class="pull-right">
<input type="submit" name="content_settings" value="Save" class="btn btn-primary save_settings">
</p>
<?php
$val = array_val($setti... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/templates/admin/advanced/settings/about-page.php | templates/admin/advanced/settings/about-page.php | <form class="form-horizontal" enctype="multipart/form-data" method="post" action="<?php echo admin_url('advanced/content_settings'); ?>">
<p class="pull-right">
<input type="submit" name="content_settings" value="Save" class="btn btn-primary save_settings">
</p>
<?php
$val = array_val($sett... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/templates/admin/advanced/settings/privacy-policy.php | templates/admin/advanced/settings/privacy-policy.php | <form class="form-horizontal" id="content_settings" method="post" action="<?php echo admin_url('advanced/content-settings'); ?>">
<p class="pull-right">
<input type="submit" name="submit_settings" value="Save" class="btn btn-primary save_settings">
</p>
<div class="form-group">
<label>Priva... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/templates/admin/advanced/settings/signup.php | templates/admin/advanced/settings/signup.php | <form class="form-horizontal" enctype="multipart/form-data" method="post" action="<?php echo admin_url('advanced/content_settings'); ?>">
<p class="pull-right">
<input type="submit" name="content_settings" value="Save" class="btn btn-primary save_settings">
</p>
<?php
$val = array_val($sett... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/templates/admin/advanced/settings/studies-page.php | templates/admin/advanced/settings/studies-page.php | <form class="form-horizontal" enctype="multipart/form-data" method="post" action="<?php echo admin_url('advanced/content_settings'); ?>">
<p class="pull-right">
<input type="submit" name="content_settings" value="Save" class="btn btn-primary save_settings">
</p>
<?php
$val = array_val($... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/templates/admin/advanced/settings/js.php | templates/admin/advanced/settings/js.php | <form class="form-horizontal" enctype="multipart/form-data" method="post" action="<?php echo admin_url('advanced/content_settings'); ?>">
<p class="pull-right">
<input type="submit" name="content_settings" value="Save" class="btn btn-primary save_settings">
</p>
<div class="col-md-12">
<h4... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/templates/admin/misc/osf.php | templates/admin/misc/osf.php | <?php Template::loadChild('admin/header'); ?>
<!-- Content Wrapper. Contains page content -->
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>Open Science Framework «» FORMR actions</h1>
</section>
<!-- Main content -->
<... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/templates/admin/mail/edit.php | templates/admin/mail/edit.php | <?php
Template::loadChild('header');
Template::loadChild('acp_nav');
?>
<div class="col-md-6 col-lg-5 col-sm-7 col-md-offset-1 well">
<h2>edit email account</h2>
<form class="form-horizontal form-horizontal-small-left" id="edit_email_account" name="edit_email_account" method="post" action="<?php echo admin_url... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/templates/admin/mail/index.php | templates/admin/mail/index.php | <?php
Template::loadChild('admin/header');
?>
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>E-Mail Accounts </h1>
</section>
<!-- Main content -->
<section class="content">
<div class="row">
<!-- survey context ... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/templates/admin/account/reset_password.php | templates/admin/account/reset_password.php | <?= Template::loadChild('admin/account/parts/header', ['title' => 'Password Reset']) ?>
<h2>Reset Password</h2>
<h4 class="text-left" style="line-height: 25px;">Your new password will be effective immediately.</h4>
<?= Template::loadChild('public/alerts') ?>
<div style="margin-top: 55px;">
<form class="" id="logi... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/templates/admin/account/two_factor.php | templates/admin/account/two_factor.php | <?= Template::loadChild('admin/account/parts/header', ['title' => 'Setup Two Factor Authentication']) ?>
<h4>Two Factor Authentication Verification</h4>
<?= Template::loadChild('public/alerts') ?>
<div style="margin-top: 35px;">
<div class="alert alert-info text-left">
<p><i class="fa fa-info-circle"></i>... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/templates/admin/account/manage_two_factor.php | templates/admin/account/manage_two_factor.php | <?= Template::loadChild('admin/account/parts/header', ['title' => 'Two Factor Authentication']) ?>
<h2>Two-Factor Authentication</h2>
<?= Template::loadChild('public/alerts') ?>
<div style="margin-top: 10px;">
<div class="row">
<form id="2faSetup" name="2faSetup" method="post" action="<?= admin_url('accou... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/templates/admin/account/login.php | templates/admin/account/login.php | <?= Template::loadChild('admin/account/parts/header', ['title' => 'Login']) ?>
<h2>Login to your Account</h2>
<?= Template::loadChild('public/alerts') ?>
<div style="margin-top: 55px;">
<form class="" id="login" name="login" method="post" action="<?= admin_url('account/login') ?>">
<div class="form-group... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/templates/admin/account/register.php | templates/admin/account/register.php | <?= Template::loadChild('admin/account/parts/header', ['title' => 'Sign Up']) ?>
<?= Template::loadChild('public/alerts') ?>
<?php if (Site::getSettings('signup:allow', 'true') !== 'true'): ?>
<div>
<?php echo Site::getSettings('signup:message', '') ?>
</div>
<?php else: ?>
<h2>Sign up!</h2>
<d... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/templates/admin/account/forgot_password.php | templates/admin/account/forgot_password.php | <?= Template::loadChild('admin/account/parts/header', ['title' => 'Password Forgotten']) ?>
<h2>Forgot Password?</h2>
<h4 class="text-left" style="line-height: 25px;">Enter your email below and a link to reset your password will be sent to you.</h4>
<?= Template::loadChild('public/alerts') ?>
<div style="margin-top: ... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/templates/admin/account/index.php | templates/admin/account/index.php | <?php Template::loadChild('admin/header'); ?>
<div class="content-wrapper">
<section class="content-header">
<h1>User Profile </h1>
</section>
<section class="content">
<div class="row">
<div class="col-md-3">
<?php if (!$user->isAdmin()): ?>
... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/templates/admin/account/setup_two_factor.php | templates/admin/account/setup_two_factor.php | <?= Template::loadChild('admin/account/parts/header', ['title' => 'Setup Two Factor Authentication']) ?>
<h3>Two-Factor Authentication Setup</h3>
<?= Template::loadChild('public/alerts') ?>
<div style="margin-top: 15px;">
<?php if (isset($qr_url)): ?>
<p>
To set up two-factor authentication, s... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/templates/admin/account/parts/footer.php | templates/admin/account/parts/footer.php | </div>
<div class="clearfix"></div>
</div>
</div>
</div>
</div>
<div class="clear"></div>
</section>
</div>
<footer class="main-footer">
<ul class="nav navbar-nav pull-right hidden-xs">
<li>
<a href="<?= site_url() ?>">
Copyright ©
<?= date('Y') ?> formr
... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/templates/admin/account/parts/header.php | templates/admin/account/parts/header.php | <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<title>formr admin | <?= $title ?: 'Welcome' ?></title>
<!-- Tell the browser to be responsive to screen width -->
<meta content="width=device-width, initial-scale=1, maximum-scale=1, user-sca... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/templates/admin/run/run_modals.php | templates/admin/run/run_modals.php | <!-- Run templates needed for javascript -->
<script id="tpl-export-units" type="text/formr">
<div class="modal fade" tabindex="-1" role="dialog" aria-labelledby="ExportUnits" aria-hidden="true">
<div class="modal-dialog">
<div class="modal-content">
<form id="export_run_units" method="post"... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/templates/admin/run/rename_run.php | templates/admin/run/rename_run.php | <?php Template::loadChild('admin/header'); ?>
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1><?php echo $run->name; ?> <small><a target="_blank" title="The official link to your run, which you can share with prospective users." href="<?php echo ... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/templates/admin/run/create_new_named_session.php | templates/admin/run/create_new_named_session.php | <?php Template::loadChild('admin/header'); ?>
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1><?php echo $run->name; ?> <small><a target="_blank" title="The official link to your run, which you can share with prospective users." href="<?php echo ... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
rubenarslan/formr.org | https://github.com/rubenarslan/formr.org/blob/708f2eb560f4c132c718a61cc8390e1ea7e272bc/templates/admin/run/email_log.php | templates/admin/run/email_log.php | <?php Template::loadChild('admin/header'); ?>
<div class="content-wrapper">
<!-- Content Header (Page header) -->
<section class="content-header">
<h1><?php echo $run->name; ?> <small><a target="_blank" title="The official link to your run, which you can share with prospective users." href="<?php echo ... | php | BSD-3-Clause | 708f2eb560f4c132c718a61cc8390e1ea7e272bc | 2026-01-05T04:26:45.406941Z | false |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.