Compare commits

...

67 commits

Author SHA1 Message Date
Stephan fbe28dfd07 „Pack/scripts/preupgrade“ ändern 2022-10-29 20:52:25 +00:00
Stephan 40f996953f „Pack/scripts/postupgrade“ ändern 2022-10-29 20:52:00 +00:00
Stephan 222fe5cc0e „Pack/scripts/postinst“ ändern 2022-10-29 20:51:29 +00:00
Stephan 6ca83573e8 „Pack/scripts/preupgrade“ ändern 2022-10-29 20:50:38 +00:00
Stephan 6cc6a5d635 Dateien hochladen nach „Build/ui/app/libARMv7l/openssl-1.0.2/engines“ 2022-10-23 13:22:44 +00:00
Stephan e5f277ead3 Dateien hochladen nach „Build/ui/app/libARMv7l“ 2022-10-23 13:19:56 +00:00
Stephan 4e8954b596 „Build/ui/app/libARMv7l/otrpidecoder“ löschen 2022-10-23 13:19:43 +00:00
Stephan 965260e4dd „Build/ui/app/libARMv7l/libunistring.so.0.1.2“ löschen 2022-10-23 13:19:38 +00:00
Stephan 6896447014 „Build/ui/app/libARMv7l/libunistring.so.0“ löschen 2022-10-23 13:19:33 +00:00
Stephan 8634e7f388 „Build/ui/app/libARMv7l/libssl.so.1.0.2“ löschen 2022-10-23 13:19:28 +00:00
Stephan 411918e45f „Build/ui/app/libARMv7l/libssl.so.1.0.0“ löschen 2022-10-23 13:19:23 +00:00
Stephan f6b21bc606 „Build/ui/app/libARMv7l/librtmp.so.1“ löschen 2022-10-23 13:19:19 +00:00
Stephan 8f3bb26b06 „Build/ui/app/libARMv7l/libpsl.so.5.1.1“ löschen 2022-10-23 13:19:15 +00:00
Stephan bf44bf1548 „Build/ui/app/libARMv7l/libpsl.so.5“ löschen 2022-10-23 13:19:10 +00:00
Stephan bcd0fbfcb2 „Build/ui/app/libARMv7l/libnettle.so.6“ löschen 2022-10-23 13:19:06 +00:00
Stephan 81a58d04dd „Build/ui/app/libARMv7l/libmcrypt.so.4“ löschen 2022-10-23 13:19:02 +00:00
Stephan 74e1a26c55 „Build/ui/app/libARMv7l/libidn2.so.0.1.4“ löschen 2022-10-23 13:18:57 +00:00
Stephan 0514a8b493 „Build/ui/app/libARMv7l/libidn2.so.0“ löschen 2022-10-23 13:18:52 +00:00
Stephan 56bc95b18e „Build/ui/app/libARMv7l/libhogweed.so.4“ löschen 2022-10-23 13:18:46 +00:00
Stephan 22de3dc069 „Build/ui/app/libARMv7l/libcurl.so.4.4.0“ löschen 2022-10-23 13:18:41 +00:00
Stephan c69201f0d7 „Build/ui/app/libARMv7l/libcurl.so.4 2“ löschen 2022-10-23 13:18:37 +00:00
Stephan f719a59635 „Build/ui/app/libARMv7l/libcurl.so.4“ löschen 2022-10-23 13:18:32 +00:00
Stephan bd420c0176 „Build/ui/app/libARMv7l/libcurl.so.3“ löschen 2022-10-23 13:18:27 +00:00
Stephan 36a1a5acbb „Build/ui/app/libARMv7l/libcrypto.so.1.0.2“ löschen 2022-10-23 13:18:21 +00:00
Stephan a41b9567e1 „Build/ui/app/libARMv7l/libcrypto.so.1.0.0“ löschen 2022-10-23 13:18:16 +00:00
Stephan 50ddb6f7a8 „Build/ui/app/libARMv7l/libcrypt.so.1“ löschen 2022-10-23 13:18:09 +00:00
Stephan 7d50e20b65 Dateien hochladen nach „Build/ui/app/libARMv7l“ 2022-10-23 13:16:20 +00:00
geimist b47400f74a no message 2021-10-19 16:18:00 +02:00
geimist 5f13833299 Anpassung der Librarys für ARM auf DSM7 2021-10-18 14:04:49 +02:00
Stephan 9e31705bd7 „Build/ui/synOTR.sh“ ändern 2021-08-07 08:44:15 +00:00
Stephan a9df2878ce „Pack/INFO“ ändern 2021-07-08 13:01:23 +00:00
Stephan d90762b2e1 Dateien hochladen nach „Pack“ 2021-07-07 16:23:18 +00:00
Stephan eb7a1175fa „Build/ui/synOTR-start.sh“ ändern 2021-07-04 19:05:23 +00:00
Stephan 4b37a4647b „Build/ui/synOTR-start.sh“ ändern 2021-07-04 17:40:51 +00:00
Stephan 39452335e4 „Build/ui/index.cgi“ ändern 2021-07-04 17:07:42 +00:00
Stephan b9c50c712e „Pack/conf/privilege“ ändern 2021-07-04 15:46:43 +00:00
Stephan cc9de0349f „build_spk.sh“ ändern 2021-07-04 15:35:21 +00:00
Stephan 542ad2e236 „Pack/conf/privilege“ ändern 2021-07-04 15:26:25 +00:00
Stephan d8565ff9e0 „Pack/conf/privilege“ ändern 2021-07-04 15:25:42 +00:00
Stephan 06fd4c4b46 „Pack/scripts/preupgrade“ ändern 2021-07-03 17:22:58 +00:00
Stephan 43f1f566c3 „Pack/scripts/preupgrade“ ändern 2021-07-03 17:18:10 +00:00
Stephan 5cd52cc795 „Build/ui/includes/token.php“ löschen 2021-07-03 16:28:51 +00:00
Stephan 220df4d148 „Build/ui/includes/check_privilege.inc.php“ löschen 2021-07-03 16:28:39 +00:00
Stephan 9b1a8ed382 „Build/ui/index.cgi“ ändern 2021-07-03 15:34:23 +00:00
Stephan c9d50df1ca Dateien hochladen nach „Build/ui/includes“ 2021-07-03 15:23:34 +00:00
Stephan b44edfa1cc „Build/ui/config“ ändern 2021-07-03 14:48:16 +00:00
Stephan d9687b9e01 „Build/ui/application.cfg“ löschen 2021-07-03 14:45:39 +00:00
Stephan 293ea9cf9b „Build/bin/synOTR-cli“ ändern 2021-07-03 14:44:57 +00:00
Stephan aa7bd7df81 „Pack/scripts/start-stop-status“ ändern 2021-07-03 14:44:02 +00:00
Stephan 4a46435149 „Pack/scripts/start-stop-status“ ändern 2021-07-03 14:42:33 +00:00
Stephan 7df13663c2 „Pack/scripts/preuninst“ ändern 2021-07-03 14:41:07 +00:00
Stephan 0235707664 „Pack/scripts/preinst“ ändern 2021-07-03 14:38:53 +00:00
Stephan 9177406173 „Pack/scripts/preupgrade“ ändern 2021-07-03 14:32:42 +00:00
Stephan a95c516c4a „Pack/scripts/postupgrade“ ändern 2021-07-03 14:15:05 +00:00
Stephan 79397a932e „Pack/scripts/postupgrade“ ändern 2021-07-03 13:41:00 +00:00
Stephan 6d1d4bfdb8 „Pack/scripts/postuninst“ ändern 2021-07-03 13:21:13 +00:00
Stephan 17ac0c3924 „Pack/scripts/postinst“ ändern 2021-07-03 13:19:46 +00:00
Stephan e251f5e2d8 „Pack/PACKAGE_ICON_256.PNG“ löschen 2021-07-03 13:11:35 +00:00
Stephan e633afba1a „Pack/PACKAGE_ICON_120.PNG“ löschen 2021-07-03 13:11:27 +00:00
Stephan 39de209a17 „Pack/INFO“ ändern 2021-07-03 13:10:46 +00:00
Stephan 12acdffaed „Pack/CHANGELOG“ ändern 2021-07-03 12:08:27 +00:00
Stephan 1029b83a21 „Pack/conf/resource“ hinzufügen 2021-07-03 12:06:39 +00:00
Stephan 094b545a50 „Pack/conf/privilege“ hinzufügen 2021-07-03 12:05:52 +00:00
Stephan badd5d4e05 „Pack/WIZARD_UIFILES/upgrade_uifile“ löschen 2021-07-03 11:49:42 +00:00
Stephan Geisler b12c15a8de no message 2021-06-29 20:32:21 +02:00
Stephan cd24b30b2b „Build/synOTR-start.sh“ ändern 2021-06-29 16:08:57 +00:00
Stephan cb7a555a5d „Pack/INFO“ ändern 2021-06-26 20:54:23 +00:00
130 changed files with 492 additions and 185 deletions

