info:limesurvey:adminurl

limesurvey public->admin url script

vous recevez tout le temps des demandes d'aide d'administrateurs limesurvey qui ne vous donnent que l'url public?

marre de copier-coller?

voici un petit script bash bien pratique…

#! /usr/bin/bash
 
###########################################################################
#   Script to convert a public limesurvey url to admin                    #
#   Usage: limeadminurl                                                   #
#                                                                         #
#   Copyright information                                                 #
#                                                                         #
#   Copyright (C) 2015-2016 Fred Radeff <fradeff@akademia.ch>             #
#                                                                         #
#   License                                                               #
#                                                                         #
#   This program is free software; you can redistribute it and/or modify  #
#   it under the terms of the GNU General Public License as published by  #
#   the Free Software Foundation; either version 2 of the License, or     #
#   (at your option) any later version.                                   #
#                                                                         #
#   This program is distributed in the hope that it will be useful,       #
#   but WITHOUT ANY WARRANTY; without even the implied warranty of        #
#   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the          #
#   GNU General Public License for more details.                          #
#                                                                         #
#   You should have received a copy of the GNU General Public License     #
#   along with this program. If not, see <http://www.gnu.org/licenses/>.  #
#                                                                         #
###########################################################################
 
echo "convert a public limesurvey url to admin"
echo "paste  limesurvey public url eg"
echo "https://www.unige.ch/outils/limesurvey2/index.php/651721/lang-fr"
read i
echo "---"
j=`echo $i | sed 's/index.php/index\.php\/admin\/survey\/sa\/view\/surveyid/g'`
echo $j
firefox $j
  • info/limesurvey/adminurl.txt
  • Dernière modification: 2019/10/02 07:50
  • de radeff