1<?php if (!defined('BASEPATH')) { 2 exit('No direct script access allowed'); 3} 4/* 5 * LimeSurvey 6 * Copyright (C) 2007-2011 The LimeSurvey Project Team / Carsten Schmitz 7 * All rights reserved. 8 * License: GNU/GPL License v2 or later, see LICENSE.php 9 * LimeSurvey is free software. This version may have been modified pursuant 10 * to the GNU General Public License, and as distributed it includes or 11 * is derivative of works licensed under the GNU General Public License or 12 * other free or open source software licenses. 13 * See COPYRIGHT.php for copyright notices and details. 14 * 15 */ 16 17 18//Compatibility with classic modrewrite 19$route['<_sid:\d+>/lang-<_lang:\w+[-\w]+>/tk-<_token:\w+>/*'] = "survey/index/sid/<_sid>/lang/<_lang>/token/<_token>"; //This one must be first 20$route['<_sid:\d+>/lang-<_lang:\w+[-\w]+>/*'] = "survey/index/sid/<_sid>/lang/<_lang>"; 21$route['<_sid:\d+>/tk-<_token:\w+>/*'] = "survey/index/sid/<_sid>/token/<_token>"; 22$route['<_sid:\d+>/*'] = "survey/index/sid/<_sid>"; 23$route['<sid:\d+>'] = array('survey/index', 'matchValue'=>true); 24 25//Admin Routes 26$route['admin/index'] = "admin"; 27$route['admin/<action:\w+>/sa/<sa:\w+>/*'] = 'admin/<action>/sa/<sa>'; 28$route['admin/<action:\w+>/<sa:\w+>/*'] = 'admin/<action>/sa/<sa>'; 29 30//question 31$route['admin/labels/<_action:\w+>'] = "admin/labels/index/<_action>"; 32$route['admin/labels/<_action:\w+>/<_lid:\d+>'] = "admin/labels/index/<_action>/<_lid>"; 33 34//Expression Manager tests 35$route['admin/expressions'] = "admin/expressions/index"; 36 37//optout - optin 38$route['optout/<_sid:\d+>/(:any)/(:any)'] = "optout/index/<_sid>/$2/$3"; 39$route['optout/tokens/<surveyid:\d+>'] = array('optout/tokens', 'matchValue'=>true); 40$route['optin/tokens/<surveyid:\d+>'] = array('optin/tokens', 'matchValue'=>true); 41$route['statistics_user/<surveyid:\d+>'] = array('statistics_user/action', 'matchValue'=>true); 42 43$route['<_controller:\w+>/<_action:\w+>'] = '<_controller>/<_action>'; 44 45return $route; 46