Binary file not shown.

View file

@ -1,6 +0,0 @@
text = synOTR
description = synOTR
icon_16 = images/synOTR_16.png
icon_32 = images/synOTR_32.png
type = embedded
path = /webman/3rdparty/synOTR/index.cgi

2
Build/bin/synOTR-cli Normal file
View file

@ -0,0 +1,2 @@
#!/bin/sh
/var/packages/synOTR/scripts/start-stop-status "$@"

View file

@ -1,19 +0,0 @@
{
".url": {
"SYNO.SDS.synOTR.Application": {
"type": "legacy",
"allUsers": false,
"allowMultiInstance": false,
"grantPrivilege": "all",
"advanceGrantPrivilege" : true,
"configablePrivilege" : true,
"title": "synOTR",
"desc": "",
"icon": "images/synOTR_{0}.png",
"appWindow": "SYNO.SDS.synOTR.Application",
"texts": "texts",
"width": 960,
"url": "/webman/3rdparty/synOTR/index.cgi"
}
}
}

View file

@ -1,58 +0,0 @@
<?PHP
//***********************************************************************//
// check_appprivilege.inc.php //
// Description: Script to query the active user permission for the //
// called application. //
// This will allow control of the permissions for //
// 3rdparty apps via Control Panel - Permissions //
// Now with query from SynoToken (DSM 4.x and onward) //
// Author: QTip from the german Synology support forum //
// Copyright: 2014-2016 by QTip //
// License: GNU GPLv3 (see LICENSE) //
// Thanks to MrSandman (German Synology support forum) for the nudge in //
// the right direction //
// ------------------------------------------------------------------- //
// Version: 0.31 - 18/09/2016 //
//***********************************************************************//
function check_privilege($appname) {
if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])){
$clientIP = $_SERVER['HTTP_X_FORWARDED_FOR'];
} elseif (isset($_SERVER['HTTP_X_REAL_IP'])){
$clientIP = $_SERVER['HTTP_X_REAL_IP'];
} else {
$clientIP = $_SERVER['REMOTE_ADDR'];
}
putenv('HTTP_COOKIE='.$_SERVER['HTTP_COOKIE']);
putenv('REMOTE_ADDR='.$clientIP);
$login = shell_exec("/usr/syno/synoman/webman/login.cgi");
preg_match('/\"SynoToken\"\s*?:\s*?\"(.*)\"/',$login,$synotoken);
$synotoken = trim($synotoken[1]);
// backup the current state of QUERY_STRING
$tmpenv = getenv('QUERY_STRING');
putenv('QUERY_STRING=SynoToken='.$synotoken);
$synouser = shell_exec("/usr/syno/synoman/webman/modules/authenticate.cgi");
if ($synouser == '') return array('','',0);
// get dsm build
$dsmbuild = shell_exec("/bin/get_key_value /etc.defaults/VERSION buildnumber");
if ($dsmbuild >= 7307) {
$raw_data = shell_exec("/usr/syno/bin/synowebapi --exec api=SYNO.Core.Desktop.Initdata method=get version=1 runner=".$synouser);
$initdata = json_decode(trim($raw_data),true);
$appprivilege = (array_key_exists($appname, $initdata['data']['AppPrivilege']) && $initdata['data']['AppPrivilege'][$appname]) ? 1 : 0;
$is_admin = (array_key_exists('is_admin', $initdata['data']['Session']) && $initdata['data']['Session']['is_admin'] == 1) ? 1 : 0;
} else {
$raw_data = shell_exec("/usr/syno/synoman/webman/initdata.cgi");
$raw_data = substr($raw_data,strpos($raw_data,"{")-1);
$initdata = json_decode(trim($raw_data),true);
$appprivilege = (array_key_exists($appname, $initdata['AppPrivilege']) && $initdata['AppPrivilege'][$appname]) ? 1 : 0;
$is_admin = (array_key_exists('is_admin', $initdata['Session']) && $initdata['Session']['is_admin'] == 1) ? 1 : 0;
}
// print $synotoken." - ".$synouser." - ".$is_admin;
// if application not found or user not admin, return empty string
// restore the old state of QUERY_STRING
putenv('QUERY_STRING='.$tmpenv);
if (!$appprivilege && !$is_admin) return array('','',0);
return array($synotoken,$synouser,$is_admin);
}
?>

View file

@ -1,11 +0,0 @@
<?php require('includes/check_privilege.inc.php'); list($synotoken,
$synouser, $is_admin) =
check_privilege('SYNO.SDS.synOTR.Application'); if ($synouser == '')
{
echo "0";
}
else
{
echo "token: $synotoken user: $synouser admin: $is_admin";
}
?>

View file

@ -0,0 +1,4 @@
#!/bin/bash
LIBDIR="/usr/syno/synoman/webman/3rdparty/synOTR/app/libARMv7l"
export LD_LIBRARY_PATH="$LIBDIR${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
$LIBDIR/otrpidecoder "$@"

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

20
Build/ui/config Normal file
View file

@ -0,0 +1,20 @@
{
".url": {
"SYNO.SDS.ThirdParty.App.synOTR": {
"type": "legacy",
"title": "synOTR",
"desc": "synOTR",
"allUsers": false,
"allowMultiInstance": false,
"grantPrivilege": "all",
"advanceGrantPrivilege": true,
"configablePrivilege": true,
"icon": "images/synOTR_{0}.png",
"appWindow": "SYNO.SDS.ThirdParty.App.synOTR",
"texts": "texts",
"width": 992,
"height": 560,
"url": "/webman/3rdparty/synOTR/index.cgi"
}
}
}

View file

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

View file

Before

Width:  |  Height:  |  Size: 3.4 KiB

After

Width:  |  Height:  |  Size: 3.4 KiB

View file

Before

Width:  |  Height:  |  Size: 3.3 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

View file

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View file

Before

Width:  |  Height:  |  Size: 7.5 KiB

After

Width:  |  Height:  |  Size: 7.5 KiB

View file

Before

Width:  |  Height:  |  Size: 7 KiB

After

Width:  |  Height:  |  Size: 7 KiB

View file

Before

Width:  |  Height:  |  Size: 7.3 KiB

After

Width:  |  Height:  |  Size: 7.3 KiB

View file

Before

Width:  |  Height:  |  Size: 857 B

After

Width:  |  Height:  |  Size: 857 B

View file

Before

Width:  |  Height:  |  Size: 855 B

After

Width:  |  Height:  |  Size: 855 B

View file

Before

Width:  |  Height:  |  Size: 2.8 KiB

After

Width:  |  Height:  |  Size: 2.8 KiB

View file

Before

Width:  |  Height:  |  Size: 2.5 KiB

After

Width:  |  Height:  |  Size: 2.5 KiB

View file

Before

Width:  |  Height:  |  Size: 676 B

After

Width:  |  Height:  |  Size: 676 B

View file

Before

Width:  |  Height:  |  Size: 591 B

After

Width:  |  Height:  |  Size: 591 B

View file

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View file

Before

Width:  |  Height:  |  Size: 7.5 KiB

After

Width:  |  Height:  |  Size: 7.5 KiB

View file

Before

Width:  |  Height:  |  Size: 9.4 KiB

After

Width:  |  Height:  |  Size: 9.4 KiB

View file

Before

Width:  |  Height:  |  Size: 2.3 KiB

After

Width:  |  Height:  |  Size: 2.3 KiB

View file

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View file

Before

Width:  |  Height:  |  Size: 1 KiB

After

Width:  |  Height:  |  Size: 1 KiB

View file

Before

Width:  |  Height:  |  Size: 1.1 KiB

After

Width:  |  Height:  |  Size: 1.1 KiB

View file

Before

Width:  |  Height:  |  Size: 1.5 KiB

After

Width:  |  Height:  |  Size: 1.5 KiB

View file

Before

Width:  |  Height:  |  Size: 953 B

After

Width:  |  Height:  |  Size: 953 B

View file

Before

Width:  |  Height:  |  Size: 128 KiB

After

Width:  |  Height:  |  Size: 128 KiB

View file

Before

Width:  |  Height:  |  Size: 19 KiB

After

Width:  |  Height:  |  Size: 19 KiB

View file

Before

Width:  |  Height:  |  Size: 21 KiB

After

Width:  |  Height:  |  Size: 21 KiB

View file

Before

Width:  |  Height:  |  Size: 1.2 KiB

After

Width:  |  Height:  |  Size: 1.2 KiB

View file

Before

Width:  |  Height:  |  Size: 2 KiB

After

Width:  |  Height:  |  Size: 2 KiB

View file

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 50 KiB

View file

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

View file

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 5.4 KiB

View file

Before

Width:  |  Height:  |  Size: 8.2 KiB

After

Width:  |  Height:  |  Size: 8.2 KiB

View file

Before

Width:  |  Height:  |  Size: 9.6 KiB

After

Width:  |  Height:  |  Size: 9.6 KiB

View file

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View file

Before

Width:  |  Height:  |  Size: 50 KiB

After

Width:  |  Height:  |  Size: 50 KiB

View file

Before

Width:  |  Height:  |  Size: 3.5 KiB

After

Width:  |  Height:  |  Size: 3.5 KiB

Some files were not shown because too many files have changed in this diff Show more