Compare commits
No commits in common. "master" and "v3.1" have entirely different histories.
284 changed files with 18697 additions and 31194 deletions
|
@ -1,5 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<html lang="en-US">
|
||||
<title>HRConvert2 | HRConvert2 Authentication</title>
|
||||
<body>
|
||||
<div id="outer" align="center"><h1>Configuring HRConvert2 ...</h1>
|
||||
|
|
|
@ -1,120 +0,0 @@
|
|||
# -----------------------------------------------------------------------------------
|
||||
# COPYRIGHT INFORMATION ...
|
||||
# HRConvert2, Copyright on 6/9/2024 by Justin Grimes, www.github.com/zelon88
|
||||
|
||||
# LICENSE INFORMATION ...
|
||||
# This project is protected by the GNU GPLv3 Open-Source license.
|
||||
# https://www.gnu.org/licenses/gpl-3.0.html
|
||||
|
||||
# APPLICATION INFORMATION ...
|
||||
# This application is designed to provide a web-interface for converting file formats
|
||||
# on a server for users of any web browser without authentication.
|
||||
|
||||
# FILE INFORMATION ...
|
||||
# v3.3.7.
|
||||
# This file contains the Docker build file for the project.
|
||||
# Build this with...
|
||||
# docker build -t HRConvert2 .
|
||||
# Run this with...
|
||||
# docker run -d -p 8080:80 -p 8443:443 HRConvert2
|
||||
|
||||
# HARDWARE REQUIREMENTS ...
|
||||
# This application requires at least a Raspberry Pi Model B+ or greater.
|
||||
# This application will run on just about any x86 or x64 computer.
|
||||
|
||||
# DEPENDENCY REQUIREMENTS ...
|
||||
# This application requires Debian Linux (w/3rd Party audio license),
|
||||
# Apache 2.4, PHP 8+, LibreOffice, Unoconv, ClamAV, Tesseract, Rar, Unrar, Unzip,
|
||||
# 7zipper, FFMPEG, PDFTOTEXT, Dia, PopplerUtils, MeshLab, Mkisofs & ImageMagick.
|
||||
|
||||
# <3 Open-Source
|
||||
# -----------------------------------------------------------------------------------
|
||||
|
||||
# Build this with...
|
||||
# docker build -t hrconvert2 .
|
||||
|
||||
# Run this with...
|
||||
# docker run -d -p 8080:80 -p 8443:443 hrconvert2
|
||||
|
||||
# Use the official PHP parent image.
|
||||
FROM php:8.1-apache
|
||||
|
||||
# Create required directories.
|
||||
RUN mkdir /DATA && \
|
||||
mkdir /DATA/HRConvert2
|
||||
|
||||
# Set the working directory in the container.
|
||||
WORKDIR /var/www/html/HRProprietary
|
||||
|
||||
# Create & process a debian.sources file.
|
||||
RUN rm -vf /var/lib/apt/lists/*
|
||||
RUN apt-get update
|
||||
|
||||
# Install git.
|
||||
RUN apt-get install -y git sed
|
||||
|
||||
# Download the latest HRConvert2 source code from the official repository.
|
||||
RUN git clone https://github.com/zelon88/HRConvert2
|
||||
|
||||
# Add non-free repos to software sources. Required for rar support.
|
||||
# There are two options for accomplishing this.
|
||||
# Uncomment the option that suits your needs, and comment out the other.
|
||||
# The first option replaces the debian.sources file.
|
||||
# The second option modifies the existing debian.sources file in-place.
|
||||
RUN cp HRConvert2/Documentation/Build/debian.sources /etc/apt/sources.list.d/debian.sources
|
||||
#RUN sed -i -e's/ main/ main contrib non-free/g' /etc/apt/sources.list.d/debian.sources
|
||||
|
||||
# Re-process the updated debian.sources file.
|
||||
RUN apt-get update
|
||||
|
||||
# Install dependencies.
|
||||
#RUN apt-get upgrade
|
||||
RUN apt-get install -y zlib1g-dev
|
||||
RUN apt-get install -y libpng-dev
|
||||
RUN apt-get install -y libzip-dev
|
||||
RUN docker-php-ext-install gd zip
|
||||
RUN apt-get install -y libreoffice-common default-jre libreoffice-java-common poppler-utils
|
||||
RUN apt-get install -y clamav unoconv p7zip-full meshlab dia pandoc python3 zip unzip
|
||||
RUN apt-get install -y xpdf mkisofs imagemagick meshlab tesseract-ocr tar
|
||||
## arm64 rar install hack (rar CLI only available for x86/x64 from rar labs)
|
||||
RUN /bin/bash HRConvert2/Documentation/Build/ffmpeg-build2.sh --build --enable-gpl-and-non-free
|
||||
RUN rm -r packages
|
||||
RUN rm -r workspace
|
||||
|
||||
RUN DPKG_ARCH="$(dpkg --print-architecture)"; \
|
||||
if [ "${DPKG_ARCH}" = "amd64" ]; then \
|
||||
apt-get install -y rar; \
|
||||
else \
|
||||
dpkg --add-architecture i386 && \
|
||||
apt-get install qemu-user-static libc6-i386-cross libstdc++6-i386-cross wget -y && \
|
||||
cp /usr/i686-linux-gnu/lib/libm.so.6 /lib && \
|
||||
cp /usr/i686-linux-gnu/lib/libc.so.6 /lib && \
|
||||
cp /usr/i686-linux-gnu/lib/libpthread.so.0 /lib && \
|
||||
cp /usr/i686-linux-gnu/lib/ld-linux.so.2 /lib && \
|
||||
cp /usr/i686-linux-gnu/lib/libstdc++.so.6 /lib && \
|
||||
cp /usr/i686-linux-gnu/lib/libgcc_s.so.1 /lib && \
|
||||
wget https://www.rarlab.com/rar/rarlinux-x32-700b3.tar.gz -O /tmp/rarlinux-x32-700b3.tar.gz && \
|
||||
tar -zxvf /tmp/rarlinux-x32-700b3.tar.gz -C /tmp && \
|
||||
cp HRConvert2/Documentation/Build/rar-arm64 /tmp/rar-arm64 && \
|
||||
chmod +x /tmp/rar-arm64 && ln -s /tmp/rar-arm64 /usr/bin/rar; \
|
||||
fi
|
||||
|
||||
# Copy required files.
|
||||
RUN cp HRConvert2/Documentation/Build/php.ini /usr/local/etc/php.ini
|
||||
RUN cp HRConvert2/Documentation/Build/policy.xml /etc/ImageMagick-6/policy.xml
|
||||
RUN cp HRConvert2/index.html /var/www/html/index.html
|
||||
RUN cp HRConvert2/index.html /var/www/html/HRProprietary/index.html
|
||||
|
||||
# Set permissions for required directories.
|
||||
RUN chmod -R 0755 /DATA && \
|
||||
chown -R www-data:www-data /DATA && \
|
||||
chmod -R 0755 /var/www/html && \
|
||||
chown -R www-data:www-data /var/www/html
|
||||
|
||||
# Expose the ports Apache listens on to the host.
|
||||
# Set these to whatever ports suits your needs.
|
||||
EXPOSE 80
|
||||
EXPOSE 443
|
||||
|
||||
# Start Apache & Unoconv when the container runs.
|
||||
CMD ["sh", "-c", "apache2-foreground && python3 /usr/bin/unoconv -l"]
|
|
@ -1,13 +0,0 @@
|
|||
Types: deb
|
||||
# http://snapshot.debian.org/archive/debian/20240211T000000Z
|
||||
URIs: http://deb.debian.org/debian
|
||||
Suites: bookworm bookworm-updates
|
||||
Components: main non-free
|
||||
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
|
||||
|
||||
Types: deb
|
||||
# http://snapshot.debian.org/archive/debian-security/20240211T000000Z
|
||||
URIs: http://deb.debian.org/debian-security
|
||||
Suites: bookworm-security
|
||||
Components: main
|
||||
Signed-By: /usr/share/keyrings/debian-archive-keyring.gpg
|
|
@ -1,40 +0,0 @@
|
|||
#!/bin/bash
|
||||
# Helper script to download and run the build-ffmpeg script.
|
||||
|
||||
make_dir () {
|
||||
if [ ! -d $1 ]; then
|
||||
if ! mkdir $1; then
|
||||
printf "\n Failed to create dir %s" "$1";
|
||||
exit 1
|
||||
fi
|
||||
fi
|
||||
}
|
||||
|
||||
command_exists() {
|
||||
if ! [[ -x $(command -v "$1") ]]; then
|
||||
return 1
|
||||
fi
|
||||
|
||||
return 0
|
||||
}
|
||||
|
||||
TARGET='ffmpeg-build'
|
||||
|
||||
if ! command_exists "curl"; then
|
||||
echo "curl not installed.";
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "ffmpeg-build-script-downloader v0.1"
|
||||
echo "========================================="
|
||||
echo ""
|
||||
|
||||
echo "First we create the ffmpeg build directory $TARGET"
|
||||
make_dir $TARGET
|
||||
cd $TARGET
|
||||
|
||||
echo "Now we download and execute the build script"
|
||||
echo ""
|
||||
|
||||
bash ../ffmpeg-build2.sh --build --enable-gpl-and-non-free
|
||||
|
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
@ -1,99 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!DOCTYPE policymap [
|
||||
<!ELEMENT policymap (policy)*>
|
||||
<!ATTLIST policymap xmlns CDATA #FIXED ''>
|
||||
<!ELEMENT policy EMPTY>
|
||||
<!ATTLIST policy xmlns CDATA #FIXED '' domain NMTOKEN #REQUIRED
|
||||
name NMTOKEN #IMPLIED pattern CDATA #IMPLIED rights NMTOKEN #IMPLIED
|
||||
stealth NMTOKEN #IMPLIED value CDATA #IMPLIED>
|
||||
]>
|
||||
<!--
|
||||
Configure ImageMagick policies.
|
||||
|
||||
Domains include system, delegate, coder, filter, path, or resource.
|
||||
|
||||
Rights include none, read, write, execute and all. Use | to combine them,
|
||||
for example: "read | write" to permit read from, or write to, a path.
|
||||
|
||||
Use a glob expression as a pattern.
|
||||
|
||||
Suppose we do not want users to process MPEG video images:
|
||||
|
||||
<policy domain="delegate" rights="none" pattern="mpeg:decode" />
|
||||
|
||||
Here we do not want users reading images from HTTP:
|
||||
|
||||
<policy domain="coder" rights="none" pattern="HTTP" />
|
||||
|
||||
The /repository file system is restricted to read only. We use a glob
|
||||
expression to match all paths that start with /repository:
|
||||
|
||||
<policy domain="path" rights="read" pattern="/repository/*" />
|
||||
|
||||
Lets prevent users from executing any image filters:
|
||||
|
||||
<policy domain="filter" rights="none" pattern="*" />
|
||||
|
||||
Any large image is cached to disk rather than memory:
|
||||
|
||||
<policy domain="resource" name="area" value="1GP"/>
|
||||
|
||||
Use the default system font unless overwridden by the application:
|
||||
|
||||
<policy domain="system" name="font" value="/usr/share/fonts/favorite.ttf"/>
|
||||
|
||||
Define arguments for the memory, map, area, width, height and disk resources
|
||||
with SI prefixes (.e.g 100MB). In addition, resource policies are maximums
|
||||
for each instance of ImageMagick (e.g. policy memory limit 1GB, -limit 2GB
|
||||
exceeds policy maximum so memory limit is 1GB).
|
||||
|
||||
Rules are processed in order. Here we want to restrict ImageMagick to only
|
||||
read or write a small subset of proven web-safe image types:
|
||||
|
||||
<policy domain="delegate" rights="none" pattern="*" />
|
||||
<policy domain="filter" rights="none" pattern="*" />
|
||||
<policy domain="coder" rights="none" pattern="*" />
|
||||
<policy domain="coder" rights="read|write" pattern="{GIF,JPEG,PNG,WEBP}" />
|
||||
-->
|
||||
<policymap>
|
||||
<!-- <policy domain="resource" name="temporary-path" value="/tmp"/> -->
|
||||
<policy domain="resource" name="memory" value="256MiB"/>
|
||||
<policy domain="resource" name="map" value="512MiB"/>
|
||||
<policy domain="resource" name="width" value="16KP"/>
|
||||
<policy domain="resource" name="height" value="16KP"/>
|
||||
<!-- <policy domain="resource" name="list-length" value="128"/> -->
|
||||
<policy domain="resource" name="area" value="128MP"/>
|
||||
<policy domain="resource" name="disk" value="1GiB"/>
|
||||
<!-- <policy domain="resource" name="file" value="768"/> -->
|
||||
<!-- <policy domain="resource" name="thread" value="4"/> -->
|
||||
<!-- <policy domain="resource" name="throttle" value="0"/> -->
|
||||
<!-- <policy domain="resource" name="time" value="3600"/> -->
|
||||
<!-- <policy domain="coder" rights="none" pattern="MVG" /> -->
|
||||
<!-- <policy domain="module" rights="none" pattern="{PS,PDF,XPS}" /> -->
|
||||
<!-- <policy domain="path" rights="none" pattern="@*" /> -->
|
||||
<!-- <policy domain="cache" name="memory-map" value="anonymous"/> -->
|
||||
<!-- <policy domain="cache" name="synchronize" value="True"/> -->
|
||||
<!-- <policy domain="cache" name="shared-secret" value="passphrase" stealth="true"/>
|
||||
<!-- <policy domain="system" name="max-memory-request" value="256MiB"/> -->
|
||||
<!-- <policy domain="system" name="shred" value="2"/> -->
|
||||
<!-- <policy domain="system" name="precision" value="6"/> -->
|
||||
<!-- <policy domain="system" name="font" value="/path/to/font.ttf"/> -->
|
||||
<!-- <policy domain="system" name="pixel-cache-memory" value="anonymous"/> -->
|
||||
<!-- <policy domain="system" name="shred" value="2"/> -->
|
||||
<!-- <policy domain="system" name="precision" value="6"/> -->
|
||||
<!-- not needed due to the need to use explicitly by mvg: -->
|
||||
<!-- <policy domain="delegate" rights="none" pattern="MVG" /> -->
|
||||
<!-- use curl -->
|
||||
<policy domain="delegate" rights="none" pattern="URL" />
|
||||
<policy domain="delegate" rights="none" pattern="HTTPS" />
|
||||
<policy domain="delegate" rights="none" pattern="HTTP" />
|
||||
<!-- in order to avoid to get image with password text -->
|
||||
<policy domain="path" rights="none" pattern="@*"/>
|
||||
<!-- disable ghostscript format types -->
|
||||
<policy domain="coder" rights="none" pattern="PS" />
|
||||
<policy domain="coder" rights="none" pattern="PS2" />
|
||||
<policy domain="coder" rights="none" pattern="PS3" />
|
||||
<policy domain="coder" rights="none" pattern="EPS" />
|
||||
<policy domain="coder" rights="read|write" pattern="PDF" />
|
||||
<policy domain="coder" rights="none" pattern="XPS" />
|
||||
</policymap>
|
|
@ -1,3 +0,0 @@
|
|||
#!/usr/bin/env bash
|
||||
|
||||
qemu-i386-static /tmp/rar/rar $*
|
|
@ -1,14 +0,0 @@
|
|||
[Unit]
|
||||
Description=/etc/rc.local Compatibility
|
||||
ConditionPathExists=/etc/rc.local
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
ExecStart=/etc/rc.local start
|
||||
TimeoutSec=0
|
||||
StandardOutput=tty
|
||||
RemainAfterExit=yes
|
||||
SysVStartPriority=99
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -1,6 +1,6 @@
|
|||
-----------------------------------------------------------------------------------
|
||||
COPYRIGHT INFORMATION ...
|
||||
HRConvert2, Copyright on 6/9/2024 by Justin Grimes, www.github.com/zelon88
|
||||
APPLICATION INFORMATION ...
|
||||
HRConvert2, Copyright on 1/3/2023 by Justin Grimes, www.github.com/zelon88
|
||||
|
||||
LICENSE INFORMATION ...
|
||||
This project is protected by the GNU GPLv3 Open-Source license.
|
||||
|
@ -10,8 +10,7 @@ APPLICATION INFORMATION ...
|
|||
This application is designed to provide a web-interface for converting file formats
|
||||
on a server for users of any web browser without authentication.
|
||||
|
||||
FILE INFORMATION ...
|
||||
v3.3.7.
|
||||
FILE INFORMATION
|
||||
This file contains a list of itemized changes made in each iteration of the application.
|
||||
|
||||
HARDWARE REQUIREMENTS ...
|
||||
|
@ -20,827 +19,12 @@ This application will run on just about any x86 or x64 computer.
|
|||
|
||||
DEPENDENCY REQUIREMENTS ...
|
||||
This application requires Debian Linux (w/3rd Party audio license),
|
||||
Apache 2.4, PHP 8+, LibreOffice, Unoconv, ClamAV, Tesseract, Rar, Unrar, Unzip,
|
||||
7zipper, FFMPEG, PdfToText, Dia, PopplerUtils, MeshLab, Mkisofs & ImageMagick.
|
||||
Apache 2.4, PHP 7+, LibreOffice, Unoconv, ClamAV, Tesseract, Rar, Unrar, Unzip,
|
||||
7zipper, FFMPEG, PdfToText, Dia, PopplerUtils, MeshLab & ImageMagick.
|
||||
|
||||
<3 Open-Source
|
||||
-----------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
--------------------
|
||||
COMMIT 5/22/2024
|
||||
v3.3.7 - Add support for 357 formats. Update build process.
|
||||
|
||||
-v3.3.7.
|
||||
-Clean up config.php comments.
|
||||
-Delete "SUPPORTED_FORMAT_INFORMATION.txt" development work file.
|
||||
-Finish updating and adding support to the list of supported formats using the latest ffmpeg build process.
|
||||
-Added support for ~357 file formats. The total of supported formats is now up to 445. (!!!)
|
||||
-Update INSTALLATION_INSTRUCTIONS.txt to reflect the ffmpeg build-from-source procedure.
|
||||
-Create DOCKER_BUILD_INSTRUCTIONS.txt for me to remember how to build docker images.
|
||||
-I typically develop this stuff on VMware with installed locally dependencies.
|
||||
-Update Dockerfile with the latest ImageMagick and FFMPEG build process.
|
||||
-Fix Docker build process, update Docker Hub.
|
||||
|
||||
--------------------
|
||||
COMMIT 5/22/2024
|
||||
v3.3.6 - Add pdf to image support, cbr, cbz support to archive support.
|
||||
|
||||
-v3.3.6.
|
||||
-Special thanks to:
|
||||
Ask Ubuntu User: Lucas Walter
|
||||
https://askubuntu.com/questions/1127260/imagemagick-convert-not-allowed
|
||||
https://askubuntu.com/users/27302/lucas-walter
|
||||
|
||||
# Open the file
|
||||
sudo nano /etc/ImageMagick-6/policy.xml
|
||||
|
||||
# find and edit the line
|
||||
<policy domain="coder" rights="none" pattern="PDF" />
|
||||
# to :
|
||||
<policy domain="coder" rights="read|write" pattern="PDF" />
|
||||
|
||||
-The above code will allow pre-installed versions to convert pdf files as images in addition to documents and OCR.
|
||||
-Added CBR and CBZ support.
|
||||
-They are just zip files full of jpeg images.
|
||||
-We treat them as .zip files, but we use 7z to extract them because zip doesn't work for some reason.
|
||||
-After they are converted to a proper archive we can convert them further.
|
||||
-It could be possible to improve quality of the jpegs by creating a dedicated convertComics() function with direct output formats.
|
||||
-Can we get the comic community to show the project some love to get this done? ;)
|
||||
-Update the installation instructioins to allow PDF conversions as images.
|
||||
|
||||
|
||||
--------------------
|
||||
COMMIT 3/24/2024
|
||||
v3.3.5 - Rar on RPI fix, FFMPEG build process changes.
|
||||
|
||||
-v3.3.5.
|
||||
-Continue ScanCore refactor.
|
||||
-v1.1.
|
||||
-Added support for -ud argument, which will Update Definitions!
|
||||
-This gets defs by default from the ScanCore_Definitions repository.
|
||||
-Defs are now broken into subscriptions.
|
||||
-Subscriptions include Virus, Malare, & PUP.
|
||||
-Each client will download only the subscriptions that are specified in config.php.
|
||||
-The client will then compile its subscribed definitions into a "combined" definitions file locally.
|
||||
-This will give users the ability to control which definitions they install, controlling what ScanCore will detect.
|
||||
-Because ScanCore is portable, that means you can set different scanners to do different things.
|
||||
-Need to work on a way to automate definition updates. Every scan, daily, weekly, bi-weekly, or monthly.
|
||||
-v1.2.
|
||||
-Add 'raw' and 'git' update methods. So if you can't get git (hehe) then you can still perform updates.
|
||||
-Use globals $EOL, $SEP for PHP_EOL and DIRECTORY_SEPARATOR, as intended.
|
||||
-Add -version argument for displaying useful info.
|
||||
-Info like the source for def & app updates, the original repo, subscribed defs, version, last update, ect...
|
||||
-Added a plug to the LICENSE INFORMATION section of the header text.
|
||||
-// / BSD or MIT licensing is available. Reach out to @zelon88 for more information.
|
||||
-Support your favorite developer by buying a trophy license for your favorite open-source software.
|
||||
-Imrove comments / formatting in ScanCore_Config.php. Add default values, labels, better descriptions for everything.
|
||||
-Add -help, -h and -version, -ver arguments for showing version & help, respectively.
|
||||
-Add -configfile, -cf argument for selecting which configuration file to use.
|
||||
-Now one scanner can rule them all!
|
||||
-Instead of installing multiple scanners to scan different subscriptions, just have different config files.
|
||||
-Revise output. Make more consistent, easier to read.
|
||||
-Remove unused $LogFile and $LogDir references from core.
|
||||
-Remove unused $LogFile and $LogDir references from config.
|
||||
-ReportsDir is now the only location for logs. Logs & reports are officially the same thing.
|
||||
-The -logfile & -lf arguments are now undocumented aliases of the -reportfile and -rf arguments.
|
||||
-I plan on removing -logfile & -lf arguments in the future.
|
||||
-What will probably happen is I'll forget I said that and wind up re-documenting these undocumented aliases in the future.
|
||||
-v1.3 - Add -defsfile, -df argument. Reorder logic & functions. Clean up output. Improve help, version output.
|
||||
-Add -defsfile & -df argument for specifying a definition file by command line.
|
||||
-Now ScanCore is completely modular. It can be run against any defs file and any config file, so automating tasks is easy & granular.
|
||||
-Add config file last modified, which core file, and which defs file to version output.
|
||||
-Add new commands to help output.
|
||||
-Will update the docs with proper error descriptions and instructions once the error numbers stop chaning.
|
||||
-Thanks to @bit-man for submitting a fix for rar file support on RPI & non x86-64 platforms.
|
||||
-Evaluate how we're using ffmpeg, per issue #59, but also effects issue #29.
|
||||
-Remove M4P support.
|
||||
-Omg there's even a typo... file format oog should be ogg.
|
||||
-Change ffmpeg build process to build from scratch.
|
||||
-Inprove capability & file support. Considerably.
|
||||
-Increase duration and difficulty of install process. Considerably.
|
||||
-Start by reverse engineering https://raw.githubusercontent.com/markus-perl/ffmpeg-build-script/master/web-install-gpl-and-non-free.sh.
|
||||
-Build process complete as of 3/25/2024.
|
||||
-Now we need to incorporate the new ffmpeg functionality into core.
|
||||
-Then we can update the build / install process & documentation.
|
||||
-Add the selected GUI, Language, and Color to error or verbose success messages to enhance debugging potential.
|
||||
-Update ERROR_DESCRIPTIONS.txt with the new information.
|
||||
-This version is just the start of an overhaul to media file processing.
|
||||
-Add some temporary files to DOCS for helping me track my ffmpeg overhaul progress.
|
||||
|
||||
--------------------
|
||||
COMMIT 3/22/2024
|
||||
v3.3.4 - ScanCore refactor. Update code structure, improve config.php, rename variables.
|
||||
|
||||
-v3.3.4.
|
||||
-Added missing loop in sanitizeStrings() function.
|
||||
-Refactoring ScanCore to bring it up to the same level of code quality as the rest of the project.
|
||||
-ScanCore to v1.0, Do away with defs versioning.
|
||||
-Definitions can be versioned by date.
|
||||
-Remove false positive for jquery 3.6 minified from defs.
|
||||
-Pretty sure this is the 20th anniversary for the original PHP-AV codebase, which there is very litte left.
|
||||
-Improve config.php by adding more variables to it.
|
||||
-MemoryLimit, ChunkSize, Debug, Verbose.
|
||||
-Make the file headers more consistent.
|
||||
-Once the quality is up to par we will focus on adding features and capability.
|
||||
-Specifically an auto-updater would be nice.
|
||||
-Then maybe some automation tools for scraping IOCs and formatting them into the definitions file.
|
||||
-Recursion is now disabled by default.
|
||||
-This affects behaviour of scripts that use ScanCore because now you HAVE to specify if you want recursion or scans will fail.
|
||||
|
||||
--------------------
|
||||
COMMIT 3/12/2024
|
||||
v3.3.3 - Misc cleanup. Update developer docs w/API information.
|
||||
|
||||
-v3.3.3.
|
||||
-Create official Docker image.
|
||||
-https://hub.docker.com/repository/docker/zelon88/hrconvert2
|
||||
-Delete UI/Default/Resources/CSS/basic.css.
|
||||
-Delete UI/Wide/Resources/CSS/basic.css.
|
||||
-Update Documentation/CREATING_GUIS.txt to better communicate the API, including POST and GET requests.
|
||||
-Replace "APPLICATION INFORMATION" with "COPYRIGHT INFORMATION" in the header of each code file.
|
||||
-Move Dockerfile to Documentation/Build.
|
||||
-Adjust core logic that cleans up the Dockerfile with the new location.
|
||||
-Add header text to the Dockerfile consistent with the project.
|
||||
-Update Dockerfile to copy the index.html file to HRProprietary and HRConvert2 installation folders.
|
||||
-Add logic to the core to provide the option of using alternative software for handling rar files in the future.
|
||||
-The core will check for config.php to see what $RARArchiveMethod is set to, and then check for the existence of /usr/bin/rar
|
||||
-This is mostly for development so I can easily test alternatives to the rar software that we're stuck with.
|
||||
-Update dependencies in installation instructions.
|
||||
-Add lots of missing dependencies.
|
||||
-Call out mkisofs and tar explicitly because who knows what kind of docker images people are starting with out there.
|
||||
-Add requirement for p7zip-rar.
|
||||
-Thanks to @bit-man for help on Issue #60.
|
||||
-bit-man single handedly solved the rar problem by figuring out how to get non-free repositories into the docker image.
|
||||
-Added a config.php entry for controlling how many times the core will retry significant file operations.
|
||||
|
||||
--------------------
|
||||
COMMIT 3/8/2024
|
||||
v3.3.2 - Add green check, red X where loading spinner goes after a file operation is complete.
|
||||
|
||||
-v3.3.2.
|
||||
-Fix bug where the loading spinner would never disappear for archive operations.
|
||||
-Update docker URL in installation instructions.
|
||||
-Add victory and failure icons where the loading spinner goes for 5 seconds after a file operation.
|
||||
-Add Wide GUI.
|
||||
-Fix bug with GUI selection where the GET input was case sensitive, but the core was forcing it to be interpreted as lower case.
|
||||
-Fix bug with GUI selection variables not being scoped properly.
|
||||
-Make colors user selectable.
|
||||
-Add missing div tag to convergGui2.html.
|
||||
-I can't find any HTML erros in console anywhere. Yipee!!!
|
||||
-Utilize POST and GET for language, GUI, and color inputs.
|
||||
-Utilize the standardized sanitization procedure for these inputs.
|
||||
-It was somewhat ad-hoc before, even though the global sanitized variables were already pre-prepared.
|
||||
|
||||
--------------------
|
||||
COMMIT 3/7/2024
|
||||
v3.3.1 - Reorganize folders, create docker file, consolidate UI.
|
||||
|
||||
-v3.3.1.
|
||||
-Move a bunch of files.
|
||||
-Move versionInfo.php and config.php into the Resources folder.
|
||||
-Create build folder.
|
||||
-Move rc.local, rc.local.service, and a php.ini sample file in there that will be used for Docker installs.
|
||||
-Move all resources into the UI\Default folder.
|
||||
-Relieve the core of the logic of defining CSS, JS, and images for the UI pack. That's not very modular.
|
||||
-Now the UI pack defines these in header.php.
|
||||
-Resources folder is not a required part of a UI pack. So the core won't check for it,
|
||||
-Although the core does define a relative path where the Resources folder, and JS, CSS, Images subfolders should go as a convinience.
|
||||
-It is not required by the core to have these folders, or to organize your theme into them.
|
||||
-Remove LICENSE file from the root of the repository, as this is also in the Documentation folder.
|
||||
-Add a return value to cleanFiles() because I need one for the changes to verifyInstallation().
|
||||
-Use the return value to make the variables $CleanedConvertLoc and $CleanedTempLoc meaningful by passing the return value to them.
|
||||
-verifyInstallation() now checks config.php for $DeleteBuildEnvironment, and if true will delete the /Build folder.
|
||||
-This is enabled by default to prevent attackers from using this to enumerate configuration information about the server or application.
|
||||
-Improve documentation, formatting of styleCore.php for consistency/readability.
|
||||
-Continue the long, ardous task of converting all the double quotes in convertGui2.php to single quotes.
|
||||
-This will take a while, but I have done enough to be able to find/replace what I need.
|
||||
-Remove Error 2-1 from ERROR_DESCRIPTIONS.txt because it is no longer generated by the application.
|
||||
-Move supported formats to config.php so server administrators can control their own fate, if they dare.
|
||||
-Default values are also listed in config.php if needed.
|
||||
-Add support to remove the build environment & "development docs" that give away version info like readme.md & changelog.txt.
|
||||
-Changed default color scheme from grey to blue because grey is especially gross looking to me right now.
|
||||
-Fix bug where font defined in config.php was not propagating to styleCore.php.
|
||||
-Fix bug with user virus scans when using ClamAV to scan an individual file for viruses.
|
||||
-The scan would complete, but it would utilize both ScanCore and ClamAV when all the user asked for was ClamAV.
|
||||
-Move default installation location to /DATA/HRConvert2 to make it consistent for Docker implementation.
|
||||
-Start working on official Docker version.
|
||||
-Minor update to installation instructions, consistency, consolidate steps.
|
||||
-Added icon files to the Resources directory to be used in a future update.
|
||||
|
||||
--------------------
|
||||
COMMIT 3/5/2024
|
||||
v3.3 - Update Readme, fix cleanup bug, flip button CSS.
|
||||
|
||||
-v3.3.
|
||||
-Update README.md.
|
||||
-Remove mention of Docker repo, as it is not maintained.
|
||||
-I appreciate all of the community feedback at https://github.com/zelon88/HRConvert2/issues/46.
|
||||
-I will come up with an official Docker solution.
|
||||
-Fix bug in cleanFiles() function that was causing problems with archive conversions & preventing cleanup.
|
||||
-Flip button CSS, so buttons don't appear quite so... upside-down... all the time.
|
||||
-Remove un-needed (redundant) button related CSS from HRConvert2.css.
|
||||
-Increase default DeleteThreshold in config.php from 30 to 60 minutes.
|
||||
-Remove un-needed extension being passed to the convertDrawings() function.
|
||||
-Fix drawings not returning a valid filename.
|
||||
-Conversions would complete, but not download.
|
||||
-Tested ImageMagick support for SVG, could not get it to work.
|
||||
-Tested Dia support for converting things into PNG, BMP, and JPG. Got PNG to work, so added support.
|
||||
|
||||
--------------------
|
||||
COMMIT 10/30/2023
|
||||
v3.2.9 - Improve docs, improve quality, update KO language pack.
|
||||
|
||||
-v3.2.9.
|
||||
-Happy Halloween!
|
||||
-I started this commit a couple months ago and just got around to finishing it.
|
||||
-The next commit will hopefully be a small quality commit / release v3.3.
|
||||
-Fix missed translation in Arabic language pack (languageStrings.php) for Default GUI.
|
||||
-'Archive Formats'
|
||||
-Fix spelling, consistency errors in comments of config.php.
|
||||
-No logical changes, just comments.
|
||||
-'fules' instead of 'files'.
|
||||
-Standardize some comments around the verbiage 'Provide users with the option to'.
|
||||
-Fix bug in verifyDocumentConversionEngine() function.
|
||||
-This bug would have prevented the verifyDocumentConversionEngine() function from starting anything.
|
||||
-This would cause document conversion errors in cases where the rc.local steps of the installation instructions were not implemented.
|
||||
-Update it, ko, pt, ru, uk, zh language packs.
|
||||
-Fix bug with displaying number of files that were uploaded.
|
||||
-Move logic that calculates this to before the languageStrings.php call.
|
||||
-Fix bug in convertGui2.php where the download button would produce a 404 unless the share link had been generated already.
|
||||
-Missing ajax request type: post.
|
||||
|
||||
--------------------
|
||||
COMMIT 5/3/2023
|
||||
v3.2.8 - Continue implementing separation of UI from language packs.
|
||||
|
||||
-v3.2.8.
|
||||
-A UI now contains the language packs for the UI.
|
||||
-A UI now contains it's own styleCore.php file containing stylesheets for each color.
|
||||
-The UI is now completely modular!
|
||||
-Multiple UIs can now be installed simultaniously and selected by the user via GET request.
|
||||
-Adding supported GUIs is the same process as adding supported language packs.
|
||||
-Add "CREATING_GUIS.txt" file to 'Documentation' folder.
|
||||
-update "CREATING_LANGUAGE_PACKS.txt" to reflect the new locations & GUI / language pack format.
|
||||
-Add languageStrings.php to Italian language pack.
|
||||
-Language packs complete:
|
||||
-Note that h,1,2,f are not needed anymore because they are all the same, stored in \UI folder.
|
||||
-Ar l
|
||||
-Bn l
|
||||
-De l
|
||||
-En l
|
||||
-Es l
|
||||
-Fr l
|
||||
-Hi l
|
||||
-It l
|
||||
-Ko
|
||||
-Pt
|
||||
-Ru
|
||||
-Uk
|
||||
-Zh
|
||||
|
||||
--------------------
|
||||
COMMIT 4/26/2023
|
||||
v3.2.7 - Implement separation of UI from language packs.
|
||||
|
||||
-v3.2.7.
|
||||
-Clean up error procedures and error descriptions in delete function.
|
||||
-Cleaned up spacing, documentation inconsistencies, incomplete error messages.
|
||||
-Updated CREATING_LANGUAGE_PACKS.txt to be more informational.
|
||||
-Add verifyGui() function.
|
||||
-Mostly copy verifyLanguage() function.
|
||||
-Add ERROR 25, "Could not verify GUI!".
|
||||
-Add ERROR 25 to ERROR_DESCRIPTIONS.txt.
|
||||
-Move UI files to UI folder in root of installation location.
|
||||
-Now the loading spinner, colors, language, and UI theme will be adjustable.
|
||||
-Language and UI theme will be user selectable.
|
||||
-Need to add config entries, other supporting logic.
|
||||
-Need to update language pack docs.
|
||||
-Need to update api information.
|
||||
-Need to update config.php
|
||||
-Add languageStrings.php to Hindi language pack.
|
||||
-Language packs complete:
|
||||
-Ar l,h,1,2,f
|
||||
-Bn l,h,1,2,f
|
||||
-De l,h,1,2,f
|
||||
-En l,h,1,2,f
|
||||
-Es l,h,1,2,f
|
||||
-Fr l,h,1,2,f
|
||||
-Hi l,h,1,2,f
|
||||
-It
|
||||
-Ko
|
||||
-Pt
|
||||
-Ru
|
||||
-Uk
|
||||
-Zh
|
||||
|
||||
--------------------
|
||||
COMMIT 4/18/2023
|
||||
v3.2.6 - Add Spanish, French languageString.php file.
|
||||
|
||||
-v3.2.6.
|
||||
-Remove duplicate global variables from buildGui() function in convertCore.php.
|
||||
-Create UI folder in root HRConvert2 directory.
|
||||
-Move UI pages to UI folder.
|
||||
-Update languageStrings.php files to have $CoreError variable.
|
||||
-ar
|
||||
-bn
|
||||
-de
|
||||
-en
|
||||
-es
|
||||
-fr
|
||||
|
||||
--------------------
|
||||
COMMIT 4/17/2023
|
||||
v3.2.5 - Add Spanish, French languageString.php file.
|
||||
|
||||
-v3.2.5.
|
||||
-CONCEPT EXPLORATION: I Want to make UI's all exactly the same.
|
||||
-The quest for modularity / scalability / maintainability continues!
|
||||
-Making the UI and language packs separate, we enable the development of UIs to be language-agnostic.
|
||||
-Add an errorStrings.php to each language pack.
|
||||
-Define log language + error language in config, use errorStrings to translate core errors also.
|
||||
-Add error translations to the ERROR_DESCRIPTIONS.txt file in a
|
||||
-If we develop a a UI, it will apply to every language pack.
|
||||
-If we develop a language pack, it will apply to every UI.
|
||||
-UI developers can add/require their own supplemental languageStrings files, or bake this text into the UI.
|
||||
-UI developers can chose to completely ignore the stock languageStrings file if they want.
|
||||
-Create new root folder called UI.
|
||||
-Move h,1,2,f files into UI folder.
|
||||
-Create a subfolder for existing UI called Default.
|
||||
-Move styleCore and stylesheets.css into UI/Default folder.
|
||||
-Future ideas for UIs include "dark" "light" and various holiday themes.
|
||||
-Maybe an automatic holiday selection mechanism based on timezone?
|
||||
-Move errors from h,1,2,f to languageStrings.php.
|
||||
-Make core check for existence of h,1,2,f files in the language pack folder.
|
||||
-If style is specified & user style selection is allowed, use specified style.
|
||||
-If h,1,2,f files exist and no style specified, use UI/Default.
|
||||
-If h,1,2,f files don't exist and no style specified, use UI/Default.
|
||||
-Tweak German language pack.
|
||||
-Remove extra whitespace in UI1 buttons to save room.
|
||||
-Add languageStrings.php to Spanish, French language packs.
|
||||
-Language packs complete:
|
||||
-Ar l,h,1,2,f
|
||||
-Bn l,h,1,2,f
|
||||
-De l,h,1,2,f
|
||||
-En l,h,1,2,f
|
||||
-Es l,h,1,2,f
|
||||
-Fr l,h,1,2,f
|
||||
-Hi
|
||||
-It
|
||||
-Ko
|
||||
-Pt
|
||||
-Ru
|
||||
-Uk
|
||||
-Zh
|
||||
|
||||
--------------------
|
||||
COMMIT 4/14/2023
|
||||
v3.2.4 - Misc cleanup.
|
||||
|
||||
-v3.2.4.
|
||||
-Merge security related checks in file operations inside the error check code.
|
||||
-Try to make them all consistent. Move some log code to after the sanitization process in upload/download/delete.
|
||||
-The log message 'Could not verify tokens!' will now only appear in logs if $Verbose is set in config.php.
|
||||
-Fix missing translations in subtitles, subtitles labeled as models.
|
||||
-Was leftover copy-pasta.
|
||||
-Add jpe to supported formats.
|
||||
-I really want to rework PDFs soon.
|
||||
-Want to add the ability to convert between any supported format using existing functions.
|
||||
|
||||
--------------------
|
||||
COMMIT 4/13/2023
|
||||
v3.2.3 - Continue working on languageStrings concept, enable subtitle conversions.
|
||||
|
||||
-v3.2.3.
|
||||
-Implemented subtitle conversions for Arabic, Bengali, German, & English language packs.
|
||||
-Work on German language pack.
|
||||
-Copy English as a template.
|
||||
-Language packs complete:
|
||||
-Ar l,h,1,2,f
|
||||
-Bn l,h,1,2,f
|
||||
-De l,h,1,2,f
|
||||
-En l,h,1,2,f
|
||||
-Es
|
||||
-Fr
|
||||
-Hi
|
||||
-It
|
||||
-Ko
|
||||
-Pt
|
||||
-Ru
|
||||
-Uk
|
||||
-Zh
|
||||
|
||||
--------------------
|
||||
COMMIT 4/5/2023
|
||||
v3.2.2 - Continue working on languageStrings concept.
|
||||
|
||||
-v3.2.2.
|
||||
-Language packs complete:
|
||||
-Ar l,h,1,2,f
|
||||
-Bn l,h,1,2,f
|
||||
-De
|
||||
-En l,h,1,2,f
|
||||
-Es
|
||||
-Fr
|
||||
-Hi
|
||||
-It
|
||||
-Ko
|
||||
-Pt
|
||||
-Ru
|
||||
-Uk
|
||||
-Zh
|
||||
|
||||
--------------------
|
||||
COMMIT 4/4/2023
|
||||
v3.2.1 - Continue working on languageStrings concept.
|
||||
|
||||
-v3.2.1.
|
||||
-Work on Arabic language pack.
|
||||
-Add $GUIAlignment variable to control the float of UI elements.
|
||||
-This is needed to make lists presentable in right-to-left languages.
|
||||
-Add dynamic supported format counting instead of hard-coding the number of formats for each UI.
|
||||
-Previously we would count and adjust the number of unique conversions that are supported, then hard code this value into each UI.
|
||||
-Now the core counts the number of supported formats and uses this value when building the UI.
|
||||
-This is more maintainable, and more accurate.
|
||||
-Now each converter will reflect the number of formats that are actually supproted.
|
||||
-So if an administrator disables all conversions except for model conversions, there will be a very small number of supported conversions reflected in the UI.
|
||||
|
||||
--------------------
|
||||
COMMIT 3/28/2023
|
||||
v3.2 - Continue working on languageStrings concept.
|
||||
|
||||
-v3.2.
|
||||
-Implement dynamic supported format list in UI1 (english language pack only).
|
||||
-The UI will now only display supported formats that are backed by logic.
|
||||
-The lists of supported formats contained within the UI no longer need to be updated.
|
||||
-The lists of supported formats are now entirely derived by logic.
|
||||
-Still need to add OCR related formats when that refactor takes place.
|
||||
-Need to keep going on UI2.
|
||||
-Added version verification to convertCore.php.
|
||||
-The logic is split between verifyInstallation() and verifyGlobals().
|
||||
-verifyInstallation() verifies versionInfo.php and loads it.
|
||||
-verifyGlobals() performs the actual version check.
|
||||
-Modified ERROR_DESCRIPTIONS.txt to match these changes.
|
||||
-Added ERROR 24000 when unable to load the versionInfo.php file.
|
||||
-Updated ERROR 11.
|
||||
-Added information about the new version check.
|
||||
-Continue changing double quotes in HTML to single quotes.
|
||||
-Header is done.
|
||||
-UI1 is done.
|
||||
-Footer is done.
|
||||
-Move paths for scripts, stylesheets, javascript & favicon to verifyGlobals().
|
||||
-The name of the archive when a user selects to compress all files now reflects $ApplicationName variable.
|
||||
-This was previously hard-coded to "HRConvert2_Files-<DATE>".
|
||||
-Added mysteriously missing bitrate UI features.
|
||||
-Adjust the list of supported formats to be more reliable, predictible, maintainable.
|
||||
-Only set FormatArray variables for the SupportedConversionTypes enabled in config.php.
|
||||
-Now the arrays aren't even populated unless the conversion type is enabled.
|
||||
-Move "The user selected..." text to the beginning of the upload and download functions.
|
||||
-Prevent the upload of unsupported file formats.
|
||||
-Prevent the download of unsupported file formats.
|
||||
-Add ERROR 3004 "Unsupported File Format" to ERROR_DESCRIPTIONS.txt.
|
||||
-Copy ERROR 6001.
|
||||
-Add extra line of detail to error 6001: "The file that causes this error will be skipped."
|
||||
-OCR operations now require that both OCR and Document conversion types are allowed in config.php.
|
||||
-Stream conversion operations now require that both Stream and Audio conversion types are allowed in config.php.
|
||||
-Add a $GUIDirection variable to languageStrings.php that determines the reading order of the UI.
|
||||
-Can either be "ltr" for "left to right" or "rtl" for "right to left".
|
||||
-A default is defined in verifyGlobals() but this is overridden later by languageStrings.php.
|
||||
-This should make migrating old language packs easier.
|
||||
-Add delete functionality to core logic section & UI.
|
||||
-Add ERROR 24, Delete Failed.
|
||||
-Disable loading spinner on error return in UI2.
|
||||
-Before the spinner would remain on error.
|
||||
|
||||
--------------------
|
||||
COMMIT 3/20/2023
|
||||
v3.1.9.9 - Continue working on languageStrings concept.
|
||||
|
||||
-v3.1.9.9.
|
||||
-Standardize logic format across all UI elements.
|
||||
-Header. UI1, UI2, Footer.
|
||||
-They all declare that they are loaded and error when the core is not loaded.
|
||||
-The rest of the error logic is contained within languageStrings.php.
|
||||
-Per language pack, the logic is only contained within the code once. Instead of once for each UI file.
|
||||
-Start moving UI1 text to languageStrings.php.
|
||||
-Adjust the format of languageStrings.php.
|
||||
-Add icon for future delete functionality.
|
||||
-https://www.iconarchive.com/show/koloria-icons-by-graphicrating.1.html
|
||||
-Update subtitle icon.
|
||||
-https://www.iconarchive.com/show/koloria-icons-by-graphicrating.1.html
|
||||
|
||||
--------------------
|
||||
COMMIT 3/9/2023
|
||||
v3.1.9.8 - Clean up core variable assignments. Start working on delete functionality.
|
||||
|
||||
-v3.1.9.8.
|
||||
-Taking a break from languageStrings to work on the core a bit.
|
||||
-Need a change of pace.
|
||||
-Added deleteFiles() function for removing files manually (before they are deleted automatically).
|
||||
-Preparing for the next round of UI feature updates.
|
||||
-Subtitle conversions.
|
||||
-Delete files manually.
|
||||
-Added errors 23000, 23001, 23002.
|
||||
-Reordered errors so they are sequential in the ERROR_DESCRIPTIONS.txt file.
|
||||
-Before they went in logical order as they are written in convertCore.php, which is confusing unless you know the code.
|
||||
|
||||
--------------------
|
||||
COMMIT 3/9/2023
|
||||
v3.1.9.7 - Continue working on languageStrings concept.
|
||||
|
||||
-v3.1.9.7.
|
||||
-Keep working on english GUI2.
|
||||
-Make buildGui() function with comprehensive checks to ensure that things are loaded properly.
|
||||
-This commit will still cause Error 16 because I've only completed one language pack.
|
||||
-Hopefully once this is done to all language packs things will be more maintanable.
|
||||
|
||||
--------------------
|
||||
COMMIT 3/9/2023
|
||||
v3.1.9.6 - Continue working on languageStrings concept.
|
||||
|
||||
-v3.1.9.6.
|
||||
-Development Version.
|
||||
-Language packs other than English will not work.
|
||||
-English language pack is unreliable.
|
||||
-OCR operations need attention.
|
||||
-I screwed up and posted the last batch of commits (v3.1.9.5) to to the wrong branch!
|
||||
-Then got frustrated and deleted the development branch.
|
||||
-Now that I'm not as frustrated I will try again.
|
||||
-Reduce the amount of HTML tags that goes into languageStrings.php.
|
||||
-This is needed because of variable scope.
|
||||
-The file loop in convertGui2.php doesn't update variables contained in languageStrings.php due to where it is called in.
|
||||
-Start converting the UI HTML to single quotes wherever possible.
|
||||
|
||||
--------------------
|
||||
COMMIT 3/7/2023
|
||||
v3.1.9.5 - Continue working on languageStrings concept.
|
||||
|
||||
-v3.1.9.5.
|
||||
-Added an official Development branch to the official repo.
|
||||
-The reason for this is because I'd like to stage updates on the Development branch until they are ready.
|
||||
-Then the master branch will get updated only to stable versions.
|
||||
-This is required because it has been taking me several commits to fully implement several features/fixes/improvements.
|
||||
-I always try to have an error free program at commit time, but still; new users should not be exposed to an incomplete versions.
|
||||
-Shortened verifyGlobals() in convertCore.php by assigning multiple variables of the same value at the same time.
|
||||
-Add alt and title text to english language pack, download button.
|
||||
-Will continue adding the rest.
|
||||
-Updated CREATING_LANGUAGE_PACKS.txt file.
|
||||
-Expanded on --About Language Packs-- section.
|
||||
-Added --Maintaining Language Packs-- section, in case anyone else out there gets super ambitious ;)
|
||||
-Added --Development Tips-- section.
|
||||
-Added info about languageStrings.php file.
|
||||
-Revised the wording for the rest of the files.
|
||||
-Add array check in verifyLanguage() function to $SupportedLanguages array.
|
||||
-Fix bug in verifyLanguage.php caused by misplaced bracket (with matching bad indentation).
|
||||
-Would have caused problems during reverting to default language if $AllowUserSelectableLanguage was set to FALSE.
|
||||
|
||||
--------------------
|
||||
COMMIT 3/6/2023
|
||||
v3.1.9.4 - Work on languageStrings concept - separate language specific UI & logic from base UI elements.
|
||||
|
||||
-v3.1.9.4.
|
||||
-The goal of moving the language specific text and logic from the base UI elements is that it becomes easier to maintain language packs.
|
||||
-Currently every time I release an update that modifies a language pack, I must duplicate that update 14 times and change relevant language related text.
|
||||
-By separating this and itemizing it in variables contained in a new languageStrings.php file, maintaining things and adding features becomes easier.
|
||||
-Also, the base files header, convertGui1, convertGui2, and footer become universal. Meaning that changes to them can be easily duplicated.
|
||||
-We could simply get rid of these from the language packs and simplify a language pack down to just the languageStrings file.
|
||||
-We can explore that later.
|
||||
-Update english language pack, working on formatting new style for all language packs.
|
||||
-Move all language related logic to new languageStrings.php file.
|
||||
-Improve ERROR 16 description in ERROR_DESCRIPTIONS.txt.
|
||||
-Make verifyLanguage function more robust.
|
||||
-Add detection for if the root Language folder exists.
|
||||
-Utilize global variables for required directory detection.
|
||||
-Add global variables to contain language pack file paths.
|
||||
|
||||
--------------------
|
||||
COMMIT 3/2/2023
|
||||
v3.1.9.3 - Continue updating language packs.
|
||||
|
||||
-v3.1.9.3.
|
||||
-Work on it, ko, pt, ru, uk, zh language packs.
|
||||
-Keep numbering language packs to v3.1.9.1.
|
||||
-Finally finished v3.1.9.1 language packs!!!
|
||||
-Remove PDF from imagearray.
|
||||
-Update "CREATING_LANGUAGE_PACKS.txt" to remove duplicate API inputs.
|
||||
|
||||
--------------------
|
||||
COMMIT 2/27/2023
|
||||
v3.1.9.2 - Continue updating language packs.
|
||||
|
||||
-v3.1.9.2.
|
||||
-Work on es, fr, hi language packs.
|
||||
-Keep numbering language packs to v3.1.9.1.
|
||||
-Update language pack update procedure.
|
||||
-Add "languageStrings.php" file to english language pack as a placeholder.
|
||||
-Will eventually migrate all locale specific text strings and direct formatting to this file.
|
||||
-With all strings separated from the UI it will be easier to maintain the UI.
|
||||
-We could keep separate h,1,2,f files or keep a master set and only load the languageStrings file.
|
||||
-If we keep separate people can modify their language easier. Also makes lh/rh reading order easier.
|
||||
-If we use a master set we reduce size and complexity.
|
||||
|
||||
--------------------
|
||||
COMMIT 2/21/2023
|
||||
v3.1.9.1 - Continue updating language packs.
|
||||
|
||||
-v3.1.9.1.
|
||||
-Work on bn, de, en, ar, es, fr language packs.
|
||||
-Update language pack update procedure.
|
||||
-Update File Information section header text missing dots.
|
||||
-Evaluate subtitle conversion options.
|
||||
-https://ffmpeg.org/ffmpeg-all.html#Subtitle-Formats
|
||||
-https://superuser.com/questions/1090989/changing-subtitle-format-with-ffmpeg
|
||||
-WebVTT X X X X
|
||||
-SSA/ASS X X X X
|
||||
-SRT X X X X
|
||||
-DVB X X X X
|
||||
-Add core support for subtitle conversions for testing purposes.
|
||||
-Added & documented ERROR 22000 for subtitle conversion errors.
|
||||
-Need to update the UI when this is ready.
|
||||
-Inspired by Issue # 32 (https://github.com/zelon88/HRConvert2/issues/32).
|
||||
|
||||
--------------------
|
||||
COMMIT 2/21/2023
|
||||
v3.1.9 - Finish updating language packs.
|
||||
|
||||
-v3.1.9.
|
||||
-Adjust v3.1.8 update procedure.
|
||||
-Finish English language pack.
|
||||
-Finish Arabic language pack.
|
||||
-Work on bn, de, es, fr, hr, it, ko, pt, ru, uk, zh language packs.
|
||||
-LANGUAGE PACKS COMPLETE
|
||||
-ar h,1,2,f
|
||||
-en h,1,2,f
|
||||
-bn h,1,2,f
|
||||
-de h,1,2,f
|
||||
-es h,1,2,f
|
||||
-fr h,1,2,f
|
||||
-hi h,1,2,f
|
||||
-it h,1,2,f
|
||||
-ko h,1,2,f
|
||||
-pt h,1,2,f
|
||||
-ru h,,,f
|
||||
-uk h,,,f
|
||||
-zh h,,,f
|
||||
|
||||
--------------------
|
||||
COMMIT 1/31/2023
|
||||
v3.1.8 - Add supported conversion type array to config, fix csv support, make static UI elements dynamic.
|
||||
|
||||
-v3.1.8.
|
||||
-Remove $AllowStreams variable.
|
||||
-Exposed the $SupportedConversionTypes variable in config.php.
|
||||
-Fix HTML error in gui2 of each language pack.
|
||||
-Fix archive conversions.
|
||||
-Fix OCR operations.
|
||||
-Add Csv Support.
|
||||
-Create v3.1.8 UI Update Procedure.
|
||||
-No user action required, list for tracking purposes only.
|
||||
-Header
|
||||
-Update header, add dots, update date.
|
||||
-UI1
|
||||
-Update FILE INFORMATION section of header comment text.
|
||||
-Add Csv line to supported spreadsheets.
|
||||
-UI2
|
||||
-Update FILE INFORMATION section of header comment text.
|
||||
-Copy & paste && $SupportedConversionTypes condition to each button code.
|
||||
-Add Spaces.
|
||||
-Copy and paste from php start tag of file foreach to buttondiv.
|
||||
-Add csv to each spreadsheet conversion dropdown.
|
||||
-Fix javascript error on archiveconvertsubmit around line 555.
|
||||
-Check for ending /div tag.
|
||||
-Footer
|
||||
-Update header, add dots, update date.
|
||||
|
||||
--------------------
|
||||
COMMIT 1/20/2023
|
||||
v3.1.7 - Continue updating language packs.
|
||||
|
||||
-v3.1.7.
|
||||
-Finish adding errors 13001, 13002, 13003, 13004, 13005 to docs.
|
||||
-Move main loading spinner to under the cursor.
|
||||
-Continuing work on updating language packs.
|
||||
-The following process can be repeated for each language pack to update them to v3.1.5.
|
||||
-Header/Footer
|
||||
-Update "FILE INFORMATION" section of header.
|
||||
-GUI1
|
||||
-Update "FILE INFORMATION" section of header.
|
||||
-Copy/Paste to replace all file format HTML.
|
||||
-Retranslate/replace all conversion specific text.
|
||||
-GUI2
|
||||
-Update "FILE INFORMATION" section of header.
|
||||
-Update icons for media, videos.
|
||||
-Search for utility div, copy+paste lower, rename upper.
|
||||
-Append PHP counter to all loading div calls inside the file loop.
|
||||
-Replace all conversion option formats.
|
||||
-image
|
||||
-drawing
|
||||
-model
|
||||
-archive
|
||||
-LANGUAGE PACKS COMPLETE
|
||||
-ar h,1,2,f
|
||||
-en h,1,2,f
|
||||
-bn h,1,2,f
|
||||
-de h,1,2,f
|
||||
-es h,1,2,f
|
||||
-fr h.1.2.f
|
||||
-hi h,1,2,f
|
||||
-it h,1,2,f
|
||||
-ko h,1,2,f
|
||||
-pt h,1,2,f
|
||||
-ru h,1,2,f
|
||||
-uk h,1,2,f
|
||||
-zh h,1,2,f
|
||||
-To Do...
|
||||
-Need to redesign/standardize PDFWork functions.
|
||||
-Utilize convert() functions instead of rewriting them.
|
||||
-Need to add csv output support.
|
||||
-Need to add default options to disable specific conversion types, similar to AllowStreams.
|
||||
-Maybe make an array of allowed types instead of separate variables?
|
||||
-Need to make arrays in config.php to store default allowed output formats.
|
||||
-This will make maintaining things easier by not having to replace the UI elements each time.
|
||||
-DisplayOutputFormats(FormatType, DisplayType)
|
||||
-Where FormatType is the type of file and DisplayType is the type of list generated.
|
||||
|
||||
--------------------
|
||||
COMMIT 1/20/2023
|
||||
v3.1.6 - General logic updates, add error checks, improve conversion attempt procedures.
|
||||
|
||||
-v3.1.6.
|
||||
-Improve comments.
|
||||
-Add $PermissionLevels & $ApacheUser variables to verifyGlobals().
|
||||
-Add a pause between conversion attempts.
|
||||
-The pause is set in verifyGlobals() by $SleepTimer.
|
||||
-The pause increments by 1 second every attempt.
|
||||
-The max number of attempts is now set in verifyGlobals() by $StopCounter.
|
||||
-Incremented values are discarded. Each conversion attempt starts with default $SleepTimer.
|
||||
-Simplify image conversion process. Remove Method 1 and Method 2, now only one method to rule them all.
|
||||
-Reduce number of times $SupportedConversionType is checked during a conversion.
|
||||
-Removed error 8000.
|
||||
-Add errors 8001, 13001,
|
||||
|
||||
--------------------
|
||||
COMMIT 1/20/2023
|
||||
v3.1.5 - Create language pack upgrade to v3.1.5 procedure.
|
||||
|
||||
-v3.1.5.
|
||||
-Replace Leafpad with Featherpad in instructions.
|
||||
-Create language pack upgrade to v3.1.5 procedure.
|
||||
-Lots of changes were made to the GUI.
|
||||
-This procedure is for development purposes only. No action is required by users or admins.
|
||||
-This is just so I can keep track of things.
|
||||
-The following process can be repeated for each language pack to update them to v3.1.5.
|
||||
-GUI1
|
||||
-Update "FILE INFORMATION" section of header.
|
||||
-Copy/Paste to replace all file format HTML.
|
||||
-Retranslate/replace all conversion specific text.
|
||||
-GUI2
|
||||
-Update "FILE INFORMATION" section of header.
|
||||
-Search for utility div, copy+paste lower, rename upper.
|
||||
-Append PHP counter to all loading div calls inside the file loop.
|
||||
-Replace all conversion option formats.
|
||||
-LANGUAGE PACKS COMPLETE
|
||||
-ar
|
||||
-en
|
||||
-AFTER ALl LANGUAGE PACKS ARE COMPLETE
|
||||
-Test each language pack.
|
||||
-Check for HTML errors.
|
||||
-Need to fix loading spinner on virus scan.
|
||||
|
||||
--------------------
|
||||
COMMIT 1/11/2023
|
||||
v3.1.2 - Improve image support. $AllowStreams config entry, bump JQuery, add some icons.
|
||||
|
||||
-v3.1.2.
|
||||
-Improve Installation_Instructions.txt.
|
||||
-Revise 3D Model support, Vector file support, Image support, Iso support.
|
||||
-Improve securePath function comments, add URL support.
|
||||
-Trying to automate the translation into other languages.
|
||||
-Add rc-local.service template file for systems where it is missing and needs to be installed.
|
||||
|
||||
--------------------
|
||||
COMMIT 1/10/2023
|
||||
v3.1.1 - Improve image support. $AllowStreams config entry, bump JQuery, add some icons.
|
||||
|
||||
-v3.1.1.
|
||||
-Add code to prevent stream related UI elements from displaying when the $AllowStreams config entry is set to FALSE.
|
||||
-Update JQuery from v3.6.0.min to v3.6.3.min.
|
||||
-Checked for Dropzone.js updates, already at latest version.
|
||||
-Minor comment changes in config.php.
|
||||
-Translate index files of language packs into the language of the pack.
|
||||
-Add comments section containing file & application information to GUI-related files.
|
||||
-Clean up array declarations, improve readibility, scalability, debugging.
|
||||
-Vastly improve image support for both input and output operations.
|
||||
-Added support for Heic files.
|
||||
-Added support for several misc image files.
|
||||
-Bumped format support count to 79 file formats.
|
||||
-Adjust icons for media, videos to be unique from streams.
|
||||
-Add mkisofs as a dependency, fix iso creation.
|
||||
-Revise verbiage of UI elements.
|
||||
-Added element specific loading spinners that are under the cursor, so less disruptive.
|
||||
|
||||
--------------------
|
||||
COMMIT 1/4/2023
|
||||
v3.1 - ScanCore to v0.9, PHP-AV v4.1.
|
||||
|
|
|
@ -1,434 +0,0 @@
|
|||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
COPYRIGHT INFORMATION ...
|
||||
HRConvert2, Copyright on 3/12/2024 by Justin Grimes, www.github.com/zelon88
|
||||
|
||||
LICENSE INFORMATION ...
|
||||
This project is protected by the GNU GPLv3 Open-Source license.
|
||||
https://www.gnu.org/licenses/gpl-3.0.html
|
||||
|
||||
APPLICATION INFORMATION ...
|
||||
This application is designed to provide a web-interface for converting file formats on a server for users of any web browser without authentication.
|
||||
|
||||
FILE INFORMATION ...
|
||||
v3.3.3.
|
||||
This plain text file describes the process for creating, formatting, and installing additional GUIs into HRConvert2.
|
||||
|
||||
HARDWARE REQUIREMENTS ...
|
||||
This application requires at least a Raspberry Pi Model B+ or greater.
|
||||
This application will run on just about any x86 or x64 computer.
|
||||
|
||||
DEPENDENCY REQUIREMENTS ...
|
||||
This application requires Debian Linux (w/3rd Party audio license), Apache 2.4, PHP 8+, LibreOffice, Unoconv, ClamAV, Tesseract, Rar, Unrar, Unzip, 7zipper,
|
||||
Ffmpeg, PdfToText, Dia, PopplerUtils, MeshLab, Mkisofs & ImageMagick.
|
||||
|
||||
ADDITIONAL INFORMATION
|
||||
HRConvert2 has one default GUI set in config.php and additional GUIs can be installed by administrators and selected by the user at runtime.
|
||||
The default GUI used by HRConvrt2 can be selected by adjusting the --Default GUI-- section of config.php.
|
||||
Administrators can prevent user GUI selection by adjusting the --Allow User Selectable GUI-- section of config.php.
|
||||
If --Allow User Selectable GUI-- is set to TRUE in config.php, users can adjust GUI output using a 'gui' GET request.
|
||||
To send a GET request, append the following string to the end of the HRConvert2 URL (without quotes): '?gui=<GUI_CODE>'
|
||||
Substitute <GUI_CODE> in the string above for the name of the GUI defined by the name of the folder where it's files are contained.
|
||||
If a user submits an unsupported GUI the default will be used instead.
|
||||
It a supported GUI is missing required files a fatal error will occur.
|
||||
|
||||
<3 Open-Source
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--About GUIs--
|
||||
|
||||
The HRConvert2 GUI is modular and separate from the core logic of the application.
|
||||
This design makes modifying the look and feel of HRConvert2 easy.
|
||||
This document will teach administrator and developers how GUIs are handled and structured.
|
||||
In this document when we refer to a GUI, we refer to a set of files required to render HRConvert2.
|
||||
In this document when we refer to a language pack, we refer to the files required to localize a GUI into a specific language.
|
||||
|
||||
An HRConvert2 GUI is made up of 7 components. Each component serves a specific function. The 7 components of a GUI are;
|
||||
|
||||
1. header.php
|
||||
2. convertGui1.php
|
||||
3. convertGui2.php
|
||||
4. footer.php
|
||||
5. styleCore.php
|
||||
6. index.html
|
||||
7. A 'Languages' folder with at least one ISO 639-1 supported Language Pack.
|
||||
|
||||
These components are stored in a folder named after the ISO 639-1 language code for the language.
|
||||
The ISO-639-1 named folder is then placed inside the 'Languages' subdirectory of the installation location.
|
||||
The supported ISO 639-1 language code must also be added to the --Supported Languages-- section of config.php or it will be ignored.
|
||||
If --Allow User Selectable Language-- is enabled, users will be able to select this language pack by sendiing a GET request.
|
||||
Users should not access the GUI directly. All requests should be directed to convertCore.php which will construct the GUI on-demand.
|
||||
|
||||
During operation, HRConvert2 initializes the language using the following process;
|
||||
|
||||
1. Initialize the language to english.
|
||||
2. Build an array of languages that are included with HRConvert2.
|
||||
3. Check if the $SupportedLanguages variable from config.php is set properly.
|
||||
3a. If not, use the included array of default languages instead.
|
||||
4. If a language was specified via GET input, sanitize it.
|
||||
5. Check if the $DefaultLanguage variable from config.php is set & supported.
|
||||
5a. If not, use english instead.
|
||||
6. Check if the $AllowUserSelectableLanguage variable from config.php is set.
|
||||
6a. If not, use $DefaultLanguage instead.
|
||||
7. Check if a language was specified via GET input.
|
||||
7a. If not, use $DefaultLanguage instead.
|
||||
8. Check if the specified language is supported.
|
||||
8a. If not, use $DefaultLanguage instead.
|
||||
9. If all checks have passed and the specified language is supported, set the language to use to the one specified via GET request.
|
||||
10. Reset the language GET variable to the currently specified language so future requests will continue using the same language.
|
||||
11. Define all required language related files & folders.
|
||||
12. Check for the existence of all required language related files & folders.
|
||||
12a. If not, terminate the application.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--Administration Tips--
|
||||
|
||||
Language Packs are contained within GUIs. GUIs typically contain multiple language packs.
|
||||
Errors will occur if an installed GUI does not support every language listed in the --Supported Languages-- section of the config.php file.
|
||||
Errors will occur if an installed GUI does not support the following colors: Red, Green, Blue, Grey.
|
||||
Server administrators can;
|
||||
Enable or disable GUIs by modifying the --Supported GUIs-- section of the config.php file.
|
||||
Add or remove language packs to a GUI by creating a folder in the 'Languages' subdirectory of each enabled GUI folder.
|
||||
Allow or prevent GUI selection via GET request by modifying the --Allow User Selectable GUIs-- section of the config.php file.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--Development Tips--
|
||||
|
||||
The modular design of HRConvert2 is designed to make adding new GUIs and/or languages simple for administrators to manage and easy for developers to maintain.
|
||||
If you are maintaining a branch of HRConvert2 and are focusing on a single language pack you can build your logic directly into the GUI pages themselves.
|
||||
Any GUI files that are not needed can be left blank after the opening PHP tag.
|
||||
To create a new GUI, copy & paste an existing GUI from the UI folder and modify the files with your favorite text editor.
|
||||
To install a new GUI, place a folder in the 'UI' subdirectory of the installation location.
|
||||
To enable or disable a GUI, update the --Supported GUIs-- section of the config.php file.
|
||||
GUIs can utilize the icons and scripts in the default Resources directory or include their own.
|
||||
If any non-stock directories are added to HRConvert2, a copy of index.html must be pasted into the directory.
|
||||
Do not create any files named index.html. This filename is reserved by the application for document root protection mechanisms.
|
||||
Upper Case variables are Global in scope. Lower case variables are severely limited in scope.
|
||||
Limited scope variables should be manually nulled & unset after they are no longer required.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--Maintenance Tips--
|
||||
|
||||
The 'Languages\<LANGUAGE_CODE>\languageStrings.php' file should be used to contain all localization specific code.
|
||||
By placing localization specific code into 'Languages\<LANGUAGE_CODE>\languageStrings.php', GUI updates can be easily applied from one language pack to another.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--About header.php--
|
||||
|
||||
This file contains the start of the GUI including the stylesheets, html, & head tags.
|
||||
This file is always displayed.
|
||||
Localized text for this file is contained in the 'Languages\<LANGUAGE_CODE>\languageStrings.php' file of the language pack.
|
||||
Insert code here that should run at the beginning of every page that HRConvert2 renders.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--About convertGui1.php--
|
||||
|
||||
This file contains the upload field as well as some information about the application.
|
||||
This file provides tokens to the user which must be included with any subsequent request by the user.
|
||||
This file is displayed when no valid tokens have been supplied by the user.
|
||||
Localized text for this file is contained in the 'Languages\<LANGUAGE_CODE>\languageStrings.php' file of the language pack.
|
||||
Insert code here that should run before the user has uploaded any files.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--About convertGui2.php--
|
||||
|
||||
This file contains the available options for each submitted file.
|
||||
This file dynamically selects which options to display for which files.
|
||||
This file is displayed when valid tokens were supplied by the user.
|
||||
Localized text for this file is contained in the 'Languages\<LANGUAGE_CODE>\languageStrings.php' file of the language pack.
|
||||
Insert code here that should run after the user has uploaded files.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--About footer.php--
|
||||
|
||||
This file contains the end of the GUI including the Terms of Service & Privacy Policy links, when enabled.
|
||||
This file is always displayed.
|
||||
Localized text for this file is contained in the 'Languages\<LANGUAGE_CODE>\languageStrings.php' file of the language pack.
|
||||
Insert code here that should run at the end of every page that HRConvert2 renders.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--About index.html--
|
||||
|
||||
This file serves to act as reliable and predictable document root protection for the server.
|
||||
If users are allowed to view the document root of the server they could navigate manually to other users hosted scratch space.
|
||||
This would allow users to see some temporary files of other users while they were in the process of working on them.
|
||||
This file simply redirects the user to the main HRConvert2 landing page with a message asking them to wait.
|
||||
The visual effect of the loading text is that a malicious actor knows they have hit some protection mechanism.
|
||||
If you want to modify the global index.html file, modify the one in the installation location and then copy & paste to all other subdirectories.
|
||||
HRConvert2 will automatically create new index.html files in folders it creates using the one from the installation location as a template.
|
||||
This file must be manually copied & pasted into any folders that are manually created by administrators or developers of HRConvert2.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--About 'Languages' Folder--
|
||||
|
||||
The 'Languages' folder must exist in each GUI.
|
||||
The 'Languages' folder contains the major language-specific files for the GUI.
|
||||
Each subdirectory of the 'Languages' folder represents a different language pack.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--About 'Resources' Folder--
|
||||
|
||||
The 'Resources' folder is optional, but it makes the life of the HRConvert2 developer much easier.
|
||||
The 'Resources' folder contains & organizes the scripts, stylesheets, & images required by the GUI.
|
||||
The HRConvert2 core will not check for the existence of the 'Resources' folder.
|
||||
The HRConvert2 core will define the following variables which map to subdirectories of the 'Resources' folder;
|
||||
$GuiResourcesDir, Maps to 'Resources/' folder.
|
||||
$GuiImageDir, Maps to 'Resources/Images' folder.
|
||||
$GuiCSSDir, Maps to 'Resources/CSS' folder.
|
||||
$GuiJSDir, Maps to 'Resources/JS' folder.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--About Variable Scope--
|
||||
|
||||
This GUI only has access to certain variables. Variables that are available to the GUI include;
|
||||
$GuiFiles, $LanguageFiles, $LanguageStringsFile, $GuiHeaderFile, $GuiFooterFile, $GuiUI1File, $GuiUI2File, $CoreLoaded, $ConvertDir, $ConvertTempDir,
|
||||
$Token1, $Token2, $SesHash, $SesHash2, $SesHash3, $SesHash4, $Date, $Time, $TOSURL, $PPURL, $ShowFinePrint, $PDFWorkArr, $ArchiveArray, $DearchiveArray,
|
||||
$DocumentArray, $SpreadsheetArray, $ImageArray, $ModelArray, $DrawingArray, $VideoArray, $SubtitleArray, $StreamArray, $MediaArray, $PresentationArray,
|
||||
$ConvertGuiCounter1, $ConsolidatedLogFileName, $Alert, $Alert1, $Alert2, $Alert3, $FCPlural, $FCPlural1, $FCPlural2, $FCPlural3, $File, $Files, $FileCount,
|
||||
$SpinnerStyle, $SpinnerColor, $PacmanLoc, $Allowed, $AllowUserVirusScan, $AllowUserShare, $SupportedConversionTypes, $FullURL, $LanguageDir, $FaviconPath,
|
||||
$DropzonePath, $DropzoneStylesheetPath, $StylesheetPath, $JsLibraryPath, $JqueryPath, $GUIDirection, $SupportedFormatCount, $GUIAlignment, $HeaderDisplayed,
|
||||
$UIDisplayed, $FooterDisplayed, $LanguageStringsLoaded, $GUIDisplayed, $GuiResourcesDir, $GuiImageDir, $GuiCSSDir, $GuiJSDir
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--About Colors--
|
||||
|
||||
The GUI gets color specific styles from the $ButtonCode variable.
|
||||
The $ButtonCode variable contains the color specific CSS for the GUI.
|
||||
The $ButtonCode variable is set by the UI/<SELECTED_GUI>/styleCore.php file.
|
||||
There are 4 supported colors, and the code for each color is contained in styleCore.php.
|
||||
The loading spinner will change color as well. There is one spinner .gif file for each style & supported color.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--About Loading Spinners--
|
||||
|
||||
There are 6 loading spinners to choose from that can be set in config.php.
|
||||
Each spinner is available in 4 colors.
|
||||
The color of the spinner can be adjusted separately from the color of the rest of the GUI.
|
||||
The $PacmanLoc variable contains the relative path to use for the selected spinner.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--About Uploaded Files--
|
||||
|
||||
The $Files variable contains an array of all valid uploaded filenames that exist in the users scratch space.
|
||||
The GUI must iterate through this array, determine what format it is, & display the correct options.
|
||||
When submitting a file as input, only submit it's name with extension. HRConver2 will determine the path.
|
||||
When redirecting the user to a download you must send them to the proper filename and hosted file path.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--About File Sharing Operations--
|
||||
|
||||
File sharing can be implemented entirely client-side by submitting a 'download' POST request which returns a URL that can be copied to the users clipboard.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--About The API--
|
||||
|
||||
HRConvert2 supports inputs through POST and GET requests.
|
||||
All requests should be submitted to convertCore.php & all POST requests must be encoded as "multipart/form-data".
|
||||
If Token1 and Token2 are not submitted via POST input, then convertGui1.php will be displayed prompting for file uploads.
|
||||
If Token1 and Token2 are both submitted via POST input, then convertGui2.php will be displayed providing conversion options.
|
||||
The included GUIs makes extensive use of JQuery + Ajax to submit requests & process responses.
|
||||
GUI files cannot handle API requests and will generate an error if they receive API requests.
|
||||
All API inputs are sanitized by the core for special characters to prevent malicious or unintentional code injection.
|
||||
As a result of sanitization the filename may change after upload.
|
||||
|
||||
To use HRConvert2 via POST & GET requests only;
|
||||
1. Submit a blank GET request to convertCore.php to retrieve the value of Token1 and Token2.
|
||||
2. Submit a file upload along with Token1 and Token2 to convertCore.php via POST input.
|
||||
3. Submit an uploaded filename, a new filename, a file extension, Token1, Token2, and a valid set of conversion options to convertCore.php via POST input.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--About User Supplied GET Requests--
|
||||
|
||||
The following is a list of supported GET inputs with description & supported values for each;
|
||||
|
||||
noGui
|
||||
GUI Operation
|
||||
Display the minimal amount of GUI elements to accomplish the mission.
|
||||
Set this input to any value to trigger the UI to display the least amount of elements that is possible.
|
||||
This input can also be specified by POST request, but GET will always take precedence.
|
||||
|
||||
gui
|
||||
GUI Operation
|
||||
Select the GUI to use.
|
||||
Can be enabled/disabled in config.php.
|
||||
Supported GUI's can be added/removed in config.php.
|
||||
Set this input to the name of a UI that is installed to the UI folder & defined in config.php.
|
||||
This input can also be specified by POST request, but GET will always take precedence.
|
||||
|
||||
language
|
||||
GUI Operation
|
||||
Select the language to use.
|
||||
Can be enabled/disabled in config.php to.
|
||||
Supported languages can be added/removed in config.php.
|
||||
Set this input to the nane of an installed ISO 639-1 language defined in config.php.
|
||||
This input can also be specified by POST request, but GET will always take precedence.
|
||||
|
||||
color
|
||||
GUI Operation
|
||||
Select the color to use.
|
||||
Can be enabled/disabled in config.php to.
|
||||
Supported colors can be added/removed in config.php.
|
||||
Set this input to a supported color scheme defined in config.php.
|
||||
This input can also be specified by POST request, but GET will always take precedence.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--About User Supplied POST Requests--
|
||||
|
||||
The following is a list of supported POST inputs, organized into sections based on when they are used, with description & supported values for each;
|
||||
|
||||
General Use
|
||||
Token1
|
||||
String.
|
||||
This input is used whenever a user intends to use HRConvert2.
|
||||
This input is provided to the user by HRConvert2 via a hidden form field.
|
||||
This value must be stored & resubmitted with every subsequent request that is part of the same session.
|
||||
Set this input to the value of the hidden form field from convertGui1.php that has an 'id' of 'Token1'.
|
||||
Token2
|
||||
String.
|
||||
This input is used whenever a user intends to use HRConvert2.
|
||||
This input is provided to the user by HRConvert2 via a hidden form field.
|
||||
This value must be stored & resubmitted with every subsequent request that is part of the same session.
|
||||
Set this input to the value of the hidden form field from convertGui1.php that has an 'id' of 'Token2'.
|
||||
|
||||
General File Operations
|
||||
download
|
||||
String or JSON Array.
|
||||
This input is used at any time to download user files.
|
||||
This input is used to generate file URLs for sharing operations.
|
||||
Set this input to a name or list of names to use for input files.
|
||||
filesToDelete
|
||||
String or JSON Array.
|
||||
This input is used at any time to delete user files.
|
||||
Set this input to a name or list of names to use for input files.
|
||||
|
||||
File Conversion Operations
|
||||
convertSelected
|
||||
String or JSON Array.
|
||||
This input is used during File Conversions (excluding OCR & bulk archiving)
|
||||
Set this input to a name or list of names to use for input files.
|
||||
extension
|
||||
String.
|
||||
This input is used during File Conversions (excluding OCR & bulk archiving)
|
||||
Set this input to an extension to use for the output file.
|
||||
userconvertfilename
|
||||
String.
|
||||
This input is used during File Conversions (excluding OCR & bulk archiving)
|
||||
Set this input to a name to use for the output file.
|
||||
|
||||
Image Conversions
|
||||
height
|
||||
Integer.
|
||||
This input is used during Image Conversions.
|
||||
Image height in number of pixels to use for the output file.
|
||||
Set this input to 0 to not resize the original image.
|
||||
width
|
||||
Integer.
|
||||
This input is used during Image Conversions.
|
||||
Image width in number of pixels to use for the output file.
|
||||
Set this input to 0 to not resize the original image.
|
||||
rotate
|
||||
Integer.
|
||||
This input is used during Image Conversions.
|
||||
Number of degrees to rotate the image clockwise.
|
||||
Set this input to 0 to not rotate the original image.
|
||||
|
||||
Audio Conversions
|
||||
bitrate
|
||||
Integer.
|
||||
This input is used during Audio Conversions.
|
||||
Bitrate to use for the output file.
|
||||
Set this input to 0 to use automatic bitrate detection.
|
||||
|
||||
Archive Operations
|
||||
archive
|
||||
String.
|
||||
This input is used during Archive Operations (excluding conversions).
|
||||
Set this input to any value to trigger archive operations.
|
||||
userfilename
|
||||
String.
|
||||
This input is used during Archive Operations (excluding conversions).
|
||||
Set this input to the name to use for the output file.
|
||||
archExtension
|
||||
String.
|
||||
This input is used during Archive Operations (excluding conversions).
|
||||
Set this input to an extension to use for the output file.
|
||||
filesToArchive
|
||||
String or JSON Array.
|
||||
This input is used during Archive Operations (excluding conversions).
|
||||
Set this input to a name or list of names to use for input files.
|
||||
|
||||
Optical Character Recognition (OCR) Operations
|
||||
pdfworkSelected
|
||||
String or JSON Array.
|
||||
This input is used during OCR Operations.
|
||||
Set this input to a name or list of names to use for input files.
|
||||
userpdfconvertfilename
|
||||
String.
|
||||
This input is used during OCR Operations.
|
||||
Set this input to a name to use for the output file.
|
||||
pdfextension
|
||||
String.
|
||||
This input is used during OCR Operations.
|
||||
Set this input to an extension to use for the output file.
|
||||
method
|
||||
Integer, 0 or 1.
|
||||
This input is used during OCR Operations.
|
||||
This input determines the internal method to use for performing the conversion.
|
||||
Set this input to 0 to use a simple approach to OCR.
|
||||
Set this input to 1 to use a more advanced approach to OCR.
|
||||
|
||||
Virus Scanning Operations
|
||||
scantype
|
||||
String (clamav or scancore or all).
|
||||
This input is used during Virus Scanning Operations to scan a specific file.
|
||||
Set this input to 'clamav' to perform a virus scan with ClamAV Virus Scanner.
|
||||
Set this input to 'scancore' to perform a virus scan with ScanCore Virus Scanner.
|
||||
Set this input to 'all' to perform a virus scan with all installed Virus Scanners.
|
||||
filestoscan
|
||||
String or JSON Array.
|
||||
This input is used during Virus Scanning Operations.
|
||||
Set this input to a name or list of names to use for input files.
|
||||
clamScanButton
|
||||
String.
|
||||
This input is used during Virus Scanning Operations to scan all files with ClamAV.
|
||||
Set this input to any value to trigger virus scanning operations.
|
||||
scancorebutton
|
||||
String.
|
||||
This input is used during Virus Scanning Operations to scan all files with ScanCore.
|
||||
Set this input to any value to trigger virus scanning operations.
|
||||
scanallbutton
|
||||
String.
|
||||
This input is used during Virus Scanning Operations to scan all files with all installed virus scanners.
|
||||
Set this input to any value to trigger virus scanning operations.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--About Open Source--
|
||||
|
||||
This application is open-source under the terms of the GPLv3 license, meaning anybody can obtain a copy and put it to use for personal or business use.
|
||||
If you modify this application and use it to make money or offer it to your users as a product, you MUST make the source code with your changes available.
|
||||
The ideal way to do this would be to fork the official zelon88/HRConvert2 repository on Github and make changes there.
|
||||
Alternatively you can submit a pull request and have your changes added to the official repository (with credit due to you, of course).
|
||||
By reciprocating changes & improvements with one another we can all enjoy the best, most capable and bug free version HRConvert2.
|
||||
If you modify this codebase please consider making your changes public so everyone can benefit from them.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
@ -1,6 +1,6 @@
|
|||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
COPYRIGHT INFORMATION ...
|
||||
HRConvert2, Copyright on 5/5/2023 by Justin Grimes, www.github.com/zelon88
|
||||
APPLICATION INFORMATION ...
|
||||
HRConvert2, Copyright on 1/3/2023 by Justin Grimes, www.github.com/zelon88
|
||||
|
||||
LICENSE INFORMATION ...
|
||||
This project is protected by the GNU GPLv3 Open-Source license.
|
||||
|
@ -9,8 +9,7 @@ https://www.gnu.org/licenses/gpl-3.0.html
|
|||
APPLICATION INFORMATION ...
|
||||
This application is designed to provide a web-interface for converting file formats on a server for users of any web browser without authentication.
|
||||
|
||||
FILE INFORMATION ...
|
||||
v3.2.9.
|
||||
FILE INFORMATION
|
||||
This plain text file describes the process for creating, formatting, and installing additional language packs into HRConvert2.
|
||||
|
||||
HARDWARE REQUIREMENTS ...
|
||||
|
@ -18,8 +17,8 @@ This application requires at least a Raspberry Pi Model B+ or greater.
|
|||
This application will run on just about any x86 or x64 computer.
|
||||
|
||||
DEPENDENCY REQUIREMENTS ...
|
||||
This application requires Debian Linux (w/3rd Party audio license), Apache 2.4, PHP 8+, LibreOffice, Unoconv, ClamAV, Tesseract, Rar, Unrar, Unzip, 7zipper,
|
||||
Ffmpeg, PdfToText, Dia, PopplerUtils, MeshLab, Mkisofs & ImageMagick.
|
||||
This application requires Debian Linux (w/3rd Party audio license), Apache 2.4, PHP 7+, LibreOffice, Unoconv, ClamAV, Tesseract, Rar, Unrar, Unzip, 7zipper,
|
||||
Ffmpeg, PdfToText, Dia, PopplerUtils, MeshLab & ImageMagick.
|
||||
|
||||
ADDITIONAL INFORMATION
|
||||
HRConvert2 has one default language set in config.php and multiple languages that can be selected by the user at runtime.
|
||||
|
@ -38,88 +37,59 @@ It a supported language is missing required files a fatal error will occur.
|
|||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--About Language Packs--
|
||||
|
||||
HRConvert2 is designed to make localization into a new language by creating 'language packs' easy.
|
||||
This document will teach administrator and developers how languages are handled and structured.
|
||||
In this document when we refer to a GUI, we refer to a set of files required to render HRConvert2.
|
||||
In this document when we refer to a language pack, we refer to the files required to localize a GUI into a specific language.
|
||||
|
||||
An HRConvert2 Language Pack is made up of 2 components. Each component serves a specific function. The 2 components of a Language Pack are;
|
||||
The HRConvert2 GUI is modular and separate from the core logic of the application.
|
||||
This design makes localization into a new language by creating 'language packs' easy.
|
||||
This document will teach an administrator how GUIs are handled and how to structure new language packs.
|
||||
In this document when we refer to a GUI, we refer to one complete set of files required to render HRConvert2.
|
||||
In this document when we refer to a language pack, we refer to one individual GUI that has been localized to a specific language.
|
||||
A 'Language Pack' is just a localized 'GUI'. Each language pack contains one complete GUI.
|
||||
|
||||
1. languageStrings.php
|
||||
2. index.html
|
||||
|
||||
An HRConvert2 GUI is made up of 5 components. Each component serves a specific function. The 5 components of a GUI are;
|
||||
|
||||
1. header.php
|
||||
2. convertGui1.php
|
||||
3. convertGui2.php
|
||||
4. footer.php
|
||||
5. index.html
|
||||
|
||||
These components are stored in a folder named after the ISO 639-1 language code for the language.
|
||||
The ISO-639-1 named folder is then placed inside the 'UI\<GUI>\Languages' subdirectory of the installation location.
|
||||
The ISO-639-1 named folder is then placed inside the 'Languages' subdirectory of the HRConvert2 installation location.
|
||||
The supported ISO 639-1 language code must also be added to the --Supported Languages-- section of config.php or it will be ignored.
|
||||
If --Allow User Selectable Language-- is enabled, users will be able to select this language pack by sendiing a GET request.
|
||||
Users should not access the GUI directly. All requests should be directed to convertCore.php which will construct the GUI on-demand.
|
||||
|
||||
During operation, HRConvert2 initializes the language using the following process;
|
||||
|
||||
1. Initialize the language to english.
|
||||
2. Build an array of languages that are included with HRConvert2.
|
||||
3. Check if the $SupportedLanguages variable from config.php is set properly.
|
||||
3a. If not, use the included array of default languages instead.
|
||||
4. If a language was specified via GET input, sanitize it.
|
||||
5. Check if the $DefaultLanguage variable from config.php is set & supported.
|
||||
5a. If not, use english instead.
|
||||
6. Check if the $AllowUserSelectableLanguage variable from config.php is set.
|
||||
6a. If not, use $DefaultLanguage instead.
|
||||
7. Check if a language was specified via GET input.
|
||||
7a. If not, use $DefaultLanguage instead.
|
||||
8. Check if the specified language is supported.
|
||||
8a. If not, use $DefaultLanguage instead.
|
||||
9. If all checks have passed and the specified language is supported, set the language to use to the one specified via GET request.
|
||||
10. Reset the language GET variable to the currently specified language so future requests will continue using the same language.
|
||||
11. Define all required language related files & folders.
|
||||
12. Check for the existence of all required language related files & folders.
|
||||
12a. If not, terminate the application.
|
||||
Users do not access the GUI directly. All requests should be directed to convertCore.php which will construct the GUI on-demand.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--Administration Tips--
|
||||
--About header.php--
|
||||
|
||||
Language Packs are contained within GUIs. GUIs typically contain multiple language packs.
|
||||
Errors will occur if an installed GUI does not support every language listed in the --Supported Languages-- section of the config.php file.
|
||||
Errors will occur if an installed GUI does not support the following colors: Red, Green, Blue, Grey.
|
||||
Server administrators can;
|
||||
Enable or disable language packs by modifying the --Supported Languages-- section of the config.php file.
|
||||
Add or remove language packs to a GUI by creating a folder in the 'Languages' subdirectory of each enabled GUI folder.
|
||||
Allow or prevent language selection via GET request by modifying the --Allow User Selectable Languages-- section of the config.php file.
|
||||
This file is the start of the GUI. This file is always rendered.
|
||||
Insert code here that should be inserted at the beginning of every page that HRConvert2 renders.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--Development Tips--
|
||||
--About convertGui1.php--
|
||||
|
||||
The modular design of HRConvert2 is designed to make modifications easily translatable to other languages.
|
||||
If you are maintaining a branch of HRConvert2 and are focusing on a single language pack you can build your logic directly into the GUI pages themselves.
|
||||
Any language pack files that are not needed can be left blank after the opening PHP tag.
|
||||
To translate HRConvert2 into a new language, copy an existing language pack and translate the 'Languages\<LANGUAGE_CODE>\languageStrings.php' file into the desired language.
|
||||
To install a new language pack, place a folder named after a 2 digit ISO 639-1 language code into the 'Languages' subdirectory of the installation location.
|
||||
To enable or disable a language pack, update the --Supported Languages-- section of the config.php file.
|
||||
GUIs can utilize the icons and scripts in the default Resources directory or include their own.
|
||||
If any non-stock directories are added to HRConvert2, a copy of index.html must be pasted into the directory.
|
||||
Do not create any files named index.html. This filename is reserved by the application for document root protection mechanisms.
|
||||
Upper Case variables are Global in scope. Lower case variables are severely limited in scope.
|
||||
Limited scope variables should be manually nulled & unset after they are no longer required.
|
||||
This file contains the upload field as well as some information about the application.
|
||||
This file is displayed when no valid tokens have been supplied by the user.
|
||||
This file provides tokens to the user which must be included with any subsequent request by the user.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--Maintenance Tips--
|
||||
--About convertGui2.php--
|
||||
|
||||
The 'Languages\<LANGUAGE_CODE>\languageStrings.php' file should be used to contain all localization specific code.
|
||||
By placing localization specific code into 'Languages\<LANGUAGE_CODE>\languageStrings.php', GUI updates can be easily applied from one language pack to another.
|
||||
This file contains the available options for each submitted file.
|
||||
This file is displayed when valid tokens were supplied by the user.
|
||||
This file dynamically selects which options to display for which files.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--About languageStrings.php--
|
||||
--About footer.php--
|
||||
|
||||
This file contains the major language-specific text elements & logic.
|
||||
This file is loaded whenever a GUI is displayed.
|
||||
This file exists to make the other GUI files more universal.
|
||||
All translated text or text elements should be placed in this file & called by variable reference.
|
||||
Using this file to contain localized text elements improves the maintainability of multiple language packs.
|
||||
This file is the end of the GUI. This file is always rendered.
|
||||
Insert code here that should be inserted at the end of every page that HRConvert2 renders.
|
||||
This file also renders the Terms of Service & Privacy Policy links when enabled.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
@ -130,17 +100,88 @@ If users are allowed to view the document root of the server they could navigate
|
|||
This would allow users to see some temporary files of other users while they were in the process of working on them.
|
||||
This file simply redirects the user to the main HRConvert2 landing page with a message asking them to wait.
|
||||
The visual effect of the loading text is that a malicious actor knows they have hit some protection mechanism.
|
||||
If you want to modify the global index.html file, modify the one in the installation location and then copy & paste to all other subdirectories.
|
||||
If you want to modify the global index.html file, modify the one in the installation location and then cut/paste to all other subdirectories.
|
||||
HRConvert2 will automatically create new index.html files in folders it creates using the one from the installation location as a template.
|
||||
This file must be manually copied & pasted into any folders that are manually created by administrators or developers of HRConvert2.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--About 'Languages' Folder--
|
||||
--About Variable Scope--
|
||||
|
||||
This folder must exist in each language pack.
|
||||
This folder contains the major language-specific files.
|
||||
Each subdirectory of this folder represents a different language pack.
|
||||
This GUI only has access to certain variables. Variables that are available to the GUI include;
|
||||
$CoreLoaded, $ConvertDir, $ConvertTempDir, $Token1, $Token2, $SesHash, $SesHash2, $SesHash3, $SesHash4, $Date, $Time, $TOSURL, $PPURL, $ShowFinePrint,
|
||||
$ConvertArray, $PDFWorkArr, $ArchiveArray, $DocumentArray, $SpreadsheetArray, $ImageArray, $ModelArray, $DrawingArray, $VideoArray, $Audioarray, $MediaArray,
|
||||
$PresentationArray, $ConvertGuiCounter1, $ButtonCode, $ConsolidatedLogFileName, $Alert, $Alert1, $Alert2, $Alert3, $FCPlural, $FCPlural1, $FCPlural2,
|
||||
$FCPlural3, $Files, $FileCount, $SpinnerStyle, $SpinnerColor, $PacmanLoc, $Allowed, $AllowUserVirusScan, $AllowUserShare, $FullURL, $ShowGUI, $LanguageToUse
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--About Colors--
|
||||
|
||||
The GUI gets color specific styles from the $ButtonCode variable.
|
||||
The $ButtonCode variable contains the color specific CSS for the GUI.
|
||||
The $ButtonCode variable is set by Resources/styleCore.php.
|
||||
There are 4 supported colors, and the code for each color is contained in styleCore.php.
|
||||
The loading spinner will change color as well. There is one spinner .gif file for each style & supported color.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--About Loading Spinners--
|
||||
|
||||
There are 6 loading spinners to chose from that can be set in config.php.
|
||||
Each spinner is available in 4 colors.
|
||||
The color of the spinner can be adjusted separately from the color of the rest of the GUI.
|
||||
The $PacmanLoc variable contains the relative path to use for the selected spinner.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--About Uploaded Files--
|
||||
|
||||
The $Files variable contains an array of all valid uploaded filenames that exist in the users scratch space.
|
||||
The GUI must iterate through this array, determine what format it is, & display the correct options.
|
||||
When submitting a file as input, only submit it's name with extension. HRConver2 will determine the path.
|
||||
When redirecting the user to a download you must send them to the proper filename and hosted file path.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
--About The API--
|
||||
|
||||
HRConvert2 supports inputs through POST and GET requests.
|
||||
The included GUIs makes extensive use of JQuery + Ajax to submit requests & process responses.
|
||||
All API requests should be sent to convertCore.php.
|
||||
GUI files cannot handle API requests and will generate an error if they receive API requests.
|
||||
All API inputs are sanitized by the core for special characters to prevent malicious or unintentional code injection.
|
||||
As a result of sanitization the filename may change after upload.
|
||||
|
||||
The following is a list of supported GET inputs & their supported values;
|
||||
noGui - 1
|
||||
language - String
|
||||
|
||||
The following is a list of supported POST inputs & their supported values;
|
||||
Token1 - String
|
||||
Token2 - String
|
||||
height - Integer
|
||||
width - Integer
|
||||
rotate - Integer
|
||||
bitrate - Integer
|
||||
method - 0 or 1
|
||||
archive - 1
|
||||
extension - String
|
||||
filesToArchive - String or Array of Strings
|
||||
archExtension - String
|
||||
userfilename - String
|
||||
userconvertfilename - String
|
||||
pdfworkSelected - String or Array of Strings
|
||||
convertSelected - String or Array of Strings
|
||||
pdfextension - String
|
||||
userpdfconvertfilename - String
|
||||
scanallbutton - 1
|
||||
scantype - String (clamav or scancore or all)
|
||||
clamscanbutton - 1
|
||||
scancorebutton - 1
|
||||
filestoscan - String or Array of Strings
|
||||
clamScanButton - 1
|
||||
scancorebutton - 1
|
||||
scanallbutton - 1
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
|
|
@ -1,121 +0,0 @@
|
|||
-----------------------------------------------------------------------------------
|
||||
COPYRIGHT INFORMATION ...
|
||||
HRConvert2, Copyright on 6/9/2024 by Justin Grimes, www.github.com/zelon88
|
||||
|
||||
LICENSE INFORMATION ...
|
||||
This project is protected by the GNU GPLv3 Open-Source license.
|
||||
https://www.gnu.org/licenses/gpl-3.0.html
|
||||
|
||||
APPLICATION INFORMATION ...
|
||||
This application is designed to provide a web-interface for converting file formats
|
||||
on a server for users of any web browser without authentication.
|
||||
|
||||
FILE INFORMATION ...
|
||||
v3.3.7.
|
||||
This file contains a walkthrough guide for building an HRConvert2 Docker Image from source.
|
||||
|
||||
HARDWARE REQUIREMENTS ...
|
||||
This application requires at least a Raspberry Pi Model B+ or greater.
|
||||
This application will run on just about any x86 or x64 computer.
|
||||
|
||||
DEPENDENCY REQUIREMENTS ...
|
||||
This application requires Debian Linux (w/3rd Party audio license),
|
||||
Apache 2.4, PHP 8+, LibreOffice, Unoconv, ClamAV, Tesseract, Rar, Unrar, Unzip,
|
||||
7zipper, FFMPEG, PdfToText, Dia, PopplerUtils, MeshLab, Mkisofs & ImageMagick.
|
||||
|
||||
<3 Open-Source
|
||||
-----------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
-----PREFACE-----
|
||||
For this guide, it is assumed that the user is installing HRConvert2 on a PC which meets the above conditions.
|
||||
This document contains instructions for building an HRConvert2 Docker Image on a fresh deployment of Lubuntu 21.04 LTS with no dependencies.
|
||||
|
||||
For a walkthrough of installing a Ubuntu distro, visit:
|
||||
https://www.ubuntu.com/download/desktop/install-ubuntu-desktop
|
||||
-----------------------------------------------------------------------------------
|
||||
|
||||
|
||||
-----STEP 0 - ARE YOU IN THE RIGHT PLACE?-----
|
||||
In this step we will make sure your use case aligns with the purpose of this document.
|
||||
It is not necessary to perform the steps in this document to simply install and use the official HRConvert2 Docker Image.
|
||||
This document is intended to be used for development purposes by HRConvert2 maintainers.
|
||||
|
||||
If you simply want to download and run HRConvert2, you can download the official pre-built docker image at the following URL.
|
||||
https://hub.docker.com/r/zelon88/hrconvert2
|
||||
|
||||
Usually people who want to run the official Docker image are people who;
|
||||
1. Want to use HRConvert2 for personal, industrial, educational, non-profit, or commercial use on a small number of servers.
|
||||
2. Want to run the most stable, secure, & up-to-date version of HRConvert2 that is available.
|
||||
3. Just want to convert files.
|
||||
4. Are not planning on contributing to development.
|
||||
5. Are not planning on modifying the code or dependencies.
|
||||
|
||||
Usually people who want to build their own Docker Image from source are people who;
|
||||
1. Have modified the code or dependencies, and want to share the changes or deploy them on many servers.
|
||||
2. Have a custom configuration that needs to be deployed on many servers.
|
||||
3. Are contributing to a branch of HRConvert2 for distribution.
|
||||
|
||||
If you truly want to build your own Docker Image from source this document will guide you through the Docker Image Build Instructions.
|
||||
-----------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
-----STEP 1 - PREPARE THE FILES-----
|
||||
1. Grab a cup of coffee.
|
||||
2. Make sure you have Docker installed. Run 'sudo apt-get install docker.io'
|
||||
3. Update the Dockerfile located at /var/www/html/HRProprietary/HRConvert2/Documentation/Build/Dockerfile.
|
||||
4. Complete the source code update of HRConvert2 and upload it to the Github repo.
|
||||
4a. Note that the repo is the official source code location for the Dockerfile.
|
||||
4b. The source you copy over with the docker file is for reference only, and IS NOT USED to generate the image.
|
||||
4c. The source code used to generate the image comes from the Github repo specified in the Dockerfile.
|
||||
5. Navigate to /var/www/html/HRProprietary/HRConvert2 and copy all folders EXCEPT Logs and DATA.
|
||||
6. Paste the folders onto into a folder on the Desktop.
|
||||
6a. Note that the source code contained in these files is mostly unused.
|
||||
6b. The Dockerfile creates a container that downloads the source code from the Github repo.
|
||||
-----------------------------------------------------------------------------------
|
||||
|
||||
|
||||
-----STEP 2 - BUILD THE DOCKER IMAGE-----
|
||||
1. Before building, ALWAYS restart the Docker service. Doing so resolves countless errors.
|
||||
1a. Run 'sudo service docker restart'
|
||||
1b. Run 'sudo /etc/init.d/docker restart'
|
||||
1c. Run 'sudo snap restart docker'
|
||||
2. Before building, make sure you've updated the Github repo specified in the Dockerfile.
|
||||
2a. If you don't update the Github repo, you will build old source code.
|
||||
3. Next, select one of the build commands below based on your specific use case.
|
||||
3a. To run a full, clean build; Navigate to the Desktop/HRConvert2 folder, then adjust the version & run 'docker build --no-cache -t zelon88/hrconvert2:v#.#.# .'
|
||||
3b. To run an build from the last successful step; Navigate to the Desktop/HRConvert2 folder, then adjust the version & run 'docker build -t zelon88/hrconvert2:v#.#.# .'
|
||||
3c. To regenerate the sources.list file, uncomment the dockerfile line '#RUN rm -vf /var/lib/apt/lists/*', then run 'docker build -t hrconvert2 .'
|
||||
4. Grab another cup of coffee. The build process will take some time.
|
||||
4a. For my 16C, 64GB server it takes about 1,500 seconds (25 minutes) to build the Docker Image from scratch.
|
||||
-----------------------------------------------------------------------------------
|
||||
|
||||
|
||||
-----STEP 3 - TEST THE DOCKER IMAGE-----
|
||||
|
||||
1. Run 'docker run -d -p 8080:80 -p 8443:443 -t zelon88/hrconvert2:v#.#.# -t zelon88/hrconvert2:latest -t ghcr.io/zelon88/hrconvert2:v#.#.# -t ghcr.io/zelon88/hrconvert2:latest'
|
||||
2. Open a browser and navigate to 'http://localhost:8080' to test the converter.
|
||||
-----------------------------------------------------------------------------------
|
||||
|
||||
|
||||
-----STEP 4 - PUSH THE DOCKER IMAGE TO DOCKER HUB & GHCR-----
|
||||
|
||||
1. On a computer with Docker Hub account linked, modify the version number in the following command, then run 'docker push zelon88/hrconvert2:v#.#.#'
|
||||
2. On a computer with Docker Hub account linked, modify the version number in the following command, then run 'docker push zelon88/hrconvert2:latest'
|
||||
3. On a computer with GHCR account linked, modify the version number in the following command, then run 'docker push ghcr.io/zelon88/hrconvert2:v#.#.#'
|
||||
4. On a computer with GHCR account linked, modify the version number in the following command, then run 'docker push ghcr.io/zelon88/hrconvert2:latest'
|
||||
-----------------------------------------------------------------------------------
|
||||
|
||||
|
||||
-----NOTES-----
|
||||
|
||||
1. If you forget to tag your release, don't re-build it! Use the following procedure to add the missing tags.
|
||||
1a. Run 'docker images'
|
||||
1b. Copy the Image ID of the Docker Image you want to tag.
|
||||
1c. Add a new tag to the existing image by running 'docker tag ########### zelon88/hrconvert2:v#.#.#' where ##### is the Image ID and v#.#.# is the version being tagged.
|
||||
1d. To remove a tag, run 'docker rmi zelon88/hrconvert2:v#.#.#'
|
||||
2. Adding the 'latest' tag is helpful to users.
|
||||
3. Building the Docker Image from source will take at least 25 minutes on a high performance server.
|
||||
-----------------------------------------------------------------------------------
|
|
@ -1,6 +1,6 @@
|
|||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
COPYRIGHT INFORMATION ...
|
||||
HRConvert2, Copyright on 6/9/2024 by Justin Grimes, www.github.com/zelon88
|
||||
APPLICATION INFORMATION ...
|
||||
// / HRConvert2, Copyright on 1/3/2023 by Justin Grimes, www.github.com/zelon88
|
||||
|
||||
LICENSE INFORMATION ...
|
||||
This project is protected by the GNU GPLv3 Open-Source license.
|
||||
|
@ -9,8 +9,7 @@ https://www.gnu.org/licenses/gpl-3.0.html
|
|||
APPLICATION INFORMATION ...
|
||||
This application is designed to provide a web-interface for converting file formats on a server for users of any web browser without authentication.
|
||||
|
||||
FILE INFORMATION ...
|
||||
v3.3.7
|
||||
FILE INFORMATION
|
||||
This plain text file contains descriptions of all the native error messages contained in or produced by the HRConvert2 Diablo engine.
|
||||
These descriptions should give administrators a starting point for debugging problems with HRConvert2 installations.
|
||||
Each section in this file contains information about a different error message. The first one is an example to demonstrate the structure of this file.
|
||||
|
@ -21,8 +20,8 @@ This application requires at least a Raspberry Pi Model B+ or greater.
|
|||
This application will run on just about any x86 or x64 computer.
|
||||
|
||||
DEPENDENCY REQUIREMENTS ...
|
||||
This application requires Debian Linux (w/3rd Party audio license), Apache 2.4, PHP 8+, LibreOffice, Unoconv, ClamAV, Tesseract, Rar, Unrar, Unzip, 7zipper,
|
||||
Ffmpeg, PdfToText, Dia, PopplerUtils, MeshLab, Mkisofs & ImageMagick.
|
||||
This application requires Debian Linux (w/3rd Party audio license), Apache 2.4, PHP 7+, LibreOffice, Unoconv, ClamAV, Tesseract, Rar, Unrar, Unzip, 7zipper,
|
||||
Ffmpeg, PdfToText, Dia, PopplerUtils, MeshLab & ImageMagick.
|
||||
|
||||
ADDITIONAL INFORMATION
|
||||
HRConvert2 logs information about it's operational activity to the Logs subdirectory where HRConvert2 is installed by default.
|
||||
|
@ -49,23 +48,20 @@ If "Enhanced Logging Verbosity" is disabled in config.php; only warnings and err
|
|||
~~START OF EXAMPLE~~
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
ERROR MESSAGE
|
||||
The exact error response produced by the application.
|
||||
Text wrapped in angle brackets < > denote encoded information.
|
||||
<TIMESTAMP> will be replaced with an abbreviated date.
|
||||
<SESSION_IDENTIFIER> will be replaced with a short but unique number to identify related log events.
|
||||
The exact error response produced by the application.
|
||||
Text wrapped in angle brackets < > denote encoded information.
|
||||
<TIMESTAMP> will be replaced with an abbreviated date.
|
||||
<SESSION_IDENTIFIER> will be replaced with a short but unique number to identify related log events.
|
||||
<APPLICATION_NAME> will be replaced with whatever the --Application Name-- is set to in config.php.
|
||||
<FILE_PATH> will be replaced with an absolute file path.
|
||||
<FILE_NAME> will be replaced with a file name.
|
||||
<ADDITIONAL_DATA> will be replaced with the result of a system call or standard output from a called dependency.
|
||||
<FILE_TYPE> will be replaced with a human readable one word string describing the file such as 'Video' or 'Document'.
|
||||
<FILE_EXTENSION> will be replaced with a file extension.
|
||||
<FILE_TYPE> will be replaced with a human readable one word string describing the file such as 'Video' or 'Document'.
|
||||
|
||||
FILE
|
||||
The file path pointing to the file which contains this error message.
|
||||
File is relative to the root HRConvert2 installation directory.
|
||||
<SELECTED_LANGUAGE> will be replaced with the ISO 639-1 code that represents the language that was used during the event.
|
||||
<SELECTED_GUI> will be replaced with a text string that represents the GUI that was used during the event.
|
||||
<SELECTED_COLOR> will be replaced with a text string that represents the color that was used during the event.
|
||||
|
||||
FATAL
|
||||
Whether or not the occurance of this error will halt execution of the application.
|
||||
|
@ -97,13 +93,32 @@ LOGGED
|
|||
|
||||
ERROR DESCRIPTION
|
||||
The config.php file located in the installation directory which is required for HRConvert2 to run is missing or unreachable.
|
||||
This may be the result of incorrect file permission levels on the installation directory or the config.php file.
|
||||
This may be the result of incorrect file permission levels on the installation directory or config.php file.
|
||||
The www-data:www-data user:group needs to have read access to the config.php file.
|
||||
This may be the result of incorrect user or group associations for the www-data user or group.
|
||||
This could be because HRConvert2 is running on an unsupported operating system or PHP version.
|
||||
Because this error takes place before the logging environment is initialized; this error will not be logged.
|
||||
Because this error takes place before the time environment is initialized; this error will not contain a timestamp.
|
||||
Because this error takes place before the configuration file has been initialized; the Application Name configuration entry will not be used.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
ERROR MESSAGE
|
||||
ERROR!!! HRConvert2-1: Could not process the HRConvert2 Style Core file (Resources/styleCore.php)!
|
||||
|
||||
FILE
|
||||
/convertCore.php
|
||||
|
||||
FATAL
|
||||
YES
|
||||
|
||||
LOGGED
|
||||
NO
|
||||
|
||||
ERROR DESCRIPTION
|
||||
The styleCore.php file located in the Resources subdirectory of the installation directory which is required for the application to run is missing or unreachable.
|
||||
This may be the result of incorrect file permission levels on the installation directory or Resources/styleCore.php file.
|
||||
The www-data:www-data user:group needs to have read access to the Resources/styleCore.php file.
|
||||
This may be the result of incorrect user or group associations for the www-data user or group.
|
||||
This could be because the application is running on an unsupported operating system or PHP version.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
@ -128,7 +143,6 @@ ERROR DESCRIPTION
|
|||
The application is being fuzzed or scanned for vulnerabilities.
|
||||
This is the only core error message that is translated to the language used during the request.
|
||||
Because this error takes place before the logging environment is initialized; this error will not be logged.
|
||||
Because this error takes place before the time environment is initialized; this error will not contain a timestamp.
|
||||
Because this error takes place before the configuration file has been initialized; the Application Name configuration entry will not be used.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
@ -179,7 +193,7 @@ ERROR DESCRIPTION
|
|||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
ERROR MESSAGE
|
||||
ERROR!!! <TIMESTAMP>, HRConvert2-5: Could not verify installation!
|
||||
ERROR!!! <TIMESTAMP>, HRConvert-5: Could not verify installation!
|
||||
|
||||
FILE
|
||||
convertCore.php
|
||||
|
@ -319,7 +333,6 @@ ERROR DESCRIPTION
|
|||
The PHP configuration is setup using an invalid timezone option.
|
||||
The PHP installation on the server is damaged or corrupt.
|
||||
The application has become corrupt.
|
||||
The version information contained in the versionInfo.php file does not match the version information contained in the convertCore.php file.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
@ -390,7 +403,7 @@ ERROR DESCRIPTION
|
|||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
ERROR MESSAGE
|
||||
ERROR!!! <TIMESTAMP>, <APPLICATION_NAME>-15, <SESSION_IDENTIFIER>: Could not verify color scheme! Color set to <SELECTED_COLOR>!
|
||||
ERROR!!! <TIMESTAMP>, <APPLICATION_NAME>-15, <SESSION_IDENTIFIER>: Could not verify color scheme!
|
||||
|
||||
FILE
|
||||
convertCore.php
|
||||
|
@ -404,13 +417,13 @@ LOGGED
|
|||
ERROR DESCRIPTION
|
||||
The --Button Colors-- section of the config.php file contains a value that is not valid.
|
||||
The --Button Colors-- section of the config.php file contains a color that is not supported.
|
||||
The styleCore.php file has become corrupt.
|
||||
The Resources/styleCore.php file has become corrupt.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
ERROR MESSAGE
|
||||
ERROR!!! <TIMESTAMP>, <APPLICATION_NAME>-16, <SESSION_IDENTIFIER>: Could not verify language! Language set to <SELECTED_LANGUAGE>!
|
||||
ERROR!!! <TIMESTAMP>, <APPLICATION_NAME>-16, <SESSION_IDENTIFIER>: Could not verify language!
|
||||
|
||||
FILE
|
||||
convertCore.php
|
||||
|
@ -424,7 +437,6 @@ LOGGED
|
|||
ERROR DESCRIPTION
|
||||
The path to the Languages subdirectory of the installation directory does not exist or cannot be accessed.
|
||||
The requested Language Pack has become corrupt.
|
||||
The requested Language Pack is missing one or more of the following files; languageStrings.php.
|
||||
The requested Language Pack is incomplete, malformed, or missing critical components.
|
||||
This may be the result of incorrect file permission levels on the Languages subdirectory.
|
||||
This may be the result of incorrect user or group associations for the www-data user or group.
|
||||
|
@ -609,28 +621,6 @@ ERROR DESCRIPTION
|
|||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
ERROR MESSAGE
|
||||
ERROR!!! <TIMESTAMP>, <APPLICATION_NAME>-24, <SESSION_IDENTIFIER>: Delete Failed!
|
||||
|
||||
FILE
|
||||
convertCore.php
|
||||
|
||||
FATAL
|
||||
YES
|
||||
|
||||
LOGGED
|
||||
YES
|
||||
|
||||
ERROR DESCRIPTION
|
||||
The path to the Data directory specified in the --Data Storage Directory-- section of the config.php file does not exist or cannot be accessed.
|
||||
This may be the result of incorrect file permission levels on the directory where Data is stored.
|
||||
This may be the result of incorrect user or group associations for the www-data user or group.
|
||||
The www-data:www-data user:group needs to have read & write access to the Data directory.
|
||||
The request contained character types or encoded data that are not supported.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
ERROR MESSAGE
|
||||
ERROR!!! <TIMESTAMP>, <APPLICATION_NAME>-500, <SESSION_IDENTIFIER>: There were potentially infected files detected at <FILE_PATH>!
|
||||
|
@ -838,26 +828,6 @@ ERROR DESCRIPTION
|
|||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
ERROR MESSAGE
|
||||
ERROR!!! <TIMESTAMP>, <APPLICATION_NAME>-3004, <SESSION_IDENTIFIER>: Unsupported file format!
|
||||
|
||||
FILE
|
||||
convertCore.php
|
||||
|
||||
FATAL
|
||||
NO
|
||||
|
||||
LOGGED
|
||||
YES
|
||||
|
||||
ERROR DESCRIPTION
|
||||
The user is attempting to download a file format that is explicitly disallowed due to the threat it poses to the server.
|
||||
This error is non-fatal because it contained within a loop that still has to continue processing the rest of the files uploaded by the user.
|
||||
The file that causes this error will be skipped.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
ERROR MESSAGE
|
||||
ERROR!!! <TIMESTAMP>, <APPLICATION_NAME>-4000, <SESSION_IDENTIFIER>: Could not sanitize the input file!
|
||||
|
@ -1196,7 +1166,6 @@ LOGGED
|
|||
ERROR DESCRIPTION
|
||||
The user is attempting to upload a file format that is explicitly disallowed due to the threat it poses to the server.
|
||||
This error is non-fatal because it contained within a loop that still has to continue processing the rest of the files uploaded by the user.
|
||||
The file that causes this error will be skipped.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
@ -1447,6 +1416,37 @@ ERROR DESCRIPTION
|
|||
One of the $_POST or $_GET variables submitted was empty after sanitization.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
ERROR MESSAGE
|
||||
ERROR!!! <TIMESTAMP>, <APPLICATION_NAME>-21000, <SESSION_IDENTIFIER>: The stream converter timed out!
|
||||
|
||||
FILE
|
||||
convertCore.php
|
||||
|
||||
FATAL
|
||||
NO
|
||||
|
||||
LOGGED
|
||||
YES
|
||||
|
||||
ERROR DESCRIPTION
|
||||
Ffmpeg is not responding.
|
||||
The conversion operation was attempted 5 times but no output file could be created.
|
||||
The user submitted a request to convert a file that does not exist.
|
||||
The user submitted a request that was incorrect, malformed, or corrupt.
|
||||
The user has requested to convert a file that was deleted for exceededing the --File Deletion Age Theshold-- specified in config.php.
|
||||
The path to the Installation directory specified in the --Installation Directory-- section of the config.php file does not exist or cannot be accessed.
|
||||
The path to the Data directory specified in the --Data Storage Directory-- section of the config.php file does not exist or cannot be accessed.
|
||||
The www-data:www-data user:group needs to have read & write access to the Installation directories.
|
||||
The www-data:www-data user:group needs to have read & write access to the Data directory.
|
||||
This may be the result of incorrect file permission levels on the directory where the application is installed.
|
||||
This may be the result of incorrect file permission levels on the directory where Data is stored.
|
||||
This may be the result of incorrect user or group associations for the www-data user or group.
|
||||
The device where data is stored has an insufficient amount of storage space available.
|
||||
The request contained character types or encoded data that are not supported.
|
||||
One of the $_POST or $_GET variables submitted was empty after sanitization.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
ERROR MESSAGE
|
||||
|
@ -1512,166 +1512,6 @@ ERROR DESCRIPTION
|
|||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
ERROR MESSAGE
|
||||
ERROR!!! <TIMESTAMP>, <APPLICATION_NAME>-13001, <SESSION_IDENTIFIER>: The archiver timed out!
|
||||
|
||||
FILE
|
||||
convertCore.php
|
||||
|
||||
FATAL
|
||||
NO
|
||||
|
||||
LOGGED
|
||||
YES
|
||||
|
||||
ERROR DESCRIPTION
|
||||
Ffmpeg is not responding.
|
||||
The conversion operation was attempted 5 times but no output file could be created.
|
||||
The user submitted a request to convert a file that does not exist.
|
||||
The user submitted a request that was incorrect, malformed, or corrupt.
|
||||
The user has requested to convert a file that was deleted for exceededing the --File Deletion Age Theshold-- specified in config.php.
|
||||
The path to the Installation directory specified in the --Installation Directory-- section of the config.php file does not exist or cannot be accessed.
|
||||
The path to the Data directory specified in the --Data Storage Directory-- section of the config.php file does not exist or cannot be accessed.
|
||||
The www-data:www-data user:group needs to have read & write access to the Installation directories.
|
||||
The www-data:www-data user:group needs to have read & write access to the Data directory.
|
||||
This may be the result of incorrect file permission levels on the directory where the application is installed.
|
||||
This may be the result of incorrect file permission levels on the directory where Data is stored.
|
||||
This may be the result of incorrect user or group associations for the www-data user or group.
|
||||
The device where data is stored has an insufficient amount of storage space available.
|
||||
The request contained character types or encoded data that are not supported.
|
||||
One of the $_POST or $_GET variables submitted was empty after sanitization.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
ERROR MESSAGE
|
||||
ERROR!!! <TIMESTAMP>, <APPLICATION_NAME>-13002, <SESSION_IDENTIFIER>: The archiver timed out!
|
||||
|
||||
FILE
|
||||
convertCore.php
|
||||
|
||||
FATAL
|
||||
NO
|
||||
|
||||
LOGGED
|
||||
YES
|
||||
|
||||
ERROR DESCRIPTION
|
||||
Ffmpeg is not responding.
|
||||
The conversion operation was attempted 5 times but no output file could be created.
|
||||
The user submitted a request to convert a file that does not exist.
|
||||
The user submitted a request that was incorrect, malformed, or corrupt.
|
||||
The user has requested to convert a file that was deleted for exceededing the --File Deletion Age Theshold-- specified in config.php.
|
||||
The path to the Installation directory specified in the --Installation Directory-- section of the config.php file does not exist or cannot be accessed.
|
||||
The path to the Data directory specified in the --Data Storage Directory-- section of the config.php file does not exist or cannot be accessed.
|
||||
The www-data:www-data user:group needs to have read & write access to the Installation directories.
|
||||
The www-data:www-data user:group needs to have read & write access to the Data directory.
|
||||
This may be the result of incorrect file permission levels on the directory where the application is installed.
|
||||
This may be the result of incorrect file permission levels on the directory where Data is stored.
|
||||
This may be the result of incorrect user or group associations for the www-data user or group.
|
||||
The device where data is stored has an insufficient amount of storage space available.
|
||||
The request contained character types or encoded data that are not supported.
|
||||
One of the $_POST or $_GET variables submitted was empty after sanitization.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
ERROR MESSAGE
|
||||
ERROR!!! <TIMESTAMP>, <APPLICATION_NAME>-13003, <SESSION_IDENTIFIER>: The archiver timed out!
|
||||
|
||||
FILE
|
||||
convertCore.php
|
||||
|
||||
FATAL
|
||||
NO
|
||||
|
||||
LOGGED
|
||||
YES
|
||||
|
||||
ERROR DESCRIPTION
|
||||
Ffmpeg is not responding.
|
||||
The conversion operation was attempted 5 times but no output file could be created.
|
||||
The user submitted a request to convert a file that does not exist.
|
||||
The user submitted a request that was incorrect, malformed, or corrupt.
|
||||
The user has requested to convert a file that was deleted for exceededing the --File Deletion Age Theshold-- specified in config.php.
|
||||
The path to the Installation directory specified in the --Installation Directory-- section of the config.php file does not exist or cannot be accessed.
|
||||
The path to the Data directory specified in the --Data Storage Directory-- section of the config.php file does not exist or cannot be accessed.
|
||||
The www-data:www-data user:group needs to have read & write access to the Installation directories.
|
||||
The www-data:www-data user:group needs to have read & write access to the Data directory.
|
||||
This may be the result of incorrect file permission levels on the directory where the application is installed.
|
||||
This may be the result of incorrect file permission levels on the directory where Data is stored.
|
||||
This may be the result of incorrect user or group associations for the www-data user or group.
|
||||
The device where data is stored has an insufficient amount of storage space available.
|
||||
The request contained character types or encoded data that are not supported.
|
||||
One of the $_POST or $_GET variables submitted was empty after sanitization.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
ERROR MESSAGE
|
||||
ERROR!!! <TIMESTAMP>, <APPLICATION_NAME>-13004, <SESSION_IDENTIFIER>: The archiver timed out!
|
||||
|
||||
FILE
|
||||
convertCore.php
|
||||
|
||||
FATAL
|
||||
NO
|
||||
|
||||
LOGGED
|
||||
YES
|
||||
|
||||
ERROR DESCRIPTION
|
||||
Ffmpeg is not responding.
|
||||
The conversion operation was attempted 5 times but no output file could be created.
|
||||
The user submitted a request to convert a file that does not exist.
|
||||
The user submitted a request that was incorrect, malformed, or corrupt.
|
||||
The user has requested to convert a file that was deleted for exceededing the --File Deletion Age Theshold-- specified in config.php.
|
||||
The path to the Installation directory specified in the --Installation Directory-- section of the config.php file does not exist or cannot be accessed.
|
||||
The path to the Data directory specified in the --Data Storage Directory-- section of the config.php file does not exist or cannot be accessed.
|
||||
The www-data:www-data user:group needs to have read & write access to the Installation directories.
|
||||
The www-data:www-data user:group needs to have read & write access to the Data directory.
|
||||
This may be the result of incorrect file permission levels on the directory where the application is installed.
|
||||
This may be the result of incorrect file permission levels on the directory where Data is stored.
|
||||
This may be the result of incorrect user or group associations for the www-data user or group.
|
||||
The device where data is stored has an insufficient amount of storage space available.
|
||||
The request contained character types or encoded data that are not supported.
|
||||
One of the $_POST or $_GET variables submitted was empty after sanitization.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
ERROR MESSAGE
|
||||
ERROR!!! <TIMESTAMP>, <APPLICATION_NAME>-13005, <SESSION_IDENTIFIER>: The archiver timed out!
|
||||
|
||||
FILE
|
||||
convertCore.php
|
||||
|
||||
FATAL
|
||||
NO
|
||||
|
||||
LOGGED
|
||||
YES
|
||||
|
||||
ERROR DESCRIPTION
|
||||
Ffmpeg is not responding.
|
||||
The conversion operation was attempted 5 times but no output file could be created.
|
||||
The user submitted a request to convert a file that does not exist.
|
||||
The user submitted a request that was incorrect, malformed, or corrupt.
|
||||
The user has requested to convert a file that was deleted for exceededing the --File Deletion Age Theshold-- specified in config.php.
|
||||
The path to the Installation directory specified in the --Installation Directory-- section of the config.php file does not exist or cannot be accessed.
|
||||
The path to the Data directory specified in the --Data Storage Directory-- section of the config.php file does not exist or cannot be accessed.
|
||||
The www-data:www-data user:group needs to have read & write access to the Installation directories.
|
||||
The www-data:www-data user:group needs to have read & write access to the Data directory.
|
||||
This may be the result of incorrect file permission levels on the directory where the application is installed.
|
||||
This may be the result of incorrect file permission levels on the directory where Data is stored.
|
||||
This may be the result of incorrect user or group associations for the www-data user or group.
|
||||
The device where data is stored has an insufficient amount of storage space available.
|
||||
The request contained character types or encoded data that are not supported.
|
||||
One of the $_POST or $_GET variables submitted was empty after sanitization.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
ERROR MESSAGE
|
||||
ERROR!!! <TIMESTAMP>, <APPLICATION_NAME>-14000, <SESSION_IDENTIFIER>: The file <FILE_NAME> failed first stage validation!
|
||||
|
@ -2061,7 +1901,7 @@ ERROR DESCRIPTION
|
|||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
ERROR MESSAGE
|
||||
ERROR!!! <TIMESTAMP>, <APPLICATION_NAME>-16001, <SESSION_IDENTIFIER>: Could not create a file at <FILE_PATH>!
|
||||
ERROR!!! <TIMESTAMP>, <APPLICATION_NAME>-16001, <SESSION_IDENTIFIER>: Could create a file at <FILE_PATH>!
|
||||
|
||||
FILE
|
||||
convertCore.php
|
||||
|
@ -2105,7 +1945,7 @@ ERROR DESCRIPTION
|
|||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
ERROR MESSAGE
|
||||
ERROR!!! <TIMESTAMP>, <APPLICATION_NAME>-16003, <SESSION_IDENTIFIER>: Could not create a file at <FILE_PATH>!
|
||||
ERROR!!! <TIMESTAMP>, <APPLICATION_NAME>-16003, <SESSION_IDENTIFIER>: Could create a file at <FILE_PATH>!
|
||||
|
||||
FILE
|
||||
convertCore.php
|
||||
|
@ -2182,7 +2022,7 @@ ERROR DESCRIPTION
|
|||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
ERROR MESSAGE
|
||||
ERROR!!! <TIMESTAMP>, <APPLICATION_NAME>-18000, <SESSION_IDENTIFIER>: Could not verify ScanCore Virus Scanner!
|
||||
ERROR!!! <TIMESTAMP>, <APPLICATION_NAME>-18000,, <SESSION_IDENTIFIER>: Could not verify ScanCore Virus Scanner!
|
||||
|
||||
FILE
|
||||
convertCore.php
|
||||
|
@ -2206,7 +2046,7 @@ ERROR DESCRIPTION
|
|||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
ERROR MESSAGE
|
||||
ERROR!!! <TIMESTAMP>, <APPLICATION_NAME>-19000, <SESSION_IDENTIFIER>: Could not sanitize the input file!
|
||||
ERROR!!! <TIMESTAMP>, <APPLICATION_NAME>-19000,, <SESSION_IDENTIFIER>: Could not sanitize the input file!
|
||||
|
||||
FILE
|
||||
convertCore.php
|
||||
|
@ -2231,7 +2071,7 @@ ERROR DESCRIPTION
|
|||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
ERROR MESSAGE
|
||||
ERROR!!! <TIMESTAMP>, <APPLICATION_NAME>-19001, <SESSION_IDENTIFIER>: Could not verify the input file!
|
||||
ERROR!!! <TIMESTAMP>, <APPLICATION_NAME>-19001,, <SESSION_IDENTIFIER>: Could not verify the input file!
|
||||
|
||||
FILE
|
||||
convertCore.php
|
||||
|
@ -2300,187 +2140,4 @@ ERROR DESCRIPTION
|
|||
This may be the result of incorrect file permission levels on the directory where the application is installed.
|
||||
This may be the result of incorrect user or group associations for the www-data user or group.
|
||||
The device where data is stored has an insufficient amount of storage space available.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
ERROR MESSAGE
|
||||
ERROR!!! <TIMESTAMP>, <APPLICATION_NAME>-21000, <SESSION_IDENTIFIER>: The stream converter timed out!
|
||||
|
||||
FILE
|
||||
convertCore.php
|
||||
|
||||
FATAL
|
||||
NO
|
||||
|
||||
LOGGED
|
||||
YES
|
||||
|
||||
ERROR DESCRIPTION
|
||||
Ffmpeg is not responding.
|
||||
The conversion operation was attempted 5 times but no output file could be created.
|
||||
The user submitted a request to convert a file that does not exist.
|
||||
The user submitted a request that was incorrect, malformed, or corrupt.
|
||||
The user has requested to convert a file that was deleted for exceededing the --File Deletion Age Theshold-- specified in config.php.
|
||||
The path to the Installation directory specified in the --Installation Directory-- section of the config.php file does not exist or cannot be accessed.
|
||||
The path to the Data directory specified in the --Data Storage Directory-- section of the config.php file does not exist or cannot be accessed.
|
||||
The www-data:www-data user:group needs to have read & write access to the Installation directories.
|
||||
The www-data:www-data user:group needs to have read & write access to the Data directory.
|
||||
This may be the result of incorrect file permission levels on the directory where the application is installed.
|
||||
This may be the result of incorrect file permission levels on the directory where Data is stored.
|
||||
This may be the result of incorrect user or group associations for the www-data user or group.
|
||||
The device where data is stored has an insufficient amount of storage space available.
|
||||
The request contained character types or encoded data that are not supported.
|
||||
One of the $_POST or $_GET variables submitted was empty after sanitization.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
ERROR MESSAGE
|
||||
ERROR!!! <TIMESTAMP>, <APPLICATION_NAME>-22000, <SESSION_IDENTIFIER>: The subtitle converter timed out!
|
||||
|
||||
FILE
|
||||
convertCore.php
|
||||
|
||||
FATAL
|
||||
NO
|
||||
|
||||
LOGGED
|
||||
YES
|
||||
|
||||
ERROR DESCRIPTION
|
||||
Ffmpeg is not responding.
|
||||
The conversion operation was attempted 5 times but no output file could be created.
|
||||
The user submitted a request to convert a file that does not exist.
|
||||
The user submitted a request that was incorrect, malformed, or corrupt.
|
||||
The user has requested to convert a file that was deleted for exceededing the --File Deletion Age Theshold-- specified in config.php.
|
||||
The path to the Installation directory specified in the --Installation Directory-- section of the config.php file does not exist or cannot be accessed.
|
||||
The path to the Data directory specified in the --Data Storage Directory-- section of the config.php file does not exist or cannot be accessed.
|
||||
The www-data:www-data user:group needs to have read & write access to the Installation directories.
|
||||
The www-data:www-data user:group needs to have read & write access to the Data directory.
|
||||
This may be the result of incorrect file permission levels on the directory where the application is installed.
|
||||
This may be the result of incorrect file permission levels on the directory where Data is stored.
|
||||
This may be the result of incorrect user or group associations for the www-data user or group.
|
||||
The device where data is stored has an insufficient amount of storage space available.
|
||||
The request contained character types or encoded data that are not supported.
|
||||
One of the $_POST or $_GET variables submitted was empty after sanitization.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
ERROR MESSAGE
|
||||
ERROR!!! <TIMESTAMP>, <APPLICATION_NAME>-23000, <SESSION_IDENTIFIER>: Could not sanitize the input file!
|
||||
|
||||
FILE
|
||||
convertCore.php
|
||||
|
||||
FATAL
|
||||
NO
|
||||
|
||||
LOGGED
|
||||
YES
|
||||
|
||||
ERROR DESCRIPTION
|
||||
The user submitted an invalid or dangerous file extension.
|
||||
The user submitted a request for a file they should not have access to.
|
||||
The user submitted a request that was incorrect, malformed, or corrupt.
|
||||
The user is trying to escape their designated data location.
|
||||
A 3rd party application is imporperly attempting to submit data to the API.
|
||||
The application is being fuzzed or scanned for vulnerabilities.
|
||||
One of the $_POST or $_GET variables submitted was empty after sanitization.
|
||||
This error is not fatal but the file that causes it will be skipped.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
ERROR MESSAGE
|
||||
ERROR!!! <TIMESTAMP>, <APPLICATION_NAME>-23001, <SESSION_IDENTIFIER>: Unsupported file format, <FILE_EXTENSION>!
|
||||
|
||||
FILE
|
||||
convertCore.php
|
||||
|
||||
FATAL
|
||||
NO
|
||||
|
||||
LOGGED
|
||||
YES
|
||||
|
||||
ERROR DESCRIPTION
|
||||
The path to the Data directory specified in the --Data Storage Directory-- section of the config.php file does not exist or cannot be accessed.
|
||||
The file or folder located at <FILE_PATH> does not exist or cannot be accessed.
|
||||
The www-data:www-data user:group needs to have read & write access to the specified file or directory.
|
||||
This may be the result of incorrect file permission levels on the directory where the specified file or directory is stored.
|
||||
This may be the result of incorrect user or group associations for the www-data user or group.
|
||||
The device where data is stored has an insufficient amount of storage space available.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
ERROR MESSAGE
|
||||
ERROR!!! <TIMESTAMP>, <APPLICATION_NAME>-23002, <SESSION_IDENTIFIER>: Could not delete file <FILE_NAME>!
|
||||
|
||||
FILE
|
||||
convertCore.php
|
||||
|
||||
FATAL
|
||||
NO
|
||||
|
||||
LOGGED
|
||||
YES
|
||||
|
||||
ERROR DESCRIPTION
|
||||
The path to the Data directory specified in the --Data Storage Directory-- section of the config.php file does not exist or cannot be accessed.
|
||||
The file or folder located at <FILE_PATH> does not exist or cannot be accessed.
|
||||
The www-data:www-data user:group needs to have read & write access to the specified file or directory.
|
||||
This may be the result of incorrect file permission levels on the directory where the specified file or directory is stored.
|
||||
This may be the result of incorrect user or group associations for the www-data user or group.
|
||||
The device where data is stored has an insufficient amount of storage space available.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
ERROR MESSAGE
|
||||
ERROR!!! HRConvert2-24000: Could not process the HRConvert2 Version Information file (versionInfo.php)!
|
||||
|
||||
FILE
|
||||
/convertCore.php
|
||||
|
||||
FATAL
|
||||
YES
|
||||
|
||||
LOGGED
|
||||
NO
|
||||
|
||||
ERROR DESCRIPTION
|
||||
The versionInfo.php file located in the installation directory which is required for the application to run is missing or unreachable.
|
||||
This may be the result of incorrect file permission levels on the installation directory or the versionInfo.php file.
|
||||
The www-data:www-data user:group needs to have read access to the versionInfo.php file.
|
||||
This may be the result of incorrect user or group associations for the www-data user or group.
|
||||
This could be because the application is running on an unsupported operating system or PHP version.
|
||||
Because this error takes place before the logging environment is initialized; this error will not be logged.
|
||||
Because this error takes place before the time environment is initialized; this error will not contain a timestamp.
|
||||
Because this error takes place before the configuration file has been initialized; the Application Name configuration entry will not be used.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
|
||||
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
ERROR MESSAGE
|
||||
ERROR!!! <TIMESTAMP>, <APPLICATION_NAME>-25, <SESSION_IDENTIFIER>: Could not verify GUI! GUI set to <SELECTED_GUI>!
|
||||
|
||||
FILE
|
||||
convertCore.php
|
||||
|
||||
FATAL
|
||||
YES
|
||||
|
||||
LOGGED
|
||||
YES
|
||||
|
||||
ERROR DESCRIPTION
|
||||
The path to the UI subdirectory of the installation directory does not exist or cannot be accessed.
|
||||
The requested GUI has become corrupt.
|
||||
The requested GUI is missing one or more of the following files; header.php, footer.php, convertGui1.php, convertGui2.php.
|
||||
The requested GUI is incomplete, malformed, or missing critical components.
|
||||
This may be the result of incorrect file permission levels on the UI subdirectory.
|
||||
This may be the result of incorrect user or group associations for the www-data user or group.
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
||||
----------------------------------------------------------------------------------------------------------------------------------------------------------------
|
|
@ -1,6 +1,6 @@
|
|||
-----------------------------------------------------------------------------------
|
||||
COPYRIGHT INFORMATION ...
|
||||
HRConvert2, Copyright on 2/21/2023 by Justin Grimes, www.github.com/zelon88
|
||||
APPLICATION INFORMATION ...
|
||||
HRConvert2, Copyright on 1/3/2023 by Justin Grimes, www.github.com/zelon88
|
||||
|
||||
LICENSE INFORMATION ...
|
||||
This project is protected by the GNU GPLv3 Open-Source license.
|
||||
|
@ -10,8 +10,7 @@ APPLICATION INFORMATION ...
|
|||
This application is designed to provide a web-interface for converting file formats
|
||||
on a server for users of any web browser without authentication.
|
||||
|
||||
FILE INFORMATION ...
|
||||
v3.1.9.1.
|
||||
FILE INFORMATION
|
||||
This file contains graphic design credits to those who supplied artwork to the project.
|
||||
|
||||
HARDWARE REQUIREMENTS ...
|
||||
|
@ -20,17 +19,18 @@ This application will run on just about any x86 or x64 computer.
|
|||
|
||||
DEPENDENCY REQUIREMENTS ...
|
||||
This application requires Debian Linux (w/3rd Party audio license),
|
||||
Apache 2.4, PHP 8+, LibreOffice, Unoconv, ClamAV, Tesseract, Rar, Unrar, Unzip,
|
||||
7zipper, FFMPEG, PdfToText, Dia, PopplerUtils, MeshLab, Mkisofs & ImageMagick.
|
||||
Apache 2.4, PHP 7+, LibreOffice, Unoconv, ClamAV, Tesseract, Rar, Unrar, Unzip,
|
||||
7zipper, FFMPEG, PdfToText, Dia, PopplerUtils, MeshLab & ImageMagick.
|
||||
|
||||
<3 Open-Source
|
||||
-----------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
Special thanks to.....
|
||||
|
||||
|
||||
|
||||
|
||||
IconArchive.com
|
||||
|
||||
and.....
|
||||
|
@ -39,17 +39,6 @@ pcunleashed.com
|
|||
|
||||
and.....
|
||||
|
||||
freeicons.com
|
||||
|
||||
and.....
|
||||
|
||||
Andy Gongea
|
||||
Koloria Icon Pack - Delete & Subtitle Icons
|
||||
http://graphicrating.com
|
||||
https://www.iconarchive.com/show/koloria-icons-by-graphicrating.2.html
|
||||
|
||||
and.....
|
||||
|
||||
Oxygen Icons
|
||||
http://www.oxygen-icons.org/
|
||||
|
||||
|
@ -127,11 +116,4 @@ and.....
|
|||
Yusuke Kamiyamane
|
||||
http://p.yusukekamiyamane.com/
|
||||
https://iconarchive.com/show/fugue-icons-by-yusuke-kamiyamane.html
|
||||
https://iconarchive.com/artist/yusuke-kamiyamane.html
|
||||
|
||||
|
||||
and.....
|
||||
|
||||
Pexwlpy
|
||||
https://freeicons.io/profile/433683
|
||||
https://freeicons.io/big-data-hosting-icon-set-33519
|
||||
https://iconarchive.com/artist/yusuke-kamiyamane.html
|
|
@ -1,6 +1,6 @@
|
|||
-----------------------------------------------------------------------------------
|
||||
COPYRIGHT INFORMATION ...
|
||||
HRConvert2, Copyright on 6/9/2024 by Justin Grimes, www.github.com/zelon88
|
||||
APPLICATION INFORMATION ...
|
||||
HRConvert2, Copyright on 1/3/2023 by Justin Grimes, www.github.com/zelon88
|
||||
|
||||
LICENSE INFORMATION ...
|
||||
This project is protected by the GNU GPLv3 Open-Source license.
|
||||
|
@ -10,8 +10,7 @@ APPLICATION INFORMATION ...
|
|||
This application is designed to provide a web-interface for converting file formats
|
||||
on a server for users of any web browser without authentication.
|
||||
|
||||
FILE INFORMATION ...
|
||||
v3.3.7.
|
||||
FILE INFORMATION
|
||||
This file contains a walkthrough guide for installing HRConvert2.
|
||||
|
||||
HARDWARE REQUIREMENTS ...
|
||||
|
@ -20,179 +19,145 @@ This application will run on just about any x86 or x64 computer.
|
|||
|
||||
DEPENDENCY REQUIREMENTS ...
|
||||
This application requires Debian Linux (w/3rd Party audio license),
|
||||
Apache 2.4, PHP 8+, LibreOffice, Unoconv, ClamAV, Tesseract, Rar, Unrar, Unzip,
|
||||
7zipper, FFMPEG, PdfToText, Dia, PopplerUtils, MeshLab, Mkisofs & ImageMagick.
|
||||
Apache 2.4, PHP 7+, LibreOffice, Unoconv, ClamAV, Tesseract, Rar, Unrar, Unzip,
|
||||
7zipper, FFMPEG, PdfToText, Dia, PopplerUtils, MeshLab & ImageMagick.
|
||||
|
||||
<3 Open-Source
|
||||
-----------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
-----PREFACE-----
|
||||
For this guide, it is assumed that the user is installing HRConvert2 on a PC which meets the above conditions.
|
||||
This document contains instructions for installing HRConvert2 on a fresh deployment of Lubuntu 21.04 LTS with no dependencies.
|
||||
For this guide, it is assumed that the user is installing HRConvert2
|
||||
on a PC which meets the above conditions. This guide will walk
|
||||
a new user through the installation of HRConvert2 on a freshly installed
|
||||
version of Lubuntu 21.04 LTS with no pre-existing dependencies.
|
||||
|
||||
For a walkthrough of installing a Ubuntu distro, visit:
|
||||
https://www.ubuntu.com/download/desktop/install-ubuntu-desktop
|
||||
For a walkthrough of installing a Ubuntu distro, visit.....
|
||||
http://www.ubuntu.com/download/desktop/install-ubuntu-desktop
|
||||
|
||||
IMPORTANT NOTE: During this guide we will be setting-up a fully
|
||||
functional, yet somewhat customized, LAMP stack including
|
||||
linux, Apache2.4, and PHP8.0. If you DO NOT want to have
|
||||
a server stack installed on your local machine DO NOT install this software.
|
||||
This software was designed to be run on a dedicated server setup for NAS
|
||||
duties.
|
||||
|
||||
In the abscence of required dependencies, HRConvert2 will make every attempt
|
||||
to complete a user-suppied operation while logging errors every step of the way.
|
||||
Administrators are responsible for monitoring and maintaining the dependencies
|
||||
of their servers.
|
||||
-----------------------------------------------------------------------------------
|
||||
|
||||
-----STEP 0 - INSTALL WITH DOCKER-----
|
||||
The easiest way to install HRConvert2 is by using the Docker image created by Github user dwaaan.
|
||||
Thanks dwaaan!
|
||||
|
||||
-----STEP 0 - DOWNLOAD & CONFIGURE INSTALLATION FILES-----
|
||||
In this step we will obtain a copy of HRConvert2. There are several options available.
|
||||
Please take a moment to read through the documentation to familiarize yourself with the application.
|
||||
|
||||
Option 1. Download the Docker image.
|
||||
a. For more information visit 'https://hub.docker.com/r/zelon88/hrconvert2'
|
||||
b. The procedure contained in this document DOES NOT apply to this installation option.
|
||||
|
||||
Option 2. Download HRConvert2 directly from the official Github repository.
|
||||
a. For more information visit 'https://github.com/zelon88/HRConvert2'
|
||||
b. The procedure contained in this document ONLY applies to this installation option.
|
||||
|
||||
1. Grab a cup of coffee.
|
||||
2. Download the desired HRConvert2 version from the official Github repository.
|
||||
2a. Downloads available at 'https://github.com/zelon88/HRConvert2'
|
||||
3. Adjust the directory in the following command to reflect your username, then run 'mkdir /home/USERNAME/Desktop/Temp'
|
||||
4. Navigate to your 'Downloads' directory and locate the HRConvert2 archive.
|
||||
5. Adjust the directory in the following path to reflect your username, then extract the HRConvert2 archive to '/home/USERNAME/Desktop/Temp'
|
||||
6. Adjust the directory in the following command to reflect your username, then run 'sudo featherpad /home/USERNAME/Desktop/Temp/Resources/config.php'
|
||||
7. Carefully read and completely fill out the 'config.php' file, changing the values of each variable to reflect the desired environment.
|
||||
8. Select a path to use as the '$ConvertLoc' where HRConvert2 can store temporary files during conversions.
|
||||
8a. When selecting the '$ConvertLoc' choose a directory path that is not hosted with plenty of space.
|
||||
8b. The '$ConvertLoc' must be a freshly created directory that has never been used before.
|
||||
9. Adjust the directory in the following command to reflect the selected '$ConvertLoc' then run 'sudo mkdir /Path/To/ConvertLoc'
|
||||
10. Adjust the directory in the following command to reflect the selected '$ConvertLoc' then run 'sudo chmod -R 0755 /Path/To/ConvertLoc'
|
||||
11. Adjust the directory in the following command to reflect the selected '$ConvertLoc' then run 'sudo chown -R www-data:Www-data /Path/To/ConvertLoc'
|
||||
For more information visit...
|
||||
https://github.com/dwaaan/HRConvert2-Docker
|
||||
-----------------------------------------------------------------------------------
|
||||
|
||||
|
||||
-----STEP 1 - INSTALL APACHE 2.4-----
|
||||
In this step we will install the Apache web server application that will host HRConvert2.
|
||||
|
||||
1. Run 'sudo apt-get update'
|
||||
2. Run 'sudo apt-get install apache2'
|
||||
-sudo apt-get update
|
||||
-sudo apt-get install apache2
|
||||
-sudo apt-get install curl
|
||||
-----------------------------------------------------------------------------------
|
||||
|
||||
|
||||
-----STEP 2 - INSTALL & CONFIGURE FEATHERPAD, PHP & PLUGINS-----
|
||||
In this step we will install the Featherpad text editor to make configuring the server easier.
|
||||
Then we will install and configure PHP and required plugins.
|
||||
|
||||
1. Run 'sudo apt-get install featherpad'
|
||||
2. Run 'sudo apt-get install php libapache2-mod-php && sudo apt-get install php-all-dev'
|
||||
3. Run 'sudo apt-get install php8.0-zip && sudo apt-get install php8.0-gd'
|
||||
4. (Optional) To install the MySQL PHP plugin (to use with other applications) run 'sudo apt-get install php-mysql'
|
||||
5. Adjust the directory in the following command to reflect your version of PHP, then run 'sudo featherpad /etc/php/8.0/apache2/php.ini'
|
||||
6. Use Featherpad to search for the following lines in the 'php.ini' file and adjust the values to match the ones displayed below.
|
||||
max_execution_time = 90
|
||||
max_input_time = 90
|
||||
memory_limit = 512M
|
||||
;Use 256 - 384M for Raspberry Pis.
|
||||
display_errors = On
|
||||
;Leave display errors = Off if you're not debugging HRConvert2 youself.
|
||||
post_max_size = 3000M
|
||||
upload_max_filesize = 3000M
|
||||
max_file_uploads = 100
|
||||
zlib.output_compression = On
|
||||
7. Save the modified 'php.ini' file and close Featherpad.
|
||||
8. Run 'sudo service apache2 restart'
|
||||
-----STEP 2 - INSTALL FEATHERPAD, LIBREOFFICE, PHP & PLUGINS-----
|
||||
-sudo apt-get install featherpad && sudo apt-get install libreoffice-common && sudo apt-get install libreoffice-java-common && sudo apt-get install php libapache2-mod-php php-mysql && sudo apt-get install php-all-dev
|
||||
**YOU MAY NEED TO CHANGE THE PHP VERSIONS BELOW DEPENDING ON YOUR UBUNTU/PHP VERSION**
|
||||
-sudo apt-get install php8.0-zip && sudo apt-get install php8.0-gd && sudo apt-get install php-curl
|
||||
**EDIT THE "php.ini" FILE LOCATED IN "/etc/php/8.0/apache2/php.ini"**
|
||||
-sudo featherpad /etc/php/8.0/apache2/php.ini
|
||||
**SEARCH FOR AND MODIFY THE FOLLOWING VALUES CAREFULLY**
|
||||
max_execution_time = 90
|
||||
max_input_time = 90
|
||||
memory_limit = 512M
|
||||
;Use 256 - 384M for Raspberry Pis
|
||||
display_errors = On
|
||||
;Leave display errors = Off if you're not debugging HRCloud2 youself
|
||||
post_max_size = 3000M
|
||||
upload_max_filesize = 3000M
|
||||
max_file_uploads = 100
|
||||
zlib.output_compression = On
|
||||
**SAVE THE MODIFIED "php.ini" FILE AND EXIT FEATHERPAD**
|
||||
-sudo service apache2 restart
|
||||
-----------------------------------------------------------------------------------
|
||||
|
||||
|
||||
-----STEP 3 - INSTALL BASIC FEATURE DEPENDENCIES-----
|
||||
In this step we will install dependencies to enable most common file conversions.
|
||||
|
||||
1. Grab another cup of coffee.
|
||||
2. Run 'sudo apt-get install libreoffice-common && sudo apt-get install libreoffice-java-common && sudo apt-get install tar'
|
||||
3. Run 'sudo apt-get install clamav && sudo apt-get install unoconv && sudo apt-get install default-jre'
|
||||
4. Run 'sudo apt-get install rar && sudo apt-get install unrar && sudo apt-get install p7zip-rar'
|
||||
5. Run 'sudo apt-get install imagemagick && sudo apt-get install tesseract-ocr'
|
||||
6. Run 'sudo apt-get install meshlab && sudo apt-get install dia && sudo apt-get install pandoc && sudo apt-get install mkisofs'
|
||||
7. Run 'sudo apt-get install poppler-utils && sudo apt-get install nodejs && sudo apt-get install gnuplot'
|
||||
8. Run 'sudo featherpad /etc/ImageMagick-6/policy.xml'
|
||||
9. Search for the following line in the 'policy.xml' file and adjust the value to match the one displayed below.
|
||||
<policy domain="coder" rights="read|write" pattern="PDF" />
|
||||
10. Open a file explorer and navigate to '/etc/'
|
||||
11. If you DO NOT have a file named 'rc.local' located in the '/etc/' directory, or the 'rc.local' file is blank:
|
||||
11a. Extract the 'rc.local' file contained in the root of the HRConvert2 repository to your Desktop.
|
||||
11b. Adjust the directory in the following command to reflect your username, then run 'sudo cp /home/USERNAME/Desktop/rc.local /etc/rc.local'
|
||||
11c. Run 'sudo chmod +x /etc/rc.local'
|
||||
12. If you DO have a file named 'rc.local' located in the '/etc/' directory and the 'rc.local' file is NOT blank:
|
||||
12a. Run 'sudo featherpad /etc/rc.local'
|
||||
12b. Add the following line above the 'exit 0' line: '/usr/bin/soffice --headless --accept="socket,host=127.0.0.1,port=$soffice_port;urp;" --nofirststartwizard &'
|
||||
13. Run 'sudo systemctl enable rc-local.service'
|
||||
14. If you encounter errors while running the previous command:
|
||||
14a. Extract the 'rc-local.service' file contained in the root of the HRConvert2 repository to your Desktop.
|
||||
14b. Adjust the directory in the following command to reflect your username, then run 'sudo cp /home/USERNAME/Desktop/rc-local.service /etc/rc.local /etc/systemd/system/rc-local.service'
|
||||
14c. Run 'sudo chmod +x /etc/rc.local.service'
|
||||
14d. Run 'sudo systemctl enable rc-local.service'
|
||||
15. Completely reboot the computer.
|
||||
-sudo apt-get install clamav && sudo apt-get install unoconv && sudo apt-get install default-jre && sudo apt-get install rar && sudo apt-get install unrar && sudo apt-get install p7zip-full && sudo apt-get install imagemagick && sudo apt-get install ffmpeg && sudo apt-get install tesseract-ocr && sudo apt-get install meshlab && sudo apt-get install dia && sudo apt-get install pandoc && sudo apt-get install poppler-utils && sudo apt-get install nodejs && sudo apt-get install gnuplot && sudo apt install libnode-dev && sudo apt install node-gyp && sudo apt install npm
|
||||
-sudo chown -R www-data:www-data /var/www
|
||||
-sudo featherpad /etc/rc.local
|
||||
**ADD THE FOLLOWING LINE TO THE "rc.local" FILE **ABOVE** THE "exit 0" LINE**
|
||||
/usr/bin/soffice --headless --accept="socket,host=127.0.0.1,port=$soffice_port;urp;" --nofirststartwizard &
|
||||
**IF YOU DO NOT HAVE AN "rc.local" FILE, OR IF THE FILE IS BLANK THEN COPY AND PASTE THE INCLUDED ONE**
|
||||
-sudo chmod +x /etc/rc.local
|
||||
-sudo systemctl enable rc-local.service
|
||||
**IF YOU GET ERRORS WHEN ENABLING THE SERVICE**
|
||||
**COPY AND PASTE THE INCLUDED "rc-local.service" FILE TO "/etc/systemd/system/rc-local.service"**
|
||||
**-sudo chmod +x /etc/rc.local**
|
||||
**-sudo systemctl enable rc-local.service**
|
||||
**REBOOT THE SERVER**
|
||||
**IF DOCUMENT CONVERSIONS DONT WORK...**
|
||||
**-unoconv --listen**
|
||||
**OR -unoconv -l**
|
||||
**OR create a daemon to run unoconv --listen**
|
||||
**OR adjust the shebang at the top of /usr/bin/unoconv to #!/usr/bin/env python3
|
||||
-----------------------------------------------------------------------------------
|
||||
|
||||
-----STEP 4 - INSTALL HRConvert2-----
|
||||
**CREATE A DIRECTORY IN "/var/www/html" NAMED "HRProprietary"**
|
||||
**CREATE ANOTHER DIRECTORY IN "/var/www/html/HRProprietary" NAMED "HRConvert2"**
|
||||
**VISIT "http://github.com/zelon88/HRConvert2" AND DOWNLOAD THE LATEST HRConvert2 .zip FILE
|
||||
TO YOUR DOWNLOADS FOLDER**
|
||||
**EXTRACT HRConvert2.zip TO YOUR DOWNLOADS FOLDER**
|
||||
**COPY THE CONTENTS OF THE "HRConvert2-master" FOLDER TO "/var/www/html/HRProprietary/HRConvert2"*
|
||||
-sudo featherpad /var/www/html/HRProprietary/HRConvert2/config.php
|
||||
**CAREFULLY READ AND COMPLETELY FILL OUT THE CONFIG.PHP FILE!!!**
|
||||
**HRConvert2 REQUIRES A SAFE LOCATION TO CREATE USER CONVERT DIRECTORIES. TO FACILITATE
|
||||
THIS YOU MUST CREATE A !!!NEW!!! DIRECTORY AND ENTER IS AS THE "$ConvertLoc"**
|
||||
**ONCE YOU HAVE CREATED A CLOUD LOCATION "$ConvertLoc" CONTINUE**
|
||||
-sudo chmod -R 0755 /path/to/my/ConvertLoc
|
||||
-sudo chown -R www-data /path/to/my/ConvertLoc
|
||||
-sudo chgrp -R www-data /path/to/my/ConvertLoc
|
||||
**IF YOU DO NOT HAVE A VALID "$ConvertLoc" AND PROPER PERMISSIONS, HRConvert2 ...WILL...NOT...WORK!!!**
|
||||
**CAREFULLY READ AND COMPLETELY FILL OUT YOUR ADMIN USER AND LOGIN INFO FOR HRAI**
|
||||
-sudo chmod -R 0755 /var/www/html
|
||||
-sudo chown -R www-data /var/www/html
|
||||
-sudo chgrp -R www-data /var/www/html
|
||||
**OPTIONAL -sudo useradd -g www-data USERNAME #adds your user to www-data usergroup.**
|
||||
**MAKE SURE THAT ANY UPDATES YOU PERFORM TO HRConvert2 HAVE PROPER PERMISSIONS!!!**
|
||||
**SCRUTINIZE / DOUBLE-CHECK THE PERMISSIONS FOR ANY FILES ADDED TO /HRConvert2 AFTER
|
||||
INSTALLATION IS COMPLETE!!!**
|
||||
|
||||
-----STEP 4 - INSTALL ADVANCED FEATURE DEPENDENCIES-----
|
||||
In this step we will build dependencies from source to enable advanced file conversions.
|
||||
|
||||
1. Run 'cd /home/USERNAME/Desktop/Temp/Documentation/Build'
|
||||
2. Run './ffmpeg-build.sh' then follow the instructions to download & build FFMPEG from source.
|
||||
3. Run 'rm -r ffmpeg-build' to delete the FFMPEG build environment.
|
||||
4. Completely reboot the computer.
|
||||
IMPORTANT NOTE: If you need to correct permissions later, perform the following commands
|
||||
from above again...
|
||||
-sudo chmod -R 0755 /var/www/html
|
||||
-sudo chown -R www-data /var/www/html
|
||||
-sudo chgrp -R www-data /var/www/html
|
||||
-----------------------------------------------------------------------------------
|
||||
|
||||
|
||||
-----STEP 5 - INSTALL HRCONVERT2-----
|
||||
In this step we will install the HRConvert2 files configured earlier.
|
||||
|
||||
1. Run 'sudo mkdir /var/www/html/HRProprietary'
|
||||
2. Run 'sudo mkdir /var/www/html/HRProprietary/HRConvert2'
|
||||
3. Adjust the username in the following command to reflect your username, then run 'sudo cp -a /home/USERNAME/Desktop/Temp/. /var/www/html/HRProprietary/HRConvert2/'
|
||||
4. Run 'sudo chmod -R 0755 /var/www/html'
|
||||
5. Run 'sudo chown -R www-data:www-data /var/www/html'
|
||||
7. (Optional) Adjust the username in the following command to reflect your username, then run 'sudo useradd -g www-data USERNAME'
|
||||
8. To correct permissions later (after manual file or permission modifications):
|
||||
8a. Run 'sudo chmod -R 0755 /var/www/html'
|
||||
8b. Run 'sudo chown -R www-data:www-data /var/www/html'
|
||||
-----STEP 5 - VISIT YOUR CONVERTER!!!-----
|
||||
Go to "http://localhost/HRProprietary/HRConvert2/convertCore.php" to view your Converter! The computer you install HRConvert2 onto
|
||||
should be considered a staitionary server that you can safely point your "Static NAT" at and access from anywhere. To accomplish
|
||||
these things, follow the additional steps below.
|
||||
-----------------------------------------------------------------------------------
|
||||
|
||||
|
||||
-----STEP 6 - VISIT YOUR CONVERTER!!!-----
|
||||
In this step we visit the converter using a browser for the first time.
|
||||
|
||||
Go to 'http://YOUR-IP-OR-HOSTNAME/HRProprietary/HRConvert2/convertCore.php' to view your Converter!
|
||||
The computer you install HRConvert2 onto should be considered a staitionary server that you can safely direct traffic at.
|
||||
The server will only be available on LAN networks unless additional firewall, router, or ISP configuration is provided.
|
||||
-----STEP 6 - ADD FIREWALL EXCEPTIONS AND SETUP STATIC NAT ON YOUR ROUTER-----
|
||||
-According to the manual for the manufacturer of your broadband router, find the local IP address where you can make changes to it's configuration.
|
||||
-Try entering "192.168.1.1" into a browser.
|
||||
-If you are greeted with a login screen, check the bottom of your router or your system administrator for the required information.
|
||||
-If you are not greeted with any tangible login screen seek the owners manual for the specific make and manual for your router.
|
||||
-Once you have gained access to your router, seek the settings which control Firewall exceptions and Static NAT settings.
|
||||
-You should seek a way to enter the local IPv4 address of the machine running HRConvert2.
|
||||
-You should also seek a way to enter a "Static NAT" entry for the local IPv4 address of the machine running HRConvert2.
|
||||
-You should also forward port 80 to the internal IPv4 of the machine running HRConvert2.
|
||||
-To configure HTTPS encryption visit letsencrypt.com for additional instructions.
|
||||
-HRConvert2 will create and maintain complete segregation of user files during operation & will not impose restrictions on user uploads.
|
||||
-However PHP will restrict uploads, so verify that your php.ini file is set correctly.
|
||||
-You and your users should now be able to access your server via any standard web browser by entering the IPv4 from your ISP into the address bar.
|
||||
-Alternatively you can purchase a domain name & point the DNS A record to your IP address to obtain a domain name.
|
||||
-----------------------------------------------------------------------------------
|
||||
|
||||
|
||||
-----STEP 7 - CONFIGURE STATIC IP, PORT FORWARDING, & FIREWALL EXCEPTIONS ON YOUR ROUTER-----
|
||||
In this step we will configure a router to route traffic to the HRConvert2 server.
|
||||
|
||||
1. Maybe just one more cup of coffee.
|
||||
2. According to the manual for the manufacturer of your broadband router, find the local IP address where you can make changes to it's configuration.
|
||||
1a. Try entering '192.168.1.1' or '10.10.1.1' into a browser.
|
||||
1b. If you are greeted with a login screen, check the bottom of your router or ask your administrator for the required information.
|
||||
1c. If you are not greeted with any tangible login screen seek the owners manual for the specific make and manual for your router.
|
||||
3. Once you have gained access to your router, seek the settings which control Firewall Exceptions and Port Forwarding settings.
|
||||
2a. You should seek a way to enter the a Static IP address of the machine running HRConvert2.
|
||||
2b. You should also seek a way to forward ports 80 (unencrypted) or 443 (encrypted) to the machine running HRConvert2.
|
||||
2c. To configure HTTPS encryption please visit letsencrypt.com for additional instructions.
|
||||
4. You and your users should now be able to access your server via any standard web browser by entering the Static IP from your ISP into the address bar.
|
||||
5. (Optional) Purchase a domain name & point the DNS A record at your Static IP address to make accessing your server easier for users.
|
||||
6. Great work! Time for a celebratory cup of coffee!
|
||||
-----------------------------------------------------------------------------------
|
||||
If you have any problems with HRConvert2 please create an issue on http://github.com/zelon88/HRConvert2
|
||||
|
||||
|
||||
-----NOTES-----
|
||||
1. HRConvert2 will create and maintain complete separation of user files during operation and will not impose restrictions on user uploads.
|
||||
1a. However PHP will restrict uploads, so verify that your php.ini file is set correctly.
|
||||
2. Please respect the terms of the GPLv3 license.
|
||||
3. Please reciprocate any changes which improve HRConvert2 back to the community by submitting Pull Request on Github.
|
||||
4. It is not recommended to use HRConvert2 in a public-facing environment without HTTPS encryption.
|
||||
5. If you have any problems with HRConvert2 please create an issue at 'http://github.com/zelon88/HRConvert2'
|
||||
6. Don't forget to delete any temporary files or folders created during this installation process.
|
||||
8. HRConvert2 does not update or patch any dependencies automatically.
|
||||
8a. Administrators are responsible for monitoring and maintaining locally installed dependencies for updates.
|
||||
9. HRConvert2 is designed to be run on a dedicated server.
|
||||
10. HRConvert2 will only be available on LAN networks unless a Static IP and port forwarding are configured.
|
||||
11. Psst... Hey... You look like you could use a cup of coffee.....
|
||||
-----------------------------------------------------------------------------------
|
|
@ -1,5 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<html lang="en-US">
|
||||
<title>HRConvert2 | HRConvert2 Authentication</title>
|
||||
<body>
|
||||
<div id="outer" align="center"><h1>Configuring HRConvert2 ...</h1>
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<html lang="en-US">
|
||||
<title>HRConvert2 | HRConvert2 Authentication</title>
|
||||
<body>
|
||||
<div id="outer" align="center"><h1>Configuring HRConvert2 ...</h1>
|
||||
|
|
224
Languages/ar/convertGui1.php
Normal file
224
Languages/ar/convertGui1.php
Normal file
|
@ -0,0 +1,224 @@
|
|||
<?php
|
||||
if (!isset($ApplicationName)) $ApplicationName = 'HRConvert2';
|
||||
if (!isset($ApplicationTitle)) $ApplicationTitle = 'تحويل أي شيء!';
|
||||
if (!isset($CoreLoaded)) die('خطأ!!! '.$ApplicationName.'-2، لا يمكن لهذا الملف معالجة طلبك! يرجى إرسال ملفك إلى convertCore.php بدلاً من ذلك!');
|
||||
if (!isset($ShowFinePrint)) $ShowFinePrint = TRUE;
|
||||
?>
|
||||
<body>
|
||||
<?php
|
||||
if (!isset($_GET['noGui'])) { ?>
|
||||
<div id="header-text" style="max-width:1000px; margin-left:auto; margin-right:auto; text-align:center;">
|
||||
<h1><?php echo $ApplicationName; ?></h1>
|
||||
<h3>محول الملفات على الإنترنت ، النازع ، الضاغط</h3>
|
||||
<hr />
|
||||
</div>
|
||||
<div id="main" align="center">
|
||||
<div id="overview" style="max-width:1000px; text-align:right; margin:25px;">
|
||||
<p id="info" style="display:block;">يعتمد <?php echo $ApplicationName; ?> على تطبيق الويب مفتوح المصدر <a href='https://github.com/zelon88/HRConvert2'>HRConvert2</a> بواسطة <a href='https://github.com/zelon88'>Zelon88</a>. تم تصميمه لتحويل الملفات دون تتبع المستخدمين عبر الإنترنت أو التعدي على حقوق الملكية الفكرية الخاصة بك.</p>
|
||||
<button id="more-info-button" class="info-button" onclick="toggle_visibility('more-info'); toggle_visibility('more-info-button'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('less-info-button');" style="text-align:center; display:block; margin-left:auto; margin-right:auto;"><i>مزيد من المعلومات...</i></button>
|
||||
<button id="less-info-button" class="info-button" onclick="toggle_visibility('more-info'); toggle_visibility('more-info-button'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('less-info-button');" style="text-align:center; display:none; margin-left:auto; margin-right:auto;"><i>أقل معلومات...</i></button>
|
||||
<div id="more-info" style="display:none;">
|
||||
<hr />
|
||||
<p>يتم مسح جميع البيانات التي يوفرها المستخدم تلقائيًا ، لذلك لا داعي للقلق بشأن مصادرة معلوماتك الشخصية أو ممتلكاتك أثناء استخدام خدماتنا.</p>
|
||||
<p>يدعم <?php echo $ApplicationName; ?> حاليًا 77 تنسيقًا مختلفًا للملفات ، بما في ذلك المستندات وجداول البيانات والصور والوسائط والنماذج ثلاثية الأبعاد وملفات الرسم وملفات المتجهات والمحفوظات وصور القرص والمزيد.</p>
|
||||
<button id="supported-formats-show-button" class="info-button" onclick="toggle_visibility('supported-formats'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('supported-formats-hide-button');" style="text-align:center; display:none; margin-left:auto; margin-right:auto;"><i>عرض التنسيقات المدعومة...</i></button>
|
||||
<button id="supported-formats-hide-button" class="info-button" onclick="toggle_visibility('supported-formats'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('supported-formats-hide-button');" style="text-align:center; display:none; margin-left:auto; margin-right:auto;"><i>إخفاء التنسيقات المدعومة...</i></button>
|
||||
<br>
|
||||
<div id="supported-formats" class="supported-formats" style="margin-left:33%; display:none;">
|
||||
<h3>التنسيقات المدعومة</h3>
|
||||
<hr />
|
||||
<strong>تنسيقات الصوت</strong>
|
||||
<p><i>يدعم معدل بت محدد من خلال واجهة برمجة التطبيق.</i></p>
|
||||
<ol>
|
||||
<li>Mp2</li>
|
||||
<li>Mp3</li>
|
||||
<li>Avi</li>
|
||||
<li>Flac</li>
|
||||
<li>Ogg</li>
|
||||
<li>Wav</li>
|
||||
<li>Wma</li>
|
||||
<li>M4a</li>
|
||||
<li>M4p</li>
|
||||
</ol>
|
||||
<strong>تنسيقات الفيديو</strong>
|
||||
<ol>
|
||||
<li>3gp</li>
|
||||
<li>Mkv</li>
|
||||
<li>Avi</li>
|
||||
<li>Mp4</li>
|
||||
<li>Flv</li>
|
||||
<li>Mpeg</li>
|
||||
<li>Wmv</li>
|
||||
<li>Mov</li>
|
||||
<li>M4v</li>
|
||||
</ol>
|
||||
<strong>تنسيقات الدفق</strong>
|
||||
<ol>
|
||||
<li>m3u8</li>
|
||||
</ol>
|
||||
<strong>تنسيقات المستندات</strong>
|
||||
<ol>
|
||||
<li>Doc</li>
|
||||
<li>Docx</li>
|
||||
<li>Txt</li>
|
||||
<li>Rtf</li>
|
||||
<li>Odt</li>
|
||||
<li>Pdf</li>
|
||||
</ol>
|
||||
<strong>تنسيقات جداول البيانات</strong>
|
||||
<ol>
|
||||
<li>Xls</li>
|
||||
<li>Xlsx</li>
|
||||
<li>Ods</li>
|
||||
</ol>
|
||||
<strong>تنسيقات العرض</strong>
|
||||
<ol>
|
||||
<li>Pages</li>
|
||||
<li>Pptx</li>
|
||||
<li>Ppt</li>
|
||||
<li>Xps</li>
|
||||
<li>Pot</li>
|
||||
<li>Potx</li>
|
||||
<li>Ppa</li>
|
||||
<li>Ppt</li>
|
||||
<li>Pptx</li>
|
||||
<li>Odp</li>
|
||||
</ol>
|
||||
<strong>تنسيقات الأرشيف</strong>
|
||||
<p><i>يمكن إنشاء وتحويل والبحث في أي مما يلي...</i></p>
|
||||
<ol>
|
||||
<li>Zip</li>
|
||||
<li>Rar</li>
|
||||
<li>Tar</li>
|
||||
<li>Tar.Bz2</li>
|
||||
<li>7z</li>
|
||||
</ol>
|
||||
<strong>تنسيقات صورة القرص</strong>
|
||||
<p><i>يمكن استخراج أي مما يلي أو التحويل إلى تنسيقات أرشيف مدعومة...</i></p>
|
||||
<ol>
|
||||
<li>Iso</li>
|
||||
<li>Vhd</li>
|
||||
<li>Vdi</li>
|
||||
</ol>
|
||||
<strong>تنسيقات الصور</strong>
|
||||
<p><i>يدعم تغيير الحجم والتدوير عبر واجهة المستخدم الرسومية وواجهة برمجة التطبيقات.</i></p>
|
||||
<p><i>يدعم تعطيل الحفاظ على نسبة العرض إلى الارتفاع عبر واجهة برمجة التطبيق.</i></p>
|
||||
<p><i>تدعم عمليات تحويل الصور تنسيقات الإدخال التالية...</i></p>
|
||||
<ol>
|
||||
<li>Jpg</li>
|
||||
<li>Jpeg</li>
|
||||
<li>Png</li>
|
||||
<li>Bmp</li>
|
||||
<li>Webp</li>
|
||||
<li>Gif</li>
|
||||
<li>Cin</li>
|
||||
<li>Dds</li>
|
||||
<li>Dib</li>
|
||||
<li>Flif</li>
|
||||
<li>Avif</li>
|
||||
<li>Crw</li>
|
||||
<li>Dcr</li>
|
||||
<li>Gplt</li>
|
||||
<li>Nef</li>
|
||||
<li>Orf</li>
|
||||
<li>Ora</li>
|
||||
<li>Sct</li>
|
||||
<li>Sfw</li>
|
||||
<li>Xcf</li>
|
||||
<li>Xwd</li>
|
||||
<li>Avif</li>
|
||||
<li>Ico</li>
|
||||
</ol>
|
||||
<p><i>تدعم عمليات تحويل الصور تنسيقات الإخراج التالية...</i></p>
|
||||
<ol>
|
||||
<li>Jpg</li>
|
||||
<li>Jpeg</li>
|
||||
<li>Png</li>
|
||||
<li>Bmp</li>
|
||||
<li>Webp</li>
|
||||
<li>Cin</li>
|
||||
<li>Dds</li>
|
||||
<li>Dib</li>
|
||||
<li>Flif</li>
|
||||
<li>Avif</li>
|
||||
</ol>
|
||||
<strong>تنسيقات النماذج ثلاثية الأبعاد</strong>
|
||||
<ol>
|
||||
<li>3ds</li>
|
||||
<li>Obj</li>
|
||||
<li>Collada</li>
|
||||
<li>Off</li>
|
||||
<li>Ply</li>
|
||||
<li>Stl</li>
|
||||
<li>Ptx</li>
|
||||
<li>Dxf</li>
|
||||
<li>U3d</li>
|
||||
<li>Vrml</li>
|
||||
</ol>
|
||||
<strong>Drawing Formats</strong>
|
||||
<p><i>يمكن إخراج ملفات الرسم إلى تنسيقات الصور.</i></p>
|
||||
<p><i>يمكن التحويل بين أي مما يلي...</i></p>
|
||||
<ol>
|
||||
<li>Svg</li>
|
||||
<li>Dxf</li>
|
||||
<li>Fig</li>
|
||||
<li>Vdx</li>
|
||||
</ol>
|
||||
<strong>دعم التعرف البصري على الأحرف</strong>
|
||||
<p><i>تدعم عمليات التعرف الضوئي على الحروف تنسيقات الإدخال التالية...</i></p>
|
||||
<ol>
|
||||
<li>Jpg</li>
|
||||
<li>Jpeg</li>
|
||||
<li>Png</li>
|
||||
<li>Bmp</li>
|
||||
<li>Pdf</li>
|
||||
<li>Gif</li>
|
||||
</ol>
|
||||
<p><i>يدعم التعرّف البصري على الأحرف تنسيقات الإخراج التالية...</i></p>
|
||||
<ol>
|
||||
<li>Doc</li>
|
||||
<li>Docx</li>
|
||||
<li>Txt</li>
|
||||
<li>Rtf</li>
|
||||
<li>Odt</li>
|
||||
<li>Pdf</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<hr />
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div align="center">
|
||||
<div id="call-to-action1" style="max-width:1000px; text-align:center;">
|
||||
<p>حدد الملفات عن طريق النقر فوق الملفات أو الضغط عليها أو إسقاطها في المربع أدناه.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div align="center">
|
||||
<div id="dropzone" style="max-height:1000px; max-width:1000px; margin:25px;">
|
||||
<form action="convertCore.php" class="dropzone" id="filesToUpload" name="filesToUpload" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" id="token1" name="Token1" value="<?php echo $Token1; ?>">
|
||||
<input type="hidden" id="token2" name="Token2" value="<?php echo $Token2; ?>">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div align="center">
|
||||
<div id="continue" style="max-width:1000px; text-align:center;">
|
||||
<form action="convertCore.php?showFiles=1<?php if (isset($_GET['noGui'])) echo '&noGui=TRUE'; if (isset($_GET['language'])) echo '&language='.$_GET['language']; ?>" method="post">
|
||||
<input type="hidden" id="token1" name="Token1" value="<?php echo $Token1; ?>">
|
||||
<input type="hidden" id="token2" name="Token2" value="<?php echo $Token2; ?>">
|
||||
<input type="submit" id="continue-button" class="info-button" value="يكمل...">
|
||||
</form>
|
||||
<br />
|
||||
<?php if (!isset($_GET['noGui'])) { ?>
|
||||
<hr />
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if (!isset($_GET['noGui'])) { ?>
|
||||
</div>
|
||||
<?php } ?>
|
989
Languages/ar/convertGui2.php
Normal file
989
Languages/ar/convertGui2.php
Normal file
|
@ -0,0 +1,989 @@
|
|||
<?php
|
||||
$Alert = 'لا يمكن تحويل هذا الملف! حاول تغيير الاسم.';
|
||||
$Alert1 = 'لا يمكن إجراء فحص فيروسات على هذا الملف!';
|
||||
$Alert2 = 'تم نسخ ارتباط الملف إلى الحافظة!';
|
||||
$Alert3 = 'فشلت العملية!';
|
||||
$FCPlural1 = '';
|
||||
if (!isset($ShowFinePrint)) $ShowFinePrint = TRUE;
|
||||
if (!is_numeric($FileCount)) $FileCount = 0;
|
||||
if (!isset($ApplicationName)) $ApplicationName = 'HRConvert2';
|
||||
if (!isset($ApplicationTitle)) $ApplicationTitle = 'تحويل أي شيء!';
|
||||
if (!isset($CoreLoaded)) die('خطأ!!! '.$ApplicationName.'-2، لا يمكن لهذا الملف معالجة طلبك! يرجى إرسال ملفك إلى convertCore.php بدلاً من ذلك!');
|
||||
if ($FileCount === 0) $FCPlural1 = 'لقد قمت بتحميل 0 ملفات صالحة إلى '.$ApplicationName.'.';
|
||||
if ($FileCount === 1) $FCPlural1 = 'لقد قمت بتحميل ملف واحد صالح إلى '.$ApplicationName.'.';
|
||||
if ($FileCount === 2) $FCPlural1 = 'لقد قمت بتحميل ملفين صالحين إلى '.$ApplicationName.'.';
|
||||
if ($FileCount >= 3) $FCPlural1 = 'لقد قمت بتحميل '.$FileCount.' ملفات صالحة إلى '.$ApplicationName.'.';
|
||||
if ($FileCount >= 11) $FCPlural1 = 'لقد قمت بتحميل '.$FileCount.' ملفًا صالحًا إلى '.$ApplicationName.'.';
|
||||
if ($FileCount === 100) $FCPlural1 = 'لقد قمت بتحميل '.$FileCount.' ملف صالح إلى '.$ApplicationName.'.';
|
||||
if ($FileCount >= 101) $FCPlural1 = 'لقد قمت بتحميل '.$FileCount.' ملفًا صالحًا إلى '.$ApplicationName.'.';
|
||||
?>
|
||||
<body>
|
||||
<script type="text/javascript" src="Resources/jquery-3.6.0.min.js"></script>
|
||||
<div id="header-text" style="max-width:1000px; margin-left:auto; margin-right:auto; text-align:center;">
|
||||
<?php if (!isset($_GET['noGui'])) { ?><h1><?php echo $ApplicationName; ?></h1>
|
||||
<hr /><?php } ?>
|
||||
<h3>خيارات تحويل الملف</h3>
|
||||
<p><?php echo $FCPlural1; ?></p>
|
||||
<p>ملفاتك جاهزة الآن للتحويل باستخدام الخيارات أدناه.</p>
|
||||
</div>
|
||||
|
||||
<div id='utility' align="center">
|
||||
<p><img id='loadingCommandDiv' name='loadingCommandDiv' src='<?php echo $PacmanLoc; ?>' style="max-width:64px; max-height:64px; display:none;"/></p>
|
||||
<a id='downloadTarget' href='about:blank' style="display: none;" download></a>
|
||||
</div>
|
||||
|
||||
<div id="compressAll" name="compressAll" style="max-width:1000px; margin-left: auto; margin-right: auto; text-align:center;">
|
||||
<button id="backButton" name="backButton" style="width:50px;" class="info-button" onclick="window.history.back();">←</button>
|
||||
<button id="refreshButton" name="refreshButton" style="width:50px;" class="info-button" onclick="javascript:location.reload(true);">↻</button>
|
||||
<br /> <br />
|
||||
<button id="scandocMoreOptionsButton" name="scandocMoreOptionsButton" class="info-button" onclick="toggle_visibility('compressAllOptions');">خيارات الملفات المجمعة</button>
|
||||
<div id="compressAllOptions" name="compressAllOptions" align="center" style="display:none;">
|
||||
<?php if ($AllowUserVirusScan) { ?>
|
||||
<hr style='width: 50%;' />
|
||||
<p><strong>فحص جميع الملفات بحثًا عن الفيروسات</strong></p>
|
||||
<p>المسح باستخدام ClamAV<input type="checkbox" id="clamscanall" value="clamscanall" name="clamScan" checked></p>
|
||||
<p>المسح باستخدام ScanCore <input type="checkbox" id="scancoreall" value="scancoreall" name="phpavScan" checked></p>
|
||||
<p><input type="submit" id="scanAllButton" name="scanAllButton" class="info-button" value='مسح الكل' onclick="toggle_visibility('loadingCommandDiv');"></p>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#scanAllButton').click(function() {
|
||||
var scanfiles = <?php echo json_encode($Files); ?>;
|
||||
var scanType = 'all';
|
||||
if($("input#clamscanall").is(":checked")) {
|
||||
var scanType = 'clamav'; }
|
||||
if($("input#scancoreall").is(":checked")) {
|
||||
var scanType = 'scancore'; }
|
||||
if($("input#clamscanall").is(":checked") && $("input#scancoreall").is(":checked")) {
|
||||
var scanType = 'all'; }
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:scanType,
|
||||
filesToScan:scanfiles },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); }); });
|
||||
</script>
|
||||
<?php } ?>
|
||||
<hr style='width: 50%;' />
|
||||
<p><strong>ضغط وتنزيل كافة الملفات</strong></p>
|
||||
<p>حدد اسم الملف <input type="text" id='userarchallfilename' name='userarchallfilename' value='HRConvert2_Files-<?php echo $Date; ?>'></p>
|
||||
<select id='archallextension' name='archallextension'>
|
||||
<option value="zip">حدد التنسيق</option>
|
||||
<option value="zip">Zip</option>
|
||||
<option value="rar">Rar</option>
|
||||
<option value="tar">Tar</option>
|
||||
<option value="7z">7z</option>
|
||||
</select>
|
||||
<input type="submit" id="archallSubmit" name="archallSubmit" class="info-button" value='ضغط وتنزيل' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#archallSubmit').click(function() {
|
||||
var extension = document.getElementById('archallextension').value;
|
||||
if (extension === "") {
|
||||
extension = 'zip'; }
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
archive:'1',
|
||||
filesToArchive:<?php echo json_encode($Files); ?>,
|
||||
archextension:extension,
|
||||
userfilename:document.getElementById('userarchallfilename').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userarchallfilename').value+'.'+extension },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userarchallfilename').value+'.'+extension;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
<hr style='width: 50%;' />
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div style="max-width:1000px; margin-left:auto; margin-right:auto;">
|
||||
<hr />
|
||||
|
||||
<?php
|
||||
foreach ($Files as $File) {
|
||||
$extension = getExtension($ConvertTempDir.'/'.$File);
|
||||
$FileNoExt = str_replace($extension, '', $File);
|
||||
if (!in_array($extension, $ConvertArray)) continue;
|
||||
$ConvertGuiCounter1++;
|
||||
?>
|
||||
|
||||
<div id="file<?php echo $ConvertGuiCounter1; ?>" name="<?php echo $ConvertGuiCounter1; ?>">
|
||||
<p href=""><strong><?php echo $ConvertGuiCounter1; ?>.</strong> <u><?php echo $File; ?></u></p>
|
||||
<div id="buttonDiv<?php echo $ConvertGuiCounter1; ?>" name="buttonDiv<?php echo $ConvertGuiCounter1; ?>" style="height:25px;">
|
||||
|
||||
<img id="downloadfilebutton<?php echo $ConvertGuiCounter1; ?>" name="downloadfilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/download.png" style="float:right; display:block;" onclick="toggle_visibility('loadingCommandDiv');"/>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#downloadfilebutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $File; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$File; ?>";
|
||||
document.getElementById('downloadTarget').click(); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
|
||||
<?php if ($AllowUserShare) { ?>
|
||||
<a style="float:right;"> | </a>
|
||||
<img id="sharefilebutton<?php echo $ConvertGuiCounter1; ?>" name="sharefilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/link.png" style="float:right; display:block;"
|
||||
onclick="toggle_visibility('sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('sharefilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('shareXfilebutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="shareXfilebutton<?php echo $ConvertGuiCounter1; ?>" name="shareXfilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:right; display:none;"
|
||||
onclick="toggle_visibility('sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('sharefilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('shareXfilebutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($AllowUserVirusScan) { ?>
|
||||
<a style="float:right;"> | </a>
|
||||
<img id="scanfilebutton<?php echo $ConvertGuiCounter1; ?>" name="scanfilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/scan.png" style="float:right; display:block;"
|
||||
onclick="toggle_visibility('scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfileXbutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="scanfileXbutton<?php echo $ConvertGuiCounter1; ?>" name="scanfileXbutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:right; display:none;"
|
||||
onclick="toggle_visibility('scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfileXbutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<a style="float:right;"> | </a>
|
||||
<img id="archfileButton<?php echo $ConvertGuiCounter1; ?>" name="archfileButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/archive.png" style="float:right; display:block;"
|
||||
onclick="toggle_visibility('archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="archfileXButton<?php echo $ConvertGuiCounter1; ?>" name="archfileXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:right; display:none;"
|
||||
onclick="toggle_visibility('archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
|
||||
<?php if (in_array($extension, $PDFWorkArr)) { ?>
|
||||
<a style="float:right;"> | </a>
|
||||
|
||||
<img id="docscanButton<?php echo $ConvertGuiCounter1; ?>" name="docscanButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/docscan.png" style="float:right; display:block;"
|
||||
onclick="toggle_visibility('pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="docscanXButton<?php echo $ConvertGuiCounter1; ?>" name="docscanXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:right; display:none;"
|
||||
onclick="toggle_visibility('pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ArchiveArray)) { ?>
|
||||
<a style="float:right;"> | </a>
|
||||
|
||||
<img id="archiveButton<?php echo $ConvertGuiCounter1; ?>" name="archiveButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/convert.png" style="float:right; display:block;"
|
||||
onclick="toggle_visibility('archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="archiveXButton<?php echo $ConvertGuiCounter1; ?>" name="archiveXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:right; display:none;"
|
||||
onclick="toggle_visibility('archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DocumentArray)) { ?>
|
||||
<a style="float:right;"> | </a>
|
||||
|
||||
<img id="documentButton<?php echo $ConvertGuiCounter1; ?>" name="documentButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/document.png" style="float:right; display:block;"
|
||||
onclick="toggle_visibility('docOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="documentXButton<?php echo $ConvertGuiCounter1; ?>" name="documentXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:right; display:none;"
|
||||
onclick="toggle_visibility('docOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $SpreadsheetArray)) { ?>
|
||||
<a style="float:right;"> | </a>
|
||||
|
||||
<img id="spreadsheetButton<?php echo $ConvertGuiCounter1; ?>" name="spreadsheetButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/spreadsheet.png" style="float:right; display:block;"
|
||||
onclick="toggle_visibility('spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>" name="spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:right; display:none;"
|
||||
onclick="toggle_visibility('spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $PresentationArray)) { ?>
|
||||
<a style="float:right;"> | </a>
|
||||
|
||||
<img id="presentationButton<?php echo $ConvertGuiCounter1; ?>" name="presentationButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/presentation.png" style="float:right; display:block;"
|
||||
onclick="toggle_visibility('presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="presentationXButton<?php echo $ConvertGuiCounter1; ?>" name="presentationXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:right; display:none;"
|
||||
onclick="toggle_visibility('presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ImageArray)) { ?>
|
||||
<a style="float:right;"> | </a>
|
||||
|
||||
<img id="imageButton<?php echo $ConvertGuiCounter1; ?>" name="imageButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/photo.png" style="float:right; display:block;"
|
||||
onclick="toggle_visibility('imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="imageXButton<?php echo $ConvertGuiCounter1; ?>" name="imageXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:right; display:none;"
|
||||
onclick="toggle_visibility('imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $MediaArray)) { ?>
|
||||
<a style="float:right;"> | </a>
|
||||
|
||||
<img id="mediaButton<?php echo $ConvertGuiCounter1; ?>" name="mediaButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/stream.png" style="float:right; display:block;"
|
||||
onclick="toggle_visibility('audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="mediaXButton<?php echo $ConvertGuiCounter1; ?>" name="mediaXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:right; display:none;"
|
||||
onclick="toggle_visibility('audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $VideoArray)) { ?>
|
||||
<a style="float:right;"> | </a>
|
||||
|
||||
<img id="videoButton<?php echo $ConvertGuiCounter1; ?>" name="videoButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/stream.png" style="float:right; display:block;"
|
||||
onclick="toggle_visibility('videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="videoXButton<?php echo $ConvertGuiCounter1; ?>" name="videoXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:right; display:none;"
|
||||
onclick="toggle_visibility('videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $StreamArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="streamButton<?php echo $ConvertGuiCounter1; ?>" name="streamButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/stream.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="streamXButton<?php echo $ConvertGuiCounter1; ?>" name="streamXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DrawingArray)) { ?>
|
||||
<a style="float:right;"> | </a>
|
||||
|
||||
<img id="drawingButton<?php echo $ConvertGuiCounter1; ?>" name="drawingButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/convert.png" style="float:right; display:block;"
|
||||
onclick="toggle_visibility('drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="drawingXButton<?php echo $ConvertGuiCounter1; ?>" name="drawingXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:right; display:none;"
|
||||
onclick="toggle_visibility('drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ModelArray)) { ?>
|
||||
<a style="float:right;"> | </a>
|
||||
|
||||
<img id="modelButton<?php echo $ConvertGuiCounter1; ?>" name="modelButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/convert.png" style="float:right; display:block;"
|
||||
onclick="toggle_visibility('modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="modelXButton<?php echo $ConvertGuiCounter1; ?>" name="modelXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:right; display:none;"
|
||||
onclick="toggle_visibility('modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<div id='archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>أرشفة هذا الملف</strong></p>
|
||||
<p>حدد اسم الملف <input type="text" id='userarchfilefilename<?php echo $ConvertGuiCounter1; ?>' name='userarchfilefilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='archfileextension<?php echo $ConvertGuiCounter1; ?>' name='archfileextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="zip">حدد التنسيق</option>
|
||||
<option value="zip">Zip</option>
|
||||
<option value="rar">Rar</option>
|
||||
<option value="tar">Tar</option>
|
||||
<option value="7z">7z</option>
|
||||
</select></p>
|
||||
<input type="submit" id="archfileSubmit<?php echo $ConvertGuiCounter1; ?>" name="archfileSubmit<?php echo $ConvertGuiCounter1; ?>" value='ملف الأرشيف' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#archfileSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
archive:'<?php echo $File; ?>',
|
||||
filesToArchive:'<?php echo $File; ?>',
|
||||
archextension:document.getElementById('archfileextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userfilename:document.getElementById('userarchfilefilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userarchfilefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archfileextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userarchfilefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archfileextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
|
||||
<?php if ($AllowUserShare) { ?>
|
||||
<div id='sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>شارك هذا الملف</strong></p>
|
||||
<p id='sharelinkStatus<?php echo $ConvertGuiCounter1; ?>' name='sharelinkStatus<?php echo $ConvertGuiCounter1; ?>'>حالة الارتباط: <i>غير مولود</i></p>
|
||||
<p id='shareclipStatus<?php echo $ConvertGuiCounter1; ?>' name='shareclipStatus<?php echo $ConvertGuiCounter1; ?>'>حالة الحافظة: <i>غير منسوخ</i></p>
|
||||
<p id='sharelinkURL<?php echo $ConvertGuiCounter1; ?>' name='sharelinkURL<?php echo $ConvertGuiCounter1; ?>'>رابط الملف: <i>غير مولود</i></p>
|
||||
|
||||
<input type="submit" id="sharegeneratebutton<?php echo $ConvertGuiCounter1; ?>" name="sharegeneratebutton<?php echo $ConvertGuiCounter1; ?>" value='إنشاء ارتباط والنسخ إلى الحافظة' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<input type="submit" id="sharecopybutton<?php echo $ConvertGuiCounter1; ?>" name="sharecopybutton<?php echo $ConvertGuiCounter1; ?>" value='إنشاء ارتباط' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#sharegeneratebutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $File; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('sharelinkStatus<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'حالة الارتباط: <i>ولدت</i>';
|
||||
document.getElementById('shareclipStatus<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'حالة الحافظة: <i>نسخ</i>';
|
||||
document.getElementById('sharelinkURL<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'رابط الملف: <i><?php echo $FullURL.'/DATA/'.$SesHash3.'/'.$File; ?></i>';
|
||||
copy_share_link("<?php echo $FullURL.'/DATA/'.$SesHash3.'/'.$File; ?>");
|
||||
alert("<?php echo $Alert2; ?>"); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert3; ?>"); } }); });
|
||||
$('#sharecopybutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $File; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('sharelinkStatus<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'حالة الارتباط: <i>ولدت</i>';
|
||||
document.getElementById('sharelinkURL<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'رابط الملف: <i><?php echo $FullURL.'/DATA/'.$SesHash3.'/'.$File; ?></i>'; },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert3; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if ($AllowUserVirusScan) { ?>
|
||||
<div id='scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>افحص هذا الملف بحثًا عن الفيروسات</strong></p>
|
||||
<input type="submit" id="scancorebutton<?php echo $ConvertGuiCounter1; ?>" name="scancorebutton<?php echo $ConvertGuiCounter1; ?>" value='مسح الملف باستخدام ScanCore' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<input type="submit" id="clamscanbutton<?php echo $ConvertGuiCounter1; ?>" name="clamscanbutton<?php echo $ConvertGuiCounter1; ?>" value='مسح الملف باستخدام ClamAV' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<input type="submit" id="scanallbutton<?php echo $ConvertGuiCounter1; ?>" name="scanallbutton<?php echo $ConvertGuiCounter1; ?>" value='مسح الملف باستخدام ScanCore و ClamAV' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#scancorebutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:'scancore',
|
||||
filesToScan:'<?php echo $File; ?>' },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click() } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); });
|
||||
$('#clamscanbutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:'all',
|
||||
filesToScan:'<?php echo $File; ?>' },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click() } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); });
|
||||
$('#scanallbutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:'all',
|
||||
filesToScan:'<?php echo $File; ?>' },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click() } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $PDFWorkArr)) {
|
||||
?>
|
||||
<div id='pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>قم بإجراء التعرف الضوئي على الأحرف في هذا الملف</strong></p>
|
||||
<p>حدد اسم الملف <input type="text" id='userpdffilename<?php echo $ConvertGuiCounter1; ?>' name='userpdffilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='pdfmethod<?php echo $ConvertGuiCounter1; ?>' name='pdfmethod<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="0">طريقة</option>
|
||||
<option value="1">طريقة 1 (بسيط)</option>
|
||||
<option value="2">طريقة 2 (متقدم)</option>
|
||||
</select>
|
||||
<select id='pdfextension<?php echo $ConvertGuiCounter1; ?>' name='pdfextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="pdf">حدد التنسيق</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
<option value="doc">Doc</option>
|
||||
<option value="docx">Docx</option>
|
||||
<option value="rtf">Rtf</option>
|
||||
<option value="txt">Txt</option>
|
||||
<option value="odt">Odt</option>
|
||||
</select></p>
|
||||
<p><input type="submit" id='pdfconvertSubmit<?php echo $ConvertGuiCounter1; ?>' name='pdfconvertSubmit<?php echo $ConvertGuiCounter1; ?>' value='تحويل إلى مستند' onclick="toggle_visibility('loadingCommandDiv');"></p>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#pdfconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
pdfworkSelected:'<?php echo $File; ?>',
|
||||
method:document.getElementById('pdfmethod<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
pdfextension:document.getElementById('pdfextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userpdfconvertfilename:document.getElementById('userpdffilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userpdffilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('pdfextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userpdffilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('pdfextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ArchiveArray)) {
|
||||
?>
|
||||
<div id='archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>تحويل هذا الأرشيف</strong></p>
|
||||
<p>حدد اسم الملف <input type="text" id='userarchivefilename<?php echo $ConvertGuiCounter1; ?>' name='userarchivefilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='archiveextension<?php echo $ConvertGuiCounter1; ?>' name='archiveextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="zip">حدد التنسيق</option>
|
||||
<option value="zip">Zip</option>
|
||||
<option value="rar">Rar</option>
|
||||
<option value="tar">Tar</option>
|
||||
<option value="7z">7z</option>
|
||||
</select></p>
|
||||
<input type="submit" id="archiveconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="archiveconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='أرشفة الملفات' onclick="toggle_visibility('loadingCommandDiv'); display:none;">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#archiveconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('archiveextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userarchivefilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userarchivefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archiveextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userarchivefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archiveextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DocumentArray)) {
|
||||
?>
|
||||
<div id='docOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='docOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>تحويل هذا المستند</strong></p>
|
||||
<p>حدد اسم الملف <input type="text" id='userdocfilename<?php echo $ConvertGuiCounter1; ?>' name='userdocfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='docextension<?php echo $ConvertGuiCounter1; ?>' name='docextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="txt">حدد التنسيق</option>
|
||||
<option value="doc">Doc</option>
|
||||
<option value="docx">Docx</option>
|
||||
<option value="rtf">Rtf</option>
|
||||
<option value="txt">Txt</option>
|
||||
<option value="odt">Odt</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
</select></p>
|
||||
<input type="submit" id="docconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="docconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='تحويل المستند' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#docconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('docextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userdocfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userdocfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('docextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userdocfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('docextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $SpreadsheetArray)) {
|
||||
?>
|
||||
<div id='spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>تحويل جدول البيانات هذا</strong></p>
|
||||
<p>حدد اسم الملف <input type="text" id='userspreadfilename<?php echo $ConvertGuiCounter1; ?>' name='userspreadfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='spreadextension<?php echo $ConvertGuiCounter1; ?>' name='spreadextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="ods">حدد التنسيق</option>
|
||||
<option value="xls">Xls</option>
|
||||
<option value="xlsx">Xlsx</option>
|
||||
<option value="ods">Ods</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
</select></p>
|
||||
<input type="submit" id="spreadconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="spreadconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='تحويل جدول البيانات' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#spreadconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('spreadextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('spreadextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('spreadextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); }
|
||||
}); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $PresentationArray)) {
|
||||
?>
|
||||
<div id='presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>تحويل هذا العرض التقديمي</strong></p>
|
||||
<p>حدد اسم الملف <input type="text" id='userpresentationfilename<?php echo $ConvertGuiCounter1; ?>' name='userpresentationfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='presentationextension<?php echo $ConvertGuiCounter1; ?>' name='presentationextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="odp">حدد التنسيق</option>
|
||||
<option value="pages">Pages</option>
|
||||
<option value="pptx">Pptx</option>
|
||||
<option value="ppt">Ppt</option>
|
||||
<option value="xps">Xps</option>
|
||||
<option value="potx">Potx</option>
|
||||
<option value="pot">Pot</option>
|
||||
<option value="ppa">Ppa</option>
|
||||
<option value="odp">Odp</option>
|
||||
</select></p>
|
||||
<input type="submit" id="presentationconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="presentationconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='تحويل العرض التقديمي' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#presentationconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('presentationextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userpresentationfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userpresentationfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('presentationextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('presentationextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $MediaArray)) {
|
||||
?>
|
||||
<div id='audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>تحويل هذا الصوت</strong></p>
|
||||
<p>حدد اسم الملف <input type="text" id='useraudiofilename<?php echo $ConvertGuiCounter1; ?>' name='useraudiofilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='audioextension<?php echo $ConvertGuiCounter1; ?>' name='audioextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="mp3">حدد التنسيق</option>
|
||||
<option value="mp2">Mp2</option>
|
||||
<option value="mp3">Mp3</option>
|
||||
<option value="wav">Wav</option>
|
||||
<option value="wma">Wma</option>
|
||||
<option value="flac">Flac</option>
|
||||
<option value="ogg">Ogg</option>
|
||||
</select></p>
|
||||
<input type="submit" id="audioconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="audioconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='تحويل الصوت' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#audioconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('audioextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('useraudiofilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('useraudiofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('audioextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('useraudiofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('audioextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $VideoArray)) {
|
||||
?>
|
||||
<div id='videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>تحويل هذا الفيديو</strong></p>
|
||||
<p>حدد اسم الملف <input type="text" id='uservideofilename<?php echo $ConvertGuiCounter1; ?>' name='uservideofilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='videoextension<?php echo $ConvertGuiCounter1; ?>' name='videoextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="mp4">حدد التنسيق</option>
|
||||
<option value="3gp">3gp</option>
|
||||
<option value="mkv">Mkv</option>
|
||||
<option value="avi">Avi</option>
|
||||
<option value="mp4">Mp4</option>
|
||||
<option value="flv">Flv</option>
|
||||
<option value="mpeg">Mpeg</option>
|
||||
<option value="wmv">Wmv</option>
|
||||
<option value="mov">Mov</option>
|
||||
</select></p>
|
||||
<input type="submit" id="videoconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="videoconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='تحويل الفيديو' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#videoconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('videoextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('uservideofilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('uservideofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('videoextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('uservideofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('videoextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $StreamArray)) {
|
||||
?>
|
||||
<div id='streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>تحويل هذا التدفق</strong></p>
|
||||
<p>حدد اسم الملف <input type="text" id='userstreamfilename<?php echo $ConvertGuiCounter1; ?>' name='userstreamfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='streamextension<?php echo $ConvertGuiCounter1; ?>' name='streamextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="mp4">Format</option>
|
||||
<option value="3gp">3gp</option>
|
||||
<option value="mkv">Mkv</option>
|
||||
<option value="avi">Avi</option>
|
||||
<option value="mp4">Mp4</option>
|
||||
<option value="flv">Flv</option>
|
||||
<option value="mpeg">Mpeg</option>
|
||||
<option value="wmv">Wmv</option>
|
||||
<option value="mov">Mov</option>
|
||||
</select></p>
|
||||
<input type="submit" id="streamconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="streamconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='تحويل تيار' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#streamconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('streamextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userstreamfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userstreamfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('streamextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userstreamfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('streamextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ModelArray)) {
|
||||
?>
|
||||
<div id='modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>تحويل هذا النموذج ثلاثي الأبعاد</strong></p>
|
||||
<p>حدد اسم الملف <input type="text" id='usermodelfilename<?php echo $ConvertGuiCounter1; ?>' name='usermodelfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='modelextension<?php echo $ConvertGuiCounter1; ?>' name='modelextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="3ds">حدد التنسيق</option>
|
||||
<option value="3ds">3ds</option>
|
||||
<option value="collada">Collada</option>
|
||||
<option value="obj">Obj</option>
|
||||
<option value="off">Off</option>
|
||||
<option value="ply">Ply</option>
|
||||
<option value="stl">Stl</option>
|
||||
<option value="ptx">Ptx</option>
|
||||
<option value="dxf">Dxf</option>
|
||||
<option value="u3d">U3d</option>
|
||||
<option value="vrml">Vrml</option>
|
||||
</select></p>
|
||||
<input type="submit" id="modelconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="modelconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='تحويل النموذج' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#modelconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('modelextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('usermodelfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('usermodelfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('modelextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('usermodelfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('modelextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DrawingArray)) {
|
||||
?>
|
||||
<div id='drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>قم بتحويل هذا الرسم الفني أو ملف المتجه</strong></p>
|
||||
<p>حدد اسم الملف <input type="text" id='userdrawingfilename<?php echo $ConvertGuiCounter1; ?>' name='userdrawingfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='drawingextension<?php echo $ConvertGuiCounter1; ?>' name='drawingextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="jpg">حدد التنسيق</option>
|
||||
<option value="svg">Svg</option>
|
||||
<option value="dxf">Dxf</option>
|
||||
<option value="vdx">Vdx</option>
|
||||
<option value="fig">Fig</option>
|
||||
<option value="jpg">Jpg</option>
|
||||
<option value="png">Png</option>
|
||||
<option value="bmp">Bmp</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
</select></p>
|
||||
<input type="submit" id="drawingconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="drawingconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='تحويل الرسم' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#drawingconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('drawingextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userdrawingfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('drawingfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('drawingextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userdrawingfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('drawingextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ImageArray)) {
|
||||
?>
|
||||
<div id='imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>تحويل هذه الصورة</strong></p>
|
||||
<p>حدد اسم الملف <input type="text" id='userphotofilename<?php echo $ConvertGuiCounter1; ?>' name='userphotofilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='photoextension<?php echo $ConvertGuiCounter1; ?>' name='photoextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="jpg">حدد التنسيق</option>
|
||||
<option value="jpg">Jpg</option>
|
||||
<option value="bmp">Bmp</option>
|
||||
<option value="webp">Webp</option>
|
||||
<option value="png">Png</option>
|
||||
<option value="cin">Cin</option>
|
||||
<option value="dds">Dds</option>
|
||||
<option value="dib">Dib</option>
|
||||
<option value="flif">Flif</option>
|
||||
<option value="avif">Avif</option>
|
||||
</select></p>
|
||||
<p>العرض والارتفاع: </p>
|
||||
<p><input type="number" size="4" value="0" id='width<?php echo $ConvertGuiCounter1; ?>' name='width<?php echo $ConvertGuiCounter1; ?>' min="0" max="10000"> X <input type="number" size="4" value="0" id="height<?php echo $ConvertGuiCounter1; ?>" name="height<?php echo $ConvertGuiCounter1; ?>" min="0" max="10000"></p>
|
||||
<p>استدارة: <input type="number" size="3" id='rotate<?php echo $ConvertGuiCounter1; ?>' name='rotate<?php echo $ConvertGuiCounter1; ?>' value="0" min="0" max="359"></p>
|
||||
<input type="submit" id='convertPhotoSubmit<?php echo $ConvertGuiCounter1; ?>' name='convertPhotoSubmit<?php echo $ConvertGuiCounter1; ?>' value='تحويل الصورة' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#convertPhotoSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
rotate:$('#rotate<?php echo $ConvertGuiCounter1; ?>').val(),
|
||||
width:$('#width<?php echo $ConvertGuiCounter1; ?>').val(),
|
||||
height:$('#height<?php echo $ConvertGuiCounter1; ?>').val(),
|
||||
extension:document.getElementById('photoextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userphotofilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userphotofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('photoextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userphotofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('photoextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<hr />
|
||||
<?php } ?>
|
||||
</div>
|
10
Languages/ar/footer.php
Normal file
10
Languages/ar/footer.php
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?php if (!isset($ShowFinePrint)) $ShowFinePrint = TRUE;
|
||||
if ($ShowFinePrint) { ?>
|
||||
<div id="footer" name="footer" style="max-width:1000px; margin-left:auto; margin-right:auto; text-align:center;">
|
||||
<p>تحقق من <a href="<?php echo $TOSURL; ?>" target="_blank" rel="noopener noreferrer">وسياسة الخصوصية</a>
|
||||
و <a href="<?php echo $PPURL; ?>" target="_blank" rel="noopener noreferrer">شروط الخدمة</a> الخاصة بنا</p>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</body>
|
||||
</html>
|
24
Languages/ar/header.php
Normal file
24
Languages/ar/header.php
Normal file
|
@ -0,0 +1,24 @@
|
|||
<?php if (!isset($ApplicationName)) $ApplicationName = 'HRConvert2';
|
||||
if (!isset($ApplicationTitle)) $ApplicationTitle = 'تحويل أي شيء!';
|
||||
if (!isset($Font)) $Font = 'Arial'; ?>
|
||||
<html dir="rtl">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="shortcut icon" href="Resources/favicon.ico"/>
|
||||
<link rel="stylesheet" href="Resources/dropzone.css"/>
|
||||
<link rel="stylesheet" href="Resources/HRConvert2.css"/>
|
||||
<script type="text/javascript" src="Resources/HRC2-Functions.js"></script>
|
||||
<script type="text/javascript">var dropzoneText = 'انقر أو اضغط أو أفلت الملفات هنا للتحميل.';</script>
|
||||
<script type="text/javascript" src="Resources/dropzone.js"></script>
|
||||
<style>
|
||||
body {
|
||||
font-family: <?php echo $Font; ?>; }
|
||||
<?php if (isset($ButtonCode)) echo $ButtonCode; ?>
|
||||
select {
|
||||
background-position: left;
|
||||
text-align-last: right; }
|
||||
option { direction: rtl; }
|
||||
</style>
|
||||
<title><?php echo $ApplicationName; ?> - <?php echo $ApplicationTitle; ?></title>
|
||||
</head>
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<html lang="en-US">
|
||||
<title>HRConvert2 | HRConvert2 Authentication</title>
|
||||
<body>
|
||||
<div id="outer" align="center"><h1>Configuring HRConvert2 ...</h1>
|
224
Languages/bn/convertGui1.php
Normal file
224
Languages/bn/convertGui1.php
Normal file
|
@ -0,0 +1,224 @@
|
|||
<?php
|
||||
if (!isset($ApplicationName)) $ApplicationName = 'HRConvert2';
|
||||
if (!isset($ApplicationTitle)) $ApplicationTitle = 'কিছু রূপান্তর!';
|
||||
if (!isset($CoreLoaded)) die('ত্রুটি!!! '.$ApplicationName.'-2, এই ফাইলটি আপনার অনুরোধ প্রক্রিয়া করতে পারে না! পরিবর্তে convertCore.php এ আপনার ফাইল জমা দিন!');
|
||||
if (!isset($ShowFinePrint)) $ShowFinePrint = TRUE;
|
||||
?>
|
||||
<body>
|
||||
<?php
|
||||
if (!isset($_GET['noGui'])) { ?>
|
||||
<div id="header-text" style="max-width:1000px; margin-left:auto; margin-right:auto; text-align:center;">
|
||||
<h1><?php echo $ApplicationName; ?></h1>
|
||||
<h3>অনলাইন ফাইল কনভার্টার, এক্সট্র্যাক্টর, কম্প্রেসার</h3>
|
||||
<hr />
|
||||
</div>
|
||||
<div id="main" align="center">
|
||||
<div id="overview" style="max-width:1000px; text-align:left; margin:25px;">
|
||||
<p id="info" style="display:block;"><a href='https://github.com/zelon88/HRConvert2'>HRConvert2</a> <a href='https://github.com/zelon88'>Zelon88</a> দ্বারা <?php echo $ApplicationName; ?> নামের ওপেন-সোর্স অ্যাপ্লিকেশনের উপর ভিত্তি করে তৈরি. এটি ব্যবহারকারীদের ট্র্যাকিং না করে বা আপনার গোপনীয়তার অধিকার লঙ্ঘন না করে ফাইলগুলিকে রূপান্তর করার জন্য ডিজাইন করা হয়েছিল৷</p>
|
||||
<button id="more-info-button" class="info-button" onclick="toggle_visibility('more-info'); toggle_visibility('more-info-button'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('less-info-button');" style="text-align:center; display:block; margin-left:auto; margin-right:auto;"><i>অধিক তথ্য ...</i></button>
|
||||
<button id="less-info-button" class="info-button" onclick="toggle_visibility('more-info'); toggle_visibility('more-info-button'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('less-info-button');" style="text-align:center; display:none; margin-left:auto; margin-right:auto;"><i>কম তথ্য ...</i></button>
|
||||
<div id="more-info" style="display:none;">
|
||||
<hr />
|
||||
<p>সমস্ত ব্যবহারকারীর সরবরাহকৃত ডেটা স্বয়ংক্রিয়ভাবে মুছে ফেলা হয়, তাই আমাদের পরিষেবাগুলি ব্যবহার করার সময় আপনার ব্যক্তিগত তথ্য বা সম্পত্তি বাজেয়াপ্ত করার বিষয়ে আপনাকে চিন্তা করতে হবে না।</p>
|
||||
<p>বর্তমানে <?php echo $ApplicationName; ?> নথি, স্প্রেডশীট, ছবি, মিডিয়া, ত্রিমাত্রিক মডেল, অঙ্কন ফাইল, ভেক্টর ফাইল, সংরক্ষণাগার, ডিস্ক চিত্র এবং আরও অনেক কিছু সহ 77টি ভিন্ন ফাইল ফর্ম্যাট সমর্থন করে।</p>
|
||||
<button id="supported-formats-show-button" class="info-button" onclick="toggle_visibility('supported-formats'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('supported-formats-hide-button');" style="text-align:center; display:none; margin-left:auto; margin-right:auto;"><i>সমর্থিত ফরম্যাট দেখুন ...</i></button>
|
||||
<button id="supported-formats-hide-button" class="info-button" onclick="toggle_visibility('supported-formats'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('supported-formats-hide-button');" style="text-align:center; display:none; margin-left:auto; margin-right:auto;"><i>সমর্থিত বিন্যাস লুকান ...</i></button>
|
||||
<br>
|
||||
<div id="supported-formats" class="supported-formats" style="margin-left:33%; display:none;">
|
||||
<h3>সমর্থিত ফরম্যাট</h3>
|
||||
<hr />
|
||||
<strong>অডিও ফরম্যাট</strong>
|
||||
<p><i>অ্যাপ্লিকেশন প্রোগ্রামিং ইন্টারফেসের মাধ্যমে নির্দিষ্ট বিটরেট সমর্থন করে।</i></p>
|
||||
<ol>
|
||||
<li>Mp2</li>
|
||||
<li>Mp3</li>
|
||||
<li>Avi</li>
|
||||
<li>Flac</li>
|
||||
<li>Ogg</li>
|
||||
<li>Wav</li>
|
||||
<li>Wma</li>
|
||||
<li>M4a</li>
|
||||
<li>M4p</li>
|
||||
</ol>
|
||||
<strong>ভিডিও ফরম্যাটs</strong>
|
||||
<ol>
|
||||
<li>3gp</li>
|
||||
<li>Mkv</li>
|
||||
<li>Avi</li>
|
||||
<li>Mp4</li>
|
||||
<li>Flv</li>
|
||||
<li>Mpeg</li>
|
||||
<li>Wmv</li>
|
||||
<li>Mov</li>
|
||||
<li>M4v</li>
|
||||
</ol>
|
||||
<strong>স্ট্রিম বিন্যাস</strong>
|
||||
<ol>
|
||||
<li>m3u8</li>
|
||||
</ol>
|
||||
<strong>নথি বিন্যাস</strong>
|
||||
<ol>
|
||||
<li>Doc</li>
|
||||
<li>Docx</li>
|
||||
<li>Txt</li>
|
||||
<li>Rtf</li>
|
||||
<li>Odt</li>
|
||||
<li>Pdf</li>
|
||||
</ol>
|
||||
<strong>স্প্রেডশীট বিন্যাস</strong>
|
||||
<ol>
|
||||
<li>Xls</li>
|
||||
<li>Xlsx</li>
|
||||
<li>Ods</li>
|
||||
</ol>
|
||||
<strong>উপস্থাপনা বিন্যাস</strong>
|
||||
<ol>
|
||||
<li>Pages</li>
|
||||
<li>Pptx</li>
|
||||
<li>Ppt</li>
|
||||
<li>Xps</li>
|
||||
<li>Pot</li>
|
||||
<li>Potx</li>
|
||||
<li>Ppa</li>
|
||||
<li>Ppt</li>
|
||||
<li>Pptx</li>
|
||||
<li>Odp</li>
|
||||
</ol>
|
||||
<strong>সংরক্ষণাগার বিন্যাস</strong>
|
||||
<p><i>নিম্নলিখিত যেকোনও তৈরি, রূপান্তর এবং ডিআর্কাইভ করতে পারে...</i></p>
|
||||
<ol>
|
||||
<li>Zip</li>
|
||||
<li>Rar</li>
|
||||
<li>Tar</li>
|
||||
<li>Tar.Bz2</li>
|
||||
<li>7z</li>
|
||||
</ol>
|
||||
<strong>ডিস্ক ইমেজ ফরম্যাটs</strong>
|
||||
<p><i>নিম্নলিখিত যেকোনও এক্সট্র্যাক্ট করতে পারে বা সমর্থিত আর্কাইভ ফরম্যাটে রূপান্তর করতে পারে...</i></p>
|
||||
<ol>
|
||||
<li>Iso</li>
|
||||
<li>Vhd</li>
|
||||
<li>Vdi</li>
|
||||
</ol>
|
||||
<strong>Image Formats</strong>
|
||||
<p><i>গ্রাফিকাল ইউজার ইন্টারফেস এবং অ্যাপ্লিকেশন প্রোগ্রামিং ইন্টারফেসের মাধ্যমে আকার পরিবর্তন এবং ঘোরানো সমর্থন করে।</i></p>
|
||||
<p><i>অ্যাপ্লিকেশন প্রোগ্রামিং ইন্টারফেসের মাধ্যমে দৃষ্টিভঙ্গি অনুপাত বজায় রাখা নিষ্ক্রিয় সমর্থন করে।</i></p>
|
||||
<p><i>চিত্র রূপান্তর অপারেশন নিম্নলিখিত ইনপুট বিন্যাস সমর্থন করে...</i></p>
|
||||
<ol>
|
||||
<li>Jpg</li>
|
||||
<li>Jpeg</li>
|
||||
<li>Png</li>
|
||||
<li>Bmp</li>
|
||||
<li>Webp</li>
|
||||
<li>Gif</li>
|
||||
<li>Cin</li>
|
||||
<li>Dds</li>
|
||||
<li>Dib</li>
|
||||
<li>Flif</li>
|
||||
<li>Avif</li>
|
||||
<li>Crw</li>
|
||||
<li>Dcr</li>
|
||||
<li>Gplt</li>
|
||||
<li>Nef</li>
|
||||
<li>Orf</li>
|
||||
<li>Ora</li>
|
||||
<li>Sct</li>
|
||||
<li>Sfw</li>
|
||||
<li>Xcf</li>
|
||||
<li>Xwd</li>
|
||||
<li>Avif</li>
|
||||
<li>Ico</li>
|
||||
</ol>
|
||||
<p><i>চিত্র রূপান্তর অপারেশন নিম্নলিখিত আউটপুট বিন্যাস সমর্থন করে...</i></p>
|
||||
<ol>
|
||||
<li>Jpg</li>
|
||||
<li>Jpeg</li>
|
||||
<li>Png</li>
|
||||
<li>Bmp</li>
|
||||
<li>Webp</li>
|
||||
<li>Cin</li>
|
||||
<li>Dds</li>
|
||||
<li>Dib</li>
|
||||
<li>Flif</li>
|
||||
<li>Avif</li>
|
||||
</ol>
|
||||
<strong>থ্রি ডাইমেনশনাল মডেল ফরম্যাট</strong>
|
||||
<ol>
|
||||
<li>3ds</li>
|
||||
<li>Obj</li>
|
||||
<li>Collada</li>
|
||||
<li>Off</li>
|
||||
<li>Ply</li>
|
||||
<li>Stl</li>
|
||||
<li>Ptx</li>
|
||||
<li>Dxf</li>
|
||||
<li>U3d</li>
|
||||
<li>Vrml</li>
|
||||
</ol>
|
||||
<strong>অঙ্কন বিন্যাস</strong>
|
||||
<p><i>ছবি বিন্যাসে অঙ্কন ফাইল আউটপুট করতে পারেন.</i></p>
|
||||
<p><i>নিচের যে কোনোটির মধ্যে কনভার্ট করতে পারেন...</i></p>
|
||||
<ol>
|
||||
<li>Svg</li>
|
||||
<li>Dxf</li>
|
||||
<li>Fig</li>
|
||||
<li>Vdx</li>
|
||||
</ol>
|
||||
<strong>ওসিআর সমর্থন</strong>
|
||||
<p><i>অপটিক্যাল ক্যারেক্টার রিকগনিশন অপারেশন নিম্নলিখিত ইনপুট ফরম্যাট সমর্থন করে...</i></p>
|
||||
<ol>
|
||||
<li>Jpg</li>
|
||||
<li>Jpeg</li>
|
||||
<li>Png</li>
|
||||
<li>Bmp</li>
|
||||
<li>Pdf</li>
|
||||
<li>Gif</li>
|
||||
</ol>
|
||||
<p><i>অপটিক্যাল ক্যারেক্টার রিকগনিশন অপারেশন নিম্নলিখিত আউটপুট ফরম্যাট সমর্থন করে...</i></p>
|
||||
<ol>
|
||||
<li>Doc</li>
|
||||
<li>Docx</li>
|
||||
<li>Txt</li>
|
||||
<li>Rtf</li>
|
||||
<li>Odt</li>
|
||||
<li>Pdf</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<hr />
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div align="center">
|
||||
<div id="call-to-action1" style="max-width:1000px; text-align:center;">
|
||||
<p>নীচের বাক্সে ফাইলগুলিকে ক্লিক, আলতো চাপ বা ড্রপ করে ফাইলগুলি নির্বাচন করুন৷</p>
|
||||
</div>
|
||||
</div>
|
||||
<div align="center">
|
||||
<div id="dropzone" style="max-height:1000px; max-width:1000px; margin:25px;">
|
||||
<form action="convertCore.php" class="dropzone" id="filesToUpload" name="filesToUpload" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" id="token1" name="Token1" value="<?php echo $Token1; ?>">
|
||||
<input type="hidden" id="token2" name="Token2" value="<?php echo $Token2; ?>">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div align="center">
|
||||
<div id="continue" style="max-width:1000px; text-align:center;">
|
||||
<form action="convertCore.php?showFiles=1<?php if (isset($_GET['noGui'])) echo '&noGui=TRUE'; if (isset($_GET['language'])) echo '&language='.$_GET['language']; ?>" method="post">
|
||||
<input type="hidden" id="token1" name="Token1" value="<?php echo $Token1; ?>">
|
||||
<input type="hidden" id="token2" name="Token2" value="<?php echo $Token2; ?>">
|
||||
<input type="submit" id="continue-button" class="info-button" value="চালিয়ে যান ...">
|
||||
</form>
|
||||
<br />
|
||||
<?php if (!isset($_GET['noGui'])) { ?>
|
||||
<hr />
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if (!isset($_GET['noGui'])) { ?>
|
||||
</div>
|
||||
<?php } ?>
|
985
Languages/bn/convertGui2.php
Normal file
985
Languages/bn/convertGui2.php
Normal file
|
@ -0,0 +1,985 @@
|
|||
<?php
|
||||
$Alert = 'এই ফাইলটি রূপান্তর করা যাবে না! নাম পরিবর্তন করার চেষ্টা করুন।';
|
||||
$Alert1 = 'এই ফাইলে ভাইরাস স্ক্যান করা যাবে না!';
|
||||
$Alert2 = 'ফাইল লিঙ্ক ক্লিপবোর্ডে অনুলিপি করা হয়েছে!';
|
||||
$Alert3 = 'অপারেশন ব্যর্থ হয়েছে!';
|
||||
$FCPlural1 = '';
|
||||
if (!is_numeric($FileCount)) $FileCount = 0;
|
||||
if (!isset($ApplicationName)) $ApplicationName = 'HRConvert2';
|
||||
if (!isset($ApplicationTitle)) $ApplicationTitle = 'কিছু রূপান্তর!';
|
||||
if (!isset($ShowFinePrint)) $ShowFinePrint = TRUE;
|
||||
if (!isset($CoreLoaded)) die('ত্রুটি!!! '.$ApplicationName.'-2, এই ফাইলটি আপনার অনুরোধ প্রক্রিয়া করতে পারে না! পরিবর্তে convertCore.php এ আপনার ফাইল জমা দিন!');
|
||||
if ($FileCount === 0) $FCPlural1 = 'আপনি '.$ApplicationName.'-2 এ 0টি বৈধ ফাইল আপলোড করেছেন।';
|
||||
if ($FileCount === 1) $FCPlural1 = 'আপনি '.$ApplicationName.'-2 এ 1টি বৈধ ফাইল আপলোড করেছেন৷';
|
||||
if ($FileCount === 2) $FCPlural1 = 'আপনি '.$ApplicationName.'-2 এ 2টি বৈধ ফাইল আপলোড করেছেন৷';
|
||||
if ($FileCount >= 3) $FCPlural1 = 'আপনি '.$ApplicationName.'-2 এ '.$FileCount.'টি বৈধ ফাইল আপলোড করেছেন।';
|
||||
?>
|
||||
<body>
|
||||
<script type="text/javascript" src="Resources/jquery-3.6.0.min.js"></script>
|
||||
<div id="header-text" style="max-width:1000px; margin-left:auto; margin-right:auto; text-align:center;">
|
||||
<?php if (!isset($_GET['noGui'])) { ?><h1><?php echo $ApplicationName; ?></h1>
|
||||
<hr /><?php } ?>
|
||||
<h3>ফাইল রূপান্তর বিকল্প</h3>
|
||||
<p><?php echo $FCPlural1; ?></p>
|
||||
<p>আপনার ফাইলগুলি এখন নীচের বিকল্পগুলি ব্যবহার করে রূপান্তর করার জন্য প্রস্তুত৷</p>
|
||||
</div>
|
||||
|
||||
<div id='utility' align="center">
|
||||
<p><img id='loadingCommandDiv' name='loadingCommandDiv' src='<?php echo $PacmanLoc; ?>' style="max-width:64px; max-height:64px; display:none;"/></p>
|
||||
<a id='downloadTarget' href='about:blank' style="display: none;" download></a>
|
||||
</div>
|
||||
|
||||
<div id="compressAll" name="compressAll" style="max-width:1000px; margin-left: auto; margin-right: auto; text-align:center;">
|
||||
<button id="backButton" name="backButton" style="width:50px;" class="info-button" onclick="window.history.back();">←</button>
|
||||
<button id="refreshButton" name="refreshButton" style="width:50px;" class="info-button" onclick="javascript:location.reload(true);">↻</button>
|
||||
<br /> <br />
|
||||
<button id="scandocMoreOptionsButton" name="scandocMoreOptionsButton" class="info-button" onclick="toggle_visibility('compressAllOptions');">বাল্ক ফাইল অপশন</button>
|
||||
<div id="compressAllOptions" name="compressAllOptions" align="center" style="display:none;">
|
||||
<?php if ($AllowUserVirusScan) { ?>
|
||||
<hr style='width: 50%;' />
|
||||
<p><strong>ভাইরাসের জন্য সমস্ত ফাইল স্ক্যান করুন</strong></p>
|
||||
<p>ClamAV দিয়ে স্ক্যান করুন <input type="checkbox" id="clamscanall" value="clamscanall" name="clamScan" checked></p>
|
||||
<p>ScanCore দিয়ে স্ক্যান করুন <input type="checkbox" id="scancoreall" value="scancoreall" name="phpavScan" checked></p>
|
||||
<p><input type="submit" id="scanAllButton" name="scanAllButton" class="info-button" value='সমস্ত স্ক্যান করুন' onclick="toggle_visibility('loadingCommandDiv');"></p>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#scanAllButton').click(function() {
|
||||
var scanfiles = <?php echo json_encode($Files); ?>;
|
||||
var scanType = 'all';
|
||||
if($("input#clamscanall").is(":checked")) {
|
||||
var scanType = 'clamav'; }
|
||||
if($("input#scancoreall").is(":checked")) {
|
||||
var scanType = 'scancore'; }
|
||||
if($("input#clamscanall").is(":checked") && $("input#scancoreall").is(":checked")) {
|
||||
var scanType = 'all'; }
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:scanType,
|
||||
filesToScan:scanfiles },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); }); });
|
||||
</script>
|
||||
<?php } ?>
|
||||
<hr style='width: 50%;' />
|
||||
<p><strong>কম্প্রেস করুন এবং সমস্ত ফাইল ডাউনলোড করুন</strong></p>
|
||||
<p>ফাইলের নাম উল্লেখ করুন: <input type="text" id='userarchallfilename' name='userarchallfilename' value='HRConvert2_Files-<?php echo $Date; ?>'></p>
|
||||
<select id='archallextension' name='archallextension'>
|
||||
<option value="zip">বিন্যাস</option>
|
||||
<option value="zip">Zip</option>
|
||||
<option value="rar">Rar</option>
|
||||
<option value="tar">Tar</option>
|
||||
<option value="7z">7z</option>
|
||||
</select>
|
||||
<input type="submit" id="archallSubmit" name="archallSubmit" class="info-button" value='কম্প্রেস এবং ডাউনলোড করুন' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#archallSubmit').click(function() {
|
||||
var extension = document.getElementById('archallextension').value;
|
||||
if (extension === "") {
|
||||
extension = 'zip'; }
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
archive:'1',
|
||||
filesToArchive:<?php echo json_encode($Files); ?>,
|
||||
archextension:extension,
|
||||
userfilename:document.getElementById('userarchallfilename').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userarchallfilename').value+'.'+extension },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userarchallfilename').value+'.'+extension;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
<hr style='width: 50%;' />
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div style="max-width:1000px; margin-left:auto; margin-right:auto;">
|
||||
<hr />
|
||||
|
||||
<?php
|
||||
foreach ($Files as $File) {
|
||||
$extension = getExtension($ConvertTempDir.'/'.$File);
|
||||
$FileNoExt = str_replace($extension, '', $File);
|
||||
if (!in_array($extension, $ConvertArray)) continue;
|
||||
$ConvertGuiCounter1++;
|
||||
?>
|
||||
|
||||
<div id="file<?php echo $ConvertGuiCounter1; ?>" name="<?php echo $ConvertGuiCounter1; ?>">
|
||||
<p href=""><strong><?php echo $ConvertGuiCounter1; ?>.</strong> <u><?php echo $File; ?></u></p>
|
||||
<div id="buttonDiv<?php echo $ConvertGuiCounter1; ?>" name="buttonDiv<?php echo $ConvertGuiCounter1; ?>" style="height:25px;">
|
||||
|
||||
<img id="downloadfilebutton<?php echo $ConvertGuiCounter1; ?>" name="downloadfilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/download.png" style="float:left; display:block;" onclick="toggle_visibility('loadingCommandDiv');"/>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#downloadfilebutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $File; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$File; ?>";
|
||||
document.getElementById('downloadTarget').click(); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
|
||||
<?php if ($AllowUserShare) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
<img id="sharefilebutton<?php echo $ConvertGuiCounter1; ?>" name="sharefilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/link.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('sharefilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('shareXfilebutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="shareXfilebutton<?php echo $ConvertGuiCounter1; ?>" name="shareXfilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('sharefilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('shareXfilebutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($AllowUserVirusScan) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
<img id="scanfilebutton<?php echo $ConvertGuiCounter1; ?>" name="scanfilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/scan.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfileXbutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="scanfileXbutton<?php echo $ConvertGuiCounter1; ?>" name="scanfileXbutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfileXbutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<a style="float:left;"> | </a>
|
||||
<img id="archfileButton<?php echo $ConvertGuiCounter1; ?>" name="archfileButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/archive.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="archfileXButton<?php echo $ConvertGuiCounter1; ?>" name="archfileXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
|
||||
<?php if (in_array($extension, $PDFWorkArr)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="docscanButton<?php echo $ConvertGuiCounter1; ?>" name="docscanButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/docscan.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="docscanXButton<?php echo $ConvertGuiCounter1; ?>" name="docscanXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ArchiveArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="archiveButton<?php echo $ConvertGuiCounter1; ?>" name="archiveButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/convert.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="archiveXButton<?php echo $ConvertGuiCounter1; ?>" name="archiveXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DocumentArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="documentButton<?php echo $ConvertGuiCounter1; ?>" name="documentButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/document.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('docOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="documentXButton<?php echo $ConvertGuiCounter1; ?>" name="documentXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('docOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $SpreadsheetArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="spreadsheetButton<?php echo $ConvertGuiCounter1; ?>" name="spreadsheetButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/spreadsheet.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>" name="spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $PresentationArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="presentationButton<?php echo $ConvertGuiCounter1; ?>" name="presentationButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/presentation.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="presentationXButton<?php echo $ConvertGuiCounter1; ?>" name="presentationXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ImageArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="imageButton<?php echo $ConvertGuiCounter1; ?>" name="imageButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/photo.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="imageXButton<?php echo $ConvertGuiCounter1; ?>" name="imageXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $MediaArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="mediaButton<?php echo $ConvertGuiCounter1; ?>" name="mediaButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/stream.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="mediaXButton<?php echo $ConvertGuiCounter1; ?>" name="mediaXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $VideoArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="videoButton<?php echo $ConvertGuiCounter1; ?>" name="videoButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/stream.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="videoXButton<?php echo $ConvertGuiCounter1; ?>" name="videoXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $StreamArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="streamButton<?php echo $ConvertGuiCounter1; ?>" name="streamButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/stream.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="streamXButton<?php echo $ConvertGuiCounter1; ?>" name="streamXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DrawingArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="drawingButton<?php echo $ConvertGuiCounter1; ?>" name="drawingButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/convert.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="drawingXButton<?php echo $ConvertGuiCounter1; ?>" name="drawingXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ModelArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="modelButton<?php echo $ConvertGuiCounter1; ?>" name="modelButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/convert.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="modelXButton<?php echo $ConvertGuiCounter1; ?>" name="modelXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<div id='archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>এই ফাইলটি আর্কাইভ করুন</strong></p>
|
||||
<p>ফাইলের নাম উল্লেখ করুন: <input type="text" id='userarchfilefilename<?php echo $ConvertGuiCounter1; ?>' name='userarchfilefilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='archfileextension<?php echo $ConvertGuiCounter1; ?>' name='archfileextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="zip">বিন্যাস</option>
|
||||
<option value="zip">Zip</option>
|
||||
<option value="rar">Rar</option>
|
||||
<option value="tar">Tar</option>
|
||||
<option value="7z">7z</option>
|
||||
</select></p>
|
||||
<input type="submit" id="archfileSubmit<?php echo $ConvertGuiCounter1; ?>" name="archfileSubmit<?php echo $ConvertGuiCounter1; ?>" value='সংরক্ষণাগার ফাইল' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#archfileSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
archive:'<?php echo $File; ?>',
|
||||
filesToArchive:'<?php echo $File; ?>',
|
||||
archextension:document.getElementById('archfileextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userfilename:document.getElementById('userarchfilefilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userarchfilefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archfileextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userarchfilefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archfileextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
|
||||
<?php if ($AllowUserShare) { ?>
|
||||
<div id='sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>এই ফাইল শেয়ার করুন</strong></p>
|
||||
<p id='sharelinkStatus<?php echo $ConvertGuiCounter1; ?>' name='sharelinkStatus<?php echo $ConvertGuiCounter1; ?>'>লিঙ্ক স্থিতি: <i>তৈরি হয়নি</i></p>
|
||||
<p id='shareclipStatus<?php echo $ConvertGuiCounter1; ?>' name='shareclipStatus<?php echo $ConvertGuiCounter1; ?>'>ক্লিপবোর্ড স্থিতি: <i>কপি করা হয়নি</i></p>
|
||||
<p id='sharelinkURL<?php echo $ConvertGuiCounter1; ?>' name='sharelinkURL<?php echo $ConvertGuiCounter1; ?>'>ফাইল লিঙ্ক: <i>তৈরি হয়নি</i></p>
|
||||
|
||||
<input type="submit" id="sharegeneratebutton<?php echo $ConvertGuiCounter1; ?>" name="sharegeneratebutton<?php echo $ConvertGuiCounter1; ?>" value='লিঙ্ক তৈরি করুন এবং ক্লিপবোর্ডে অনুলিপি করুন' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<input type="submit" id="sharecopybutton<?php echo $ConvertGuiCounter1; ?>" name="sharecopybutton<?php echo $ConvertGuiCounter1; ?>" value='লিংক তৈরি করুন' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#sharegeneratebutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $File; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('sharelinkStatus<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'লিঙ্ক স্থিতি: <i>উৎপন্ন</i>';
|
||||
document.getElementById('shareclipStatus<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'ক্লিপবোর্ড স্থিতি: <i>কপি করা হয়েছে</i>';
|
||||
document.getElementById('sharelinkURL<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'ফাইল লিঙ্ক: <i><?php echo $FullURL.'/DATA/'.$SesHash3.'/'.$File; ?></i>';
|
||||
copy_share_link("<?php echo $FullURL.'/DATA/'.$SesHash3.'/'.$File; ?>");
|
||||
alert("<?php echo $Alert2; ?>"); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert3; ?>"); } }); });
|
||||
$('#sharecopybutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $File; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('sharelinkStatus<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'লিঙ্ক স্থিতি: <i>উৎপন্ন</i>';
|
||||
document.getElementById('sharelinkURL<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'ফাইল লিঙ্ক: <i><?php echo $FullURL.'/DATA/'.$SesHash3.'/'.$File; ?></i>'; },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert3; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if ($AllowUserVirusScan) { ?>
|
||||
<div id='scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>ভাইরাসের জন্য এই ফাইলটি স্ক্যান করুন</strong></p>
|
||||
<input type="submit" id="scancorebutton<?php echo $ConvertGuiCounter1; ?>" name="scancorebutton<?php echo $ConvertGuiCounter1; ?>" value='ScanCore দিয়ে ফাইল স্ক্যান করুন' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<input type="submit" id="clamscanbutton<?php echo $ConvertGuiCounter1; ?>" name="clamscanbutton<?php echo $ConvertGuiCounter1; ?>" value='ClamAV দিয়ে ফাইল স্ক্যান করুন' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<input type="submit" id="scanallbutton<?php echo $ConvertGuiCounter1; ?>" name="scanallbutton<?php echo $ConvertGuiCounter1; ?>" value='ScanCore এবং ClamAV দিয়ে ফাইল স্ক্যান করুন' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#scancorebutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:'scancore',
|
||||
filesToScan:'<?php echo $File; ?>' },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); });
|
||||
$('#clamscanbutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:'all',
|
||||
filesToScan:'<?php echo $File; ?>' },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); });
|
||||
$('#scanallbutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:'all',
|
||||
filesToScan:'<?php echo $File; ?>' },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $PDFWorkArr)) {
|
||||
?>
|
||||
<div id='pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>এই ফাইলে অপটিক্যাল ক্যারেক্টার রিকগনিশন সম্পাদন করুন</strong></p>
|
||||
<p>ফাইলের নাম উল্লেখ করুন: <input type="text" id='userpdffilename<?php echo $ConvertGuiCounter1; ?>' name='userpdffilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='pdfmethod<?php echo $ConvertGuiCounter1; ?>' name='pdfmethod<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="0">পদ্ধতি</option>
|
||||
<option value="1">1 পদ্ধতি (সরল)</option>
|
||||
<option value="2">2 পদ্ধতি (উন্নত)</option>
|
||||
</select>
|
||||
<select id='pdfextension<?php echo $ConvertGuiCounter1; ?>' name='pdfextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="pdf">বিন্যাস</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
<option value="doc">Doc</option>
|
||||
<option value="docx">Docx</option>
|
||||
<option value="rtf">Rtf</option>
|
||||
<option value="txt">Txt</option>
|
||||
<option value="odt">Odt</option>
|
||||
</select></p>
|
||||
<p><input type="submit" id='pdfconvertSubmit<?php echo $ConvertGuiCounter1; ?>' name='pdfconvertSubmit<?php echo $ConvertGuiCounter1; ?>' value='নথিতে রূপান্তর করুন' onclick="toggle_visibility('loadingCommandDiv');"></p>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#pdfconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
pdfworkSelected:'<?php echo $File; ?>',
|
||||
method:document.getElementById('pdfmethod<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
pdfextension:document.getElementById('pdfextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userpdfconvertfilename:document.getElementById('userpdffilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userpdffilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('pdfextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userpdffilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('pdfextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ArchiveArray)) {
|
||||
?>
|
||||
<div id='archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>এই সংরক্ষণাগার রূপান্তর করুন</strong></p>
|
||||
<p>ফাইলের নাম উল্লেখ করুন: <input type="text" id='userarchivefilename<?php echo $ConvertGuiCounter1; ?>' name='userarchivefilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='archiveextension<?php echo $ConvertGuiCounter1; ?>' name='archiveextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="zip">বিন্যাস</option>
|
||||
<option value="zip">Zip</option>
|
||||
<option value="rar">Rar</option>
|
||||
<option value="tar">Tar</option>
|
||||
<option value="7z">7z</option>
|
||||
</select></p>
|
||||
<input type="submit" id="archiveconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="archiveconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='সংরক্ষণাগার ফাইল' onclick="toggle_visibility('loadingCommandDiv'); display:none;">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#archiveconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('archiveextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userarchivefilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userarchivefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archiveextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userarchivefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archiveextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DocumentArray)) {
|
||||
?>
|
||||
<div id='docOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='docOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>এই নথিটি রূপান্তর করুন</strong></p>
|
||||
<p>ফাইলের নাম উল্লেখ করুন: <input type="text" id='userdocfilename<?php echo $ConvertGuiCounter1; ?>' name='userdocfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='docextension<?php echo $ConvertGuiCounter1; ?>' name='docextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="txt">বিন্যাস</option>
|
||||
<option value="doc">Doc</option>
|
||||
<option value="docx">Docx</option>
|
||||
<option value="rtf">Rtf</option>
|
||||
<option value="txt">Txt</option>
|
||||
<option value="odt">Odt</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
</select></p>
|
||||
<input type="submit" id="docconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="docconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='এই নথিটি রূপান্তর করুন' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#docconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('docextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userdocfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userdocfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('docextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userdocfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('docextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $SpreadsheetArray)) {
|
||||
?>
|
||||
<div id='spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>এই স্প্রেডশীট রূপান্তর করুন</strong></p>
|
||||
<p>ফাইলের নাম উল্লেখ করুন: <input type="text" id='userspreadfilename<?php echo $ConvertGuiCounter1; ?>' name='userspreadfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='spreadextension<?php echo $ConvertGuiCounter1; ?>' name='spreadextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="ods">বিন্যাস</option>
|
||||
<option value="xls">Xls</option>
|
||||
<option value="xlsx">Xlsx</option>
|
||||
<option value="ods">Ods</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
</select></p>
|
||||
<input type="submit" id="spreadconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="spreadconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='স্প্রেডশীট রূপান্তর করুন' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#spreadconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('spreadextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('spreadextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('spreadextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); }
|
||||
}); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $PresentationArray)) {
|
||||
?>
|
||||
<div id='presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>এই উপস্থাপনা রূপান্তর করুন</strong></p>
|
||||
<p>ফাইলের নাম উল্লেখ করুন: <input type="text" id='userpresentationfilename<?php echo $ConvertGuiCounter1; ?>' name='userpresentationfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='presentationextension<?php echo $ConvertGuiCounter1; ?>' name='presentationextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="odp">বিন্যাস</option>
|
||||
<option value="pages">Pages</option>
|
||||
<option value="pptx">Pptx</option>
|
||||
<option value="ppt">Ppt</option>
|
||||
<option value="xps">Xps</option>
|
||||
<option value="potx">Potx</option>
|
||||
<option value="pot">Pot</option>
|
||||
<option value="ppa">Ppa</option>
|
||||
<option value="odp">Odp</option>
|
||||
</select></p>
|
||||
<input type="submit" id="presentationconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="presentationconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='উপস্থাপনা রূপান্তর' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#presentationconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('presentationextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userpresentationfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userpresentationfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('presentationextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('presentationextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $MediaArray)) {
|
||||
?>
|
||||
<div id='audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>এই অডিও রূপান্তর করুন</strong></p>
|
||||
<p>ফাইলের নাম উল্লেখ করুন: <input type="text" id='useraudiofilename<?php echo $ConvertGuiCounter1; ?>' name='useraudiofilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='audioextension<?php echo $ConvertGuiCounter1; ?>' name='audioextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="mp3">বিন্যাস</option>
|
||||
<option value="mp2">Mp2</option>
|
||||
<option value="mp3">Mp3</option>
|
||||
<option value="wav">Wav</option>
|
||||
<option value="wma">Wma</option>
|
||||
<option value="flac">Flac</option>
|
||||
<option value="ogg">Ogg</option>
|
||||
</select></p>
|
||||
<input type="submit" id="audioconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="audioconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='অডিও রূপান্তর করুন' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#audioconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('audioextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('useraudiofilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('useraudiofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('audioextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('useraudiofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('audioextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $VideoArray)) {
|
||||
?>
|
||||
<div id='videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>এই ভিডিও কনভার্ট করুন<</strong></p>
|
||||
<p>ফাইলের নাম উল্লেখ করুন: <input type="text" id='uservideofilename<?php echo $ConvertGuiCounter1; ?>' name='uservideofilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='videoextension<?php echo $ConvertGuiCounter1; ?>' name='videoextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="mp4">বিন্যাস</option>
|
||||
<option value="3gp">3gp</option>
|
||||
<option value="mkv">Mkv</option>
|
||||
<option value="avi">Avi</option>
|
||||
<option value="mp4">Mp4</option>
|
||||
<option value="flv">Flv</option>
|
||||
<option value="mpeg">Mpeg</option>
|
||||
<option value="wmv">Wmv</option>
|
||||
<option value="mov">Mov</option>
|
||||
</select></p>
|
||||
<input type="submit" id="videoconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="videoconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='ভিডিও রূপান্তর' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#videoconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('videoextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('uservideofilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('uservideofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('videoextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('uservideofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('videoextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $StreamArray)) {
|
||||
?>
|
||||
<div id='streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>এই স্ট্রীম রূপান্তর করুন</strong></p>
|
||||
<p>ফাইলের নাম উল্লেখ করুন: <input type="text" id='userstreamfilename<?php echo $ConvertGuiCounter1; ?>' name='userstreamfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='streamextension<?php echo $ConvertGuiCounter1; ?>' name='streamextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="mp4">Format</option>
|
||||
<option value="3gp">3gp</option>
|
||||
<option value="mkv">Mkv</option>
|
||||
<option value="avi">Avi</option>
|
||||
<option value="mp4">Mp4</option>
|
||||
<option value="flv">Flv</option>
|
||||
<option value="mpeg">Mpeg</option>
|
||||
<option value="wmv">Wmv</option>
|
||||
<option value="mov">Mov</option>
|
||||
</select></p>
|
||||
<input type="submit" id="streamconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="streamconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='স্ট্রিম রূপান্তর করুন' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#streamconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('streamextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userstreamfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userstreamfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('streamextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userstreamfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('streamextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ModelArray)) {
|
||||
?>
|
||||
<div id='modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>এই ত্রিমাত্রিক মডেলটিকে রূপান্তর করুন</strong></p>
|
||||
<p>ফাইলের নাম উল্লেখ করুন: <input type="text" id='usermodelfilename<?php echo $ConvertGuiCounter1; ?>' name='usermodelfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='modelextension<?php echo $ConvertGuiCounter1; ?>' name='modelextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="3ds">বিন্যাস</option>
|
||||
<option value="3ds">3ds</option>
|
||||
<option value="collada">Collada</option>
|
||||
<option value="obj">Obj</option>
|
||||
<option value="off">Off</option>
|
||||
<option value="ply">Ply</option>
|
||||
<option value="stl">Stl</option>
|
||||
<option value="ptx">Ptx</option>
|
||||
<option value="dxf">Dxf</option>
|
||||
<option value="u3d">U3d</option>
|
||||
<option value="vrml">Vrml</option>
|
||||
</select></p>
|
||||
<input type="submit" id="modelconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="modelconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='রূপান্তর মডেল' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#modelconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('modelextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('usermodelfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('usermodelfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('modelextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('usermodelfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('modelextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DrawingArray)) {
|
||||
?>
|
||||
<div id='drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>এই প্রযুক্তিগত অঙ্কন বা ভেক্টর ফাইল রূপান্তর করুন</strong></p>
|
||||
<p>ফাইলের নাম উল্লেখ করুন: <input type="text" id='userdrawingfilename<?php echo $ConvertGuiCounter1; ?>' name='userdrawingfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='drawingextension<?php echo $ConvertGuiCounter1; ?>' name='drawingextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="jpg">বিন্যাস</option>
|
||||
<option value="svg">Svg</option>
|
||||
<option value="dxf">Dxf</option>
|
||||
<option value="vdx">Vdx</option>
|
||||
<option value="fig">Fig</option>
|
||||
<option value="jpg">Jpg</option>
|
||||
<option value="png">Png</option>
|
||||
<option value="bmp">Bmp</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
</select></p>
|
||||
<input type="submit" id="drawingconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="drawingconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='অঙ্কন রূপান্তর' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#drawingconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('drawingextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userdrawingfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('drawingfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('drawingextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userdrawingfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('drawingextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ImageArray)) {
|
||||
?>
|
||||
<div id='imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>এই চিত্রটি রূপান্তর করুন</strong></p>
|
||||
<p>ফাইলের নাম উল্লেখ করুন: <input type="text" id='userphotofilename<?php echo $ConvertGuiCounter1; ?>' name='userphotofilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='photoextension<?php echo $ConvertGuiCounter1; ?>' name='photoextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="jpg">বিন্যাস</option>
|
||||
<option value="jpg">Jpg</option>
|
||||
<option value="bmp">Bmp</option>
|
||||
<option value="webp">Webp</option>
|
||||
<option value="png">Png</option>
|
||||
<option value="cin">Cin</option>
|
||||
<option value="dds">Dds</option>
|
||||
<option value="dib">Dib</option>
|
||||
<option value="flif">Flif</option>
|
||||
<option value="avif">Avif</option>
|
||||
</select></p>
|
||||
<p>প্রস্থ এবং উচ্চতা: </p>
|
||||
<p><input type="number" size="4" value="0" id='width<?php echo $ConvertGuiCounter1; ?>' name='width<?php echo $ConvertGuiCounter1; ?>' min="0" max="10000"> X <input type="number" size="4" value="0" id="height<?php echo $ConvertGuiCounter1; ?>" name="height<?php echo $ConvertGuiCounter1; ?>" min="0" max="10000"></p>
|
||||
<p>আবর্তিত: <input type="number" size="3" id='rotate<?php echo $ConvertGuiCounter1; ?>' name='rotate<?php echo $ConvertGuiCounter1; ?>' value="0" min="0" max="359"></p>
|
||||
<input type="submit" id='convertPhotoSubmit<?php echo $ConvertGuiCounter1; ?>' name='convertPhotoSubmit<?php echo $ConvertGuiCounter1; ?>' value='ছবি রূপান্তর করুন' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#convertPhotoSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
rotate:$('#rotate<?php echo $ConvertGuiCounter1; ?>').val(),
|
||||
width:$('#width<?php echo $ConvertGuiCounter1; ?>').val(),
|
||||
height:$('#height<?php echo $ConvertGuiCounter1; ?>').val(),
|
||||
extension:document.getElementById('photoextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userphotofilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userphotofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('photoextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userphotofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('photoextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<hr />
|
||||
<?php } ?>
|
10
Languages/bn/footer.php
Normal file
10
Languages/bn/footer.php
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?php if (!isset($ShowFinePrint)) $ShowFinePrint = TRUE;
|
||||
if ($ShowFinePrint) { ?>
|
||||
<div id="footer" name="footer" style="max-width:1000px; margin-left:auto; margin-right:auto; text-align:center;">
|
||||
<p>আমাদের পরিষেবার <a href="<?php echo $TOSURL; ?>" target="_blank" rel="noopener noreferrer">শর্তাবলী</a>
|
||||
এবং <a href="<?php echo $PPURL; ?>" target="_blank" rel="noopener noreferrer">গোপনীয়তা নীতি</a> দেখুন</p>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</body>
|
||||
</html>
|
20
Languages/bn/header.php
Normal file
20
Languages/bn/header.php
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?php if (!isset($ApplicationName)) $ApplicationName = 'HRConvert2';
|
||||
if (!isset($ApplicationTitle)) $ApplicationTitle = 'কিছু রূপান্তর!';
|
||||
if (!isset($Font)) $Font = 'Arial'; ?>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="shortcut icon" href="Resources/favicon.ico"/>
|
||||
<link rel="stylesheet" href="Resources/dropzone.css"/>
|
||||
<link rel="stylesheet" href="Resources/HRConvert2.css"/>
|
||||
<script type="text/javascript" src="Resources/HRC2-Functions.js"></script>
|
||||
<script type="text/javascript">var dropzoneText = 'আপলোড করতে এখানে ফাইলগুলিকে ক্লিক করুন, ট্যাপ করুন বা ড্রপ করুন৷';</script>
|
||||
<script type="text/javascript" src="Resources/dropzone.js"></script>
|
||||
<style>
|
||||
body {
|
||||
font-family: <?php echo $Font; ?>; }
|
||||
<?php if (isset($ButtonCode)) echo $ButtonCode; ?>
|
||||
</style>
|
||||
<title><?php echo $ApplicationName; ?> - <?php echo $ApplicationTitle; ?></title>
|
||||
</head>
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<html lang="en-US">
|
||||
<title>HRConvert2 | HRConvert2 Authentication</title>
|
||||
<body>
|
||||
<div id="outer" align="center"><h1>Configuring HRConvert2 ...</h1>
|
224
Languages/de/convertGui1.php
Normal file
224
Languages/de/convertGui1.php
Normal file
|
@ -0,0 +1,224 @@
|
|||
<?php
|
||||
if (!isset($ApplicationName)) $ApplicationName = 'HRConvert2';
|
||||
if (!isset($ApplicationTitle)) $ApplicationTitle = 'Konvertieren Sie alles!';
|
||||
if (!isset($CoreLoaded)) die('ERROR!!! '.$ApplicationName.'-2, This file cannot process your request! Please submit your file to convertCore.php instead!');
|
||||
if (!isset($ShowFinePrint)) $ShowFinePrint = TRUE;
|
||||
?>
|
||||
<body>
|
||||
<?php
|
||||
if (!isset($_GET['noGui'])) { ?>
|
||||
<div id="header-text" style="max-width:1000px; margin-left:auto; margin-right:auto; text-align:center;">
|
||||
<h1><?php echo $ApplicationName; ?></h1>
|
||||
<h3>Online-Dateikonverter, Extraktor, Kompressor</h3>
|
||||
<hr />
|
||||
</div>
|
||||
<div id="main" align="center">
|
||||
<div id="overview" style="max-width:1000px; text-align:left; margin:25px;">
|
||||
<p id="info" style="display:block;"><?php echo $ApplicationName; ?> basiert auf der kostenlosen Anwendung <a href='https://github.com/zelon88/HRConvert2'>HRConvert2</a> von <a href='https://github.com/zelon88'>Zelon88</a>, die Dateien konvertiert, ohne Benutzer über das Internet zu verfolgen oder Ihr geistiges Eigentum zu verletzen.</p>
|
||||
<button id="more-info-button" class="info-button" onclick="toggle_visibility('more-info'); toggle_visibility('more-info-button'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('less-info-button');" style="text-align:center; display:block; margin-left:auto; margin-right:auto;"><i>Mehr Informationen...</i></button>
|
||||
<button id="less-info-button" class="info-button" onclick="toggle_visibility('more-info'); toggle_visibility('more-info-button'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('less-info-button');" style="text-align:center; display:none; margin-left:auto; margin-right:auto;"><i>Weniger Informationen...</i></button>
|
||||
<div id="more-info" style="display:none;">
|
||||
<hr />
|
||||
<p>Alle vom Benutzer bereitgestellten Daten werden automatisch gelöscht, sodass Sie sich keine Sorgen über den Verlust Ihrer persönlichen Daten oder Ihres Eigentums machen müssen, wenn Sie unsere Dienste nutzen.</p>
|
||||
<p><?php echo $ApplicationName; ?> unterstützt 77 verschiedene Dateiformate, darunter Dokumente, Tabellenkalkulationen, Bilder, Medien, dreidimensionale Modelle, technische Zeichnungen, Vektordateien, Archive, Disk-Images und mehr.</p>
|
||||
<button id="supported-formats-show-button" class="info-button" onclick="toggle_visibility('supported-formats'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('supported-formats-hide-button');" style="text-align:center; display:none; margin-left:auto; margin-right:auto;"><i>Unterstützte Formate Anzeigen...</i></button>
|
||||
<button id="supported-formats-hide-button" class="info-button" onclick="toggle_visibility('supported-formats'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('supported-formats-hide-button');" style="text-align:center; display:none; margin-left:auto; margin-right:auto;"><i>Unterstützte Formate Ausblenden...</i></button>
|
||||
<br>
|
||||
<div id="supported-formats" class="supported-formats" style="margin-left:33%; display:none;">
|
||||
<h3>Unterstützte Formate</h3>
|
||||
<hr />
|
||||
<strong>Audioformate</strong>
|
||||
<p><i>Audio Unterstützt eine bestimmte Bitrate über die Anwendungsprogrammierschnittstelle.</i></p>
|
||||
<ol>
|
||||
<li>Mp2</li>
|
||||
<li>Mp3</li>
|
||||
<li>Avi</li>
|
||||
<li>Flac</li>
|
||||
<li>Ogg</li>
|
||||
<li>Wav</li>
|
||||
<li>Wma</li>
|
||||
<li>M4a</li>
|
||||
<li>M4p</li>
|
||||
</ol>
|
||||
<strong>Videoformate</strong>
|
||||
<ol>
|
||||
<li>3gp</li>
|
||||
<li>Mkv</li>
|
||||
<li>Avi</li>
|
||||
<li>Mp4</li>
|
||||
<li>Flv</li>
|
||||
<li>Mpeg</li>
|
||||
<li>Wmv</li>
|
||||
<li>Mov</li>
|
||||
<li>M4v</li>
|
||||
</ol>
|
||||
<strong>Stream-Formate</strong>
|
||||
<ol>
|
||||
<li>m3u8</li>
|
||||
</ol>
|
||||
<strong>Dokumentformate</strong>
|
||||
<ol>
|
||||
<li>Doc</li>
|
||||
<li>Docx</li>
|
||||
<li>Txt</li>
|
||||
<li>Rtf</li>
|
||||
<li>Odt</li>
|
||||
<li>Pdf</li>
|
||||
</ol>
|
||||
<strong>Tabellenformate</strong>
|
||||
<ol>
|
||||
<li>Xls</li>
|
||||
<li>Xlsx</li>
|
||||
<li>Ods</li>
|
||||
</ol>
|
||||
<strong>Präsentationsformate</strong>
|
||||
<ol>
|
||||
<li>Pages</li>
|
||||
<li>Pptx</li>
|
||||
<li>Ppt</li>
|
||||
<li>Xps</li>
|
||||
<li>Pot</li>
|
||||
<li>Potx</li>
|
||||
<li>Ppa</li>
|
||||
<li>Ppt</li>
|
||||
<li>Pptx</li>
|
||||
<li>Odp</li>
|
||||
</ol>
|
||||
<strong>Archivformate</strong>
|
||||
<p><i>Kann Folgendes erstellen, konvertieren und dearchivieren...</i></p>
|
||||
<ol>
|
||||
<li>Zip</li>
|
||||
<li>Rar</li>
|
||||
<li>Tar</li>
|
||||
<li>Tar.Bz2</li>
|
||||
<li>7z</li>
|
||||
</ol>
|
||||
<strong>Disk-Image-Formate</strong>
|
||||
<p><i>Kann eines der folgenden extrahieren oder in unterstützte Archivformate konvertieren...</i></p>
|
||||
<ol>
|
||||
<li>Iso</li>
|
||||
<li>Vhd</li>
|
||||
<li>Vdi</li>
|
||||
</ol>
|
||||
<strong>Bildformate</strong>
|
||||
<p><i>Unterstützt Größenänderung und Drehung über die GUI und API.</i></p>
|
||||
<p><i>Unterstützt das Deaktivieren des Beibehaltens des Seitenverhältnisses über die API.</i></p>
|
||||
<p><i>Bildkonvertierungsvorgänge unterstützen die folgenden Eingabeformate...</i></p>
|
||||
<ol>
|
||||
<li>Jpg</li>
|
||||
<li>Jpeg</li>
|
||||
<li>Png</li>
|
||||
<li>Bmp</li>
|
||||
<li>Webp</li>
|
||||
<li>Gif</li>
|
||||
<li>Cin</li>
|
||||
<li>Dds</li>
|
||||
<li>Dib</li>
|
||||
<li>Flif</li>
|
||||
<li>Avif</li>
|
||||
<li>Crw</li>
|
||||
<li>Dcr</li>
|
||||
<li>Gplt</li>
|
||||
<li>Nef</li>
|
||||
<li>Orf</li>
|
||||
<li>Ora</li>
|
||||
<li>Sct</li>
|
||||
<li>Sfw</li>
|
||||
<li>Xcf</li>
|
||||
<li>Xwd</li>
|
||||
<li>Avif</li>
|
||||
<li>Ico</li>
|
||||
</ol>
|
||||
<p><i>Bildkonvertierungsvorgänge unterstützen die folgenden Ausgabeformate...</i></p>
|
||||
<ol>
|
||||
<li>Jpg</li>
|
||||
<li>Jpeg</li>
|
||||
<li>Png</li>
|
||||
<li>Bmp</li>
|
||||
<li>Webp</li>
|
||||
<li>Cin</li>
|
||||
<li>Dds</li>
|
||||
<li>Dib</li>
|
||||
<li>Flif</li>
|
||||
<li>Avif</li>
|
||||
</ol>
|
||||
<strong>Dreidimensionale Modellformate</strong>
|
||||
<ol>
|
||||
<li>3ds</li>
|
||||
<li>Obj</li>
|
||||
<li>Collada</li>
|
||||
<li>Off</li>
|
||||
<li>Ply</li>
|
||||
<li>Stl</li>
|
||||
<li>Ptx</li>
|
||||
<li>Dxf</li>
|
||||
<li>U3d</li>
|
||||
<li>Vrml</li>
|
||||
</ol>
|
||||
<strong>Zeichnungsformate</strong>
|
||||
<p><i>Kann Zeichnungsdateien in Bildformate ausgeben.</i></p>
|
||||
<p><i>Kann zwischen einem der folgenden konvertieren...</i></p>
|
||||
<ol>
|
||||
<li>Svg</li>
|
||||
<li>Dxf</li>
|
||||
<li>Fig</li>
|
||||
<li>Vdx</li>
|
||||
</ol>
|
||||
<strong>Unterstützung der optischen Zeichenerkennung</strong>
|
||||
<p><i>Optische Zeichenerkennungsoperationen unterstützen die folgenden Eingabeformate...</i></p>
|
||||
<ol>
|
||||
<li>Jpg</li>
|
||||
<li>Jpeg</li>
|
||||
<li>Png</li>
|
||||
<li>Bmp</li>
|
||||
<li>Pdf</li>
|
||||
<li>Gif</li>
|
||||
</ol>
|
||||
<p><i>Optische Zeichenerkennungsoperationen unterstützen die folgenden Ausgabeformate...</i></p>
|
||||
<ol>
|
||||
<li>Doc</li>
|
||||
<li>Docx</li>
|
||||
<li>Txt</li>
|
||||
<li>Rtf</li>
|
||||
<li>Odt</li>
|
||||
<li>Pdf</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<hr />
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div align="center">
|
||||
<div id="call-to-action1" style="max-width:1000px; text-align:center;">
|
||||
<p>Wählen Sie Dateien aus, indem Sie sie anklicken, antippen oder in das unten stehende Feld ziehen.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div align="center">
|
||||
<div id="dropzone" style="max-height:1000px; max-width:1000px; margin:25px;">
|
||||
<form action="convertCore.php" class="dropzone" id="filesToUpload" name="filesToUpload" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" id="token1" name="Token1" value="<?php echo $Token1; ?>">
|
||||
<input type="hidden" id="token2" name="Token2" value="<?php echo $Token2; ?>">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div align="center">
|
||||
<div id="continue" style="max-width:1000px; text-align:center;">
|
||||
<form action="convertCore.php?showFiles=1<?php if (isset($_GET['noGui'])) echo '&noGui=TRUE'; if (isset($_GET['language'])) echo '&language='.$_GET['language']; ?>" method="post">
|
||||
<input type="hidden" id="token1" name="Token1" value="<?php echo $Token1; ?>">
|
||||
<input type="hidden" id="token2" name="Token2" value="<?php echo $Token2; ?>">
|
||||
<input type="submit" id="continue-button" class="info-button" value="Fortsetzen...">
|
||||
</form>
|
||||
<br />
|
||||
<?php if (!isset($_GET['noGui'])) { ?>
|
||||
<hr />
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if (!isset($_GET['noGui'])) { ?>
|
||||
</div>
|
||||
<?php } ?>
|
985
Languages/de/convertGui2.php
Normal file
985
Languages/de/convertGui2.php
Normal file
|
@ -0,0 +1,985 @@
|
|||
<?php
|
||||
$Alert = 'Diese Datei kann nicht konvertiert werden! Versuchen Sie, den Namen zu ändern.';
|
||||
$Alert1 = 'Für diese Datei kann kein Virenscan durchgeführt werden!';
|
||||
$Alert2 = 'Dateilink in die Zwischenablage kopiert!';
|
||||
$Alert3 = 'Operation fehlgeschlagen!';
|
||||
$FCPlural1 = '';
|
||||
if (!is_numeric($FileCount)) $FileCount = 0;
|
||||
if (!isset($ApplicationName)) $ApplicationName = 'HRConvert2';
|
||||
if (!isset($ApplicationTitle)) $ApplicationTitle = 'Конвертируйте что угодно!';
|
||||
if (!isset($CoreLoaded)) die('ERROR!!! '.$ApplicationName.'-2, Diese Datei kann Ihre Anfrage nicht verarbeiten! Bitte senden Sie Ihre Datei stattdessen an convertCore.php!');
|
||||
if (!isset($ShowFinePrint)) $ShowFinePrint = TRUE;
|
||||
if ($FileCount === 0) $FCPlural1 = 'Sie haben 0 gültige Dateien auf '.$ApplicationName.'-2 hochgeladen.';
|
||||
if ($FileCount === 1) $FCPlural1 = 'Sie haben 1 gültige Datei auf '.$ApplicationName.'-2 hochgeladen.';
|
||||
if ($FileCount >= 2) $FCPlural1 = 'Sie haben '.$FileCount.' gültige Dateien auf '.$ApplicationName.'-2 hochgeladen.';
|
||||
?>
|
||||
<body>
|
||||
<script type="text/javascript" src="Resources/jquery-3.6.0.min.js"></script>
|
||||
<div id="header-text" style="max-width:1000px; margin-left:auto; margin-right:auto; text-align:center;">
|
||||
<?php if (!isset($_GET['noGui'])) { ?><h1><?php echo $ApplicationName; ?></h1>
|
||||
<hr /><?php } ?>
|
||||
<h3>Optionen Für Die Dateikonvertierung</h3>
|
||||
<p><?php echo $FCPlural1; ?></p>
|
||||
<p>Ihre Dateien können jetzt mithilfe der folgenden Optionen konvertiert werden.</p>
|
||||
</div>
|
||||
|
||||
<div id='utility' align="center">
|
||||
<p><img id='loadingCommandDiv' name='loadingCommandDiv' src='<?php echo $PacmanLoc; ?>' style="max-width:64px; max-height:64px; display:none;"/></p>
|
||||
<a id='downloadTarget' href='about:blank' style="display: none;" download></a>
|
||||
</div>
|
||||
|
||||
<div id="compressAll" name="compressAll" style="max-width:1000px; margin-left: auto; margin-right: auto; text-align:center;">
|
||||
<button id="backButton" name="backButton" style="width:50px;" class="info-button" onclick="window.history.back();">←</button>
|
||||
<button id="refreshButton" name="refreshButton" style="width:50px;" class="info-button" onclick="javascript:location.reload(true);">↻</button>
|
||||
<br /> <br />
|
||||
<button id="scandocMoreOptionsButton" name="scandocMoreOptionsButton" class="info-button" onclick="toggle_visibility('compressAllOptions');">Massendateioptionen</button>
|
||||
<div id="compressAllOptions" name="compressAllOptions" align="center" style="display:none;">
|
||||
<?php if ($AllowUserVirusScan) { ?>
|
||||
<hr style='width: 50%;' />
|
||||
<p><strong>Alle Dateien auf Viren Scannen</strong></p>
|
||||
<p>Mit ClamAV Scannen <input type="checkbox" id="clamscanall" value="clamscanall" name="clamScan" checked></p>
|
||||
<p>Mit ScanCore Scannen <input type="checkbox" id="scancoreall" value="scancoreall" name="phpavScan" checked></p>
|
||||
<p><input type="submit" id="scanAllButton" name="scanAllButton" class="info-button" value='Alles Scannen' onclick="toggle_visibility('loadingCommandDiv');"></p>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#scanAllButton').click(function() {
|
||||
var scanfiles = <?php echo json_encode($Files); ?>;
|
||||
var scanType = 'all';
|
||||
if($("input#clamscanall").is(":checked")) {
|
||||
var scanType = 'clamav'; }
|
||||
if($("input#scancoreall").is(":checked")) {
|
||||
var scanType = 'scancore'; }
|
||||
if($("input#clamscanall").is(":checked") && $("input#scancoreall").is(":checked")) {
|
||||
var scanType = 'all'; }
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:scanType,
|
||||
filesToScan:scanfiles },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); }); });
|
||||
</script>
|
||||
<?php } ?>
|
||||
<hr style='width: 50%;' />
|
||||
<p><strong>Alle Dateien Komprimieren und Herunterladen</strong></p>
|
||||
<p>Dateinamen Angeben: <input type="text" id='userarchallfilename' name='userarchallfilename' value='HRConvert2_Files-<?php echo $Date; ?>'></p>
|
||||
<select id='archallextension' name='archallextension'>
|
||||
<option value="zip">Formatieren</option>
|
||||
<option value="zip">Zip</option>
|
||||
<option value="rar">Rar</option>
|
||||
<option value="tar">Tar</option>
|
||||
<option value="7z">7z</option>
|
||||
</select>
|
||||
<input type="submit" id="archallSubmit" name="archallSubmit" class="info-button" value='Alles Komprimieren' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#archallSubmit').click(function() {
|
||||
var extension = document.getElementById('archallextension').value;
|
||||
if (extension === "") {
|
||||
extension = 'zip'; }
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
archive:'1',
|
||||
filesToArchive:<?php echo json_encode($Files); ?>,
|
||||
archextension:extension,
|
||||
userfilename:document.getElementById('userarchallfilename').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userarchallfilename').value+'.'+extension },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userarchallfilename').value+'.'+extension;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
<hr style='width: 50%;' />
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div style="max-width:1000px; margin-left:auto; margin-right:auto;">
|
||||
<hr />
|
||||
|
||||
<?php
|
||||
foreach ($Files as $File) {
|
||||
$extension = getExtension($ConvertTempDir.'/'.$File);
|
||||
$FileNoExt = str_replace($extension, '', $File);
|
||||
if (!in_array($extension, $ConvertArray)) continue;
|
||||
$ConvertGuiCounter1++;
|
||||
?>
|
||||
|
||||
<div id="file<?php echo $ConvertGuiCounter1; ?>" name="<?php echo $ConvertGuiCounter1; ?>">
|
||||
<p href=""><strong><?php echo $ConvertGuiCounter1; ?>.</strong> <u><?php echo $File; ?></u></p>
|
||||
<div id="buttonDiv<?php echo $ConvertGuiCounter1; ?>" name="buttonDiv<?php echo $ConvertGuiCounter1; ?>" style="height:25px;">
|
||||
|
||||
<img id="downloadfilebutton<?php echo $ConvertGuiCounter1; ?>" name="downloadfilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/download.png" style="float:left; display:block;" onclick="toggle_visibility('loadingCommandDiv');"/>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#downloadfilebutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $File; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$File; ?>";
|
||||
document.getElementById('downloadTarget').click(); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
|
||||
<?php if ($AllowUserShare) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
<img id="sharefilebutton<?php echo $ConvertGuiCounter1; ?>" name="sharefilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/link.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('sharefilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('shareXfilebutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="shareXfilebutton<?php echo $ConvertGuiCounter1; ?>" name="shareXfilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('sharefilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('shareXfilebutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($AllowUserVirusScan) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
<img id="scanfilebutton<?php echo $ConvertGuiCounter1; ?>" name="scanfilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/scan.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfileXbutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="scanfileXbutton<?php echo $ConvertGuiCounter1; ?>" name="scanfileXbutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfileXbutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<a style="float:left;"> | </a>
|
||||
<img id="archfileButton<?php echo $ConvertGuiCounter1; ?>" name="archfileButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/archive.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="archfileXButton<?php echo $ConvertGuiCounter1; ?>" name="archfileXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
|
||||
<?php if (in_array($extension, $PDFWorkArr)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="docscanButton<?php echo $ConvertGuiCounter1; ?>" name="docscanButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/docscan.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="docscanXButton<?php echo $ConvertGuiCounter1; ?>" name="docscanXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ArchiveArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="archiveButton<?php echo $ConvertGuiCounter1; ?>" name="archiveButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/convert.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="archiveXButton<?php echo $ConvertGuiCounter1; ?>" name="archiveXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DocumentArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="documentButton<?php echo $ConvertGuiCounter1; ?>" name="documentButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/document.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('docOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="documentXButton<?php echo $ConvertGuiCounter1; ?>" name="documentXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('docOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $SpreadsheetArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="spreadsheetButton<?php echo $ConvertGuiCounter1; ?>" name="spreadsheetButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/spreadsheet.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>" name="spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $PresentationArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="presentationButton<?php echo $ConvertGuiCounter1; ?>" name="presentationButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/presentation.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="presentationXButton<?php echo $ConvertGuiCounter1; ?>" name="presentationXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ImageArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="imageButton<?php echo $ConvertGuiCounter1; ?>" name="imageButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/photo.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="imageXButton<?php echo $ConvertGuiCounter1; ?>" name="imageXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $MediaArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="mediaButton<?php echo $ConvertGuiCounter1; ?>" name="mediaButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/stream.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="mediaXButton<?php echo $ConvertGuiCounter1; ?>" name="mediaXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $VideoArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="videoButton<?php echo $ConvertGuiCounter1; ?>" name="videoButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/stream.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="videoXButton<?php echo $ConvertGuiCounter1; ?>" name="videoXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $StreamArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="streamButton<?php echo $ConvertGuiCounter1; ?>" name="streamButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/stream.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="streamXButton<?php echo $ConvertGuiCounter1; ?>" name="streamXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DrawingArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="drawingButton<?php echo $ConvertGuiCounter1; ?>" name="drawingButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/convert.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="drawingXButton<?php echo $ConvertGuiCounter1; ?>" name="drawingXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ModelArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="modelButton<?php echo $ConvertGuiCounter1; ?>" name="modelButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/convert.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="modelXButton<?php echo $ConvertGuiCounter1; ?>" name="modelXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<div id='archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Diese Datei Archivieren</strong></p>
|
||||
<p>Dateinamen Angeben: <input type="text" id='userarchfilefilename<?php echo $ConvertGuiCounter1; ?>' name='userarchfilefilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='archfileextension<?php echo $ConvertGuiCounter1; ?>' name='archfileextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="zip">Formatieren</option>
|
||||
<option value="zip">Zip</option>
|
||||
<option value="rar">Rar</option>
|
||||
<option value="tar">Tar</option>
|
||||
<option value="7z">7z</option>
|
||||
</select></p>
|
||||
<input type="submit" id="archfileSubmit<?php echo $ConvertGuiCounter1; ?>" name="archfileSubmit<?php echo $ConvertGuiCounter1; ?>" value='Archivdatei' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#archfileSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
archive:'<?php echo $File; ?>',
|
||||
filesToArchive:'<?php echo $File; ?>',
|
||||
archextension:document.getElementById('archfileextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userfilename:document.getElementById('userarchfilefilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userarchfilefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archfileextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userarchfilefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archfileextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
|
||||
<?php if ($AllowUserShare) { ?>
|
||||
<div id='sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Teile Diese Datei</strong></p>
|
||||
<p id='sharelinkStatus<?php echo $ConvertGuiCounter1; ?>' name='sharelinkStatus<?php echo $ConvertGuiCounter1; ?>'>Verbindungsstatus: <i>Nicht Generiert</i></p>
|
||||
<p id='shareclipStatus<?php echo $ConvertGuiCounter1; ?>' name='shareclipStatus<?php echo $ConvertGuiCounter1; ?>'>Zwischenablagestatus: <i>Nicht Kopiert</i></p>
|
||||
<p id='sharelinkURL<?php echo $ConvertGuiCounter1; ?>' name='sharelinkURL<?php echo $ConvertGuiCounter1; ?>'>Dateilink: <i>Nicht Generiert</i></p>
|
||||
|
||||
<input type="submit" id="sharegeneratebutton<?php echo $ConvertGuiCounter1; ?>" name="sharegeneratebutton<?php echo $ConvertGuiCounter1; ?>" value='Link Generieren und in die Zwischenablage Kopieren' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<input type="submit" id="sharecopybutton<?php echo $ConvertGuiCounter1; ?>" name="sharecopybutton<?php echo $ConvertGuiCounter1; ?>" value='Verknüpfung Generieren' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#sharegeneratebutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $File; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('sharelinkStatus<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'Verbindungsstatus: <i>Generiert</i>';
|
||||
document.getElementById('shareclipStatus<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'Zwischenablagestatus: <i>Kopiert</i>';
|
||||
document.getElementById('sharelinkURL<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'Dateilink: <i><?php echo $FullURL.'/DATA/'.$SesHash3.'/'.$File; ?></i>';
|
||||
copy_share_link("<?php echo $FullURL.'/DATA/'.$SesHash3.'/'.$File; ?>");
|
||||
alert("<?php echo $Alert2; ?>"); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert3; ?>"); } }); });
|
||||
$('#sharecopybutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $File; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('sharelinkStatus<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'Verbindungsstatus: <i>Generiert</i>';
|
||||
document.getElementById('sharelinkURL<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'Dateilink: <i><?php echo $FullURL.'/DATA/'.$SesHash3.'/'.$File; ?></i>'; },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert3; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if ($AllowUserVirusScan) { ?>
|
||||
<div id='scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Scannen Sie Diese Datei auf Viren</strong></p>
|
||||
<input type="submit" id="scancorebutton<?php echo $ConvertGuiCounter1; ?>" name="scancorebutton<?php echo $ConvertGuiCounter1; ?>" value='Datei mit ScanCore scannen' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<input type="submit" id="clamscanbutton<?php echo $ConvertGuiCounter1; ?>" name="clamscanbutton<?php echo $ConvertGuiCounter1; ?>" value='Datei mit ClamAV scannen' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<input type="submit" id="scanallbutton<?php echo $ConvertGuiCounter1; ?>" name="scanallbutton<?php echo $ConvertGuiCounter1; ?>" value='Datei mit ScanCore & ClamAV scannen' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#scancorebutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:'scancore',
|
||||
filesToScan:'<?php echo $File; ?>' },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); });
|
||||
$('#clamscanbutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:'all',
|
||||
filesToScan:'<?php echo $File; ?>' },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); });
|
||||
$('#scanallbutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:'all',
|
||||
filesToScan:'<?php echo $File; ?>' },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $PDFWorkArr)) {
|
||||
?>
|
||||
<div id='pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Führen Sie Eine Optische Zeichenerkennung Für Diese Datei Durch</strong></p>
|
||||
<p>Dateinamen Angeben: <input type="text" id='userpdffilename<?php echo $ConvertGuiCounter1; ?>' name='userpdffilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='pdfmethod<?php echo $ConvertGuiCounter1; ?>' name='pdfmethod<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="0">Methode</option>
|
||||
<option value="1">Methode 1 (Einfach)</option>
|
||||
<option value="2">Methode 2 (Fortschrittlich)</option>
|
||||
</select>
|
||||
<select id='pdfextension<?php echo $ConvertGuiCounter1; ?>' name='pdfextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="pdf">Formatieren</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
<option value="doc">Doc</option>
|
||||
<option value="docx">Docx</option>
|
||||
<option value="rtf">Rtf</option>
|
||||
<option value="txt">Txt</option>
|
||||
<option value="odt">Odt</option>
|
||||
</select></p>
|
||||
<p><input type="submit" id='pdfconvertSubmit<?php echo $ConvertGuiCounter1; ?>' name='pdfconvertSubmit<?php echo $ConvertGuiCounter1; ?>' value='In Dokument Umwandeln' onclick="toggle_visibility('loadingCommandDiv');"></p>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#pdfconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
pdfworkSelected:'<?php echo $File; ?>',
|
||||
method:document.getElementById('pdfmethod<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
pdfextension:document.getElementById('pdfextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userpdfconvertfilename:document.getElementById('userpdffilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userpdffilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('pdfextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userpdffilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('pdfextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ArchiveArray)) {
|
||||
?>
|
||||
<div id='archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Dieses Archiv Konvertieren</strong></p>
|
||||
<p>Dateinamen Angeben: <input type="text" id='userarchivefilename<?php echo $ConvertGuiCounter1; ?>' name='userarchivefilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='archiveextension<?php echo $ConvertGuiCounter1; ?>' name='archiveextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="zip">Formatieren</option>
|
||||
<option value="zip">Zip</option>
|
||||
<option value="rar">Rar</option>
|
||||
<option value="tar">Tar</option>
|
||||
<option value="7z">7z</option>
|
||||
</select></p>
|
||||
<input type="submit" id="archiveconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="archiveconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Archiv Konvertieren' onclick="toggle_visibility('loadingCommandDiv'); display:none;">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#archiveconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('archiveextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userarchivefilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userarchivefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archiveextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userarchivefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archiveextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DocumentArray)) {
|
||||
?>
|
||||
<div id='docOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='docOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Dieses Dokument Konvertieren</strong></p>
|
||||
<p>Dateinamen Angeben: <input type="text" id='userdocfilename<?php echo $ConvertGuiCounter1; ?>' name='userdocfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='docextension<?php echo $ConvertGuiCounter1; ?>' name='docextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="txt">Formatieren</option>
|
||||
<option value="doc">Doc</option>
|
||||
<option value="docx">Docx</option>
|
||||
<option value="rtf">Rtf</option>
|
||||
<option value="txt">Txt</option>
|
||||
<option value="odt">Odt</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
</select></p>
|
||||
<input type="submit" id="docconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="docconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Dokument Konvertieren' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#docconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('docextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userdocfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userdocfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('docextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userdocfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('docextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $SpreadsheetArray)) {
|
||||
?>
|
||||
<div id='spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Diese Tabelle Konvertieren</strong></p>
|
||||
<p>Dateinamen Angeben: <input type="text" id='userspreadfilename<?php echo $ConvertGuiCounter1; ?>' name='userspreadfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='spreadextension<?php echo $ConvertGuiCounter1; ?>' name='spreadextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="ods">Formatieren</option>
|
||||
<option value="xls">Xls</option>
|
||||
<option value="xlsx">Xlsx</option>
|
||||
<option value="ods">Ods</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
</select></p>
|
||||
<input type="submit" id="spreadconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="spreadconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Tabellenkalkulation Konvertieren' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#spreadconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('spreadextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('spreadextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('spreadextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); }
|
||||
}); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $PresentationArray)) {
|
||||
?>
|
||||
<div id='presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Diese Präsentation Umwandeln</strong></p>
|
||||
<p>Dateinamen Angeben: <input type="text" id='userpresentationfilename<?php echo $ConvertGuiCounter1; ?>' name='userpresentationfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='presentationextension<?php echo $ConvertGuiCounter1; ?>' name='presentationextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="odp">Formatieren</option>
|
||||
<option value="pages">Pages</option>
|
||||
<option value="pptx">Pptx</option>
|
||||
<option value="ppt">Ppt</option>
|
||||
<option value="xps">Xps</option>
|
||||
<option value="potx">Potx</option>
|
||||
<option value="pot">Pot</option>
|
||||
<option value="ppa">Ppa</option>
|
||||
<option value="odp">Odp</option>
|
||||
</select></p>
|
||||
<input type="submit" id="presentationconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="presentationconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Präsentation Konvertieren' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#presentationconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('presentationextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userpresentationfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userpresentationfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('presentationextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('presentationextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $MediaArray)) {
|
||||
?>
|
||||
<div id='audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Dieses Audio Konvertieren</strong></p>
|
||||
<p>Dateinamen Angeben: <input type="text" id='useraudiofilename<?php echo $ConvertGuiCounter1; ?>' name='useraudiofilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='audioextension<?php echo $ConvertGuiCounter1; ?>' name='audioextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="mp3">Formatieren</option>
|
||||
<option value="mp2">Mp2</option>
|
||||
<option value="mp3">Mp3</option>
|
||||
<option value="wav">Wav</option>
|
||||
<option value="wma">Wma</option>
|
||||
<option value="flac">Flac</option>
|
||||
<option value="ogg">Ogg</option>
|
||||
</select></p>
|
||||
<input type="submit" id="audioconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="audioconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Audio Konvertieren' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#audioconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('audioextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('useraudiofilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('useraudiofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('audioextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('useraudiofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('audioextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $VideoArray)) {
|
||||
?>
|
||||
<div id='videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Dieses Video Konvertieren</strong></p>
|
||||
<p>Dateinamen Angeben: <input type="text" id='uservideofilename<?php echo $ConvertGuiCounter1; ?>' name='uservideofilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='videoextension<?php echo $ConvertGuiCounter1; ?>' name='videoextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="mp4">Formatieren</option>
|
||||
<option value="3gp">3gp</option>
|
||||
<option value="mkv">Mkv</option>
|
||||
<option value="avi">Avi</option>
|
||||
<option value="mp4">Mp4</option>
|
||||
<option value="flv">Flv</option>
|
||||
<option value="mpeg">Mpeg</option>
|
||||
<option value="wmv">Wmv</option>
|
||||
<option value="mov">Mov</option>
|
||||
</select></p>
|
||||
<input type="submit" id="videoconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="videoconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Video Konvertieren' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#videoconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('videoextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('uservideofilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('uservideofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('videoextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('uservideofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('videoextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $StreamArray)) {
|
||||
?>
|
||||
<div id='streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Dieses Stream Konvertieren</strong></p>
|
||||
<p>Dateinamen Angeben: <input type="text" id='userstreamfilename<?php echo $ConvertGuiCounter1; ?>' name='userstreamfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='streamextension<?php echo $ConvertGuiCounter1; ?>' name='streamextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="mp4">Format</option>
|
||||
<option value="3gp">3gp</option>
|
||||
<option value="mkv">Mkv</option>
|
||||
<option value="avi">Avi</option>
|
||||
<option value="mp4">Mp4</option>
|
||||
<option value="flv">Flv</option>
|
||||
<option value="mpeg">Mpeg</option>
|
||||
<option value="wmv">Wmv</option>
|
||||
<option value="mov">Mov</option>
|
||||
</select></p>
|
||||
<input type="submit" id="streamconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="streamconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Stream Konvertieren' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#streamconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('streamextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userstreamfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userstreamfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('streamextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userstreamfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('streamextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ModelArray)) {
|
||||
?>
|
||||
<div id='modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Dieses Dreidimensionale Modell Konvertieren</strong></p>
|
||||
<p>Dateinamen Angeben: <input type="text" id='usermodelfilename<?php echo $ConvertGuiCounter1; ?>' name='usermodelfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='modelextension<?php echo $ConvertGuiCounter1; ?>' name='modelextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="3ds">Formatieren</option>
|
||||
<option value="3ds">3ds</option>
|
||||
<option value="collada">Collada</option>
|
||||
<option value="obj">Obj</option>
|
||||
<option value="off">Off</option>
|
||||
<option value="ply">Ply</option>
|
||||
<option value="stl">Stl</option>
|
||||
<option value="ptx">Ptx</option>
|
||||
<option value="dxf">Dxf</option>
|
||||
<option value="u3d">U3d</option>
|
||||
<option value="vrml">Vrml</option>
|
||||
</select></p>
|
||||
<input type="submit" id="modelconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="modelconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Modell Konvertieren' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#modelconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('modelextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('usermodelfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('usermodelfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('modelextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('usermodelfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('modelextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DrawingArray)) {
|
||||
?>
|
||||
<div id='drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Konvertieren Sie Diese Technische Zeichnung Oder Vektordatei</strong></p>
|
||||
<p>Dateinamen Angeben: <input type="text" id='userdrawingfilename<?php echo $ConvertGuiCounter1; ?>' name='userdrawingfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='drawingextension<?php echo $ConvertGuiCounter1; ?>' name='drawingextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="jpg">Formatieren</option>
|
||||
<option value="svg">Svg</option>
|
||||
<option value="dxf">Dxf</option>
|
||||
<option value="vdx">Vdx</option>
|
||||
<option value="fig">Fig</option>
|
||||
<option value="jpg">Jpg</option>
|
||||
<option value="png">Png</option>
|
||||
<option value="bmp">Bmp</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
</select></p>
|
||||
<input type="submit" id="drawingconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="drawingconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Konvertieren Sie Die Zeichnung' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#drawingconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('drawingextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userdrawingfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('drawingfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('drawingextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userdrawingfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('drawingextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ImageArray)) {
|
||||
?>
|
||||
<div id='imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Dieses Bild Konvertieren</strong></p>
|
||||
<p>Dateinamen Angeben: <input type="text" id='userphotofilename<?php echo $ConvertGuiCounter1; ?>' name='userphotofilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='photoextension<?php echo $ConvertGuiCounter1; ?>' name='photoextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="jpg">Formatieren</option>
|
||||
<option value="jpg">Jpg</option>
|
||||
<option value="bmp">Bmp</option>
|
||||
<option value="webp">Webp</option>
|
||||
<option value="png">Png</option>
|
||||
<option value="cin">Cin</option>
|
||||
<option value="dds">Dds</option>
|
||||
<option value="dib">Dib</option>
|
||||
<option value="flif">Flif</option>
|
||||
<option value="avif">Avif</option>
|
||||
</select></p>
|
||||
<p>Breite und Höhe: </p>
|
||||
<p><input type="number" size="4" value="0" id='width<?php echo $ConvertGuiCounter1; ?>' name='width<?php echo $ConvertGuiCounter1; ?>' min="0" max="10000"> X <input type="number" size="4" value="0" id="height<?php echo $ConvertGuiCounter1; ?>" name="height<?php echo $ConvertGuiCounter1; ?>" min="0" max="10000"></p>
|
||||
<p>Drehen: <input type="number" size="3" id='rotate<?php echo $ConvertGuiCounter1; ?>' name='rotate<?php echo $ConvertGuiCounter1; ?>' value="0" min="0" max="359"></p>
|
||||
<input type="submit" id='convertPhotoSubmit<?php echo $ConvertGuiCounter1; ?>' name='convertPhotoSubmit<?php echo $ConvertGuiCounter1; ?>' value='Bild Konvertieren' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#convertPhotoSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
rotate:$('#rotate<?php echo $ConvertGuiCounter1; ?>').val(),
|
||||
width:$('#width<?php echo $ConvertGuiCounter1; ?>').val(),
|
||||
height:$('#height<?php echo $ConvertGuiCounter1; ?>').val(),
|
||||
extension:document.getElementById('photoextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userphotofilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userphotofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('photoextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userphotofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('photoextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<hr />
|
||||
<?php } ?>
|
||||
</div>
|
10
Languages/de/footer.php
Normal file
10
Languages/de/footer.php
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?php if (!isset($ShowFinePrint)) $ShowFinePrint = TRUE;
|
||||
if ($ShowFinePrint) { ?>
|
||||
<div id="footer" name="footer" style="max-width:1000px; margin-left:auto; margin-right:auto; text-align:center;">
|
||||
<p>Lesen Sie unsere <a href="<?php echo $TOSURL; ?>" target="_blank" rel="noopener noreferrer">Nutzungsbedingungen</a>
|
||||
und <a href="<?php echo $PPURL; ?>" target="_blank" rel="noopener noreferrer">Datenschutzrichtlinie</a></p>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</body>
|
||||
</html>
|
20
Languages/de/header.php
Normal file
20
Languages/de/header.php
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?php if (!isset($ApplicationName)) $ApplicationName = 'HRConvert2';
|
||||
if (!isset($ApplicationTitle)) $ApplicationTitle = 'Konvertieren Sie alles!';
|
||||
if (!isset($Font)) $Font = 'Arial'; ?>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="shortcut icon" href="Resources/favicon.ico"/>
|
||||
<link rel="stylesheet" href="Resources/dropzone.css"/>
|
||||
<link rel="stylesheet" href="Resources/HRConvert2.css"/>
|
||||
<script type="text/javascript" src="Resources/HRC2-Functions.js"></script>
|
||||
<script type="text/javascript">var dropzoneText = 'Klicken, tippen oder legen Sie Dateien hier ab, um sie hochzuladen.';</script>
|
||||
<script type="text/javascript" src="Resources/dropzone.js"></script>
|
||||
<style>
|
||||
body {
|
||||
font-family: <?php echo $Font; ?>; }
|
||||
<?php if (isset($ButtonCode)) echo $ButtonCode; ?>
|
||||
</style>
|
||||
<title><?php echo $ApplicationName; ?> - <?php echo $ApplicationTitle; ?></title>
|
||||
</head>
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<html lang="en-US">
|
||||
<title>HRConvert2 | HRConvert2 Authentication</title>
|
||||
<body>
|
||||
<div id="outer" align="center"><h1>Configuring HRConvert2 ...</h1>
|
224
Languages/en/convertGui1.php
Normal file
224
Languages/en/convertGui1.php
Normal file
|
@ -0,0 +1,224 @@
|
|||
<?php
|
||||
if (!isset($ApplicationName)) $ApplicationName = 'HRConvert2';
|
||||
if (!isset($ApplicationTitle)) $ApplicationTitle = 'Convert Anything!';
|
||||
if (!isset($CoreLoaded)) die('ERROR!!! '.$ApplicationName.'-2, This file cannot process your request! Please submit your file to convertCore.php instead!');
|
||||
if (!isset($ShowFinePrint)) $ShowFinePrint = TRUE;
|
||||
?>
|
||||
<body>
|
||||
<?php
|
||||
if (!isset($_GET['noGui'])) { ?>
|
||||
<div id="header-text" style="max-width:1000px; margin-left:auto; margin-right:auto; text-align:center;">
|
||||
<h1><?php echo $ApplicationName; ?></h1>
|
||||
<h3>Online File Converter, Extractor, Compressor</h3>
|
||||
<hr />
|
||||
</div>
|
||||
<div id="main" align="center">
|
||||
<div id="overview" style="max-width:1000px; text-align:left; margin:25px;">
|
||||
<p id="info" style="display:block;"><?php echo $ApplicationName; ?> is based off the open-source web-app <a href='https://github.com/zelon88/HRConvert2'>HRConvert2</a> by <a href='https://github.com/zelon88'>Zelon88</a> that converts files without tracking users across the net or infringing on your intellectual property.</p>
|
||||
<button id="more-info-button" class="info-button" onclick="toggle_visibility('more-info'); toggle_visibility('more-info-button'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('less-info-button');" style="text-align:center; display:block; margin-left:auto; margin-right:auto;"><i>More Info ...</i></button>
|
||||
<button id="less-info-button" class="info-button" onclick="toggle_visibility('more-info'); toggle_visibility('more-info-button'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('less-info-button');" style="text-align:center; display:none; margin-left:auto; margin-right:auto;"><i>Less Info ...</i></button>
|
||||
<div id="more-info" style="display:none;">
|
||||
<hr />
|
||||
<p>All user-supplied data is erased automatically, so you don't need to worry about forfeiting your personal information or property while using our services.</p>
|
||||
<p>Currently <?php echo $ApplicationName; ?> supports 77 different file formats, including documents, spreadsheets, images, media, 3D models, CAD drawings, vector files, archives, disk images, & more.</p>
|
||||
<button id="supported-formats-show-button" class="info-button" onclick="toggle_visibility('supported-formats'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('supported-formats-hide-button');" style="text-align:center; display:none; margin-left:auto; margin-right:auto;"><i>View Supported Formats ...</i></button>
|
||||
<button id="supported-formats-hide-button" class="info-button" onclick="toggle_visibility('supported-formats'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('supported-formats-hide-button');" style="text-align:center; display:none; margin-left:auto; margin-right:auto;"><i>Hide Supported Formats ...</i></button>
|
||||
<br>
|
||||
<div id="supported-formats" class="supported-formats" style="margin-left:33%; display:none;">
|
||||
<h3>Supported Formats</h3>
|
||||
<hr />
|
||||
<strong>Audio Formats</strong>
|
||||
<p><i>Supports specific bitrate through the API.</i></p>
|
||||
<ol>
|
||||
<li>Mp2</li>
|
||||
<li>Mp3</li>
|
||||
<li>Avi</li>
|
||||
<li>Flac</li>
|
||||
<li>Ogg</li>
|
||||
<li>Wav</li>
|
||||
<li>Wma</li>
|
||||
<li>M4a</li>
|
||||
<li>M4p</li>
|
||||
</ol>
|
||||
<strong>Video Formats</strong>
|
||||
<ol>
|
||||
<li>3gp</li>
|
||||
<li>Mkv</li>
|
||||
<li>Avi</li>
|
||||
<li>Mp4</li>
|
||||
<li>Flv</li>
|
||||
<li>Mpeg</li>
|
||||
<li>Wmv</li>
|
||||
<li>Mov</li>
|
||||
<li>M4v</li>
|
||||
</ol>
|
||||
<strong>Stream Formats</strong>
|
||||
<ol>
|
||||
<li>m3u8</li>
|
||||
</ol>
|
||||
<strong>Document Formats</strong>
|
||||
<ol>
|
||||
<li>Doc</li>
|
||||
<li>Docx</li>
|
||||
<li>Txt</li>
|
||||
<li>Rtf</li>
|
||||
<li>Odt</li>
|
||||
<li>Pdf</li>
|
||||
</ol>
|
||||
<strong>Spreadsheet Formats</strong>
|
||||
<ol>
|
||||
<li>Xls</li>
|
||||
<li>Xlsx</li>
|
||||
<li>Ods</li>
|
||||
</ol>
|
||||
<strong>Presentation Formats</strong>
|
||||
<ol>
|
||||
<li>Pages</li>
|
||||
<li>Pptx</li>
|
||||
<li>Ppt</li>
|
||||
<li>Xps</li>
|
||||
<li>Pot</li>
|
||||
<li>Potx</li>
|
||||
<li>Ppa</li>
|
||||
<li>Ppt</li>
|
||||
<li>Pptx</li>
|
||||
<li>Odp</li>
|
||||
</ol>
|
||||
<strong>Archive Formats</strong>
|
||||
<p><i>Can create, convert, and dearchive any of the following...</i></p>
|
||||
<ol>
|
||||
<li>Zip</li>
|
||||
<li>Rar</li>
|
||||
<li>Tar</li>
|
||||
<li>Tar.Bz2</li>
|
||||
<li>7z</li>
|
||||
</ol>
|
||||
<strong>Disk Image Formats</strong>
|
||||
<p><i>Can extract any of the following or convert to supported archive formats...</i></p>
|
||||
<ol>
|
||||
<li>Iso</li>
|
||||
<li>Vhd</li>
|
||||
<li>Vdi</li>
|
||||
</ol>
|
||||
<strong>Image Formats</strong>
|
||||
<p><i>Supports resize & rotate through the GUI and API.</i></p>
|
||||
<p><i>Supports disable maintain aspect ratio through API.</i></p>
|
||||
<p><i>Image Conversion Operations support the following input formats...</i></p>
|
||||
<ol>
|
||||
<li>Jpg</li>
|
||||
<li>Jpeg</li>
|
||||
<li>Png</li>
|
||||
<li>Bmp</li>
|
||||
<li>Webp</li>
|
||||
<li>Gif</li>
|
||||
<li>Cin</li>
|
||||
<li>Dds</li>
|
||||
<li>Dib</li>
|
||||
<li>Flif</li>
|
||||
<li>Avif</li>
|
||||
<li>Crw</li>
|
||||
<li>Dcr</li>
|
||||
<li>Gplt</li>
|
||||
<li>Nef</li>
|
||||
<li>Orf</li>
|
||||
<li>Ora</li>
|
||||
<li>Sct</li>
|
||||
<li>Sfw</li>
|
||||
<li>Xcf</li>
|
||||
<li>Xwd</li>
|
||||
<li>Avif</li>
|
||||
<li>Ico</li>
|
||||
</ol>
|
||||
<p><i>Image Conversion Operations support the following output formats...</i></p>
|
||||
<ol>
|
||||
<li>Jpg</li>
|
||||
<li>Jpeg</li>
|
||||
<li>Png</li>
|
||||
<li>Bmp</li>
|
||||
<li>Webp</li>
|
||||
<li>Cin</li>
|
||||
<li>Dds</li>
|
||||
<li>Dib</li>
|
||||
<li>Flif</li>
|
||||
<li>Avif</li>
|
||||
</ol>
|
||||
<strong>3D Model Formats</strong>
|
||||
<ol>
|
||||
<li>3ds</li>
|
||||
<li>Obj</li>
|
||||
<li>Collada</li>
|
||||
<li>Off</li>
|
||||
<li>Ply</li>
|
||||
<li>Stl</li>
|
||||
<li>Ptx</li>
|
||||
<li>Dxf</li>
|
||||
<li>U3d</li>
|
||||
<li>Vrml</li>
|
||||
</ol>
|
||||
<strong>Drawing Formats</strong>
|
||||
<p><i>Can output drawing files to image formats.</i></p>
|
||||
<p><i>Can convert between any of the following...</i></p>
|
||||
<ol>
|
||||
<li>Svg</li>
|
||||
<li>Dxf</li>
|
||||
<li>Fig</li>
|
||||
<li>Vdx</li>
|
||||
</ol>
|
||||
<strong>OCR Support</strong>
|
||||
<p><i>OCR Operations support the following input formats...</i></p>
|
||||
<ol>
|
||||
<li>Jpg</li>
|
||||
<li>Jpeg</li>
|
||||
<li>Png</li>
|
||||
<li>Bmp</li>
|
||||
<li>Pdf</li>
|
||||
<li>Gif</li>
|
||||
</ol>
|
||||
<p><i>OCR Operations support the following output formats...</i></p>
|
||||
<ol>
|
||||
<li>Doc</li>
|
||||
<li>Docx</li>
|
||||
<li>Txt</li>
|
||||
<li>Rtf</li>
|
||||
<li>Odt</li>
|
||||
<li>Pdf</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<hr />
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div align="center">
|
||||
<div id="call-to-action1" style="max-width:1000px; text-align:center;">
|
||||
<p>Select files by clicking, tapping, or dropping files into the box below.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div align="center">
|
||||
<div id="dropzone" style="max-height:1000px; max-width:1000px; margin:25px;">
|
||||
<form action="convertCore.php" class="dropzone" id="filesToUpload" name="filesToUpload" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" id="token1" name="Token1" value="<?php echo $Token1; ?>">
|
||||
<input type="hidden" id="token2" name="Token2" value="<?php echo $Token2; ?>">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div align="center">
|
||||
<div id="continue" style="max-width:1000px; text-align:center;">
|
||||
<form action="convertCore.php?showFiles=1<?php if (isset($_GET['noGui'])) echo '&noGui=TRUE'; if (isset($_GET['language'])) echo '&language='.$_GET['language']; ?>" method="post">
|
||||
<input type="hidden" id="token1" name="Token1" value="<?php echo $Token1; ?>">
|
||||
<input type="hidden" id="token2" name="Token2" value="<?php echo $Token2; ?>">
|
||||
<input type="submit" id="continue-button" class="info-button" value="Continue ...">
|
||||
</form>
|
||||
<br />
|
||||
<?php if (!isset($_GET['noGui'])) { ?>
|
||||
<hr />
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if (!isset($_GET['noGui'])) { ?>
|
||||
</div>
|
||||
<?php } ?>
|
986
Languages/en/convertGui2.php
Normal file
986
Languages/en/convertGui2.php
Normal file
|
@ -0,0 +1,986 @@
|
|||
<?php
|
||||
$Alert = 'Cannot convert this file! Try changing the name.';
|
||||
$Alert1 = 'Cannot perform a virus scan on this file!';
|
||||
$Alert2 = 'File Link Copied to Clipboard!';
|
||||
$Alert3 = 'Operation Failed!';
|
||||
$FCPlural1 = 's';
|
||||
$FCPlural2 = 's are';
|
||||
if (!isset($ShowFinePrint)) $ShowFinePrint = TRUE;
|
||||
if (!is_numeric($FileCount)) $FileCount = 'an unknown number of';
|
||||
if ($FileCount == 1) {
|
||||
$FCPlural1 = '';
|
||||
$FCPlural2 = ' is'; }
|
||||
if (!isset($ApplicationName)) $ApplicationName = 'HRConvert2';
|
||||
if (!isset($ApplicationTitle)) $ApplicationTitle = 'Convert Anything!';
|
||||
if (!isset($CoreLoaded)) die('ERROR!!! '.$ApplicationName.'-2, This file cannot process your request! Please submit your file to convertCore.php instead!');
|
||||
?>
|
||||
<body>
|
||||
<script type="text/javascript" src="Resources/jquery-3.6.0.min.js"></script>
|
||||
<div id="header-text" style="max-width:1000px; margin-left:auto; margin-right:auto; text-align:center;">
|
||||
<?php if (!isset($_GET['noGui'])) { ?><h1><?php echo $ApplicationName; ?></h1>
|
||||
<hr /><?php } ?>
|
||||
<h3>File Conversion Options</h3>
|
||||
<p>You have uploaded <?php echo $FileCount; ?> valid file<?php echo $FCPlural1; ?> to <?php echo $ApplicationName; ?>.</p>
|
||||
<p>Your file<?php echo $FCPlural2; ?> now ready to convert using the options below.</p>
|
||||
</div>
|
||||
|
||||
<div id='utility' align="center">
|
||||
<p><img id='loadingCommandDiv' name='loadingCommandDiv' src='<?php echo $PacmanLoc; ?>' style="max-width:64px; max-height:64px; display:none;"/></p>
|
||||
<a id='downloadTarget' href='about:blank' style="display: none;" download></a>
|
||||
</div>
|
||||
|
||||
<div id="compressAll" name="compressAll" style="max-width:1000px; margin-left: auto; margin-right: auto; text-align:center;">
|
||||
<button id="backButton" name="backButton" style="width:50px;" class="info-button" onclick="window.history.back();">←</button>
|
||||
<button id="refreshButton" name="refreshButton" style="width:50px;" class="info-button" onclick="javascript:location.reload(true);">↻</button>
|
||||
<br /> <br />
|
||||
<button id="scandocMoreOptionsButton" name="scandocMoreOptionsButton" class="info-button" onclick="toggle_visibility('compressAllOptions');">Bulk File Options</button>
|
||||
<div id="compressAllOptions" name="compressAllOptions" align="center" style="display:none;">
|
||||
<?php if ($AllowUserVirusScan) { ?>
|
||||
<hr style='width: 50%;' />
|
||||
<p><strong>Scan All Files For Viruses</strong></p>
|
||||
<p>Scan with ClamAV: <input type="checkbox" id="clamscanall" value="clamscanall" name="clamScan" checked></p>
|
||||
<p>Scan with ScanCore: <input type="checkbox" id="scancoreall" value="scancoreall" name="phpavScan" checked></p>
|
||||
<p><input type="submit" id="scanAllButton" name="scanAllButton" class="info-button" value='Scan All' onclick="toggle_visibility('loadingCommandDiv');"></p>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#scanAllButton').click(function() {
|
||||
var scanfiles = <?php echo json_encode($Files); ?>;
|
||||
var scanType = 'all';
|
||||
if($("input#clamscanall").is(":checked")) {
|
||||
var scanType = 'clamav'; }
|
||||
if($("input#scancoreall").is(":checked")) {
|
||||
var scanType = 'scancore'; }
|
||||
if($("input#clamscanall").is(":checked") && $("input#scancoreall").is(":checked")) {
|
||||
var scanType = 'all'; }
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:scanType,
|
||||
filesToScan:scanfiles },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); }); });
|
||||
</script>
|
||||
<?php } ?>
|
||||
<hr style='width: 50%;' />
|
||||
<p><strong>Compress & Download All Files</strong></p>
|
||||
<p>Specify Filename: <input type="text" id='userarchallfilename' name='userarchallfilename' value='HRConvert2_Files-<?php echo $Date; ?>'></p>
|
||||
<select id='archallextension' name='archallextension'>
|
||||
<option value="zip">Format</option>
|
||||
<option value="zip">Zip</option>
|
||||
<option value="rar">Rar</option>
|
||||
<option value="tar">Tar</option>
|
||||
<option value="7z">7z</option>
|
||||
</select>
|
||||
<input type="submit" id="archallSubmit" name="archallSubmit" class="info-button" value='Compress & Download' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#archallSubmit').click(function() {
|
||||
var extension = document.getElementById('archallextension').value;
|
||||
if (extension === "") {
|
||||
extension = 'zip'; }
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
archive:'1',
|
||||
filesToArchive:<?php echo json_encode($Files); ?>,
|
||||
archextension:extension,
|
||||
userfilename:document.getElementById('userarchallfilename').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userarchallfilename').value+'.'+extension },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userarchallfilename').value+'.'+extension;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
<hr style='width: 50%;' />
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div style="max-width:1000px; margin-left:auto; margin-right:auto;">
|
||||
<hr />
|
||||
|
||||
<?php
|
||||
foreach ($Files as $File) {
|
||||
$extension = getExtension($ConvertTempDir.'/'.$File);
|
||||
$FileNoExt = str_replace($extension, '', $File);
|
||||
if (!in_array($extension, $ConvertArray)) continue;
|
||||
$ConvertGuiCounter1++;
|
||||
?>
|
||||
|
||||
<div id="file<?php echo $ConvertGuiCounter1; ?>" name="<?php echo $ConvertGuiCounter1; ?>">
|
||||
<p href=""><strong><?php echo $ConvertGuiCounter1; ?>.</strong> <u><?php echo $File; ?></u></p>
|
||||
<div id="buttonDiv<?php echo $ConvertGuiCounter1; ?>" name="buttonDiv<?php echo $ConvertGuiCounter1; ?>" style="height:25px;">
|
||||
|
||||
<img id="downloadfilebutton<?php echo $ConvertGuiCounter1; ?>" name="downloadfilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/download.png" style="float:left; display:block;" onclick="toggle_visibility('loadingCommandDiv');"/>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#downloadfilebutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $File; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$File; ?>";
|
||||
document.getElementById('downloadTarget').click(); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
|
||||
<?php if ($AllowUserShare) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
<img id="sharefilebutton<?php echo $ConvertGuiCounter1; ?>" name="sharefilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/link.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('sharefilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('shareXfilebutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="shareXfilebutton<?php echo $ConvertGuiCounter1; ?>" name="shareXfilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('sharefilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('shareXfilebutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($AllowUserVirusScan) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
<img id="scanfilebutton<?php echo $ConvertGuiCounter1; ?>" name="scanfilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/scan.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfileXbutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="scanfileXbutton<?php echo $ConvertGuiCounter1; ?>" name="scanfileXbutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfileXbutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<a style="float:left;"> | </a>
|
||||
<img id="archfileButton<?php echo $ConvertGuiCounter1; ?>" name="archfileButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/archive.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="archfileXButton<?php echo $ConvertGuiCounter1; ?>" name="archfileXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
|
||||
<?php if (in_array($extension, $PDFWorkArr)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="docscanButton<?php echo $ConvertGuiCounter1; ?>" name="docscanButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/docscan.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="docscanXButton<?php echo $ConvertGuiCounter1; ?>" name="docscanXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ArchiveArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="archiveButton<?php echo $ConvertGuiCounter1; ?>" name="archiveButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/convert.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="archiveXButton<?php echo $ConvertGuiCounter1; ?>" name="archiveXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DocumentArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="documentButton<?php echo $ConvertGuiCounter1; ?>" name="documentButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/document.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('docOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="documentXButton<?php echo $ConvertGuiCounter1; ?>" name="documentXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('docOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $SpreadsheetArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="spreadsheetButton<?php echo $ConvertGuiCounter1; ?>" name="spreadsheetButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/spreadsheet.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>" name="spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $PresentationArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="presentationButton<?php echo $ConvertGuiCounter1; ?>" name="presentationButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/presentation.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="presentationXButton<?php echo $ConvertGuiCounter1; ?>" name="presentationXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ImageArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="imageButton<?php echo $ConvertGuiCounter1; ?>" name="imageButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/photo.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="imageXButton<?php echo $ConvertGuiCounter1; ?>" name="imageXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $MediaArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="mediaButton<?php echo $ConvertGuiCounter1; ?>" name="mediaButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/stream.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="mediaXButton<?php echo $ConvertGuiCounter1; ?>" name="mediaXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $VideoArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="videoButton<?php echo $ConvertGuiCounter1; ?>" name="videoButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/stream.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="videoXButton<?php echo $ConvertGuiCounter1; ?>" name="videoXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $StreamArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="streamButton<?php echo $ConvertGuiCounter1; ?>" name="streamButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/stream.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="streamXButton<?php echo $ConvertGuiCounter1; ?>" name="streamXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DrawingArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="drawingButton<?php echo $ConvertGuiCounter1; ?>" name="drawingButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/convert.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="drawingXButton<?php echo $ConvertGuiCounter1; ?>" name="drawingXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ModelArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="modelButton<?php echo $ConvertGuiCounter1; ?>" name="modelButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/convert.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="modelXButton<?php echo $ConvertGuiCounter1; ?>" name="modelXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<div id='archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Archive This File</strong></p>
|
||||
<p>Specify Filename: <input type="text" id='userarchfilefilename<?php echo $ConvertGuiCounter1; ?>' name='userarchfilefilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='archfileextension<?php echo $ConvertGuiCounter1; ?>' name='archfileextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="zip">Format</option>
|
||||
<option value="zip">Zip</option>
|
||||
<option value="rar">Rar</option>
|
||||
<option value="tar">Tar</option>
|
||||
<option value="7z">7z</option>
|
||||
</select></p>
|
||||
<input type="submit" id="archfileSubmit<?php echo $ConvertGuiCounter1; ?>" name="archfileSubmit<?php echo $ConvertGuiCounter1; ?>" value='Archive File' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#archfileSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
archive:'<?php echo $File; ?>',
|
||||
filesToArchive:'<?php echo $File; ?>',
|
||||
archextension:document.getElementById('archfileextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userfilename:document.getElementById('userarchfilefilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userarchfilefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archfileextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userarchfilefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archfileextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
|
||||
<?php if ($AllowUserShare) { ?>
|
||||
<div id='sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Share This File</strong></p>
|
||||
<p id='sharelinkStatus<?php echo $ConvertGuiCounter1; ?>' name='sharelinkStatus<?php echo $ConvertGuiCounter1; ?>'>Link Status: <i>Not Generated</i></p>
|
||||
<p id='shareclipStatus<?php echo $ConvertGuiCounter1; ?>' name='shareclipStatus<?php echo $ConvertGuiCounter1; ?>'>Clipboard Status: <i>Not Copied</i></p>
|
||||
<p id='sharelinkURL<?php echo $ConvertGuiCounter1; ?>' name='sharelinkURL<?php echo $ConvertGuiCounter1; ?>'>File Link: <i>Not Generated</i></p>
|
||||
|
||||
<input type="submit" id="sharegeneratebutton<?php echo $ConvertGuiCounter1; ?>" name="sharegeneratebutton<?php echo $ConvertGuiCounter1; ?>" value='Generate Link & Copy to Clipboard' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<input type="submit" id="sharecopybutton<?php echo $ConvertGuiCounter1; ?>" name="sharecopybutton<?php echo $ConvertGuiCounter1; ?>" value='Generate Link' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#sharegeneratebutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $File; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('sharelinkStatus<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'Link Status: <i>Generated</i>';
|
||||
document.getElementById('shareclipStatus<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'Clipboard Status: <i>Copied</i>';
|
||||
document.getElementById('sharelinkURL<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'File Link: <i><?php echo $FullURL.'/DATA/'.$SesHash3.'/'.$File; ?></i>';
|
||||
copy_share_link("<?php echo $FullURL.'/DATA/'.$SesHash3.'/'.$File; ?>");
|
||||
alert("<?php echo $Alert2; ?>"); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert3; ?>"); } }); });
|
||||
$('#sharecopybutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $File; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('sharelinkStatus<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'Link Status: <i>Generated</i>';
|
||||
document.getElementById('sharelinkURL<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'File Link: <i><?php echo $FullURL.'/DATA/'.$SesHash3.'/'.$File; ?></i>'; },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert3; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if ($AllowUserVirusScan) { ?>
|
||||
<div id='scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Scan This File For Viruses</strong></p>
|
||||
<input type="submit" id="scancorebutton<?php echo $ConvertGuiCounter1; ?>" name="scancorebutton<?php echo $ConvertGuiCounter1; ?>" value='Scan File With ScanCore' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<input type="submit" id="clamscanbutton<?php echo $ConvertGuiCounter1; ?>" name="clamscanbutton<?php echo $ConvertGuiCounter1; ?>" value='Scan File With ClamAV' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<input type="submit" id="scanallbutton<?php echo $ConvertGuiCounter1; ?>" name="scanallbutton<?php echo $ConvertGuiCounter1; ?>" value='Scan File With ScanCore & ClamAV' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#scancorebutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:'scancore',
|
||||
filesToScan:'<?php echo $File; ?>' },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); });
|
||||
$('#clamscanbutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:'all',
|
||||
filesToScan:'<?php echo $File; ?>' },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); });
|
||||
$('#scanallbutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:'all',
|
||||
filesToScan:'<?php echo $File; ?>' },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $PDFWorkArr)) {
|
||||
?>
|
||||
<div id='pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Perform Optical Character Recognition On This File</strong></p>
|
||||
<p>Specify Filename: <input type="text" id='userpdffilename<?php echo $ConvertGuiCounter1; ?>' name='userpdffilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='pdfmethod<?php echo $ConvertGuiCounter1; ?>' name='pdfmethod<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="0">Method</option>
|
||||
<option value="1">Method 1 (Simple)</option>
|
||||
<option value="2">Method 2 (Advanced)</option>
|
||||
</select>
|
||||
<select id='pdfextension<?php echo $ConvertGuiCounter1; ?>' name='pdfextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="pdf">Format</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
<option value="doc">Doc</option>
|
||||
<option value="docx">Docx</option>
|
||||
<option value="rtf">Rtf</option>
|
||||
<option value="txt">Txt</option>
|
||||
<option value="odt">Odt</option>
|
||||
</select></p>
|
||||
<p><input type="submit" id='pdfconvertSubmit<?php echo $ConvertGuiCounter1; ?>' name='pdfconvertSubmit<?php echo $ConvertGuiCounter1; ?>' value='Convert Into Document' onclick="toggle_visibility('loadingCommandDiv');"></p>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#pdfconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
pdfworkSelected:'<?php echo $File; ?>',
|
||||
method:document.getElementById('pdfmethod<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
pdfextension:document.getElementById('pdfextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userpdfconvertfilename:document.getElementById('userpdffilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userpdffilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('pdfextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userpdffilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('pdfextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ArchiveArray)) {
|
||||
?>
|
||||
<div id='archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Convert This Archive</strong></p>
|
||||
<p>Specify Filename: <input type="text" id='userarchivefilename<?php echo $ConvertGuiCounter1; ?>' name='userarchivefilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='archiveextension<?php echo $ConvertGuiCounter1; ?>' name='archiveextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="zip">Format</option>
|
||||
<option value="zip">Zip</option>
|
||||
<option value="rar">Rar</option>
|
||||
<option value="tar">Tar</option>
|
||||
<option value="7z">7z</option>
|
||||
</select></p>
|
||||
<input type="submit" id="archiveconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="archiveconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Archive Files' onclick="toggle_visibility('loadingCommandDiv'); display:none;">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#archiveconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('archiveextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userarchivefilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userarchivefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archiveextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userarchivefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archiveextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DocumentArray)) {
|
||||
?>
|
||||
<div id='docOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='docOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Convert This Document</strong></p>
|
||||
<p>Specify Filename: <input type="text" id='userdocfilename<?php echo $ConvertGuiCounter1; ?>' name='userdocfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='docextension<?php echo $ConvertGuiCounter1; ?>' name='docextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="txt">Format</option>
|
||||
<option value="doc">Doc</option>
|
||||
<option value="docx">Docx</option>
|
||||
<option value="rtf">Rtf</option>
|
||||
<option value="txt">Txt</option>
|
||||
<option value="odt">Odt</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
</select></p>
|
||||
<input type="submit" id="docconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="docconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Convert Document' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#docconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('docextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userdocfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userdocfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('docextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userdocfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('docextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $SpreadsheetArray)) {
|
||||
?>
|
||||
<div id='spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Convert This Spreadsheet</strong></p>
|
||||
<p>Specify Filename: <input type="text" id='userspreadfilename<?php echo $ConvertGuiCounter1; ?>' name='userspreadfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='spreadextension<?php echo $ConvertGuiCounter1; ?>' name='spreadextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="ods">Format</option>
|
||||
<option value="xls">Xls</option>
|
||||
<option value="xlsx">Xlsx</option>
|
||||
<option value="ods">Ods</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
</select></p>
|
||||
<input type="submit" id="spreadconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="spreadconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Convert Spreadsheet' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#spreadconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('spreadextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('spreadextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('spreadextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); }
|
||||
}); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $PresentationArray)) {
|
||||
?>
|
||||
<div id='presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Convert This Presentation</strong></p>
|
||||
<p>Specify Filename: <input type="text" id='userpresentationfilename<?php echo $ConvertGuiCounter1; ?>' name='userpresentationfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='presentationextension<?php echo $ConvertGuiCounter1; ?>' name='presentationextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="odp">Format</option>
|
||||
<option value="pages">Pages</option>
|
||||
<option value="pptx">Pptx</option>
|
||||
<option value="ppt">Ppt</option>
|
||||
<option value="xps">Xps</option>
|
||||
<option value="potx">Potx</option>
|
||||
<option value="pot">Pot</option>
|
||||
<option value="ppa">Ppa</option>
|
||||
<option value="odp">Odp</option>
|
||||
</select></p>
|
||||
<input type="submit" id="presentationconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="presentationconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Convert Presentation' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#presentationconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('presentationextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userpresentationfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userpresentationfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('presentationextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('presentationextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $MediaArray)) {
|
||||
?>
|
||||
<div id='audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Convert This Audio</strong></p>
|
||||
<p>Specify Filename: <input type="text" id='useraudiofilename<?php echo $ConvertGuiCounter1; ?>' name='useraudiofilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='audioextension<?php echo $ConvertGuiCounter1; ?>' name='audioextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="mp3">Format</option>
|
||||
<option value="mp2">Mp2</option>
|
||||
<option value="mp3">Mp3</option>
|
||||
<option value="wav">Wav</option>
|
||||
<option value="wma">Wma</option>
|
||||
<option value="flac">Flac</option>
|
||||
<option value="ogg">Ogg</option>
|
||||
</select></p>
|
||||
<input type="submit" id="audioconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="audioconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Convert Audio' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#audioconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('audioextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('useraudiofilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('useraudiofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('audioextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('useraudiofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('audioextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $VideoArray)) {
|
||||
?>
|
||||
<div id='videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Convert This Video</strong></p>
|
||||
<p>Specify Filename: <input type="text" id='uservideofilename<?php echo $ConvertGuiCounter1; ?>' name='uservideofilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='videoextension<?php echo $ConvertGuiCounter1; ?>' name='videoextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="mp4">Format</option>
|
||||
<option value="3gp">3gp</option>
|
||||
<option value="mkv">Mkv</option>
|
||||
<option value="avi">Avi</option>
|
||||
<option value="mp4">Mp4</option>
|
||||
<option value="flv">Flv</option>
|
||||
<option value="mpeg">Mpeg</option>
|
||||
<option value="wmv">Wmv</option>
|
||||
<option value="mov">Mov</option>
|
||||
</select></p>
|
||||
<input type="submit" id="videoconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="videoconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Convert Video' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#videoconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('videoextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('uservideofilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('uservideofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('videoextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('uservideofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('videoextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $StreamArray)) {
|
||||
?>
|
||||
<div id='streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Convert This Stream</strong></p>
|
||||
<p>Specify Filename: <input type="text" id='userstreamfilename<?php echo $ConvertGuiCounter1; ?>' name='userstreamfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='streamextension<?php echo $ConvertGuiCounter1; ?>' name='streamextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="mp4">Format</option>
|
||||
<option value="3gp">3gp</option>
|
||||
<option value="mkv">Mkv</option>
|
||||
<option value="avi">Avi</option>
|
||||
<option value="mp4">Mp4</option>
|
||||
<option value="flv">Flv</option>
|
||||
<option value="mpeg">Mpeg</option>
|
||||
<option value="wmv">Wmv</option>
|
||||
<option value="mov">Mov</option>
|
||||
</select></p>
|
||||
<input type="submit" id="streamconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="streamconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Convert Stream' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#streamconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('streamextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userstreamfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userstreamfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('streamextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userstreamfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('streamextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ModelArray)) {
|
||||
?>
|
||||
<div id='modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Convert This 3D Model</strong></p>
|
||||
<p>Specify Filename: <input type="text" id='usermodelfilename<?php echo $ConvertGuiCounter1; ?>' name='usermodelfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='modelextension<?php echo $ConvertGuiCounter1; ?>' name='modelextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="3ds">Format</option>
|
||||
<option value="3ds">3ds</option>
|
||||
<option value="collada">Collada</option>
|
||||
<option value="obj">Obj</option>
|
||||
<option value="off">Off</option>
|
||||
<option value="ply">Ply</option>
|
||||
<option value="stl">Stl</option>
|
||||
<option value="ptx">Ptx</option>
|
||||
<option value="dxf">Dxf</option>
|
||||
<option value="u3d">U3d</option>
|
||||
<option value="vrml">Vrml</option>
|
||||
</select></p>
|
||||
<input type="submit" id="modelconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="modelconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Convert Model' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#modelconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('modelextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('usermodelfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('usermodelfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('modelextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('usermodelfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('modelextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DrawingArray)) {
|
||||
?>
|
||||
<div id='drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Convert This Technical Drawing Or Vector File</strong></p>
|
||||
<p>Specify Filename: <input type="text" id='userdrawingfilename<?php echo $ConvertGuiCounter1; ?>' name='userdrawingfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='drawingextension<?php echo $ConvertGuiCounter1; ?>' name='drawingextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="jpg">Format</option>
|
||||
<option value="svg">Svg</option>
|
||||
<option value="dxf">Dxf</option>
|
||||
<option value="vdx">Vdx</option>
|
||||
<option value="fig">Fig</option>
|
||||
<option value="jpg">Jpg</option>
|
||||
<option value="png">Png</option>
|
||||
<option value="bmp">Bmp</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
</select></p>
|
||||
<input type="submit" id="drawingconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="drawingconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Convert Drawing' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#drawingconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('drawingextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userdrawingfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('drawingfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('drawingextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userdrawingfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('drawingextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ImageArray)) {
|
||||
?>
|
||||
<div id='imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Convert This Image</strong></p>
|
||||
<p>Specify Filename: <input type="text" id='userphotofilename<?php echo $ConvertGuiCounter1; ?>' name='userphotofilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='photoextension<?php echo $ConvertGuiCounter1; ?>' name='photoextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="jpg">Format</option>
|
||||
<option value="jpg">Jpg</option>
|
||||
<option value="bmp">Bmp</option>
|
||||
<option value="webp">Webp</option>
|
||||
<option value="png">Png</option>
|
||||
<option value="cin">Cin</option>
|
||||
<option value="dds">Dds</option>
|
||||
<option value="dib">Dib</option>
|
||||
<option value="flif">Flif</option>
|
||||
<option value="avif">Avif</option>
|
||||
</select></p>
|
||||
<p>Width & Height: </p>
|
||||
<p><input type="number" size="4" value="0" id='width<?php echo $ConvertGuiCounter1; ?>' name='width<?php echo $ConvertGuiCounter1; ?>' min="0" max="10000"> X <input type="number" size="4" value="0" id="height<?php echo $ConvertGuiCounter1; ?>" name="height<?php echo $ConvertGuiCounter1; ?>" min="0" max="10000"></p>
|
||||
<p>Rotate: <input type="number" size="3" id='rotate<?php echo $ConvertGuiCounter1; ?>' name='rotate<?php echo $ConvertGuiCounter1; ?>' value="0" min="0" max="359"></p>
|
||||
<input type="submit" id='convertPhotoSubmit<?php echo $ConvertGuiCounter1; ?>' name='convertPhotoSubmit<?php echo $ConvertGuiCounter1; ?>' value='Convert Image' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#convertPhotoSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
rotate:$('#rotate<?php echo $ConvertGuiCounter1; ?>').val(),
|
||||
width:$('#width<?php echo $ConvertGuiCounter1; ?>').val(),
|
||||
height:$('#height<?php echo $ConvertGuiCounter1; ?>').val(),
|
||||
extension:document.getElementById('photoextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userphotofilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userphotofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('photoextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userphotofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('photoextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<hr />
|
||||
<?php } ?>
|
||||
</div>
|
10
Languages/en/footer.php
Normal file
10
Languages/en/footer.php
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?php if (!isset($ShowFinePrint)) $ShowFinePrint = TRUE;
|
||||
if ($ShowFinePrint) { ?>
|
||||
<div id="footer" name="footer" style="max-width:1000px; margin-left:auto; margin-right:auto; text-align:center;">
|
||||
<p>Check out our <a href="<?php echo $TOSURL; ?>" target="_blank" rel="noopener noreferrer">Terms of Service</a>
|
||||
and <a href="<?php echo $PPURL; ?>" target="_blank" rel="noopener noreferrer">Privacy Policy</a></p>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</body>
|
||||
</html>
|
20
Languages/en/header.php
Normal file
20
Languages/en/header.php
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?php if (!isset($ApplicationName)) $ApplicationName = 'HRConvert2';
|
||||
if (!isset($ApplicationTitle)) $ApplicationTitle = 'Convert Anything!';
|
||||
if (!isset($Font)) $Font = 'Arial'; ?>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="shortcut icon" href="Resources/favicon.ico"/>
|
||||
<link rel="stylesheet" href="Resources/dropzone.css"/>
|
||||
<link rel="stylesheet" href="Resources/HRConvert2.css"/>
|
||||
<script type="text/javascript" src="Resources/HRC2-Functions.js"></script>
|
||||
<script type="text/javascript">var dropzoneText = 'Click, Tap, or Drop files here to upload.';</script>
|
||||
<script type="text/javascript" src="Resources/dropzone.js"></script>
|
||||
<style>
|
||||
body {
|
||||
font-family: <?php echo $Font; ?>; }
|
||||
<?php if (isset($ButtonCode)) echo $ButtonCode; ?>
|
||||
</style>
|
||||
<title><?php echo $ApplicationName; ?> - <?php echo $ApplicationTitle; ?></title>
|
||||
</head>
|
||||
|
|
@ -1,5 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<html lang="en-US">
|
||||
<title>HRConvert2 | HRConvert2 Authentication</title>
|
||||
<body>
|
||||
<div id="outer" align="center"><h1>Configuring HRConvert2 ...</h1>
|
224
Languages/es/convertGui1.php
Normal file
224
Languages/es/convertGui1.php
Normal file
|
@ -0,0 +1,224 @@
|
|||
<?php
|
||||
if (!isset($ApplicationName)) $ApplicationName = 'HRConvert2';
|
||||
if (!isset($ApplicationTitle)) $ApplicationTitle = '¡Convierte Cualquier Cosa!';
|
||||
if (!isset($CoreLoaded)) die('¡¡¡ERROR!!! '.$ApplicationName.'-2, ¡Este archivo no puede procesar su solicitud! ¡Envíe su archivo a convertCore.php en su lugar!');
|
||||
if (!isset($ShowFinePrint)) $ShowFinePrint = TRUE;
|
||||
?>
|
||||
<body>
|
||||
<?php
|
||||
if (!isset($_GET['noGui'])) { ?>
|
||||
<div id="header-text" style="max-width:1000px; margin-left:auto; margin-right:auto; text-align:center;">
|
||||
<h1><?php echo $ApplicationName; ?></h1>
|
||||
<h3>Convertidor de Archivos en Línea, Extractor, Compresor</h3>
|
||||
<hr />
|
||||
</div>
|
||||
<div id="main" align="center">
|
||||
<div id="overview" style="max-width:1000px; text-align:left; margin:25px;">
|
||||
<p id="info" style="display:block;"><?php echo $ApplicationName; ?> se basa en la aplicación web de código abierto <a href='https://github.com/zelon88/HRConvert2'>HRConvert2</a> por <a href='https://github.com/zelon88'>Zelon88</a> que convierte archivos sin rastrear a los usuarios a través de la red o infringir su propiedad intelectual.</p>
|
||||
<button id="more-info-button" class="info-button" onclick="toggle_visibility('more-info'); toggle_visibility('more-info-button'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('less-info-button');" style="text-align:center; display:block; margin-left:auto; margin-right:auto;"><i>Más Información ...</i></button>
|
||||
<button id="less-info-button" class="info-button" onclick="toggle_visibility('more-info'); toggle_visibility('more-info-button'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('less-info-button');" style="text-align:center; display:none; margin-left:auto; margin-right:auto;"><i>Menos Información ...</i></button>
|
||||
<div id="more-info" style="display:none;">
|
||||
<hr />
|
||||
<p>Todos los datos proporcionados por el usuario se borran automáticamente, por lo que no debe preocuparse por perder su información personal o propiedad mientras utiliza nuestros servicios.</p>
|
||||
<p><?php echo $ApplicationName; ?> admite 77 formatos de archivo diferentes, incluidos documentos, hojas de cálculo, imágenes, medios, modelos 3D, dibujo asistido por computadora, archivos vectoriales, archivos, imágenes de disco y más.</p>
|
||||
<button id="supported-formats-show-button" class="info-button" onclick="toggle_visibility('supported-formats'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('supported-formats-hide-button');" style="text-align:center; display:none; margin-left:auto; margin-right:auto;"><i>Ver Formatos Admitidos ...</i></button>
|
||||
<button id="supported-formats-hide-button" class="info-button" onclick="toggle_visibility('supported-formats'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('supported-formats-hide-button');" style="text-align:center; display:none; margin-left:auto; margin-right:auto;"><i>Ocultar Formatos Admitidos ...</i></button>
|
||||
<br>
|
||||
<div id="supported-formats" class="supported-formats" style="margin-left:33%; display:none;">
|
||||
<h3>Formatos Compatibles</h3>
|
||||
<hr />
|
||||
<strong>Formatos de Audio</strong>
|
||||
<p><i>Admite tasa de bits específica a través de la interfaz para programas de aplicación.</i></p>
|
||||
<ol>
|
||||
<li>Mp2</li>
|
||||
<li>Mp3</li>
|
||||
<li>Avi</li>
|
||||
<li>Flac</li>
|
||||
<li>Ogg</li>
|
||||
<li>Wav</li>
|
||||
<li>Wma</li>
|
||||
<li>M4a</li>
|
||||
<li>M4p</li>
|
||||
</ol>
|
||||
<strong>Formatos de Video</strong>
|
||||
<ol>
|
||||
<li>3gp</li>
|
||||
<li>Mkv</li>
|
||||
<li>Avi</li>
|
||||
<li>Mp4</li>
|
||||
<li>Flv</li>
|
||||
<li>Mpeg</li>
|
||||
<li>Wmv</li>
|
||||
<li>Mov</li>
|
||||
<li>M4v</li>
|
||||
</ol>
|
||||
<strong>Formatos de Transmisión</strong>
|
||||
<ol>
|
||||
<li>m3u8</li>
|
||||
</ol>
|
||||
<strong>Formatos de Documentos</strong>
|
||||
<ol>
|
||||
<li>Doc</li>
|
||||
<li>Docx</li>
|
||||
<li>Txt</li>
|
||||
<li>Rtf</li>
|
||||
<li>Odt</li>
|
||||
<li>Pdf</li>
|
||||
</ol>
|
||||
<strong>Formatos de Hoja de Cálculo</strong>
|
||||
<ol>
|
||||
<li>Xls</li>
|
||||
<li>Xlsx</li>
|
||||
<li>Ods</li>
|
||||
</ol>
|
||||
<strong>Formatos de Presentación</strong>
|
||||
<ol>
|
||||
<li>Pages</li>
|
||||
<li>Pptx</li>
|
||||
<li>Ppt</li>
|
||||
<li>Xps</li>
|
||||
<li>Pot</li>
|
||||
<li>Potx</li>
|
||||
<li>Ppa</li>
|
||||
<li>Ppt</li>
|
||||
<li>Pptx</li>
|
||||
<li>Odp</li>
|
||||
</ol>
|
||||
<strong>Formatos de Archivo</strong>
|
||||
<p><i>Puede crear, convertir y desarchivar cualquiera de los siguientes...</i></p>
|
||||
<ol>
|
||||
<li>Zip</li>
|
||||
<li>Rar</li>
|
||||
<li>Tar</li>
|
||||
<li>Tar.Bz2</li>
|
||||
<li>7z</li>
|
||||
</ol>
|
||||
<strong>Formatos de Imagen de Disco</strong>
|
||||
<p><i>Puede extraer cualquiera de los siguientes o convertir a formatos de archivo compatibles...</i></p>
|
||||
<ol>
|
||||
<li>Iso</li>
|
||||
<li>Vhd</li>
|
||||
<li>Vdi</li>
|
||||
</ol>
|
||||
<strong>Formatos de Imagen</strong>
|
||||
<p><i>Admite cambiar el tamaño y rotar a través de la interfaz gráfica de usuario y la interfaz para programas de aplicación.</i></p>
|
||||
<p><i>Admite deshabilitar mantener la relación de aspecto a través para programas de aplicación.</i></p>
|
||||
<p><i>Las operaciones de conversión de imágenes admiten los siguientes formatos de entrada...</i></p>
|
||||
<ol>
|
||||
<li>Jpg</li>
|
||||
<li>Jpeg</li>
|
||||
<li>Png</li>
|
||||
<li>Bmp</li>
|
||||
<li>Webp</li>
|
||||
<li>Gif</li>
|
||||
<li>Cin</li>
|
||||
<li>Dds</li>
|
||||
<li>Dib</li>
|
||||
<li>Flif</li>
|
||||
<li>Avif</li>
|
||||
<li>Crw</li>
|
||||
<li>Dcr</li>
|
||||
<li>Gplt</li>
|
||||
<li>Nef</li>
|
||||
<li>Orf</li>
|
||||
<li>Ora</li>
|
||||
<li>Sct</li>
|
||||
<li>Sfw</li>
|
||||
<li>Xcf</li>
|
||||
<li>Xwd</li>
|
||||
<li>Avif</li>
|
||||
<li>Ico</li>
|
||||
</ol>
|
||||
<p><i>Las operaciones de conversión de imágenes admiten los siguientes formatos de salidas...</i></p>
|
||||
<ol>
|
||||
<li>Jpg</li>
|
||||
<li>Jpeg</li>
|
||||
<li>Png</li>
|
||||
<li>Bmp</li>
|
||||
<li>Webp</li>
|
||||
<li>Cin</li>
|
||||
<li>Dds</li>
|
||||
<li>Dib</li>
|
||||
<li>Flif</li>
|
||||
<li>Avif</li>
|
||||
</ol>
|
||||
<strong>Formatos de modelos 3D</strong>
|
||||
<ol>
|
||||
<li>3ds</li>
|
||||
<li>Obj</li>
|
||||
<li>Collada</li>
|
||||
<li>Off</li>
|
||||
<li>Ply</li>
|
||||
<li>Stl</li>
|
||||
<li>Ptx</li>
|
||||
<li>Dxf</li>
|
||||
<li>U3d</li>
|
||||
<li>Vrml</li>
|
||||
</ol>
|
||||
<strong>Formatos de Dibujo</strong>
|
||||
<p><i>Puede exportar archivos de dibujo a formatos de imagen.</i></p>
|
||||
<p><i>Puede convertir entre cualquiera de los siguientes...</i></p>
|
||||
<ol>
|
||||
<li>Svg</li>
|
||||
<li>Dxf</li>
|
||||
<li>Fig</li>
|
||||
<li>Vdx</li>
|
||||
</ol>
|
||||
<strong>Soporte de Lector Óptico de Caracteres</strong>
|
||||
<p><i>Las operaciones de LOC admiten los siguientes formatos de entrada...</i></p>
|
||||
<ol>
|
||||
<li>Jpg</li>
|
||||
<li>Jpeg</li>
|
||||
<li>Png</li>
|
||||
<li>Bmp</li>
|
||||
<li>Pdf</li>
|
||||
<li>Gif</li>
|
||||
</ol>
|
||||
<p><i>Las operaciones de LOC admiten los siguientes formatos de salida...</i></p>
|
||||
<ol>
|
||||
<li>Doc</li>
|
||||
<li>Docx</li>
|
||||
<li>Txt</li>
|
||||
<li>Rtf</li>
|
||||
<li>Odt</li>
|
||||
<li>Pdf</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<hr />
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div align="center">
|
||||
<div id="call-to-action1" style="max-width:1000px; text-align:center;">
|
||||
<p>Seleccione archivos haciendo clic, tocando o soltando archivos en el cuadro a continuación.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div align="center">
|
||||
<div id="dropzone" style="max-height:1000px; max-width:1000px; margin:25px;">
|
||||
<form action="convertCore.php" class="dropzone" id="filesToUpload" name="filesToUpload" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" id="token1" name="Token1" value="<?php echo $Token1; ?>">
|
||||
<input type="hidden" id="token2" name="Token2" value="<?php echo $Token2; ?>">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div align="center">
|
||||
<div id="continue" style="max-width:1000px; text-align:center;">
|
||||
<form action="convertCore.php?showFiles=1<?php if (isset($_GET['noGui'])) echo '&noGui=TRUE'; if (isset($_GET['language'])) echo '&language='.$_GET['language']; ?>" method="post">
|
||||
<input type="hidden" id="token1" name="Token1" value="<?php echo $Token1; ?>">
|
||||
<input type="hidden" id="token2" name="Token2" value="<?php echo $Token2; ?>">
|
||||
<input type="submit" id="continue-button" class="info-button" value="Continuar ...">
|
||||
</form>
|
||||
<br />
|
||||
<?php if (!isset($_GET['noGui'])) { ?>
|
||||
<hr />
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if (!isset($_GET['noGui'])) { ?>
|
||||
</div>
|
||||
<?php } ?>
|
986
Languages/es/convertGui2.php
Normal file
986
Languages/es/convertGui2.php
Normal file
|
@ -0,0 +1,986 @@
|
|||
<?php
|
||||
$Alert = '¡No se puede convertir este archivo! Prueba a cambiar el nombre.';
|
||||
$Alert1 = '¡No se puede realizar un análisis de virus en este archivo!';
|
||||
$Alert2 = '¡Enlace de archivo copiado al portapapeles!';
|
||||
$Alert3 = '¡Operación fallida!';
|
||||
$FCPlural1 = 's';
|
||||
$FCPlural2 = 'n';
|
||||
if (!is_numeric($FileCount)) $FileCount = 'an unknown number of';
|
||||
if ($FileCount == 1) {
|
||||
$FCPlural1 = '';
|
||||
$FCPlural2 = ''; }
|
||||
if (!isset($ApplicationName)) $ApplicationName = 'HRConvert2';
|
||||
if (!isset($ApplicationTitle)) $ApplicationTitle = '¡Convierte Cualquier Cosa!';
|
||||
if (!isset($CoreLoaded)) die('¡¡¡ERROR!!! '.$ApplicationName.'-2, ¡Este archivo no puede procesar su solicitud! ¡Envíe su archivo a convertCore.php en su lugar!');
|
||||
if (!isset($ShowFinePrint)) $ShowFinePrint = TRUE;
|
||||
?>
|
||||
<body>
|
||||
<script type="text/javascript" src="Resources/jquery-3.6.0.min.js"></script>
|
||||
<div id="header-text" style="max-width:1000px; margin-left:auto; margin-right:auto; text-align:center;">
|
||||
<?php if (!isset($_GET['noGui'])) { ?><h1><?php echo $ApplicationName; ?></h1>
|
||||
<hr /><?php } ?>
|
||||
<h3>Opciones de Conversión de Archivos</h3>
|
||||
<p>Has subido <?php echo $FileCount; ?> archivo<?php echo $FCPlural1; ?> válido<?php echo $FCPlural1; ?> a <?php echo $ApplicationName; ?>.</p>
|
||||
<p>Su<?php echo $FCPlural1; ?> archivo<?php echo $FCPlural1; ?> ahora está<?php echo $FCPlural2; ?> listo<?php echo $FCPlural1; ?> para convertir usando las opciones a continuación.</p>
|
||||
</div>
|
||||
|
||||
<div id='utility' align="center">
|
||||
<p><img id='loadingCommandDiv' name='loadingCommandDiv' src='<?php echo $PacmanLoc; ?>' style="max-width:64px; max-height:64px; display:none;"/></p>
|
||||
<a id='downloadTarget' href='about:blank' style="display: none;" download></a>
|
||||
</div>
|
||||
|
||||
<div id="compressAll" name="compressAll" style="max-width:1000px; margin-left: auto; margin-right: auto; text-align:center;">
|
||||
<button id="backButton" name="backButton" style="width:50px;" class="info-button" onclick="window.history.back();">←</button>
|
||||
<button id="refreshButton" name="refreshButton" style="width:50px;" class="info-button" onclick="javascript:location.reload(true);">↻</button>
|
||||
<br /> <br />
|
||||
<button id="scandocMoreOptionsButton" name="scandocMoreOptionsButton" class="info-button" onclick="toggle_visibility('compressAllOptions');">Opciones de Archivo Masivo</button>
|
||||
<div id="compressAllOptions" name="compressAllOptions" align="center" style="display:none;">
|
||||
<?php if ($AllowUserVirusScan) { ?>
|
||||
<hr style='width: 50%;' />
|
||||
<p><strong>Escanear Todos Los Archivos en Busca de Virus</strong></p>
|
||||
<p>Escanea con ClamAV <input type="checkbox" id="clamscanall" value="clamscanall" name="clamScan" checked></p>
|
||||
<p>Escanea con ScanCore <input type="checkbox" id="scancoreall" value="scancoreall" name="phpavScan" checked></p>
|
||||
<p><input type="submit" id="scanAllButton" name="scanAllButton" class="info-button" value='Escanear Todo' onclick="toggle_visibility('loadingCommandDiv');"></p>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#scanAllButton').click(function() {
|
||||
var scanfiles = <?php echo json_encode($Files); ?>;
|
||||
var scanType = 'all';
|
||||
if($("input#clamscanall").is(":checked")) {
|
||||
var scanType = 'clamav'; }
|
||||
if($("input#scancoreall").is(":checked")) {
|
||||
var scanType = 'scancore'; }
|
||||
if($("input#clamscanall").is(":checked") && $("input#scancoreall").is(":checked")) {
|
||||
var scanType = 'all'; }
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:scanType,
|
||||
filesToScan:scanfiles },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); }); });
|
||||
</script>
|
||||
<?php } ?>
|
||||
<hr style='width: 50%;' />
|
||||
<p><strong>Comprimir y Descargar Todos Los Archivos</strong></p>
|
||||
<p>Especificar Nombre de Archivo: <input type="text" id='userarchallfilename' name='userarchallfilename' value='HRConvert2_Files-<?php echo $Date; ?>'></p>
|
||||
<select id='archallextension' name='archallextension'>
|
||||
<option value="zip">Formato</option>
|
||||
<option value="zip">Zip</option>
|
||||
<option value="rar">Rar</option>
|
||||
<option value="tar">Tar</option>
|
||||
<option value="7z">7z</option>
|
||||
</select>
|
||||
<input type="submit" id="archallSubmit" name="archallSubmit" class="info-button" value='Comprimir y Descargar' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#archallSubmit').click(function() {
|
||||
var extension = document.getElementById('archallextension').value;
|
||||
if (extension === "") {
|
||||
extension = 'zip'; }
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
archive:'1',
|
||||
filesToArchive:<?php echo json_encode($Files); ?>,
|
||||
archextension:extension,
|
||||
userfilename:document.getElementById('userarchallfilename').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userarchallfilename').value+'.'+extension },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userarchallfilename').value+'.'+extension;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
<hr style='width: 50%;' />
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div style="max-width:1000px; margin-left:auto; margin-right:auto;">
|
||||
<hr />
|
||||
|
||||
<?php
|
||||
foreach ($Files as $File) {
|
||||
$extension = getExtension($ConvertTempDir.'/'.$File);
|
||||
$FileNoExt = str_replace($extension, '', $File);
|
||||
if (!in_array($extension, $ConvertArray)) continue;
|
||||
$ConvertGuiCounter1++;
|
||||
?>
|
||||
|
||||
<div id="file<?php echo $ConvertGuiCounter1; ?>" name="<?php echo $ConvertGuiCounter1; ?>">
|
||||
<p href=""><strong><?php echo $ConvertGuiCounter1; ?>.</strong> <u><?php echo $File; ?></u></p>
|
||||
<div id="buttonDiv<?php echo $ConvertGuiCounter1; ?>" name="buttonDiv<?php echo $ConvertGuiCounter1; ?>" style="height:25px;">
|
||||
|
||||
<img id="downloadfilebutton<?php echo $ConvertGuiCounter1; ?>" name="downloadfilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/download.png" style="float:left; display:block;" onclick="toggle_visibility('loadingCommandDiv');"/>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#downloadfilebutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $File; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$File; ?>";
|
||||
document.getElementById('downloadTarget').click(); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
|
||||
<?php if ($AllowUserShare) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
<img id="sharefilebutton<?php echo $ConvertGuiCounter1; ?>" name="sharefilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/link.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('sharefilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('shareXfilebutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="shareXfilebutton<?php echo $ConvertGuiCounter1; ?>" name="shareXfilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('sharefilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('shareXfilebutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($AllowUserVirusScan) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
<img id="scanfilebutton<?php echo $ConvertGuiCounter1; ?>" name="scanfilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/scan.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfileXbutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="scanfileXbutton<?php echo $ConvertGuiCounter1; ?>" name="scanfileXbutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfileXbutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<a style="float:left;"> | </a>
|
||||
<img id="archfileButton<?php echo $ConvertGuiCounter1; ?>" name="archfileButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/archive.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="archfileXButton<?php echo $ConvertGuiCounter1; ?>" name="archfileXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
|
||||
<?php if (in_array($extension, $PDFWorkArr)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="docscanButton<?php echo $ConvertGuiCounter1; ?>" name="docscanButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/docscan.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="docscanXButton<?php echo $ConvertGuiCounter1; ?>" name="docscanXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ArchiveArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="archiveButton<?php echo $ConvertGuiCounter1; ?>" name="archiveButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/convert.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="archiveXButton<?php echo $ConvertGuiCounter1; ?>" name="archiveXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DocumentArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="documentButton<?php echo $ConvertGuiCounter1; ?>" name="documentButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/document.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('docOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="documentXButton<?php echo $ConvertGuiCounter1; ?>" name="documentXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('docOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $SpreadsheetArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="spreadsheetButton<?php echo $ConvertGuiCounter1; ?>" name="spreadsheetButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/spreadsheet.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>" name="spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $PresentationArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="presentationButton<?php echo $ConvertGuiCounter1; ?>" name="presentationButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/presentation.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="presentationXButton<?php echo $ConvertGuiCounter1; ?>" name="presentationXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ImageArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="imageButton<?php echo $ConvertGuiCounter1; ?>" name="imageButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/photo.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="imageXButton<?php echo $ConvertGuiCounter1; ?>" name="imageXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $MediaArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="mediaButton<?php echo $ConvertGuiCounter1; ?>" name="mediaButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/stream.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="mediaXButton<?php echo $ConvertGuiCounter1; ?>" name="mediaXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $VideoArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="videoButton<?php echo $ConvertGuiCounter1; ?>" name="videoButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/stream.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="videoXButton<?php echo $ConvertGuiCounter1; ?>" name="videoXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $StreamArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="streamButton<?php echo $ConvertGuiCounter1; ?>" name="streamButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/stream.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="streamXButton<?php echo $ConvertGuiCounter1; ?>" name="streamXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DrawingArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="drawingButton<?php echo $ConvertGuiCounter1; ?>" name="drawingButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/convert.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="drawingXButton<?php echo $ConvertGuiCounter1; ?>" name="drawingXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ModelArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="modelButton<?php echo $ConvertGuiCounter1; ?>" name="modelButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/convert.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="modelXButton<?php echo $ConvertGuiCounter1; ?>" name="modelXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<div id='archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Archivar Este Archivo</strong></p>
|
||||
<p>Especificar Nombre de Archivo: <input type="text" id='userarchfilefilename<?php echo $ConvertGuiCounter1; ?>' name='userarchfilefilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='archfileextension<?php echo $ConvertGuiCounter1; ?>' name='archfileextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="zip">Formato</option>
|
||||
<option value="zip">Zip</option>
|
||||
<option value="rar">Rar</option>
|
||||
<option value="tar">Tar</option>
|
||||
<option value="7z">7z</option>
|
||||
</select></p>
|
||||
<input type="submit" id="archfileSubmit<?php echo $ConvertGuiCounter1; ?>" name="archfileSubmit<?php echo $ConvertGuiCounter1; ?>" value='Archivo De Archivo' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#archfileSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
archive:'<?php echo $File; ?>',
|
||||
filesToArchive:'<?php echo $File; ?>',
|
||||
archextension:document.getElementById('archfileextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userfilename:document.getElementById('userarchfilefilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userarchfilefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archfileextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userarchfilefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archfileextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
|
||||
<?php if ($AllowUserShare) { ?>
|
||||
<div id='sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Comparte Este Archivo</strong></p>
|
||||
<p id='sharelinkStatus<?php echo $ConvertGuiCounter1; ?>' name='sharelinkStatus<?php echo $ConvertGuiCounter1; ?>'>Estado Del Enlace: <i>No Generada</i></p>
|
||||
<p id='shareclipStatus<?php echo $ConvertGuiCounter1; ?>' name='shareclipStatus<?php echo $ConvertGuiCounter1; ?>'>Estado Del Portapapeles: <i>No Copiada</i></p>
|
||||
<p id='sharelinkURL<?php echo $ConvertGuiCounter1; ?>' name='sharelinkURL<?php echo $ConvertGuiCounter1; ?>'>Enlace De Archivo: <i>No Generada</i></p>
|
||||
|
||||
<input type="submit" id="sharegeneratebutton<?php echo $ConvertGuiCounter1; ?>" name="sharegeneratebutton<?php echo $ConvertGuiCounter1; ?>" value='Generar Enlace y Copiar al Portapapeles' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<input type="submit" id="sharecopybutton<?php echo $ConvertGuiCounter1; ?>" name="sharecopybutton<?php echo $ConvertGuiCounter1; ?>" value='Generar Enlace' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#sharegeneratebutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $File; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('sharelinkStatus<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'Estado Del Enlace: <i>Generada</i>';
|
||||
document.getElementById('shareclipStatus<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'Estado Del Portapapeles: <i>Copiada</i>';
|
||||
document.getElementById('sharelinkURL<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'Enlace De Archivo: <i><?php echo $FullURL.'/DATA/'.$SesHash3.'/'.$File; ?></i>';
|
||||
copy_share_link("<?php echo $FullURL.'/DATA/'.$SesHash3.'/'.$File; ?>");
|
||||
alert("<?php echo $Alert2; ?>"); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert3; ?>"); } }); });
|
||||
$('#sharecopybutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $File; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('sharelinkStatus<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'Estado Del Enlace: <i>Generada</i>';
|
||||
document.getElementById('sharelinkURL<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'Enlace De Archivo: <i><?php echo $FullURL.'/DATA/'.$SesHash3.'/'.$File; ?></i>'; },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert3; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if ($AllowUserVirusScan) { ?>
|
||||
<div id='scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Escanee Este Archivo en Busca de Virus</strong></p>
|
||||
<input type="submit" id="scancorebutton<?php echo $ConvertGuiCounter1; ?>" name="scancorebutton<?php echo $ConvertGuiCounter1; ?>" value='Escanear Archivo Con ScanCore' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<input type="submit" id="clamscanbutton<?php echo $ConvertGuiCounter1; ?>" name="clamscanbutton<?php echo $ConvertGuiCounter1; ?>" value='Escanear Archivo Con ClamAV' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<input type="submit" id="scanallbutton<?php echo $ConvertGuiCounter1; ?>" name="scanallbutton<?php echo $ConvertGuiCounter1; ?>" value='Escanear Archivo Con ScanCore y ClamAV' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#scancorebutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:'scancore',
|
||||
filesToScan:'<?php echo $File; ?>' },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); });
|
||||
$('#clamscanbutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:'all',
|
||||
filesToScan:'<?php echo $File; ?>' },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); });
|
||||
$('#scanallbutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:'all',
|
||||
filesToScan:'<?php echo $File; ?>' },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $PDFWorkArr)) {
|
||||
?>
|
||||
<div id='pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Realizar Reconocimiento Óptico de Caracteres en Este Archivo</strong></p>
|
||||
<p>Especificar Nombre de Archivo: <input type="text" id='userpdffilename<?php echo $ConvertGuiCounter1; ?>' name='userpdffilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='pdfmethod<?php echo $ConvertGuiCounter1; ?>' name='pdfmethod<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="0">Método</option>
|
||||
<option value="1">Método 1 (Sencilla)</option>
|
||||
<option value="2">Método 2 (Avanzada)</option>
|
||||
</select>
|
||||
<select id='pdfextension<?php echo $ConvertGuiCounter1; ?>' name='pdfextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="pdf">Formato</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
<option value="doc">Doc</option>
|
||||
<option value="docx">Docx</option>
|
||||
<option value="rtf">Rtf</option>
|
||||
<option value="txt">Txt</option>
|
||||
<option value="odt">Odt</option>
|
||||
</select></p>
|
||||
<p><input type="submit" id='pdfconvertSubmit<?php echo $ConvertGuiCounter1; ?>' name='pdfconvertSubmit<?php echo $ConvertGuiCounter1; ?>' value='Convertir En Documento' onclick="toggle_visibility('loadingCommandDiv');"></p>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#pdfconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
pdfworkSelected:'<?php echo $File; ?>',
|
||||
method:document.getElementById('pdfmethod<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
pdfextension:document.getElementById('pdfextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userpdfconvertfilename:document.getElementById('userpdffilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userpdffilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('pdfextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userpdffilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('pdfextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ArchiveArray)) {
|
||||
?>
|
||||
<div id='archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Convertir Este Archivo</strong></p>
|
||||
<p>Especificar Nombre de Archivo: <input type="text" id='userarchivefilename<?php echo $ConvertGuiCounter1; ?>' name='userarchivefilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='archiveextension<?php echo $ConvertGuiCounter1; ?>' name='archiveextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="zip">Formato</option>
|
||||
<option value="zip">Zip</option>
|
||||
<option value="rar">Rar</option>
|
||||
<option value="tar">Tar</option>
|
||||
<option value="7z">7z</option>
|
||||
</select></p>
|
||||
<input type="submit" id="archiveconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="archiveconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Convertir Archivo' onclick="toggle_visibility('loadingCommandDiv'); display:none;">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#archiveconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('archiveextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userarchivefilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userarchivefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archiveextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userarchivefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archiveextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DocumentArray)) {
|
||||
?>
|
||||
<div id='docOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='docOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Convertir Este Documento</strong></p>
|
||||
<p>Especificar Nombre de Archivo: <input type="text" id='userdocfilename<?php echo $ConvertGuiCounter1; ?>' name='userdocfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='docextension<?php echo $ConvertGuiCounter1; ?>' name='docextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="txt">Formato</option>
|
||||
<option value="doc">Doc</option>
|
||||
<option value="docx">Docx</option>
|
||||
<option value="rtf">Rtf</option>
|
||||
<option value="txt">Txt</option>
|
||||
<option value="odt">Odt</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
</select></p>
|
||||
<input type="submit" id="docconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="docconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Convertir Documento' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#docconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('docextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userdocfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userdocfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('docextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userdocfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('docextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $SpreadsheetArray)) {
|
||||
?>
|
||||
<div id='spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Convertir Esta Hoja de Cálculo</strong></p>
|
||||
<p>Especificar Nombre de Archivo: <input type="text" id='userspreadfilename<?php echo $ConvertGuiCounter1; ?>' name='userspreadfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='spreadextension<?php echo $ConvertGuiCounter1; ?>' name='spreadextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="ods">Formato</option>
|
||||
<option value="xls">Xls</option>
|
||||
<option value="xlsx">Xlsx</option>
|
||||
<option value="ods">Ods</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
</select></p>
|
||||
<input type="submit" id="spreadconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="spreadconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Convertir Hoja de Cálculo' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#spreadconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('spreadextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('spreadextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('spreadextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); }
|
||||
}); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $PresentationArray)) {
|
||||
?>
|
||||
<div id='presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Convertir Esta Presentación</strong></p>
|
||||
<p>Especificar Nombre de Archivo: <input type="text" id='userpresentationfilename<?php echo $ConvertGuiCounter1; ?>' name='userpresentationfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='presentationextension<?php echo $ConvertGuiCounter1; ?>' name='presentationextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="odp">Formato</option>
|
||||
<option value="pages">Pages</option>
|
||||
<option value="pptx">Pptx</option>
|
||||
<option value="ppt">Ppt</option>
|
||||
<option value="xps">Xps</option>
|
||||
<option value="potx">Potx</option>
|
||||
<option value="pot">Pot</option>
|
||||
<option value="ppa">Ppa</option>
|
||||
<option value="odp">Odp</option>
|
||||
</select></p>
|
||||
<input type="submit" id="presentationconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="presentationconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Convertir Presentación' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#presentationconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('presentationextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userpresentationfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userpresentationfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('presentationextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('presentationextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $MediaArray)) {
|
||||
?>
|
||||
<div id='audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Convertir Este Audio</strong></p>
|
||||
<p>Especificar Nombre de Archivo: <input type="text" id='useraudiofilename<?php echo $ConvertGuiCounter1; ?>' name='useraudiofilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='audioextension<?php echo $ConvertGuiCounter1; ?>' name='audioextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="mp3">Formato</option>
|
||||
<option value="mp2">Mp2</option>
|
||||
<option value="mp3">Mp3</option>
|
||||
<option value="wav">Wav</option>
|
||||
<option value="wma">Wma</option>
|
||||
<option value="flac">Flac</option>
|
||||
<option value="ogg">Ogg</option>
|
||||
</select></p>
|
||||
<input type="submit" id="audioconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="audioconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Convert Audio' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#audioconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({ir
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('audioextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('useraudiofilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('useraudiofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('audioextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('useraudiofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('audioextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $VideoArray)) {
|
||||
?>
|
||||
<div id='videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Convertir Este Video</strong></p>
|
||||
<p>Especificar Nombre de Archivo: <input type="text" id='uservideofilename<?php echo $ConvertGuiCounter1; ?>' name='uservideofilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='videoextension<?php echo $ConvertGuiCounter1; ?>' name='videoextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="mp4">Formato</option>
|
||||
<option value="3gp">3gp</option>
|
||||
<option value="mkv">Mkv</option>
|
||||
<option value="avi">Avi</option>
|
||||
<option value="mp4">Mp4</option>
|
||||
<option value="flv">Flv</option>
|
||||
<option value="mpeg">Mpeg</option>
|
||||
<option value="wmv">Wmv</option>
|
||||
<option value="mov">Mov</option>
|
||||
</select></p>
|
||||
<input type="submit" id="videoconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="videoconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Convertir Video' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#videoconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('videoextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('uservideofilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('uservideofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('videoextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('uservideofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('videoextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $StreamArray)) {
|
||||
?>
|
||||
<div id='streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Convertir Este Transmisión</strong></p>
|
||||
<p>Especificar Nombre de Archivo: <input type="text" id='userstreamfilename<?php echo $ConvertGuiCounter1; ?>' name='userstreamfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='streamextension<?php echo $ConvertGuiCounter1; ?>' name='streamextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="mp4">Format</option>
|
||||
<option value="3gp">3gp</option>
|
||||
<option value="mkv">Mkv</option>
|
||||
<option value="avi">Avi</option>
|
||||
<option value="mp4">Mp4</option>
|
||||
<option value="flv">Flv</option>
|
||||
<option value="mpeg">Mpeg</option>
|
||||
<option value="wmv">Wmv</option>
|
||||
<option value="mov">Mov</option>
|
||||
</select></p>
|
||||
<input type="submit" id="streamconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="streamconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Convertir Transmisión' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#streamconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('streamextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userstreamfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userstreamfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('streamextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userstreamfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('streamextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ModelArray)) {
|
||||
?>
|
||||
<div id='modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Convertir Este Modelo 3D</strong></p>
|
||||
<p>Especificar Nombre de Archivo: <input type="text" id='usermodelfilename<?php echo $ConvertGuiCounter1; ?>' name='usermodelfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='modelextension<?php echo $ConvertGuiCounter1; ?>' name='modelextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="3ds">Formato</option>
|
||||
<option value="3ds">3ds</option>
|
||||
<option value="collada">Collada</option>
|
||||
<option value="obj">Obj</option>
|
||||
<option value="off">Off</option>
|
||||
<option value="ply">Ply</option>
|
||||
<option value="stl">Stl</option>
|
||||
<option value="ptx">Ptx</option>
|
||||
<option value="dxf">Dxf</option>
|
||||
<option value="u3d">U3d</option>
|
||||
<option value="vrml">Vrml</option>
|
||||
</select></p>
|
||||
<input type="submit" id="modelconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="modelconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Convertir Modelo' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#modelconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('modelextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('usermodelfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('usermodelfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('modelextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('usermodelfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('modelextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DrawingArray)) {
|
||||
?>
|
||||
<div id='drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Convierta Este Dibujo Técnico o Archivo Vectoria</strong></p>
|
||||
<p>Especificar Nombre de Archivo: <input type="text" id='userdrawingfilename<?php echo $ConvertGuiCounter1; ?>' name='userdrawingfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='drawingextension<?php echo $ConvertGuiCounter1; ?>' name='drawingextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="jpg">Formato</option>
|
||||
<option value="svg">Svg</option>
|
||||
<option value="dxf">Dxf</option>
|
||||
<option value="vdx">Vdx</option>
|
||||
<option value="fig">Fig</option>
|
||||
<option value="jpg">Jpg</option>
|
||||
<option value="png">Png</option>
|
||||
<option value="bmp">Bmp</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
</select></p>
|
||||
<input type="submit" id="drawingconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="drawingconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Convertir Dibujo' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#drawingconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('drawingextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userdrawingfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('drawingfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('drawingextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userdrawingfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('drawingextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ImageArray)) {
|
||||
?>
|
||||
<div id='imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Convertir Esta Imagen</strong></p>
|
||||
<p>Especificar Nombre de Archivo: <input type="text" id='userphotofilename<?php echo $ConvertGuiCounter1; ?>' name='userphotofilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='photoextension<?php echo $ConvertGuiCounter1; ?>' name='photoextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="jpg">Formato</option>
|
||||
<option value="jpg">Jpg</option>
|
||||
<option value="bmp">Bmp</option>
|
||||
<option value="webp">Webp</option>
|
||||
<option value="png">Png</option>
|
||||
<option value="cin">Cin</option>
|
||||
<option value="dds">Dds</option>
|
||||
<option value="dib">Dib</option>
|
||||
<option value="flif">Flif</option>
|
||||
<option value="avif">Avif</option>
|
||||
</select></p>
|
||||
<p>Ancho y Alto:</p>
|
||||
<p><input type="number" size="4" value="0" id='width<?php echo $ConvertGuiCounter1; ?>' name='width<?php echo $ConvertGuiCounter1; ?>' min="0" max="10000"> X <input type="number" size="4" value="0" id="height<?php echo $ConvertGuiCounter1; ?>" name="height<?php echo $ConvertGuiCounter1; ?>" min="0" max="10000"></p>
|
||||
<p>Girar: <input type="number" size="3" id='rotate<?php echo $ConvertGuiCounter1; ?>' name='rotate<?php echo $ConvertGuiCounter1; ?>' value="0" min="0" max="359"></p>
|
||||
<input type="submit" id='convertPhotoSubmit<?php echo $ConvertGuiCounter1; ?>' name='convertPhotoSubmit<?php echo $ConvertGuiCounter1; ?>' value='Convertir Imagen' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#convertPhotoSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
rotate:$('#rotate<?php echo $ConvertGuiCounter1; ?>').val(),
|
||||
width:$('#width<?php echo $ConvertGuiCounter1; ?>').val(),
|
||||
height:$('#height<?php echo $ConvertGuiCounter1; ?>').val(),
|
||||
extension:document.getElementById('photoextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userphotofilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userphotofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('photoextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userphotofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('photoextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<hr />
|
||||
<?php } ?>
|
||||
</div>
|
10
Languages/es/footer.php
Normal file
10
Languages/es/footer.php
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?php if (!isset($ShowFinePrint)) $ShowFinePrint = TRUE;
|
||||
if ($ShowFinePrint) { ?>
|
||||
<div id="footer" name="footer" style="max-width:1000px; margin-left:auto; margin-right:auto; text-align:center;">
|
||||
<p>Consulta nuestras <a href="<?php echo $TOSURL; ?>" target="_blank" rel="noopener noreferrer">Condiciones de Servicio</a>
|
||||
y <a href="<?php echo $PPURL; ?>" target="_blank" rel="noopener noreferrer">Política de Privacidad</a></p>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</body>
|
||||
</html>
|
20
Languages/es/header.php
Normal file
20
Languages/es/header.php
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?php if (!isset($ApplicationName)) $ApplicationName = 'HRConvert2';
|
||||
if (!isset($ApplicationTitle)) $ApplicationTitle = '¡Convierte Cualquier Cosa!!';
|
||||
if (!isset($Font)) $Font = 'Arial'; ?>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="shortcut icon" href="Resources/favicon.ico"/>
|
||||
<link rel="stylesheet" href="Resources/dropzone.css"/>
|
||||
<link rel="stylesheet" href="Resources/HRConvert2.css"/>
|
||||
<script type="text/javascript" src="Resources/HRC2-Functions.js"></script>
|
||||
<script type="text/javascript">var dropzoneText = 'Haga clic, toque o suelte archivos aquí para cargar.';</script>
|
||||
<script type="text/javascript" src="Resources/dropzone.js"></script>
|
||||
<style>
|
||||
body {
|
||||
font-family: <?php echo $Font; ?>; }
|
||||
<?php if (isset($ButtonCode)) echo $ButtonCode; ?>
|
||||
</style>
|
||||
<title><?php echo $ApplicationName; ?> - <?php echo $ApplicationTitle; ?></title>
|
||||
</head>
|
||||
|
21
Languages/es/index.html
Normal file
21
Languages/es/index.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en-US">
|
||||
<title>HRConvert2 | HRConvert2 Authentication</title>
|
||||
<body>
|
||||
<div id="outer" align="center"><h1>Configuring HRConvert2 ...</h1>
|
||||
|
||||
<div id="inner" style="position:absolute; top:50%; left:50%; height:10em; margin-top:-5em; margin-right:5em;"><strong>Please wait . . .</strong></div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
|
||||
// Set the URL below to the page the user is sent to if their screensize is UNDER the specified number of pixels.
|
||||
if (screen.width <= 699) { document.location = "/HRProprietary/HRConvert2/convertCore.php"; }
|
||||
// / Set the URL below to the page the user is sent to if their screensize is OVER the specified number of pixels.
|
||||
if (screen.width >= 700) { document.location = "/HRProprietary/HRConvert2/convertCore.php"; }
|
||||
|
||||
</script>
|
||||
|
||||
<meta id="IfNothingHappens" http-equiv="refresh" content="5"; url="/HRProprietary/HRConvert2/convertCore.php" >
|
||||
|
||||
</body>
|
||||
</html>
|
224
Languages/fr/convertGui1.php
Normal file
224
Languages/fr/convertGui1.php
Normal file
|
@ -0,0 +1,224 @@
|
|||
<?php
|
||||
if (!isset($ApplicationName)) $ApplicationName = 'HRConvert2';
|
||||
if (!isset($ApplicationTitle)) $ApplicationTitle = 'Convertissez n\'importe quoi!';
|
||||
if (!isset($CoreLoaded)) die('ERREUR!!! '.$ApplicationName.'-2, Ce fichier ne peut pas traiter votre demande ! Veuillez soumettre votre fichier à convertCore.php à la place !');
|
||||
if (!isset($ShowFinePrint)) $ShowFinePrint = TRUE;
|
||||
?>
|
||||
<body>
|
||||
<?php
|
||||
if (!isset($_GET['noGui'])) { ?>
|
||||
<div id="header-text" style="max-width:1000px; margin-left:auto; margin-right:auto; text-align:center;">
|
||||
<h1><?php echo $ApplicationName; ?></h1>
|
||||
<h3>Convertisseur de Fichiers en Ligne, Extracteur, Compresseur</h3>
|
||||
<hr />
|
||||
</div>
|
||||
<div id="main" align="center">
|
||||
<div id="overview" style="max-width:1000px; text-align:left; margin:25px;">
|
||||
<p id="info" style="display:block;"><?php echo $ApplicationName; ?> est basé sur l'application web open-source <a href='https://github.com/zelon88/HRConvert2'>HRConvert2</a> par <a href='https://github.com/zelon88'>Zelon88</a> qui convertit les fichiers sans suivre les utilisateurs sur le net ni enfreindre votre propriété intellectuelle.</p>
|
||||
<button id="more-info-button" class="info-button" onclick="toggle_visibility('more-info'); toggle_visibility('more-info-button'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('less-info-button');" style="text-align:center; display:block; margin-left:auto; margin-right:auto;"><i>Plus d'Informations...</i></button>
|
||||
<button id="less-info-button" class="info-button" onclick="toggle_visibility('more-info'); toggle_visibility('more-info-button'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('less-info-button');" style="text-align:center; display:none; margin-left:auto; margin-right:auto;"><i>Moins d'Informations...</i></button>
|
||||
<div id="more-info" style="display:none;">
|
||||
<hr />
|
||||
<p>Toutes les données fournies par l'utilisateur sont automatiquement effacées, vous n'avez donc pas à vous soucier de la perte de vos informations personnelles ou de vos biens lors de l'utilisation de nos services.</p>
|
||||
<p><?php echo $ApplicationName; ?> prend en charge 77 formats de fichiers différents, y compris les documents, les feuilles de calcul, les images, les médias, les modèles 3D, les dessins CAO, les fichiers vectoriels, les archives, les images de disque, etc.</p>
|
||||
<button id="supported-formats-show-button" class="info-button" onclick="toggle_visibility('supported-formats'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('supported-formats-hide-button');" style="text-align:center; display:none; margin-left:auto; margin-right:auto;"><i>Afficher les formats pris en charge...</i></button>
|
||||
<button id="supported-formats-hide-button" class="info-button" onclick="toggle_visibility('supported-formats'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('supported-formats-hide-button');" style="text-align:center; display:none; margin-left:auto; margin-right:auto;"><i>Masquer les formats pris en charge...</i></button>
|
||||
<br>
|
||||
<div id="supported-formats" class="supported-formats" style="margin-left:33%; display:none;">
|
||||
<h3>Formats pris en charge</h3>
|
||||
<hr />
|
||||
<strong>Formats d'Audio</strong>
|
||||
<p><i>Prend en charge un débit binaire spécifique via l'API.</i></p>
|
||||
<ol>
|
||||
<li>Mp2</li>
|
||||
<li>Mp3</li>
|
||||
<li>Avi</li>
|
||||
<li>Flac</li>
|
||||
<li>Ogg</li>
|
||||
<li>Wav</li>
|
||||
<li>Wma</li>
|
||||
<li>M4a</li>
|
||||
<li>M4p</li>
|
||||
</ol>
|
||||
<strong>Formats de Vidéo</strong>
|
||||
<ol>
|
||||
<li>3gp</li>
|
||||
<li>Mkv</li>
|
||||
<li>Avi</li>
|
||||
<li>Mp4</li>
|
||||
<li>Flv</li>
|
||||
<li>Mpeg</li>
|
||||
<li>Wmv</li>
|
||||
<li>Mov</li>
|
||||
<li>M4v</li>
|
||||
</ol>
|
||||
<strong>Formats de Flux</strong>
|
||||
<ol>
|
||||
<li>m3u8</li>
|
||||
</ol>
|
||||
<strong>Formats de Documents</strong>
|
||||
<ol>
|
||||
<li>Doc</li>
|
||||
<li>Docx</li>
|
||||
<li>Txt</li>
|
||||
<li>Rtf</li>
|
||||
<li>Odt</li>
|
||||
<li>Pdf</li>
|
||||
</ol>
|
||||
<strong>Formats de Feuille De Calcul</strong>
|
||||
<ol>
|
||||
<li>Xls</li>
|
||||
<li>Xlsx</li>
|
||||
<li>Ods</li>
|
||||
</ol>
|
||||
<strong>Formats de Présentation</strong>
|
||||
<ol>
|
||||
<li>Pages</li>
|
||||
<li>Pptx</li>
|
||||
<li>Ppt</li>
|
||||
<li>Xps</li>
|
||||
<li>Pot</li>
|
||||
<li>Potx</li>
|
||||
<li>Ppa</li>
|
||||
<li>Ppt</li>
|
||||
<li>Pptx</li>
|
||||
<li>Odp</li>
|
||||
</ol>
|
||||
<strong>Formats d'Archives</strong>
|
||||
<p><i>Peut créer, convertir et désarchiver n'importe lequel des éléments suivants...</i></p>
|
||||
<ol>
|
||||
<li>Zip</li>
|
||||
<li>Rar</li>
|
||||
<li>Tar</li>
|
||||
<li>Tar.Bz2</li>
|
||||
<li>7z</li>
|
||||
</ol>
|
||||
<strong>Formats d'Image Disque</strong>
|
||||
<p><i>Peut extraire l'un des éléments suivants ou convertir vers des formats d'archive pris en charge...</i></p>
|
||||
<ol>
|
||||
<li>Iso</li>
|
||||
<li>Vhd</li>
|
||||
<li>Vdi</li>
|
||||
</ol>
|
||||
<strong>Formats d'Images</strong>
|
||||
<p><i>Prend en charge le redimensionnement et la rotation via interface graphique et interface de programmation d'applications.</i></p>
|
||||
<p><i>Prend en charge la désactivation du maintien des proportions via interface de programmation d'applications.</i></p>
|
||||
<p><i>Les opérations de conversion d'image prennent en charge les formats d'entrée suivants...</i></p>
|
||||
<ol>
|
||||
<li>Jpg</li>
|
||||
<li>Jpeg</li>
|
||||
<li>Png</li>
|
||||
<li>Bmp</li>
|
||||
<li>Webp</li>
|
||||
<li>Gif</li>
|
||||
<li>Cin</li>
|
||||
<li>Dds</li>
|
||||
<li>Dib</li>
|
||||
<li>Flif</li>
|
||||
<li>Avif</li>
|
||||
<li>Crw</li>
|
||||
<li>Dcr</li>
|
||||
<li>Gplt</li>
|
||||
<li>Nef</li>
|
||||
<li>Orf</li>
|
||||
<li>Ora</li>
|
||||
<li>Sct</li>
|
||||
<li>Sfw</li>
|
||||
<li>Xcf</li>
|
||||
<li>Xwd</li>
|
||||
<li>Avif</li>
|
||||
<li>Ico</li>
|
||||
</ol>
|
||||
<p><i>Les opérations de conversion d'image prennent en charge les formats de sortie suivants...</i></p>
|
||||
<ol>
|
||||
<li>Jpg</li>
|
||||
<li>Jpeg</li>
|
||||
<li>Png</li>
|
||||
<li>Bmp</li>
|
||||
<li>Webp</li>
|
||||
<li>Cin</li>
|
||||
<li>Dds</li>
|
||||
<li>Dib</li>
|
||||
<li>Flif</li>
|
||||
<li>Avif</li>
|
||||
</ol>
|
||||
<strong>Formats de Modèle 3D</strong>
|
||||
<ol>
|
||||
<li>3ds</li>
|
||||
<li>Obj</li>
|
||||
<li>Collada</li>
|
||||
<li>Off</li>
|
||||
<li>Ply</li>
|
||||
<li>Stl</li>
|
||||
<li>Ptx</li>
|
||||
<li>Dxf</li>
|
||||
<li>U3d</li>
|
||||
<li>Vrml</li>
|
||||
</ol>
|
||||
<strong>Formats de Dessin</strong>
|
||||
<p><i>Peut produire des fichiers de dessin aux formats d'image.</i></p>
|
||||
<p><i>Peut convertir entre l'un des éléments suivants...</i></p>
|
||||
<ol>
|
||||
<li>Svg</li>
|
||||
<li>Dxf</li>
|
||||
<li>Fig</li>
|
||||
<li>Vdx</li>
|
||||
</ol>
|
||||
<strong>Prise en charge de la ROC</strong>
|
||||
<p><i>Les opérations ROC prennent en charge les formats d'entrée suivants...</i></p>
|
||||
<ol>
|
||||
<li>Jpg</li>
|
||||
<li>Jpeg</li>
|
||||
<li>Png</li>
|
||||
<li>Bmp</li>
|
||||
<li>Pdf</li>
|
||||
<li>Gif</li>
|
||||
</ol>
|
||||
<p><i>Les opérations ROC prennent en charge les formats de sortie suivants...</i></p>
|
||||
<ol>
|
||||
<li>Doc</li>
|
||||
<li>Docx</li>
|
||||
<li>Txt</li>
|
||||
<li>Rtf</li>
|
||||
<li>Odt</li>
|
||||
<li>Pdf</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<hr />
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div align="center">
|
||||
<div id="call-to-action1" style="max-width:1000px; text-align:center;">
|
||||
<p>Sélectionnez des fichiers en cliquant, en appuyant ou en déposant des fichiers dans la zone ci-dessous.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div align="center">
|
||||
<div id="dropzone" style="max-height:1000px; max-width:1000px; margin:25px;">
|
||||
<form action="convertCore.php" class="dropzone" id="filesToUpload" name="filesToUpload" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" id="token1" name="Token1" value="<?php echo $Token1; ?>">
|
||||
<input type="hidden" id="token2" name="Token2" value="<?php echo $Token2; ?>">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div align="center">
|
||||
<div id="continue" style="max-width:1000px; text-align:center;">
|
||||
<form action="convertCore.php?showFiles=1<?php if (isset($_GET['noGui'])) echo '&noGui=TRUE'; if (isset($_GET['language'])) echo '&language='.$_GET['language']; ?>" method="post">
|
||||
<input type="hidden" id="token1" name="Token1" value="<?php echo $Token1; ?>">
|
||||
<input type="hidden" id="token2" name="Token2" value="<?php echo $Token2; ?>">
|
||||
<input type="submit" id="continue-button" class="info-button" value="Continuez...">
|
||||
</form>
|
||||
<br />
|
||||
<?php if (!isset($_GET['noGui'])) { ?>
|
||||
<hr />
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if (!isset($_GET['noGui'])) { ?>
|
||||
</div>
|
||||
<?php } ?>
|
984
Languages/fr/convertGui2.php
Normal file
984
Languages/fr/convertGui2.php
Normal file
|
@ -0,0 +1,984 @@
|
|||
<?php
|
||||
$Alert = 'Impossible de convertir ce fichier ! Essayez de changer le nom.';
|
||||
$Alert1 = 'Impossible d\'effectuer une analyse antivirus sur ce fichier !';
|
||||
$Alert2 = 'Lien de fichier copié dans le presse-papier!';
|
||||
$Alert3 = 'L\'opération a échoué!';
|
||||
$FCPlural1 = 's';
|
||||
if (!is_numeric($FileCount)) $FileCount = 'un nombre inconnu de';
|
||||
if ($FileCount == 1) $FCPlural1 = '';
|
||||
if (!isset($ApplicationName)) $ApplicationName = 'HRConvert2';
|
||||
if (!isset($ApplicationTitle)) $ApplicationTitle = 'Convertissez n\'importe quoi!';
|
||||
if (!isset($CoreLoaded)) die('ERREUR!!! '.$ApplicationName.'-2, Ce fichier ne peut pas traiter votre demande ! Veuillez soumettre votre fichier à convertCore.php à la place !');
|
||||
if (!isset($ShowFinePrint)) $ShowFinePrint = TRUE;
|
||||
?>
|
||||
<body>
|
||||
<script type="text/javascript" src="Resources/jquery-3.6.0.min.js"></script>
|
||||
<div id="header-text" style="max-width:1000px; margin-left:auto; margin-right:auto; text-align:center;">
|
||||
<?php if (!isset($_GET['noGui'])) { ?><h1><?php echo $ApplicationName; ?></h1>
|
||||
<hr /><?php } ?>
|
||||
<h3>Options de Conversion de Fichiers</h3>
|
||||
|
||||
<p>Vous avez téléchargé <?php echo $FileCount; ?> fichier<?php echo $FCPlural1; ?> valide<?php echo $FCPlural1; ?> sur <?php echo $ApplicationName; ?>.</p>
|
||||
<p>Vos fichiers sont maintenant prêts à être convertis en utilisant les options ci-dessous</p>
|
||||
</div>
|
||||
|
||||
<div id='utility' align="center">
|
||||
<p><img id='loadingCommandDiv' name='loadingCommandDiv' src='<?php echo $PacmanLoc; ?>' style="max-width:64px; max-height:64px; display:none;"/></p>
|
||||
<a id='downloadTarget' href='about:blank' style="display: none;" download></a>
|
||||
</div>
|
||||
|
||||
<div id="compressAll" name="compressAll" style="max-width:1000px; margin-left: auto; margin-right: auto; text-align:center;">
|
||||
<button id="backButton" name="backButton" style="width:50px;" class="info-button" onclick="window.history.back();">←</button>
|
||||
<button id="refreshButton" name="refreshButton" style="width:50px;" class="info-button" onclick="javascript:location.reload(true);">↻</button>
|
||||
<br /> <br />
|
||||
<button id="scandocMoreOptionsButton" name="scandocMoreOptionsButton" class="info-button" onclick="toggle_visibility('compressAllOptions');">Options de Fichiers en Masse</button>
|
||||
<div id="compressAllOptions" name="compressAllOptions" align="center" style="display:none;">
|
||||
<?php if ($AllowUserVirusScan) { ?>
|
||||
<hr style='width: 50%;' />
|
||||
<p><strong>Analyser Tous les Fichiers pour les Virus</strong></p>
|
||||
<p>Scanner avec ClamAV: <input type="checkbox" id="clamscanall" value="clamscanall" name="clamScan" checked></p>
|
||||
<p>Scanner avec ScanCore: <input type="checkbox" id="scancoreall" value="scancoreall" name="phpavScan" checked></p>
|
||||
<p><input type="submit" id="scanAllButton" name="scanAllButton" class="info-button" value='Numériser Tout' onclick="toggle_visibility('loadingCommandDiv');"></p>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#scanAllButton').click(function() {
|
||||
var scanfiles = <?php echo json_encode($Files); ?>;
|
||||
var scanType = 'all';
|
||||
if($("input#clamscanall").is(":checked")) {
|
||||
var scanType = 'clamav'; }
|
||||
if($("input#scancoreall").is(":checked")) {
|
||||
var scanType = 'scancore'; }
|
||||
if($("input#clamscanall").is(":checked") && $("input#scancoreall").is(":checked")) {
|
||||
var scanType = 'all'; }
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:scanType,
|
||||
filesToScan:scanfiles },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); }); });
|
||||
</script>
|
||||
<?php } ?>
|
||||
<hr style='width: 50%;' />
|
||||
<p><strong>Compresser et Télécharger Tous Les Fichiers</strong></p>
|
||||
<p>Spécifiez le Nom du Fichier: <input type="text" id='userarchallfilename' name='userarchallfilename' value='HRConvert2_Files-<?php echo $Date; ?>'></p>
|
||||
<select id='archallextension' name='archallextension'>
|
||||
<option value="zip">Format</option>
|
||||
<option value="zip">Zip</option>
|
||||
<option value="rar">Rar</option>
|
||||
<option value="tar">Tar</option>
|
||||
<option value="7z">7z</option>
|
||||
</select>
|
||||
<input type="submit" id="archallSubmit" name="archallSubmit" class="info-button" value='Tout Compresser' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#archallSubmit').click(function() {
|
||||
var extension = document.getElementById('archallextension').value;
|
||||
if (extension === "") {
|
||||
extension = 'zip'; }
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
archive:'1',
|
||||
filesToArchive:<?php echo json_encode($Files); ?>,
|
||||
archextension:extension,
|
||||
userfilename:document.getElementById('userarchallfilename').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userarchallfilename').value+'.'+extension },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userarchallfilename').value+'.'+extension;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
<hr style='width: 50%;' />
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div style="max-width:1000px; margin-left:auto; margin-right:auto;">
|
||||
<hr />
|
||||
|
||||
<?php
|
||||
foreach ($Files as $File) {
|
||||
$extension = getExtension($ConvertTempDir.'/'.$File);
|
||||
$FileNoExt = str_replace($extension, '', $File);
|
||||
if (!in_array($extension, $ConvertArray)) continue;
|
||||
$ConvertGuiCounter1++;
|
||||
?>
|
||||
|
||||
<div id="file<?php echo $ConvertGuiCounter1; ?>" name="<?php echo $ConvertGuiCounter1; ?>">
|
||||
<p href=""><strong><?php echo $ConvertGuiCounter1; ?>.</strong> <u><?php echo $File; ?></u></p>
|
||||
<div id="buttonDiv<?php echo $ConvertGuiCounter1; ?>" name="buttonDiv<?php echo $ConvertGuiCounter1; ?>" style="height:25px;">
|
||||
|
||||
<img id="downloadfilebutton<?php echo $ConvertGuiCounter1; ?>" name="downloadfilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/download.png" style="float:left; display:block;" onclick="toggle_visibility('loadingCommandDiv');"/>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#downloadfilebutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $File; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$File; ?>";
|
||||
document.getElementById('downloadTarget').click(); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
|
||||
<?php if ($AllowUserShare) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
<img id="sharefilebutton<?php echo $ConvertGuiCounter1; ?>" name="sharefilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/link.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('sharefilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('shareXfilebutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="shareXfilebutton<?php echo $ConvertGuiCounter1; ?>" name="shareXfilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('sharefilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('shareXfilebutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($AllowUserVirusScan) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
<img id="scanfilebutton<?php echo $ConvertGuiCounter1; ?>" name="scanfilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/scan.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfileXbutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="scanfileXbutton<?php echo $ConvertGuiCounter1; ?>" name="scanfileXbutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfileXbutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<a style="float:left;"> | </a>
|
||||
<img id="archfileButton<?php echo $ConvertGuiCounter1; ?>" name="archfileButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/archive.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="archfileXButton<?php echo $ConvertGuiCounter1; ?>" name="archfileXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
|
||||
<?php if (in_array($extension, $PDFWorkArr)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="docscanButton<?php echo $ConvertGuiCounter1; ?>" name="docscanButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/docscan.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="docscanXButton<?php echo $ConvertGuiCounter1; ?>" name="docscanXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ArchiveArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="archiveButton<?php echo $ConvertGuiCounter1; ?>" name="archiveButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/convert.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="archiveXButton<?php echo $ConvertGuiCounter1; ?>" name="archiveXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DocumentArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="documentButton<?php echo $ConvertGuiCounter1; ?>" name="documentButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/document.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('docOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="documentXButton<?php echo $ConvertGuiCounter1; ?>" name="documentXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('docOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $SpreadsheetArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="spreadsheetButton<?php echo $ConvertGuiCounter1; ?>" name="spreadsheetButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/spreadsheet.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>" name="spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $PresentationArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="presentationButton<?php echo $ConvertGuiCounter1; ?>" name="presentationButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/presentation.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="presentationXButton<?php echo $ConvertGuiCounter1; ?>" name="presentationXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ImageArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="imageButton<?php echo $ConvertGuiCounter1; ?>" name="imageButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/photo.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="imageXButton<?php echo $ConvertGuiCounter1; ?>" name="imageXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $MediaArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="mediaButton<?php echo $ConvertGuiCounter1; ?>" name="mediaButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/stream.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="mediaXButton<?php echo $ConvertGuiCounter1; ?>" name="mediaXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $VideoArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="videoButton<?php echo $ConvertGuiCounter1; ?>" name="videoButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/stream.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="videoXButton<?php echo $ConvertGuiCounter1; ?>" name="videoXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $StreamArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="streamButton<?php echo $ConvertGuiCounter1; ?>" name="streamButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/stream.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="streamXButton<?php echo $ConvertGuiCounter1; ?>" name="streamXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DrawingArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="drawingButton<?php echo $ConvertGuiCounter1; ?>" name="drawingButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/convert.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="drawingXButton<?php echo $ConvertGuiCounter1; ?>" name="drawingXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ModelArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="modelButton<?php echo $ConvertGuiCounter1; ?>" name="modelButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/convert.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="modelXButton<?php echo $ConvertGuiCounter1; ?>" name="modelXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<div id='archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Archiver ce Fichier</strong></p>
|
||||
<p>Spécifiez le Nom du Fichier: <input type="text" id='userarchfilefilename<?php echo $ConvertGuiCounter1; ?>' name='userarchfilefilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='archfileextension<?php echo $ConvertGuiCounter1; ?>' name='archfileextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="zip">Format</option>
|
||||
<option value="zip">Zip</option>
|
||||
<option value="rar">Rar</option>
|
||||
<option value="tar">Tar</option>
|
||||
<option value="7z">7z</option>
|
||||
</select></p>
|
||||
<input type="submit" id="archfileSubmit<?php echo $ConvertGuiCounter1; ?>" name="archfileSubmit<?php echo $ConvertGuiCounter1; ?>" value='Fichier d'Archive' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#archfileSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
archive:'<?php echo $File; ?>',
|
||||
filesToArchive:'<?php echo $File; ?>',
|
||||
archextension:document.getElementById('archfileextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userfilename:document.getElementById('userarchfilefilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userarchfilefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archfileextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userarchfilefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archfileextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
|
||||
<?php if ($AllowUserShare) { ?>
|
||||
<div id='sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Partager ce Fichier</strong></p>
|
||||
<p id='sharelinkStatus<?php echo $ConvertGuiCounter1; ?>' name='sharelinkStatus<?php echo $ConvertGuiCounter1; ?>'>État du Lien: <i>Non Généré</i></p>
|
||||
<p id='shareclipStatus<?php echo $ConvertGuiCounter1; ?>' name='shareclipStatus<?php echo $ConvertGuiCounter1; ?>'>État du Presse-Papiers: <i>Non Copié</i></p>
|
||||
<p id='sharelinkURL<?php echo $ConvertGuiCounter1; ?>' name='sharelinkURL<?php echo $ConvertGuiCounter1; ?>'>Lien de Fichier: <i>Non Généré</i></p>
|
||||
|
||||
<input type="submit" id="sharegeneratebutton<?php echo $ConvertGuiCounter1; ?>" name="sharegeneratebutton<?php echo $ConvertGuiCounter1; ?>" value='Generate Link & Copy to Clipboard' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<input type="submit" id="sharecopybutton<?php echo $ConvertGuiCounter1; ?>" name="sharecopybutton<?php echo $ConvertGuiCounter1; ?>" value='Generate Link' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#sharegeneratebutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $File; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('sharelinkStatus<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'État du Lien: <i>Généré</i>';
|
||||
document.getElementById('shareclipStatus<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'État du Presse-Papiers: <i>Copié</i>';
|
||||
document.getElementById('sharelinkURL<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'Lien de Fichier: <i><?php echo $FullURL.'/DATA/'.$SesHash3.'/'.$File; ?></i>';
|
||||
copy_share_link("<?php echo $FullURL.'/DATA/'.$SesHash3.'/'.$File; ?>");
|
||||
alert("<?php echo $Alert2; ?>"); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert3; ?>"); } }); });
|
||||
$('#sharecopybutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $File; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('sharelinkStatus<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'État du Lien: <i>Généré</i>';
|
||||
document.getElementById('sharelinkURL<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'Lien de Fichier: <i><?php echo $FullURL.'/DATA/'.$SesHash3.'/'.$File; ?></i>'; },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert3; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if ($AllowUserVirusScan) { ?>
|
||||
<div id='scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Analyser ce Fichier pour les Virus</strong></p>
|
||||
<input type="submit" id="scancorebutton<?php echo $ConvertGuiCounter1; ?>" name="scancorebutton<?php echo $ConvertGuiCounter1; ?>" value='Analyser le Fichier avec ScanCore' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<input type="submit" id="clamscanbutton<?php echo $ConvertGuiCounter1; ?>" name="clamscanbutton<?php echo $ConvertGuiCounter1; ?>" value='Analyser le Fichier avec ClamAV' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<input type="submit" id="scanallbutton<?php echo $ConvertGuiCounter1; ?>" name="scanallbutton<?php echo $ConvertGuiCounter1; ?>" value='Numériser un Fichier avec ScanCore et ClamAV' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#scancorebutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:'scancore',
|
||||
filesToScan:'<?php echo $File; ?>' },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); });
|
||||
$('#clamscanbutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:'all',
|
||||
filesToScan:'<?php echo $File; ?>' },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); });
|
||||
$('#scanallbutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:'all',
|
||||
filesToScan:'<?php echo $File; ?>' },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $PDFWorkArr)) {
|
||||
?>
|
||||
<div id='pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Effectuer une Reconnaissance Optique de Caractères sur ce Fichier</strong></p>
|
||||
<p>Spécifiez le Nom du Fichier: <input type="text" id='userpdffilename<?php echo $ConvertGuiCounter1; ?>' name='userpdffilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='pdfmethod<?php echo $ConvertGuiCounter1; ?>' name='pdfmethod<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="0">Method</option>
|
||||
<option value="1">Method 1 (Simple)</option>
|
||||
<option value="2">Method 2 (Advanced)</option>
|
||||
</select>
|
||||
<select id='pdfextension<?php echo $ConvertGuiCounter1; ?>' name='pdfextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="pdf">Format</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
<option value="doc">Doc</option>
|
||||
<option value="docx">Docx</option>
|
||||
<option value="rtf">Rtf</option>
|
||||
<option value="txt">Txt</option>
|
||||
<option value="odt">Odt</option>
|
||||
</select></p>
|
||||
<p><input type="submit" id='pdfconvertSubmit<?php echo $ConvertGuiCounter1; ?>' name='pdfconvertSubmit<?php echo $ConvertGuiCounter1; ?>' value='Convertir en Document' onclick="toggle_visibility('loadingCommandDiv');"></p>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#pdfconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
pdfworkSelected:'<?php echo $File; ?>',
|
||||
method:document.getElementById('pdfmethod<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
pdfextension:document.getElementById('pdfextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userpdfconvertfilename:document.getElementById('userpdffilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userpdffilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('pdfextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userpdffilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('pdfextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ArchiveArray)) {
|
||||
?>
|
||||
<div id='archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Convertir cette Archive</strong></p>
|
||||
<p>Spécifiez le Nom du Fichier: <input type="text" id='userarchivefilename<?php echo $ConvertGuiCounter1; ?>' name='userarchivefilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='archiveextension<?php echo $ConvertGuiCounter1; ?>' name='archiveextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="zip">Format</option>
|
||||
<option value="zip">Zip</option>
|
||||
<option value="rar">Rar</option>
|
||||
<option value="tar">Tar</option>
|
||||
<option value="7z">7z</option>
|
||||
</select></p>
|
||||
<input type="submit" id="archiveconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="archiveconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Fichiers d'Archives' onclick="toggle_visibility('loadingCommandDiv'); display:none;">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#archiveconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('archiveextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userarchivefilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userarchivefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archiveextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userarchivefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archiveextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DocumentArray)) {
|
||||
?>
|
||||
<div id='docOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='docOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Convertir ce Documen</strong></p>
|
||||
<p>Spécifiez le Nom du Fichier: <input type="text" id='userdocfilename<?php echo $ConvertGuiCounter1; ?>' name='userdocfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='docextension<?php echo $ConvertGuiCounter1; ?>' name='docextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="txt">Format</option>
|
||||
<option value="doc">Doc</option>
|
||||
<option value="docx">Docx</option>
|
||||
<option value="rtf">Rtf</option>
|
||||
<option value="txt">Txt</option>
|
||||
<option value="odt">Odt</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
</select></p>
|
||||
<input type="submit" id="docconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="docconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Convertir le Document' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#docconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('docextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userdocfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userdocfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('docextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userdocfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('docextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $SpreadsheetArray)) {
|
||||
?>
|
||||
<div id='spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Convertir cette Feuille de Calcul</strong></p>
|
||||
<p>Spécifiez le Nom du Fichier: <input type="text" id='userspreadfilename<?php echo $ConvertGuiCounter1; ?>' name='userspreadfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='spreadextension<?php echo $ConvertGuiCounter1; ?>' name='spreadextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="ods">Format</option>
|
||||
<option value="xls">Xls</option>
|
||||
<option value="xlsx">Xlsx</option>
|
||||
<option value="ods">Ods</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
</select></p>
|
||||
<input type="submit" id="spreadconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="spreadconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Convertir une Feuille de Calcul' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#spreadconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('spreadextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('spreadextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('spreadextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); }
|
||||
}); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $PresentationArray)) {
|
||||
?>
|
||||
<div id='presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Convertir cette Présentation</strong></p>
|
||||
<p>Spécifiez le Nom du Fichier: <input type="text" id='userpresentationfilename<?php echo $ConvertGuiCounter1; ?>' name='userpresentationfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='presentationextension<?php echo $ConvertGuiCounter1; ?>' name='presentationextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="odp">Format</option>
|
||||
<option value="pages">Pages</option>
|
||||
<option value="pptx">Pptx</option>
|
||||
<option value="ppt">Ppt</option>
|
||||
<option value="xps">Xps</option>
|
||||
<option value="potx">Potx</option>
|
||||
<option value="pot">Pot</option>
|
||||
<option value="ppa">Ppa</option>
|
||||
<option value="odp">Odp</option>
|
||||
</select></p>
|
||||
<input type="submit" id="presentationconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="presentationconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Convertir la Présentation' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#presentationconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('presentationextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userpresentationfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userpresentationfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('presentationextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('presentationextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $MediaArray)) {
|
||||
?>
|
||||
<div id='audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Convertir cet Audio</strong></p>
|
||||
<p>Spécifiez le Nom du Fichier: <input type="text" id='useraudiofilename<?php echo $ConvertGuiCounter1; ?>' name='useraudiofilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='audioextension<?php echo $ConvertGuiCounter1; ?>' name='audioextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="mp3">Format</option>
|
||||
<option value="mp2">Mp2</option>
|
||||
<option value="mp3">Mp3</option>
|
||||
<option value="wav">Wav</option>
|
||||
<option value="wma">Wma</option>
|
||||
<option value="flac">Flac</option>
|
||||
<option value="ogg">Ogg</option>
|
||||
</select></p>
|
||||
<input type="submit" id="audioconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="audioconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Convertir l'Audio' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#audioconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('audioextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('useraudiofilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('useraudiofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('audioextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('useraudiofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('audioextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $VideoArray)) {
|
||||
?>
|
||||
<div id='videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Convertir Cette Vidéo</strong></p>
|
||||
<p>Spécifiez le Nom du Fichier: <input type="text" id='uservideofilename<?php echo $ConvertGuiCounter1; ?>' name='uservideofilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='videoextension<?php echo $ConvertGuiCounter1; ?>' name='videoextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="mp4">Format</option>
|
||||
<option value="3gp">3gp</option>
|
||||
<option value="mkv">Mkv</option>
|
||||
<option value="avi">Avi</option>
|
||||
<option value="mp4">Mp4</option>
|
||||
<option value="flv">Flv</option>
|
||||
<option value="mpeg">Mpeg</option>
|
||||
<option value="wmv">Wmv</option>
|
||||
<option value="mov">Mov</option>
|
||||
</select></p>
|
||||
<input type="submit" id="videoconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="videoconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Convertir Cette Vidéo' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#videoconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('videoextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('uservideofilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('uservideofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('videoextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('uservideofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('videoextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $StreamArray)) {
|
||||
?>
|
||||
<div id='streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Convertir ce Flux</strong></p>
|
||||
<p>Spécifiez le Nom du Fichier: <input type="text" id='userstreamfilename<?php echo $ConvertGuiCounter1; ?>' name='userstreamfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='streamextension<?php echo $ConvertGuiCounter1; ?>' name='streamextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="mp4">Format</option>
|
||||
<option value="3gp">3gp</option>
|
||||
<option value="mkv">Mkv</option>
|
||||
<option value="avi">Avi</option>
|
||||
<option value="mp4">Mp4</option>
|
||||
<option value="flv">Flv</option>
|
||||
<option value="mpeg">Mpeg</option>
|
||||
<option value="wmv">Wmv</option>
|
||||
<option value="mov">Mov</option>
|
||||
</select></p>
|
||||
<input type="submit" id="streamconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="streamconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Convertir ce Flux' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#streamconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('streamextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userstreamfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userstreamfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('streamextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userstreamfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('streamextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ModelArray)) {
|
||||
?>
|
||||
<div id='modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Convertir ce Modèle 3D</strong></p>
|
||||
<p>Spécifiez le Nom du Fichier: <input type="text" id='usermodelfilename<?php echo $ConvertGuiCounter1; ?>' name='usermodelfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='modelextension<?php echo $ConvertGuiCounter1; ?>' name='modelextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="3ds">Format</option>
|
||||
<option value="3ds">3ds</option>
|
||||
<option value="collada">Collada</option>
|
||||
<option value="obj">Obj</option>
|
||||
<option value="off">Off</option>
|
||||
<option value="ply">Ply</option>
|
||||
<option value="stl">Stl</option>
|
||||
<option value="ptx">Ptx</option>
|
||||
<option value="dxf">Dxf</option>
|
||||
<option value="u3d">U3d</option>
|
||||
<option value="vrml">Vrml</option>
|
||||
</select></p>
|
||||
<input type="submit" id="modelconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="modelconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Convertir le Modèle' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#modelconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('modelextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('usermodelfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('usermodelfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('modelextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('usermodelfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('modelextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DrawingArray)) {
|
||||
?>
|
||||
<div id='drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Convertissez ce Dessin Technique ou ce Fichier Vectoriel</strong></p>
|
||||
<p>Spécifiez le Nom du Fichier: <input type="text" id='userdrawingfilename<?php echo $ConvertGuiCounter1; ?>' name='userdrawingfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='drawingextension<?php echo $ConvertGuiCounter1; ?>' name='drawingextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="jpg">Format</option>
|
||||
<option value="svg">Svg</option>
|
||||
<option value="dxf">Dxf</option>
|
||||
<option value="vdx">Vdx</option>
|
||||
<option value="fig">Fig</option>
|
||||
<option value="jpg">Jpg</option>
|
||||
<option value="png">Png</option>
|
||||
<option value="bmp">Bmp</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
</select></p>
|
||||
<input type="submit" id="drawingconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="drawingconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Convertir le Dessin' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#drawingconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('drawingextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userdrawingfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('drawingfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('drawingextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userdrawingfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('drawingextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ImageArray)) {
|
||||
?>
|
||||
<div id='imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Convertir Cette Image</strong></p>
|
||||
<p>Spécifiez le Nom du Fichier: <input type="text" id='userphotofilename<?php echo $ConvertGuiCounter1; ?>' name='userphotofilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='photoextension<?php echo $ConvertGuiCounter1; ?>' name='photoextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="jpg">Format</option>
|
||||
<option value="jpg">Jpg</option>
|
||||
<option value="bmp">Bmp</option>
|
||||
<option value="webp">Webp</option>
|
||||
<option value="png">Png</option>
|
||||
<option value="cin">Cin</option>
|
||||
<option value="dds">Dds</option>
|
||||
<option value="dib">Dib</option>
|
||||
<option value="flif">Flif</option>
|
||||
<option value="avif">Avif</option>
|
||||
</select></p>
|
||||
<p>Largeur et Hauteur: </p>
|
||||
<p><input type="number" size="4" value="0" id='width<?php echo $ConvertGuiCounter1; ?>' name='width<?php echo $ConvertGuiCounter1; ?>' min="0" max="10000"> X <input type="number" size="4" value="0" id="height<?php echo $ConvertGuiCounter1; ?>" name="height<?php echo $ConvertGuiCounter1; ?>" min="0" max="10000"></p>
|
||||
<p>Tourner: <input type="number" size="3" id='rotate<?php echo $ConvertGuiCounter1; ?>' name='rotate<?php echo $ConvertGuiCounter1; ?>' value="0" min="0" max="359"></p>
|
||||
<input type="submit" id='convertPhotoSubmit<?php echo $ConvertGuiCounter1; ?>' name='convertPhotoSubmit<?php echo $ConvertGuiCounter1; ?>' value='Convertir l'Image' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#convertPhotoSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
rotate:$('#rotate<?php echo $ConvertGuiCounter1; ?>').val(),
|
||||
width:$('#width<?php echo $ConvertGuiCounter1; ?>').val(),
|
||||
height:$('#height<?php echo $ConvertGuiCounter1; ?>').val(),
|
||||
extension:document.getElementById('photoextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userphotofilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userphotofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('photoextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userphotofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('photoextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<hr />
|
||||
<?php } ?>
|
||||
</div>
|
9
Languages/fr/footer.php
Normal file
9
Languages/fr/footer.php
Normal file
|
@ -0,0 +1,9 @@
|
|||
<?php if (!isset($ShowFinePrint)) $ShowFinePrint = TRUE;
|
||||
if ($ShowFinePrint) { ?>
|
||||
<div id="footer" name="footer" style="max-width:1000px; margin-left:auto; margin-right:auto; text-align:center;">
|
||||
<p>Découvrez notre <a href="<?php echo $TOSURL; ?>" target="_blank" rel="noopener noreferrer">Conditions d'Utilisation</a>
|
||||
et <a href="<?php echo $PPURL; ?>" target="_blank" rel="noopener noreferrer">Politique de Confidentialité</a></p>
|
||||
</div>
|
||||
<?php } ?>
|
||||
</body>
|
||||
</html>
|
20
Languages/fr/header.php
Normal file
20
Languages/fr/header.php
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?php if (!isset($ApplicationName)) $ApplicationName = 'HRConvert2';
|
||||
if (!isset($ApplicationTitle)) $ApplicationTitle = 'Convertissez n\'Importe Quoi!';
|
||||
if (!isset($Font)) $Font = 'Arial'; ?>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="shortcut icon" href="Resources/favicon.ico"/>
|
||||
<link rel="stylesheet" href="Resources/dropzone.css"/>
|
||||
<link rel="stylesheet" href="Resources/HRConvert2.css"/>
|
||||
<script type="text/javascript" src="Resources/HRC2-Functions.js"></script>
|
||||
<script type="text/javascript">var dropzoneText = 'Cliquez, appuyez ou déposez les fichiers ici pour les télécharger.';</script>
|
||||
<script type="text/javascript" src="Resources/dropzone.js"></script>
|
||||
<style>
|
||||
body {
|
||||
font-family: <?php echo $Font; ?>; }
|
||||
<?php if (isset($ButtonCode)) echo $ButtonCode; ?>
|
||||
</style>
|
||||
<title><?php echo $ApplicationName; ?> - <?php echo $ApplicationTitle; ?></title>
|
||||
</head>
|
||||
|
21
Languages/fr/index.html
Normal file
21
Languages/fr/index.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en-US">
|
||||
<title>HRConvert2 | HRConvert2 Authentication</title>
|
||||
<body>
|
||||
<div id="outer" align="center"><h1>Configuring HRConvert2 ...</h1>
|
||||
|
||||
<div id="inner" style="position:absolute; top:50%; left:50%; height:10em; margin-top:-5em; margin-right:5em;"><strong>Please wait . . .</strong></div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
|
||||
// Set the URL below to the page the user is sent to if their screensize is UNDER the specified number of pixels.
|
||||
if (screen.width <= 699) { document.location = "/HRProprietary/HRConvert2/convertCore.php"; }
|
||||
// / Set the URL below to the page the user is sent to if their screensize is OVER the specified number of pixels.
|
||||
if (screen.width >= 700) { document.location = "/HRProprietary/HRConvert2/convertCore.php"; }
|
||||
|
||||
</script>
|
||||
|
||||
<meta id="IfNothingHappens" http-equiv="refresh" content="5"; url="/HRProprietary/HRConvert2/convertCore.php" >
|
||||
|
||||
</body>
|
||||
</html>
|
224
Languages/hi/convertGui1.php
Normal file
224
Languages/hi/convertGui1.php
Normal file
|
@ -0,0 +1,224 @@
|
|||
<?php
|
||||
if (!isset($ApplicationName)) $ApplicationName = 'HRConvert2';
|
||||
if (!isset($ApplicationTitle)) $ApplicationTitle = 'कुछ भी कनवर्ट करें!';
|
||||
if (!isset($CoreLoaded)) die('त्रुटि!!! '.$ApplicationName.'-2, यह फ़ाइल आपके अनुरोध को संसाधित नहीं कर सकती है! इसके बजाय कृपया अपनी फ़ाइल ConvertCore.php पर सबमिट करें!');
|
||||
if (!isset($ShowFinePrint)) $ShowFinePrint = TRUE;
|
||||
?>
|
||||
<body>
|
||||
<?php
|
||||
if (!isset($_GET['noGui'])) { ?>
|
||||
<div id="header-text" style="max-width:1000px; margin-left:auto; margin-right:auto; text-align:center;">
|
||||
<h1><?php echo $ApplicationName; ?></h1>
|
||||
<h3>ऑनलाइन फाइल कन्वर्टर, एक्सट्रैक्टर, कंप्रेसर</h3>
|
||||
<hr />
|
||||
</div>
|
||||
<div id="main" align="center">
|
||||
<div id="overview" style="max-width:1000px; text-align:left; margin:25px;">
|
||||
<p id="info" style="display:block;"><a href='https://github.com/zelon88/HRConvert2'>HRConvert2</a> <a href='https://github.com/zelon88'>Zelon88</a> द्वारा <?php echo $ApplicationName; ?> पर आधारित है। यह उपयोगकर्ताओं को ट्रैक किए बिना या आपकी बौद्धिक संपदा का उल्लंघन किए बिना फ़ाइलों को परिवर्तित करने के लिए बनाया गया था।</p>
|
||||
<button id="more-info-button" class="info-button" onclick="toggle_visibility('more-info'); toggle_visibility('more-info-button'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('less-info-button');" style="text-align:center; display:block; margin-left:auto; margin-right:auto;"><i>और जानकारी ...</i></button>
|
||||
<button id="less-info-button" class="info-button" onclick="toggle_visibility('more-info'); toggle_visibility('more-info-button'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('less-info-button');" style="text-align:center; display:none; margin-left:auto; margin-right:auto;"><i>कम जानकारी ...</i></button>
|
||||
<div id="more-info" style="display:none;">
|
||||
<hr />
|
||||
<p>सभी उपयोगकर्ता द्वारा प्रदत्त डेटा स्वचालित रूप से मिटा दिया जाता है, इसलिए आपको हमारी सेवाओं का उपयोग करते समय अपनी व्यक्तिगत जानकारी या संपत्ति को जब्त करने के बारे में चिंता करने की आवश्यकता नहीं है।</p>
|
||||
<p><?php echo $ApplicationName; ?> 77 विभिन्न फ़ाइल स्वरूपों का समर्थन करता है, जिसमें दस्तावेज़, स्प्रेडशीट, चित्र, मीडिया, तीन आयामी मॉडल, ड्राइंग फ़ाइलें, वेक्टर फ़ाइलें, संग्रह, डिस्क चित्र, और बहुत कुछ शामिल हैं।</p>
|
||||
<button id="supported-formats-show-button" class="info-button" onclick="toggle_visibility('supported-formats'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('supported-formats-hide-button');" style="text-align:center; display:none; margin-left:auto; margin-right:auto;"><i>समर्थित प्रारूप देखें ...</i></button>
|
||||
<button id="supported-formats-hide-button" class="info-button" onclick="toggle_visibility('supported-formats'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('supported-formats-hide-button');" style="text-align:center; display:none; margin-left:auto; margin-right:auto;"><i>समर्थित प्रारूप छुपाएं ...</i></button>
|
||||
<br>
|
||||
<div id="supported-formats" class="supported-formats" style="margin-left:33%; display:none;">
|
||||
<h3>समर्थित प्रारूप</h3>
|
||||
<hr />
|
||||
<strong>ऑडियो प्रारूप</strong>
|
||||
<p><i>एपीआई के माध्यम से विशिष्ट बिटरेट का समर्थन करता है।</i></p>
|
||||
<ol>
|
||||
<li>Mp2</li>
|
||||
<li>Mp3</li>
|
||||
<li>Avi</li>
|
||||
<li>Flac</li>
|
||||
<li>Ogg</li>
|
||||
<li>Wav</li>
|
||||
<li>Wma</li>
|
||||
<li>M4a</li>
|
||||
<li>M4p</li>
|
||||
</ol>
|
||||
<strong>वीडियो प्रारूप</strong>
|
||||
<ol>
|
||||
<li>3gp</li>
|
||||
<li>Mkv</li>
|
||||
<li>Avi</li>
|
||||
<li>Mp4</li>
|
||||
<li>Flv</li>
|
||||
<li>Mpeg</li>
|
||||
<li>Wmv</li>
|
||||
<li>Mov</li>
|
||||
<li>M4v</li>
|
||||
</ol>
|
||||
<strong>स्ट्रीम प्रारूप</strong>
|
||||
<ol>
|
||||
<li>m3u8</li>
|
||||
</ol>
|
||||
<strong>दस्तावेज़ प्रारूप</strong>
|
||||
<ol>
|
||||
<li>Doc</li>
|
||||
<li>Docx</li>
|
||||
<li>Txt</li>
|
||||
<li>Rtf</li>
|
||||
<li>Odt</li>
|
||||
<li>Pdf</li>
|
||||
</ol>
|
||||
<strong>स्प्रेडशीट प्रारूप</strong>
|
||||
<ol>
|
||||
<li>Xls</li>
|
||||
<li>Xlsx</li>
|
||||
<li>Ods</li>
|
||||
</ol>
|
||||
<strong>प्रस्तुति प्रारूप</strong>
|
||||
<ol>
|
||||
<li>Pages</li>
|
||||
<li>Pptx</li>
|
||||
<li>Ppt</li>
|
||||
<li>Xps</li>
|
||||
<li>Pot</li>
|
||||
<li>Potx</li>
|
||||
<li>Ppa</li>
|
||||
<li>Ppt</li>
|
||||
<li>Pptx</li>
|
||||
<li>Odp</li>
|
||||
</ol>
|
||||
<strong>पुरालेख प्रारूप</strong>
|
||||
<p><i>निम्न में से कोई भी बना, रूपांतरित और अचयनित कर सकता है...</i></p>
|
||||
<ol>
|
||||
<li>Zip</li>
|
||||
<li>Rar</li>
|
||||
<li>Tar</li>
|
||||
<li>Tar.Bz2</li>
|
||||
<li>7z</li>
|
||||
</ol>
|
||||
<strong>डिस्क छवि प्रारूप</strong>
|
||||
<p><i>निम्न में से किसी को भी निकाल सकते हैं या समर्थित संग्रह प्रारूपों में परिवर्तित कर सकते हैं...</i></p>
|
||||
<ol>
|
||||
<li>Iso</li>
|
||||
<li>Vhd</li>
|
||||
<li>Vdi</li>
|
||||
</ol>
|
||||
<strong>छवि प्रारूप</strong>
|
||||
<p><i>जीयूआई और एपीआई के माध्यम से आकार बदलने और घुमाने का समर्थन करता है।</i></p>
|
||||
<p><i>एपीआई के माध्यम से पहलू अनुपात को बनाए रखने में अक्षम का समर्थन करता है।</i></p>
|
||||
<p><i>छवि रूपांतरण संचालन निम्नलिखित इनपुट स्वरूपों का समर्थन करता है...</i></p>
|
||||
<ol>
|
||||
<li>Jpg</li>
|
||||
<li>Jpeg</li>
|
||||
<li>Png</li>
|
||||
<li>Bmp</li>
|
||||
<li>Webp</li>
|
||||
<li>Gif</li>
|
||||
<li>Cin</li>
|
||||
<li>Dds</li>
|
||||
<li>Dib</li>
|
||||
<li>Flif</li>
|
||||
<li>Avif</li>
|
||||
<li>Crw</li>
|
||||
<li>Dcr</li>
|
||||
<li>Gplt</li>
|
||||
<li>Nef</li>
|
||||
<li>Orf</li>
|
||||
<li>Ora</li>
|
||||
<li>Sct</li>
|
||||
<li>Sfw</li>
|
||||
<li>Xcf</li>
|
||||
<li>Xwd</li>
|
||||
<li>Avif</li>
|
||||
<li>Ico</li>
|
||||
</ol>
|
||||
<p><i>छवि रूपांतरण संचालन निम्नलिखित आउटपुट स्वरूपों का समर्थन करता है...</i></p>
|
||||
<ol>
|
||||
<li>Jpg</li>
|
||||
<li>Jpeg</li>
|
||||
<li>Png</li>
|
||||
<li>Bmp</li>
|
||||
<li>Webp</li>
|
||||
<li>Cin</li>
|
||||
<li>Dds</li>
|
||||
<li>Dib</li>
|
||||
<li>Flif</li>
|
||||
<li>Avif</li>
|
||||
</ol>
|
||||
<strong>तीन आयामी मॉडल प्रारूप</strong>
|
||||
<ol>
|
||||
<li>3ds</li>
|
||||
<li>Obj</li>
|
||||
<li>Collada</li>
|
||||
<li>Off</li>
|
||||
<li>Ply</li>
|
||||
<li>Stl</li>
|
||||
<li>Ptx</li>
|
||||
<li>Dxf</li>
|
||||
<li>U3d</li>
|
||||
<li>Vrml</li>
|
||||
</ol>
|
||||
<strong>ड्राइंग प्रारूप</strong>
|
||||
<p><i>छवि प्रारूपों में ड्राइंग फ़ाइलों को आउटपुट कर सकते हैं।</i></p>
|
||||
<p><i>निम्नलिखित में से किसी के बीच कनवर्ट कर सकते हैं...</i></p>
|
||||
<ol>
|
||||
<li>Svg</li>
|
||||
<li>Dxf</li>
|
||||
<li>Fig</li>
|
||||
<li>Vdx</li>
|
||||
</ol>
|
||||
<strong>ऑप्टिकल कैरेक्टर रिकग्निशन सपोर्ट</strong>
|
||||
<p><i>ऑप्टिकल कैरेक्टर रिकग्निशन ऑपरेशंस निम्नलिखित इनपुट स्वरूपों का समर्थन करते हैं:...</i></p>
|
||||
<ol>
|
||||
<li>Jpg</li>
|
||||
<li>Jpeg</li>
|
||||
<li>Png</li>
|
||||
<li>Bmp</li>
|
||||
<li>Pdf</li>
|
||||
<li>Gif</li>
|
||||
</ol>
|
||||
<p><i>ऑप्टिकल कैरेक्टर रिकग्निशन ऑपरेशंस निम्नलिखित आउटपुट स्वरूपों का समर्थन करते हैं:...</i></p>
|
||||
<ol>
|
||||
<li>Doc</li>
|
||||
<li>Docx</li>
|
||||
<li>Txt</li>
|
||||
<li>Rtf</li>
|
||||
<li>Odt</li>
|
||||
<li>Pdf</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<hr />
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div align="center">
|
||||
<div id="call-to-action1" style="max-width:1000px; text-align:center;">
|
||||
<p>नीचे दिए गए बॉक्स में फ़ाइलों को क्लिक करके, टैप करके या छोड़ कर फ़ाइलें चुनें।</p>
|
||||
</div>
|
||||
</div>
|
||||
<div align="center">
|
||||
<div id="dropzone" style="max-height:1000px; max-width:1000px; margin:25px;">
|
||||
<form action="convertCore.php" class="dropzone" id="filesToUpload" name="filesToUpload" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" id="token1" name="Token1" value="<?php echo $Token1; ?>">
|
||||
<input type="hidden" id="token2" name="Token2" value="<?php echo $Token2; ?>">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div align="center">
|
||||
<div id="continue" style="max-width:1000px; text-align:center;">
|
||||
<form action="convertCore.php?showFiles=1<?php if (isset($_GET['noGui'])) echo '&noGui=TRUE'; if (isset($_GET['language'])) echo '&language='.$_GET['language']; ?>" method="post">
|
||||
<input type="hidden" id="token1" name="Token1" value="<?php echo $Token1; ?>">
|
||||
<input type="hidden" id="token2" name="Token2" value="<?php echo $Token2; ?>">
|
||||
<input type="submit" id="continue-button" class="info-button" value="जारी रखें ...">
|
||||
</form>
|
||||
<br />
|
||||
<?php if (!isset($_GET['noGui'])) { ?>
|
||||
<hr />
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if (!isset($_GET['noGui'])) { ?>
|
||||
</div>
|
||||
<?php } ?>
|
985
Languages/hi/convertGui2.php
Normal file
985
Languages/hi/convertGui2.php
Normal file
|
@ -0,0 +1,985 @@
|
|||
<?php
|
||||
$Alert = 'इस फ़ाइल को परिवर्तित नहीं कर सकता! नाम बदलने का प्रयास करें।';
|
||||
$Alert1 = 'इस फ़ाइल पर वायरस स्कैन नहीं कर सकता!';
|
||||
$Alert2 = 'फ़ाइल लिंक क्लिपबोर्ड पर कॉपी किया गया!';
|
||||
$Alert3 = 'प्रचालन विफल रहा!';
|
||||
$FCPlural1 = '';
|
||||
if (!is_numeric($FileCount)) $FileCount = 0;
|
||||
if (!isset($ApplicationName)) $ApplicationName = 'HRConvert2';
|
||||
if (!isset($ApplicationTitle)) $ApplicationTitle = 'कुछ भी कनवर्ट करें!';
|
||||
if (!isset($CoreLoaded)) die('त्रुटि!!! '.$ApplicationName.'-2, यह फ़ाइल आपके अनुरोध को संसाधित नहीं कर सकती है! इसके बजाय कृपया अपनी फ़ाइल ConvertCore.php पर सबमिट करें!');
|
||||
if (!isset($ShowFinePrint)) $ShowFinePrint = TRUE;
|
||||
if ($FileCount === 0) $FCPlural1 = 'आपने 0 मान्य फ़ाइलें '.$ApplicationName.'-2 पर अपलोड की हैं।';
|
||||
if ($FileCount === 1) $FCPlural1 = 'आपने '.$ApplicationName.'-2 पर 1 वैध फ़ाइल अपलोड की है।';
|
||||
if ($FileCount > 1) $FCPlural1 = 'आपने '.$FileCount.' मान्य फ़ाइलें '.$ApplicationName.'-2 पर अपलोड की हैं।';
|
||||
?>
|
||||
<body>
|
||||
<script type="text/javascript" src="Resources/jquery-3.6.0.min.js"></script>
|
||||
<div id="header-text" style="max-width:1000px; margin-left:auto; margin-right:auto; text-align:center;">
|
||||
<?php if (!isset($_GET['noGui'])) { ?><h1><?php echo $ApplicationName; ?></h1>
|
||||
<hr /><?php } ?>
|
||||
<h3>फ़ाइल रूपांतरण विकल्प</h3>
|
||||
<p><?php echo $FCPlural1; ?></p>
|
||||
<p>आपकी फ़ाइल अब नीचे दिए गए विकल्पों का उपयोग करके कनवर्ट करने के लिए तैयार है।</p>
|
||||
</div>
|
||||
|
||||
<div id='utility' align="center">
|
||||
<p><img id='loadingCommandDiv' name='loadingCommandDiv' src='<?php echo $PacmanLoc; ?>' style="max-width:64px; max-height:64px; display:none;"/></p>
|
||||
<a id='downloadTarget' href='about:blank' style="display: none;" download></a>
|
||||
</div>
|
||||
|
||||
<div id="compressAll" name="compressAll" style="max-width:1000px; margin-left: auto; margin-right: auto; text-align:center;">
|
||||
<button id="backButton" name="backButton" style="width:50px;" class="info-button" onclick="window.history.back();">←</button>
|
||||
<button id="refreshButton" name="refreshButton" style="width:50px;" class="info-button" onclick="javascript:location.reload(true);">↻</button>
|
||||
<br /> <br />
|
||||
<button id="scandocMoreOptionsButton" name="scandocMoreOptionsButton" class="info-button" onclick="toggle_visibility('compressAllOptions');">थोक फ़ाइल विकल्प</button>
|
||||
<div id="compressAllOptions" name="compressAllOptions" align="center" style="display:none;">
|
||||
<?php if ($AllowUserVirusScan) { ?>
|
||||
<hr style='width: 50%;' />
|
||||
<p><strong>वायरस के लिए सभी फाइलों को स्कैन करें</strong></p>
|
||||
<p>क्लैमएवी के साथ स्कैन करें: <input type="checkbox" id="clamscanall" value="clamscanall" name="clamScan" checked></p>
|
||||
<p>स्कैनकोर के साथ स्कैन करें: <input type="checkbox" id="scancoreall" value="scancoreall" name="phpavScan" checked></p>
|
||||
<p><input type="submit" id="scanAllButton" name="scanAllButton" class="info-button" value='सभी स्कैन करें' onclick="toggle_visibility('loadingCommandDiv');"></p>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#scanAllButton').click(function() {
|
||||
var scanfiles = <?php echo json_encode($Files); ?>;
|
||||
var scanType = 'all';
|
||||
if($("input#clamscanall").is(":checked")) {
|
||||
var scanType = 'clamav'; }
|
||||
if($("input#scancoreall").is(":checked")) {
|
||||
var scanType = 'scancore'; }
|
||||
if($("input#clamscanall").is(":checked") && $("input#scancoreall").is(":checked")) {
|
||||
var scanType = 'all'; }
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:scanType,
|
||||
filesToScan:scanfiles },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); }); });
|
||||
</script>
|
||||
<?php } ?>
|
||||
<hr style='width: 50%;' />
|
||||
<p><strong>सभी फाइलों को कंप्रेस और डाउनलोड करें</strong></p>
|
||||
<p>फ़ाइल नाम निर्दिष्ट करें: <input type="text" id='userarchallfilename' name='userarchallfilename' value='HRConvert2_Files-<?php echo $Date; ?>'></p>
|
||||
<select id='archallextension' name='archallextension'>
|
||||
<option value="zip">प्रारूप का चयन करें</option>
|
||||
<option value="zip">Zip</option>
|
||||
<option value="rar">Rar</option>
|
||||
<option value="tar">Tar</option>
|
||||
<option value="7z">7z</option>
|
||||
</select>
|
||||
<input type="submit" id="archallSubmit" name="archallSubmit" class="info-button" value='संपीड़ित करें और डाउनलोड करें' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#archallSubmit').click(function() {
|
||||
var extension = document.getElementById('archallextension').value;
|
||||
if (extension === "") {
|
||||
extension = 'zip'; }
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
archive:'1',
|
||||
filesToArchive:<?php echo json_encode($Files); ?>,
|
||||
archextension:extension,
|
||||
userfilename:document.getElementById('userarchallfilename').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userarchallfilename').value+'.'+extension },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userarchallfilename').value+'.'+extension;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
<hr style='width: 50%;' />
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div style="max-width:1000px; margin-left:auto; margin-right:auto;">
|
||||
<hr />
|
||||
|
||||
<?php
|
||||
foreach ($Files as $File) {
|
||||
$extension = getExtension($ConvertTempDir.'/'.$File);
|
||||
$FileNoExt = str_replace($extension, '', $File);
|
||||
if (!in_array($extension, $ConvertArray)) continue;
|
||||
$ConvertGuiCounter1++;
|
||||
?>
|
||||
|
||||
<div id="file<?php echo $ConvertGuiCounter1; ?>" name="<?php echo $ConvertGuiCounter1; ?>">
|
||||
<p href=""><strong><?php echo $ConvertGuiCounter1; ?>.</strong> <u><?php echo $File; ?></u></p>
|
||||
<div id="buttonDiv<?php echo $ConvertGuiCounter1; ?>" name="buttonDiv<?php echo $ConvertGuiCounter1; ?>" style="height:25px;">
|
||||
|
||||
<img id="downloadfilebutton<?php echo $ConvertGuiCounter1; ?>" name="downloadfilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/download.png" style="float:left; display:block;" onclick="toggle_visibility('loadingCommandDiv');"/>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#downloadfilebutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $File; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$File; ?>";
|
||||
document.getElementById('downloadTarget').click(); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
|
||||
<?php if ($AllowUserShare) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
<img id="sharefilebutton<?php echo $ConvertGuiCounter1; ?>" name="sharefilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/link.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('sharefilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('shareXfilebutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="shareXfilebutton<?php echo $ConvertGuiCounter1; ?>" name="shareXfilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('sharefilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('shareXfilebutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($AllowUserVirusScan) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
<img id="scanfilebutton<?php echo $ConvertGuiCounter1; ?>" name="scanfilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/scan.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfileXbutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="scanfileXbutton<?php echo $ConvertGuiCounter1; ?>" name="scanfileXbutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfileXbutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<a style="float:left;"> | </a>
|
||||
<img id="archfileButton<?php echo $ConvertGuiCounter1; ?>" name="archfileButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/archive.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="archfileXButton<?php echo $ConvertGuiCounter1; ?>" name="archfileXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
|
||||
<?php if (in_array($extension, $PDFWorkArr)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="docscanButton<?php echo $ConvertGuiCounter1; ?>" name="docscanButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/docscan.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="docscanXButton<?php echo $ConvertGuiCounter1; ?>" name="docscanXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ArchiveArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="archiveButton<?php echo $ConvertGuiCounter1; ?>" name="archiveButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/convert.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="archiveXButton<?php echo $ConvertGuiCounter1; ?>" name="archiveXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DocumentArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="documentButton<?php echo $ConvertGuiCounter1; ?>" name="documentButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/document.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('docOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="documentXButton<?php echo $ConvertGuiCounter1; ?>" name="documentXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('docOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $SpreadsheetArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="spreadsheetButton<?php echo $ConvertGuiCounter1; ?>" name="spreadsheetButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/spreadsheet.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>" name="spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $PresentationArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="presentationButton<?php echo $ConvertGuiCounter1; ?>" name="presentationButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/presentation.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="presentationXButton<?php echo $ConvertGuiCounter1; ?>" name="presentationXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ImageArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="imageButton<?php echo $ConvertGuiCounter1; ?>" name="imageButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/photo.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="imageXButton<?php echo $ConvertGuiCounter1; ?>" name="imageXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $MediaArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="mediaButton<?php echo $ConvertGuiCounter1; ?>" name="mediaButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/stream.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="mediaXButton<?php echo $ConvertGuiCounter1; ?>" name="mediaXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $VideoArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="videoButton<?php echo $ConvertGuiCounter1; ?>" name="videoButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/stream.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="videoXButton<?php echo $ConvertGuiCounter1; ?>" name="videoXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $StreamArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="streamButton<?php echo $ConvertGuiCounter1; ?>" name="streamButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/stream.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="streamXButton<?php echo $ConvertGuiCounter1; ?>" name="streamXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DrawingArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="drawingButton<?php echo $ConvertGuiCounter1; ?>" name="drawingButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/convert.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="drawingXButton<?php echo $ConvertGuiCounter1; ?>" name="drawingXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ModelArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="modelButton<?php echo $ConvertGuiCounter1; ?>" name="modelButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/convert.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="modelXButton<?php echo $ConvertGuiCounter1; ?>" name="modelXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<div id='archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>इस फ़ाइल को संग्रहित करें</strong></p>
|
||||
<p>फ़ाइल नाम निर्दिष्ट करें: <input type="text" id='userarchfilefilename<?php echo $ConvertGuiCounter1; ?>' name='userarchfilefilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='archfileextension<?php echo $ConvertGuiCounter1; ?>' name='archfileextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="zip">प्रारूप का चयन करें</option>
|
||||
<option value="zip">Zip</option>
|
||||
<option value="rar">Rar</option>
|
||||
<option value="tar">Tar</option>
|
||||
<option value="7z">7z</option>
|
||||
</select></p>
|
||||
<input type="submit" id="archfileSubmit<?php echo $ConvertGuiCounter1; ?>" name="archfileSubmit<?php echo $ConvertGuiCounter1; ?>" value='संग्रह फ़ाइल' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#archfileSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
archive:'<?php echo $File; ?>',
|
||||
filesToArchive:'<?php echo $File; ?>',
|
||||
archextension:document.getElementById('archfileextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userfilename:document.getElementById('userarchfilefilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userarchfilefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archfileextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userarchfilefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archfileextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
|
||||
<?php if ($AllowUserShare) { ?>
|
||||
<div id='sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>इस फ़ाइल को साझा करें</strong></p>
|
||||
<p id='sharelinkStatus<?php echo $ConvertGuiCounter1; ?>' name='sharelinkStatus<?php echo $ConvertGuiCounter1; ?>'>लिंक स्थिति: <i>उत्पन्न नहीं</i></p>
|
||||
<p id='shareclipStatus<?php echo $ConvertGuiCounter1; ?>' name='shareclipStatus<?php echo $ConvertGuiCounter1; ?>'>क्लिपबोर्ड स्थिति: <i>कॉपी नहीं किया गया</i></p>
|
||||
<p id='sharelinkURL<?php echo $ConvertGuiCounter1; ?>' name='sharelinkURL<?php echo $ConvertGuiCounter1; ?>'>फ़ाइल लिंक: <i>उत्पन्न नहीं</i></p>
|
||||
|
||||
<input type="submit" id="sharegeneratebutton<?php echo $ConvertGuiCounter1; ?>" name="sharegeneratebutton<?php echo $ConvertGuiCounter1; ?>" value='लिंक जेनरेट करें और क्लिपबोर्ड पर कॉपी करें' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<input type="submit" id="sharecopybutton<?php echo $ConvertGuiCounter1; ?>" name="sharecopybutton<?php echo $ConvertGuiCounter1; ?>" value='लिंक उत्पन्न करें' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#sharegeneratebutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $File; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('sharelinkStatus<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'लिंक स्थिति: <i>जनरेट किया गया</i>';
|
||||
document.getElementById('shareclipStatus<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'क्लिपबोर्ड स्थिति: <i>कॉपी किया गया</i>';
|
||||
document.getElementById('sharelinkURL<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'फ़ाइल लिंक: <i><?php echo $FullURL.'/DATA/'.$SesHash3.'/'.$File; ?></i>';
|
||||
copy_share_link("<?php echo $FullURL.'/DATA/'.$SesHash3.'/'.$File; ?>");
|
||||
alert("<?php echo $Alert2; ?>"); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert3; ?>"); } }); });
|
||||
$('#sharecopybutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $File; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('sharelinkStatus<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'लिंक स्थिति: <i>जनरेट किया गया</i>';
|
||||
document.getElementById('sharelinkURL<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'फ़ाइल लिंक: <i><?php echo $FullURL.'/DATA/'.$SesHash3.'/'.$File; ?></i>'; },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert3; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if ($AllowUserVirusScan) { ?>
|
||||
<div id='scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>इस फ़ाइल को वायरस के लिए स्कैन करें</strong></p>
|
||||
<input type="submit" id="scancorebutton<?php echo $ConvertGuiCounter1; ?>" name="scancorebutton<?php echo $ConvertGuiCounter1; ?>" value='स्कैनकोर के साथ फ़ाइल स्कैन करें' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<input type="submit" id="clamscanbutton<?php echo $ConvertGuiCounter1; ?>" name="clamscanbutton<?php echo $ConvertGuiCounter1; ?>" value='क्लैमएवी के साथ फ़ाइल स्कैन करें' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<input type="submit" id="scanallbutton<?php echo $ConvertGuiCounter1; ?>" name="scanallbutton<?php echo $ConvertGuiCounter1; ?>" value='स्कैनकोर और क्लैमएवी के साथ फ़ाइल स्कैन करें' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#scancorebutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:'scancore',
|
||||
filesToScan:'<?php echo $File; ?>' },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); });
|
||||
$('#clamscanbutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:'all',
|
||||
filesToScan:'<?php echo $File; ?>' },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); });
|
||||
$('#scanallbutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:'all',
|
||||
filesToScan:'<?php echo $File; ?>' },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $PDFWorkArr)) {
|
||||
?>
|
||||
<div id='pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>इस फ़ाइल पर ऑप्टिकल कैरेक्टर रिकग्निशन करें</strong></p>
|
||||
<p>फ़ाइल नाम निर्दिष्ट करें: <input type="text" id='userpdffilename<?php echo $ConvertGuiCounter1; ?>' name='userpdffilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='pdfmethod<?php echo $ConvertGuiCounter1; ?>' name='pdfmethod<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="0">तरीका</option>
|
||||
<option value="1">तरीका 1 (सरल)</option>
|
||||
<option value="2">तरीका 2 (विकसित)</option>
|
||||
</select>
|
||||
<select id='pdfextension<?php echo $ConvertGuiCounter1; ?>' name='pdfextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="pdf">प्रारूप का चयन करें</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
<option value="doc">Doc</option>
|
||||
<option value="docx">Docx</option>
|
||||
<option value="rtf">Rtf</option>
|
||||
<option value="txt">Txt</option>
|
||||
<option value="odt">Odt</option>
|
||||
</select></p>
|
||||
<p><input type="submit" id='pdfconvertSubmit<?php echo $ConvertGuiCounter1; ?>' name='pdfconvertSubmit<?php echo $ConvertGuiCounter1; ?>' value='दस्तावेज़ में कनवर्ट करें' onclick="toggle_visibility('loadingCommandDiv');"></p>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#pdfconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
pdfworkSelected:'<?php echo $File; ?>',
|
||||
method:document.getElementById('pdfmethod<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
pdfextension:document.getElementById('pdfextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userpdfconvertfilename:document.getElementById('userpdffilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userpdffilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('pdfextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userpdffilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('pdfextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ArchiveArray)) {
|
||||
?>
|
||||
<div id='archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>इस संग्रह को कनवर्ट करें</strong></p>
|
||||
<p>फ़ाइल नाम निर्दिष्ट करें: <input type="text" id='userarchivefilename<?php echo $ConvertGuiCounter1; ?>' name='userarchivefilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='archiveextension<?php echo $ConvertGuiCounter1; ?>' name='archiveextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="zip">प्रारूप का चयन करें</option>
|
||||
<option value="zip">Zip</option>
|
||||
<option value="rar">Rar</option>
|
||||
<option value="tar">Tar</option>
|
||||
<option value="7z">7z</option>
|
||||
</select></p>
|
||||
<input type="submit" id="archiveconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="archiveconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='पुरालेख फ़ाइलें' onclick="toggle_visibility('loadingCommandDiv'); display:none;">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#archiveconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('archiveextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userarchivefilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userarchivefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archiveextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userarchivefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archiveextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DocumentArray)) {
|
||||
?>
|
||||
<div id='docOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='docOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>इस दस्तावेज़ को कनवर्ट करें</strong></p>
|
||||
<p>फ़ाइल नाम निर्दिष्ट करें: <input type="text" id='userdocfilename<?php echo $ConvertGuiCounter1; ?>' name='userdocfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='docextension<?php echo $ConvertGuiCounter1; ?>' name='docextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="txt">प्रारूप का चयन करें</option>
|
||||
<option value="doc">Doc</option>
|
||||
<option value="docx">Docx</option>
|
||||
<option value="rtf">Rtf</option>
|
||||
<option value="txt">Txt</option>
|
||||
<option value="odt">Odt</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
</select></p>
|
||||
<input type="submit" id="docconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="docconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='दस्तावेज़ कनवर्ट करें' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#docconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('docextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userdocfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userdocfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('docextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userdocfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('docextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $SpreadsheetArray)) {
|
||||
?>
|
||||
<div id='spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>इस स्प्रेडशीट को कनवर्ट करें</strong></p>
|
||||
<p>फ़ाइल नाम निर्दिष्ट करें: <input type="text" id='userspreadfilename<?php echo $ConvertGuiCounter1; ?>' name='userspreadfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='spreadextension<?php echo $ConvertGuiCounter1; ?>' name='spreadextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="ods">प्रारूप का चयन करें</option>
|
||||
<option value="xls">Xls</option>
|
||||
<option value="xlsx">Xlsx</option>
|
||||
<option value="ods">Ods</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
</select></p>
|
||||
<input type="submit" id="spreadconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="spreadconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='स्प्रेडशीट कन्वर्ट करें' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#spreadconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('spreadextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('spreadextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('spreadextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); }
|
||||
}); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $PresentationArray)) {
|
||||
?>
|
||||
<div id='presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>इस प्रस्तुति को रूपांतरित करें</strong></p>
|
||||
<p>फ़ाइल नाम निर्दिष्ट करें: <input type="text" id='userpresentationfilename<?php echo $ConvertGuiCounter1; ?>' name='userpresentationfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='presentationextension<?php echo $ConvertGuiCounter1; ?>' name='presentationextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="odp">प्रारूप का चयन करें</option>
|
||||
<option value="pages">Pages</option>
|
||||
<option value="pptx">Pptx</option>
|
||||
<option value="ppt">Ppt</option>
|
||||
<option value="xps">Xps</option>
|
||||
<option value="potx">Potx</option>
|
||||
<option value="pot">Pot</option>
|
||||
<option value="ppa">Ppa</option>
|
||||
<option value="odp">Odp</option>
|
||||
</select></p>
|
||||
<input type="submit" id="presentationconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="presentationconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='प्रस्तुति परिवर्तित करें' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#presentationconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('presentationextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userpresentationfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userpresentationfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('presentationextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('presentationextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $MediaArray)) {
|
||||
?>
|
||||
<div id='audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>इस ऑडियो को कन्वर्ट करें</strong></p>
|
||||
<p>फ़ाइल नाम निर्दिष्ट करें: <input type="text" id='useraudiofilename<?php echo $ConvertGuiCounter1; ?>' name='useraudiofilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='audioextension<?php echo $ConvertGuiCounter1; ?>' name='audioextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="mp3">प्रारूप का चयन करें</option>
|
||||
<option value="mp2">Mp2</option>
|
||||
<option value="mp3">Mp3</option>
|
||||
<option value="wav">Wav</option>
|
||||
<option value="wma">Wma</option>
|
||||
<option value="flac">Flac</option>
|
||||
<option value="ogg">Ogg</option>
|
||||
</select></p>
|
||||
<input type="submit" id="audioconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="audioconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='ऑडियो कनवर्ट करें' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#audioconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('audioextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('useraudiofilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('useraudiofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('audioextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('useraudiofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('audioextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $VideoArray)) {
|
||||
?>
|
||||
<div id='videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>इस वीडियो को कन्वर्ट करें</strong></p>
|
||||
<p>फ़ाइल नाम निर्दिष्ट करें: <input type="text" id='uservideofilename<?php echo $ConvertGuiCounter1; ?>' name='uservideofilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='videoextension<?php echo $ConvertGuiCounter1; ?>' name='videoextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="mp4">प्रारूप का चयन करें</option>
|
||||
<option value="3gp">3gp</option>
|
||||
<option value="mkv">Mkv</option>
|
||||
<option value="avi">Avi</option>
|
||||
<option value="mp4">Mp4</option>
|
||||
<option value="flv">Flv</option>
|
||||
<option value="mpeg">Mpeg</option>
|
||||
<option value="wmv">Wmv</option>
|
||||
<option value="mov">Mov</option>
|
||||
</select></p>
|
||||
<input type="submit" id="videoconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="videoconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='वीडियो रूपांतरण' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#videoconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('videoextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('uservideofilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('uservideofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('videoextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('uservideofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('videoextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $StreamArray)) {
|
||||
?>
|
||||
<div id='streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>इस स्ट्रीम को कनवर्ट करें</strong></p>
|
||||
<p>फ़ाइल नाम निर्दिष्ट करें: <input type="text" id='userstreamfilename<?php echo $ConvertGuiCounter1; ?>' name='userstreamfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='streamextension<?php echo $ConvertGuiCounter1; ?>' name='streamextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="mp4">Format</option>
|
||||
<option value="3gp">3gp</option>
|
||||
<option value="mkv">Mkv</option>
|
||||
<option value="avi">Avi</option>
|
||||
<option value="mp4">Mp4</option>
|
||||
<option value="flv">Flv</option>
|
||||
<option value="mpeg">Mpeg</option>
|
||||
<option value="wmv">Wmv</option>
|
||||
<option value="mov">Mov</option>
|
||||
</select></p>
|
||||
<input type="submit" id="streamconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="streamconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='कन्वर्ट स्ट्रीम' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#streamconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('streamextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userstreamfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userstreamfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('streamextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userstreamfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('streamextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ModelArray)) {
|
||||
?>
|
||||
<div id='modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>इस तीन आयामी मॉडल को कनवर्ट करें</strong></p>
|
||||
<p>फ़ाइल नाम निर्दिष्ट करें: <input type="text" id='usermodelfilename<?php echo $ConvertGuiCounter1; ?>' name='usermodelfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='modelextension<?php echo $ConvertGuiCounter1; ?>' name='modelextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="3ds">प्रारूप का चयन करें</option>
|
||||
<option value="3ds">3ds</option>
|
||||
<option value="collada">Collada</option>
|
||||
<option value="obj">Obj</option>
|
||||
<option value="off">Off</option>
|
||||
<option value="ply">Ply</option>
|
||||
<option value="stl">Stl</option>
|
||||
<option value="ptx">Ptx</option>
|
||||
<option value="dxf">Dxf</option>
|
||||
<option value="u3d">U3d</option>
|
||||
<option value="vrml">Vrml</option>
|
||||
</select></p>
|
||||
<input type="submit" id="modelconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="modelconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='कन्वर्ट मॉडल' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#modelconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('modelextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('usermodelfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('usermodelfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('modelextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('usermodelfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('modelextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DrawingArray)) {
|
||||
?>
|
||||
<div id='drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>इस तकनीकी ड्राइंग या वेक्टर फ़ाइल को कनवर्ट करें</strong></p>
|
||||
<p>फ़ाइल नाम निर्दिष्ट करें: <input type="text" id='userdrawingfilename<?php echo $ConvertGuiCounter1; ?>' name='userdrawingfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='drawingextension<?php echo $ConvertGuiCounter1; ?>' name='drawingextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="jpg">प्रारूप का चयन करें</option>
|
||||
<option value="svg">Svg</option>
|
||||
<option value="dxf">Dxf</option>
|
||||
<option value="vdx">Vdx</option>
|
||||
<option value="fig">Fig</option>
|
||||
<option value="jpg">Jpg</option>
|
||||
<option value="png">Png</option>
|
||||
<option value="bmp">Bmp</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
</select></p>
|
||||
<input type="submit" id="drawingconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="drawingconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='ड्राइंग कन्वर्ट' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#drawingconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('drawingextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userdrawingfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('drawingfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('drawingextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userdrawingfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('drawingextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ImageArray)) {
|
||||
?>
|
||||
<div id='imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>इस छवि को कनवर्ट करें</strong></p>
|
||||
<p>फ़ाइल नाम निर्दिष्ट करें: <input type="text" id='userphotofilename<?php echo $ConvertGuiCounter1; ?>' name='userphotofilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='photoextension<?php echo $ConvertGuiCounter1; ?>' name='photoextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="jpg">प्रारूप का चयन करें</option>
|
||||
<option value="jpg">Jpg</option>
|
||||
<option value="bmp">Bmp</option>
|
||||
<option value="webp">Webp</option>
|
||||
<option value="png">Png</option>
|
||||
<option value="cin">Cin</option>
|
||||
<option value="dds">Dds</option>
|
||||
<option value="dib">Dib</option>
|
||||
<option value="flif">Flif</option>
|
||||
<option value="avif">Avif</option>
|
||||
</select></p>
|
||||
<p>चौड़ाई ऊंचाई: </p>
|
||||
<p><input type="number" size="4" value="0" id='width<?php echo $ConvertGuiCounter1; ?>' name='width<?php echo $ConvertGuiCounter1; ?>' min="0" max="10000"> X <input type="number" size="4" value="0" id="height<?php echo $ConvertGuiCounter1; ?>" name="height<?php echo $ConvertGuiCounter1; ?>" min="0" max="10000"></p>
|
||||
<p>घुमाएँ: <input type="number" size="3" id='rotate<?php echo $ConvertGuiCounter1; ?>' name='rotate<?php echo $ConvertGuiCounter1; ?>' value="0" min="0" max="359"></p>
|
||||
<input type="submit" id='convertPhotoSubmit<?php echo $ConvertGuiCounter1; ?>' name='convertPhotoSubmit<?php echo $ConvertGuiCounter1; ?>' value='छवि कनवर्ट करें' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#convertPhotoSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
rotate:$('#rotate<?php echo $ConvertGuiCounter1; ?>').val(),
|
||||
width:$('#width<?php echo $ConvertGuiCounter1; ?>').val(),
|
||||
height:$('#height<?php echo $ConvertGuiCounter1; ?>').val(),
|
||||
extension:document.getElementById('photoextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userphotofilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userphotofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('photoextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userphotofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('photoextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<hr />
|
||||
<?php } ?>
|
||||
</div>
|
10
Languages/hi/footer.php
Normal file
10
Languages/hi/footer.php
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?php if (!isset($ShowFinePrint)) $ShowFinePrint = TRUE;
|
||||
if ($ShowFinePrint) { ?>
|
||||
<div id="footer" name="footer" style="max-width:1000px; margin-left:auto; margin-right:auto; text-align:center;">
|
||||
<p>हमारी <a href="<?php echo $TOSURL; ?>" target="_blank" rel="noopener noreferrer">सेवा की शर्तें</a>
|
||||
और <a href="<?php echo $PPURL; ?>" target="_blank" rel="noopener noreferrer">गोपनीयता नीति</a> देखें।</p>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</body>
|
||||
</html>
|
20
Languages/hi/header.php
Normal file
20
Languages/hi/header.php
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?php if (!isset($ApplicationName)) $ApplicationName = 'HRConvert2';
|
||||
if (!isset($ApplicationTitle)) $ApplicationTitle = 'कुछ भी कनवर्ट करें!';
|
||||
if (!isset($Font)) $Font = 'Arial'; ?>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="shortcut icon" href="Resources/favicon.ico"/>
|
||||
<link rel="stylesheet" href="Resources/dropzone.css"/>
|
||||
<link rel="stylesheet" href="Resources/HRConvert2.css"/>
|
||||
<script type="text/javascript" src="Resources/HRC2-Functions.js"></script>
|
||||
<script type="text/javascript">var dropzoneText = 'फ़ाइलों को अपलोड करने के लिए यहां क्लिक करें, टैप करें या छोड़ें।';</script>
|
||||
<script type="text/javascript" src="Resources/dropzone.js"></script>
|
||||
<style>
|
||||
body {
|
||||
font-family: <?php echo $Font; ?>; }
|
||||
<?php if (isset($ButtonCode)) echo $ButtonCode; ?>
|
||||
</style>
|
||||
<title><?php echo $ApplicationName; ?> - <?php echo $ApplicationTitle; ?></title>
|
||||
</head>
|
||||
|
21
Languages/hi/index.html
Normal file
21
Languages/hi/index.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en-US">
|
||||
<title>HRConvert2 | HRConvert2 Authentication</title>
|
||||
<body>
|
||||
<div id="outer" align="center"><h1>Configuring HRConvert2 ...</h1>
|
||||
|
||||
<div id="inner" style="position:absolute; top:50%; left:50%; height:10em; margin-top:-5em; margin-right:5em;"><strong>Please wait . . .</strong></div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
|
||||
// Set the URL below to the page the user is sent to if their screensize is UNDER the specified number of pixels.
|
||||
if (screen.width <= 699) { document.location = "/HRProprietary/HRConvert2/convertCore.php"; }
|
||||
// / Set the URL below to the page the user is sent to if their screensize is OVER the specified number of pixels.
|
||||
if (screen.width >= 700) { document.location = "/HRProprietary/HRConvert2/convertCore.php"; }
|
||||
|
||||
</script>
|
||||
|
||||
<meta id="IfNothingHappens" http-equiv="refresh" content="5"; url="/HRProprietary/HRConvert2/convertCore.php" >
|
||||
|
||||
</body>
|
||||
</html>
|
21
Languages/index.html
Normal file
21
Languages/index.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en-US">
|
||||
<title>HRConvert2 | HRConvert2 Authentication</title>
|
||||
<body>
|
||||
<div id="outer" align="center"><h1>Configuring HRConvert2 ...</h1>
|
||||
|
||||
<div id="inner" style="position:absolute; top:50%; left:50%; height:10em; margin-top:-5em; margin-right:5em;"><strong>Please wait . . .</strong></div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
|
||||
// Set the URL below to the page the user is sent to if their screensize is UNDER the specified number of pixels.
|
||||
if (screen.width <= 699) { document.location = "/HRProprietary/HRConvert2/convertCore.php"; }
|
||||
// / Set the URL below to the page the user is sent to if their screensize is OVER the specified number of pixels.
|
||||
if (screen.width >= 700) { document.location = "/HRProprietary/HRConvert2/convertCore.php"; }
|
||||
|
||||
</script>
|
||||
|
||||
<meta id="IfNothingHappens" http-equiv="refresh" content="5"; url="/HRProprietary/HRConvert2/convertCore.php" >
|
||||
|
||||
</body>
|
||||
</html>
|
224
Languages/it/convertGui1.php
Normal file
224
Languages/it/convertGui1.php
Normal file
|
@ -0,0 +1,224 @@
|
|||
<?php
|
||||
if (!isset($ApplicationName)) $ApplicationName = 'HRConvert2';
|
||||
if (!isset($ApplicationTitle)) $ApplicationTitle = 'Converti Qualsiasi Cosa!';
|
||||
if (!isset($CoreLoaded)) die('ERRORE!!! '.$ApplicationName.'-2, questo file non può elaborare la tua richiesta! Invia invece il tuo file a convertCore.php!');
|
||||
if (!isset($ShowFinePrint)) $ShowFinePrint = TRUE;
|
||||
?>
|
||||
<body>
|
||||
<?php
|
||||
if (!isset($_GET['noGui'])) { ?>
|
||||
<div id="header-text" style="max-width:1000px; margin-left:auto; margin-right:auto; text-align:center;">
|
||||
<h1><?php echo $ApplicationName; ?></h1>
|
||||
<h3>Online File Converter, Extractor, Compressor</h3>
|
||||
<hr />
|
||||
</div>
|
||||
<div id="main" align="center">
|
||||
<div id="overview" style="max-width:1000px; text-align:left; margin:25px;">
|
||||
<p id="info" style="display:block;"><?php echo $ApplicationName; ?> è basato sull'applicazione open source <a href='https://github.com/zelon88/HRConvert2'>HRConvert2</a> di <a href='https://github.com/zelon88'>Zelon88</a>. È progettato per convertire file senza tracciare gli utenti o violare la tua proprietà intellettuale.</p>
|
||||
<button id="more-info-button" class="info-button" onclick="toggle_visibility('more-info'); toggle_visibility('more-info-button'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('less-info-button');" style="text-align:center; display:block; margin-left:auto; margin-right:auto;"><i>Maggiori Informazioni ...</i></button>
|
||||
<button id="less-info-button" class="info-button" onclick="toggle_visibility('more-info'); toggle_visibility('more-info-button'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('less-info-button');" style="text-align:center; display:none; margin-left:auto; margin-right:auto;"><i>Meno Informazioni ...</i></button>
|
||||
<div id="more-info" style="display:none;">
|
||||
<hr />
|
||||
<p>Tutti i dati forniti dall'utente vengono cancellati automaticamente, quindi non devi preoccuparti di perdere le tue informazioni personali o la tua proprietà durante l'utilizzo dei nostri servizi.</p>
|
||||
<p>Attualmente <?php echo $ApplicationName; ?> supporta 77 formati di file diversi, inclusi documenti, fogli di calcolo, immagini, media, modelli tridimensionali, disegni tecnici, file vettoriali, archivi, immagini disco e altro.</p>
|
||||
<button id="supported-formats-show-button" class="info-button" onclick="toggle_visibility('supported-formats'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('supported-formats-hide-button');" style="text-align:center; display:none; margin-left:auto; margin-right:auto;"><i>Visualizza i Formati Supportati ...</i></button>
|
||||
<button id="supported-formats-hide-button" class="info-button" onclick="toggle_visibility('supported-formats'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('supported-formats-hide-button');" style="text-align:center; display:none; margin-left:auto; margin-right:auto;"><i>Nascondi Formati Supportati ...</i></button>
|
||||
<br>
|
||||
<div id="supported-formats" class="supported-formats" style="margin-left:33%; display:none;">
|
||||
<h3>Formati Supportati</h3>
|
||||
<hr />
|
||||
<strong>Formati di Audio</strong>
|
||||
<p><i>Supporta bitrate specifico tramite l'interfaccia di programmazione dell'applicazione.</i></p>
|
||||
<ol>
|
||||
<li>Mp2</li>
|
||||
<li>Mp3</li>
|
||||
<li>Avi</li>
|
||||
<li>Flac</li>
|
||||
<li>Ogg</li>
|
||||
<li>Wav</li>
|
||||
<li>Wma</li>
|
||||
<li>M4a</li>
|
||||
<li>M4p</li>
|
||||
</ol>
|
||||
<strong>Formati di Video</strong>
|
||||
<ol>
|
||||
<li>3gp</li>
|
||||
<li>Mkv</li>
|
||||
<li>Avi</li>
|
||||
<li>Mp4</li>
|
||||
<li>Flv</li>
|
||||
<li>Mpeg</li>
|
||||
<li>Wmv</li>
|
||||
<li>Mov</li>
|
||||
<li>M4v</li>
|
||||
</ol>
|
||||
<strong>Formati di Streaming</strong>
|
||||
<ol>
|
||||
<li>m3u8</li>
|
||||
</ol>
|
||||
<strong>Formati di Documenti</strong>
|
||||
<ol>
|
||||
<li>Doc</li>
|
||||
<li>Docx</li>
|
||||
<li>Txt</li>
|
||||
<li>Rtf</li>
|
||||
<li>Odt</li>
|
||||
<li>Pdf</li>
|
||||
</ol>
|
||||
<strong>Formati di Fogli di Calcolo</strong>
|
||||
<ol>
|
||||
<li>Xls</li>
|
||||
<li>Xlsx</li>
|
||||
<li>Ods</li>
|
||||
</ol>
|
||||
<strong>Formati di Presentazione</strong>
|
||||
<ol>
|
||||
<li>Pages</li>
|
||||
<li>Pptx</li>
|
||||
<li>Ppt</li>
|
||||
<li>Xps</li>
|
||||
<li>Pot</li>
|
||||
<li>Potx</li>
|
||||
<li>Ppa</li>
|
||||
<li>Ppt</li>
|
||||
<li>Pptx</li>
|
||||
<li>Odp</li>
|
||||
</ol>
|
||||
<strong>Formati di Archivio</strong>
|
||||
<p><i>Può creare, convertire e dearchiviare qualsiasi dei seguenti elementi...</i></p>
|
||||
<ol>
|
||||
<li>Zip</li>
|
||||
<li>Rar</li>
|
||||
<li>Tar</li>
|
||||
<li>Tar.Bz2</li>
|
||||
<li>7z</li>
|
||||
</ol>
|
||||
<strong>Formati dell'Immagine del Disco</strong>
|
||||
<p><i>Può estrarre uno qualsiasi dei seguenti o convertire in formati di archivio supportati...</i></p>
|
||||
<ol>
|
||||
<li>Iso</li>
|
||||
<li>Vhd</li>
|
||||
<li>Vdi</li>
|
||||
</ol>
|
||||
<strong>Formati di Immagini</strong>
|
||||
<p><i>Supporta il ridimensionamento e la rotazione tramite l'interfaccia utente grafica e l'interfaccia di programmazione dell'applicazione.</i></p>
|
||||
<p><i>Supporta disabilitare il mantenimento delle proporzioni tramite l'interfaccia di programmazione dell'applicazione.</i></p>
|
||||
<p><i>Le operazioni di conversione delle immagini supportano i seguenti formati di input...</i></p>
|
||||
<ol>
|
||||
<li>Jpg</li>
|
||||
<li>Jpeg</li>
|
||||
<li>Png</li>
|
||||
<li>Bmp</li>
|
||||
<li>Webp</li>
|
||||
<li>Gif</li>
|
||||
<li>Cin</li>
|
||||
<li>Dds</li>
|
||||
<li>Dib</li>
|
||||
<li>Flif</li>
|
||||
<li>Avif</li>
|
||||
<li>Crw</li>
|
||||
<li>Dcr</li>
|
||||
<li>Gplt</li>
|
||||
<li>Nef</li>
|
||||
<li>Orf</li>
|
||||
<li>Ora</li>
|
||||
<li>Sct</li>
|
||||
<li>Sfw</li>
|
||||
<li>Xcf</li>
|
||||
<li>Xwd</li>
|
||||
<li>Avif</li>
|
||||
<li>Ico</li>
|
||||
</ol>
|
||||
<p><i>Le operazioni di conversione delle immagini supportano i seguenti formati di output...</i></p>
|
||||
<ol>
|
||||
<li>Jpg</li>
|
||||
<li>Jpeg</li>
|
||||
<li>Png</li>
|
||||
<li>Bmp</li>
|
||||
<li>Webp</li>
|
||||
<li>Cin</li>
|
||||
<li>Dds</li>
|
||||
<li>Dib</li>
|
||||
<li>Flif</li>
|
||||
<li>Avif</li>
|
||||
</ol>
|
||||
<strong>Formati di Modelli Tridimensionali</strong>
|
||||
<ol>
|
||||
<li>3ds</li>
|
||||
<li>Obj</li>
|
||||
<li>Collada</li>
|
||||
<li>Off</li>
|
||||
<li>Ply</li>
|
||||
<li>Stl</li>
|
||||
<li>Ptx</li>
|
||||
<li>Dxf</li>
|
||||
<li>U3d</li>
|
||||
<li>Vrml</li>
|
||||
</ol>
|
||||
<strong>Formati di Disegno</strong>
|
||||
<p><i>Can output drawing files to image formats.</i></p>
|
||||
<p><i>Can convert between any of the following...</i></p>
|
||||
<ol>
|
||||
<li>Svg</li>
|
||||
<li>Dxf</li>
|
||||
<li>Fig</li>
|
||||
<li>Vdx</li>
|
||||
</ol>
|
||||
<strong>Supporto al Riconoscimento Ottico dei Caratteri</strong>
|
||||
<p><i>Le operazioni di riconoscimento ottico dei caratteri supportano i seguenti formati di input...</i></p>
|
||||
<ol>
|
||||
<li>Jpg</li>
|
||||
<li>Jpeg</li>
|
||||
<li>Png</li>
|
||||
<li>Bmp</li>
|
||||
<li>Pdf</li>
|
||||
<li>Gif</li>
|
||||
</ol>
|
||||
<p><i>Le operazioni di riconoscimento ottico dei caratteri supportano i seguenti formati di output...</i></p>
|
||||
<ol>
|
||||
<li>Doc</li>
|
||||
<li>Docx</li>
|
||||
<li>Txt</li>
|
||||
<li>Rtf</li>
|
||||
<li>Odt</li>
|
||||
<li>Pdf</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<hr />
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div align="center">
|
||||
<div id="call-to-action1" style="max-width:1000px; text-align:center;">
|
||||
<p>Seleziona i file facendo clic, toccando o rilasciando i file nella casella sottostante.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div align="center">
|
||||
<div id="dropzone" style="max-height:1000px; max-width:1000px; margin:25px;">
|
||||
<form action="convertCore.php" class="dropzone" id="filesToUpload" name="filesToUpload" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" id="token1" name="Token1" value="<?php echo $Token1; ?>">
|
||||
<input type="hidden" id="token2" name="Token2" value="<?php echo $Token2; ?>">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div align="center">
|
||||
<div id="continue" style="max-width:1000px; text-align:center;">
|
||||
<form action="convertCore.php?showFiles=1<?php if (isset($_GET['noGui'])) echo '&noGui=TRUE'; if (isset($_GET['language'])) echo '&language='.$_GET['language']; ?>" method="post">
|
||||
<input type="hidden" id="token1" name="Token1" value="<?php echo $Token1; ?>">
|
||||
<input type="hidden" id="token2" name="Token2" value="<?php echo $Token2; ?>">
|
||||
<input type="submit" id="continue-button" class="info-button" value="Continua ...">
|
||||
</form>
|
||||
<br />
|
||||
<?php if (!isset($_GET['noGui'])) { ?>
|
||||
<hr />
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if (!isset($_GET['noGui'])) { ?>
|
||||
</div>
|
||||
<?php } ?>
|
985
Languages/it/convertGui2.php
Normal file
985
Languages/it/convertGui2.php
Normal file
|
@ -0,0 +1,985 @@
|
|||
<?php
|
||||
$Alert = 'Impossibile convertire questo file! Prova a cambiare il nome.';
|
||||
$Alert1 = 'Impossibile eseguire una scansione antivirus su questo file!';
|
||||
$Alert2 = 'Collegamento al file copiato negli Appunti!';
|
||||
$Alert3 = 'Operazione fallita!';
|
||||
$FCPlural1 = '';
|
||||
if (!is_numeric($FileCount)) $FileCount = 0;
|
||||
if (!isset($ApplicationName)) $ApplicationName = 'HRConvert2';
|
||||
if (!isset($ApplicationTitle)) $ApplicationTitle = 'Converti Qualsiasi Cosa!';
|
||||
if (!isset($CoreLoaded)) die('ERRORE!!! '.$ApplicationName.'-2, questo file non può elaborare la tua richiesta! Invia invece il tuo file a convertCore.php!');
|
||||
if (!isset($ShowFinePrint)) $ShowFinePrint = TRUE;
|
||||
if ($FileCount === 0) $FCPlural1 = 'Hai caricato 0 file validi su '.$ApplicationName.'.';
|
||||
if ($FileCount === 1) $FCPlural1 = 'Hai caricato 1 file valido su '.$ApplicationName.'.';
|
||||
if ($FileCount >= 2) $FCPlural1 = 'Hai caricato '.$FileCount.' file validi su '.$ApplicationName.'.';
|
||||
?>
|
||||
<body>
|
||||
<script type="text/javascript" src="Resources/jquery-3.6.0.min.js"></script>
|
||||
<div id="header-text" style="max-width:1000px; margin-left:auto; margin-right:auto; text-align:center;">
|
||||
<?php if (!isset($_GET['noGui'])) { ?><h1><?php echo $ApplicationName; ?></h1>
|
||||
<hr /><?php } ?>
|
||||
<h3>Opzioni di Conversione dei File</h3>
|
||||
<p><?php echo $FCPlural1; ?></p>
|
||||
<p>I tuoi file sono ora pronti per essere convertiti utilizzando le opzioni seguenti.</p>
|
||||
</div>
|
||||
|
||||
<div id='utility' align="center">
|
||||
<p><img id='loadingCommandDiv' name='loadingCommandDiv' src='<?php echo $PacmanLoc; ?>' style="max-width:64px; max-height:64px; display:none;"/></p>
|
||||
<a id='downloadTarget' href='about:blank' style="display: none;" download></a>
|
||||
</div>
|
||||
|
||||
<div id="compressAll" name="compressAll" style="max-width:1000px; margin-left: auto; margin-right: auto; text-align:center;">
|
||||
<button id="backButton" name="backButton" style="width:50px;" class="info-button" onclick="window.history.back();">←</button>
|
||||
<button id="refreshButton" name="refreshButton" style="width:50px;" class="info-button" onclick="javascript:location.reload(true);">↻</button>
|
||||
<br /> <br />
|
||||
<button id="scandocMoreOptionsButton" name="scandocMoreOptionsButton" class="info-button" onclick="toggle_visibility('compressAllOptions');">Opzioni per i File di Massa</button>
|
||||
<div id="compressAllOptions" name="compressAllOptions" align="center" style="display:none;">
|
||||
<?php if ($AllowUserVirusScan) { ?>
|
||||
<hr style='width: 50%;' />
|
||||
<p><strong>Scansiona Tutti i File alla Ricerca di Virus</strong></p>
|
||||
<p>Scansione con ClamAV: <input type="checkbox" id="clamscanall" value="clamscanall" name="clamScan" checked></p>
|
||||
<p>Scansione con ScanCore: <input type="checkbox" id="scancoreall" value="scancoreall" name="phpavScan" checked></p>
|
||||
<p><input type="submit" id="scanAllButton" name="scanAllButton" class="info-button" value='Scansiona Tutto' onclick="toggle_visibility('loadingCommandDiv');"></p>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#scanAllButton').click(function() {
|
||||
var scanfiles = <?php echo json_encode($Files); ?>;
|
||||
var scanType = 'all';
|
||||
if($("input#clamscanall").is(":checked")) {
|
||||
var scanType = 'clamav'; }
|
||||
if($("input#scancoreall").is(":checked")) {
|
||||
var scanType = 'scancore'; }
|
||||
if($("input#clamscanall").is(":checked") && $("input#scancoreall").is(":checked")) {
|
||||
var scanType = 'all'; }
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:scanType,
|
||||
filesToScan:scanfiles },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); }); });
|
||||
</script>
|
||||
<?php } ?>
|
||||
<hr style='width: 50%;' />
|
||||
<p><strong>Comprimi e Scarica Tutti i File</strong></p>
|
||||
<p>Specifica Nome File: <input type="text" id='userarchallfilename' name='userarchallfilename' value='HRConvert2_Files-<?php echo $Date; ?>'></p>
|
||||
<select id='archallextension' name='archallextension'>
|
||||
<option value="zip">Formato</option>
|
||||
<option value="zip">Zip</option>
|
||||
<option value="rar">Rar</option>
|
||||
<option value="tar">Tar</option>
|
||||
<option value="7z">7z</option>
|
||||
</select>
|
||||
<input type="submit" id="archallSubmit" name="archallSubmit" class="info-button" value='Comprimi e Scarica' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#archallSubmit').click(function() {
|
||||
var extension = document.getElementById('archallextension').value;
|
||||
if (extension === "") {
|
||||
extension = 'zip'; }
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
archive:'1',
|
||||
filesToArchive:<?php echo json_encode($Files); ?>,
|
||||
archextension:extension,
|
||||
userfilename:document.getElementById('userarchallfilename').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userarchallfilename').value+'.'+extension },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userarchallfilename').value+'.'+extension;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
<hr style='width: 50%;' />
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div style="max-width:1000px; margin-left:auto; margin-right:auto;">
|
||||
<hr />
|
||||
|
||||
<?php
|
||||
foreach ($Files as $File) {
|
||||
$extension = getExtension($ConvertTempDir.'/'.$File);
|
||||
$FileNoExt = str_replace($extension, '', $File);
|
||||
if (!in_array($extension, $ConvertArray)) continue;
|
||||
$ConvertGuiCounter1++;
|
||||
?>
|
||||
|
||||
<div id="file<?php echo $ConvertGuiCounter1; ?>" name="<?php echo $ConvertGuiCounter1; ?>">
|
||||
<p href=""><strong><?php echo $ConvertGuiCounter1; ?>.</strong> <u><?php echo $File; ?></u></p>
|
||||
<div id="buttonDiv<?php echo $ConvertGuiCounter1; ?>" name="buttonDiv<?php echo $ConvertGuiCounter1; ?>" style="height:25px;">
|
||||
|
||||
<img id="downloadfilebutton<?php echo $ConvertGuiCounter1; ?>" name="downloadfilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/download.png" style="float:left; display:block;" onclick="toggle_visibility('loadingCommandDiv');"/>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#downloadfilebutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $File; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$File; ?>";
|
||||
document.getElementById('downloadTarget').click(); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
|
||||
<?php if ($AllowUserShare) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
<img id="sharefilebutton<?php echo $ConvertGuiCounter1; ?>" name="sharefilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/link.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('sharefilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('shareXfilebutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="shareXfilebutton<?php echo $ConvertGuiCounter1; ?>" name="shareXfilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('sharefilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('shareXfilebutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($AllowUserVirusScan) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
<img id="scanfilebutton<?php echo $ConvertGuiCounter1; ?>" name="scanfilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/scan.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfileXbutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="scanfileXbutton<?php echo $ConvertGuiCounter1; ?>" name="scanfileXbutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfileXbutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<a style="float:left;"> | </a>
|
||||
<img id="archfileButton<?php echo $ConvertGuiCounter1; ?>" name="archfileButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/archive.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="archfileXButton<?php echo $ConvertGuiCounter1; ?>" name="archfileXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
|
||||
<?php if (in_array($extension, $PDFWorkArr)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="docscanButton<?php echo $ConvertGuiCounter1; ?>" name="docscanButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/docscan.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="docscanXButton<?php echo $ConvertGuiCounter1; ?>" name="docscanXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ArchiveArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="archiveButton<?php echo $ConvertGuiCounter1; ?>" name="archiveButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/convert.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="archiveXButton<?php echo $ConvertGuiCounter1; ?>" name="archiveXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DocumentArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="documentButton<?php echo $ConvertGuiCounter1; ?>" name="documentButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/document.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('docOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="documentXButton<?php echo $ConvertGuiCounter1; ?>" name="documentXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('docOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $SpreadsheetArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="spreadsheetButton<?php echo $ConvertGuiCounter1; ?>" name="spreadsheetButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/spreadsheet.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>" name="spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $PresentationArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="presentationButton<?php echo $ConvertGuiCounter1; ?>" name="presentationButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/presentation.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="presentationXButton<?php echo $ConvertGuiCounter1; ?>" name="presentationXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ImageArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="imageButton<?php echo $ConvertGuiCounter1; ?>" name="imageButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/photo.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="imageXButton<?php echo $ConvertGuiCounter1; ?>" name="imageXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $MediaArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="mediaButton<?php echo $ConvertGuiCounter1; ?>" name="mediaButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/stream.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="mediaXButton<?php echo $ConvertGuiCounter1; ?>" name="mediaXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $VideoArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="videoButton<?php echo $ConvertGuiCounter1; ?>" name="videoButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/stream.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="videoXButton<?php echo $ConvertGuiCounter1; ?>" name="videoXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $StreamArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="streamButton<?php echo $ConvertGuiCounter1; ?>" name="streamButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/stream.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="streamXButton<?php echo $ConvertGuiCounter1; ?>" name="streamXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DrawingArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="drawingButton<?php echo $ConvertGuiCounter1; ?>" name="drawingButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/convert.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="drawingXButton<?php echo $ConvertGuiCounter1; ?>" name="drawingXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ModelArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="modelButton<?php echo $ConvertGuiCounter1; ?>" name="modelButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/convert.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="modelXButton<?php echo $ConvertGuiCounter1; ?>" name="modelXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<div id='archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Archivia Questo File</strong></p>
|
||||
<p>Specifica Nome File: <input type="text" id='userarchfilefilename<?php echo $ConvertGuiCounter1; ?>' name='userarchfilefilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='archfileextension<?php echo $ConvertGuiCounter1; ?>' name='archfileextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="zip">Formato</option>
|
||||
<option value="zip">Zip</option>
|
||||
<option value="rar">Rar</option>
|
||||
<option value="tar">Tar</option>
|
||||
<option value="7z">7z</option>
|
||||
</select></p>
|
||||
<input type="submit" id="archfileSubmit<?php echo $ConvertGuiCounter1; ?>" name="archfileSubmit<?php echo $ConvertGuiCounter1; ?>" value='Archivio File' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#archfileSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
archive:'<?php echo $File; ?>',
|
||||
filesToArchive:'<?php echo $File; ?>',
|
||||
archextension:document.getElementById('archfileextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userfilename:document.getElementById('userarchfilefilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userarchfilefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archfileextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userarchfilefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archfileextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
|
||||
<?php if ($AllowUserShare) { ?>
|
||||
<div id='sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Condividi Questo File</strong></p>
|
||||
<p id='sharelinkStatus<?php echo $ConvertGuiCounter1; ?>' name='sharelinkStatus<?php echo $ConvertGuiCounter1; ?>'>Stato del Collegamento: <i>Non Generato</i></p>
|
||||
<p id='shareclipStatus<?php echo $ConvertGuiCounter1; ?>' name='shareclipStatus<?php echo $ConvertGuiCounter1; ?>'>Stato Appunti: <i>Non Copiato</i></p>
|
||||
<p id='sharelinkURL<?php echo $ConvertGuiCounter1; ?>' name='sharelinkURL<?php echo $ConvertGuiCounter1; ?>'>Collegamento al File: <i>Non Generato</i></p>
|
||||
|
||||
<input type="submit" id="sharegeneratebutton<?php echo $ConvertGuiCounter1; ?>" name="sharegeneratebutton<?php echo $ConvertGuiCounter1; ?>" value='Collegamento al Generatore e Copia Negli Appunti' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<input type="submit" id="sharecopybutton<?php echo $ConvertGuiCounter1; ?>" name="sharecopybutton<?php echo $ConvertGuiCounter1; ?>" value='Genera Collegamento' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#sharegeneratebutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $File; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('sharelinkStatus<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'Stato del Collegamento: <i>Generated</i>';
|
||||
document.getElementById('shareclipStatus<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'Stato Appunti: <i>Copiato</i>';
|
||||
document.getElementById('sharelinkURL<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'Collegamento al File: <i><?php echo $FullURL.'/DATA/'.$SesHash3.'/'.$File; ?></i>';
|
||||
copy_share_link("<?php echo $FullURL.'/DATA/'.$SesHash3.'/'.$File; ?>");
|
||||
alert("<?php echo $Alert2; ?>"); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert3; ?>"); } }); });
|
||||
$('#sharecopybutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $File; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('sharelinkStatus<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'Stato del Collegamento: <i>Generato</i>';
|
||||
document.getElementById('sharelinkURL<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'Collegamento al File: <i><?php echo $FullURL.'/DATA/'.$SesHash3.'/'.$File; ?></i>'; },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert3; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if ($AllowUserVirusScan) { ?>
|
||||
<div id='scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Scansiona Questo File Alla Ricerca di Virus</strong></p>
|
||||
<input type="submit" id="scancorebutton<?php echo $ConvertGuiCounter1; ?>" name="scancorebutton<?php echo $ConvertGuiCounter1; ?>" value='Scansione File Con ScanCore' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<input type="submit" id="clamscanbutton<?php echo $ConvertGuiCounter1; ?>" name="clamscanbutton<?php echo $ConvertGuiCounter1; ?>" value='Scansione File Con ClamAV' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<input type="submit" id="scanallbutton<?php echo $ConvertGuiCounter1; ?>" name="scanallbutton<?php echo $ConvertGuiCounter1; ?>" value='Scansione File Con ScanCore e ClamAV' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#scancorebutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:'scancore',
|
||||
filesToScan:'<?php echo $File; ?>' },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); });
|
||||
$('#clamscanbutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:'all',
|
||||
filesToScan:'<?php echo $File; ?>' },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); });
|
||||
$('#scanallbutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:'all',
|
||||
filesToScan:'<?php echo $File; ?>' },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $PDFWorkArr)) {
|
||||
?>
|
||||
<div id='pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Eseguire il Riconoscimento Ottico dei Caratteri su Questo File</strong></p>
|
||||
<p>Specifica Nome File: <input type="text" id='userpdffilename<?php echo $ConvertGuiCounter1; ?>' name='userpdffilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='pdfmethod<?php echo $ConvertGuiCounter1; ?>' name='pdfmethod<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="0">Metodo</option>
|
||||
<option value="1">Metodo 1 (Semplice)</option>
|
||||
<option value="2">Metodo 2 (Avanzato)</option>
|
||||
</select>
|
||||
<select id='pdfextension<?php echo $ConvertGuiCounter1; ?>' name='pdfextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="pdf">Formato</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
<option value="doc">Doc</option>
|
||||
<option value="docx">Docx</option>
|
||||
<option value="rtf">Rtf</option>
|
||||
<option value="txt">Txt</option>
|
||||
<option value="odt">Odt</option>
|
||||
</select></p>
|
||||
<p><input type="submit" id='pdfconvertSubmit<?php echo $ConvertGuiCounter1; ?>' name='pdfconvertSubmit<?php echo $ConvertGuiCounter1; ?>' value='Converti in Documento' onclick="toggle_visibility('loadingCommandDiv');"></p>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#pdfconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
pdfworkSelected:'<?php echo $File; ?>',
|
||||
method:document.getElementById('pdfmethod<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
pdfextension:document.getElementById('pdfextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userpdfconvertfilename:document.getElementById('userpdffilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userpdffilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('pdfextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userpdffilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('pdfextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ArchiveArray)) {
|
||||
?>
|
||||
<div id='archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Converti Questo Archivio</strong></p>
|
||||
<p>Specifica Nome File: <input type="text" id='userarchivefilename<?php echo $ConvertGuiCounter1; ?>' name='userarchivefilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='archiveextension<?php echo $ConvertGuiCounter1; ?>' name='archiveextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="zip">Formato</option>
|
||||
<option value="zip">Zip</option>
|
||||
<option value="rar">Rar</option>
|
||||
<option value="tar">Tar</option>
|
||||
<option value="7z">7z</option>
|
||||
</select></p>
|
||||
<input type="submit" id="archiveconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="archiveconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Converti Questo Archivio' onclick="toggle_visibility('loadingCommandDiv'); display:none;">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#archiveconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('archiveextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userarchivefilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userarchivefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archiveextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userarchivefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archiveextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DocumentArray)) {
|
||||
?>
|
||||
<div id='docOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='docOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Converti Questo Documento</strong></p>
|
||||
<p>Specifica Nome File: <input type="text" id='userdocfilename<?php echo $ConvertGuiCounter1; ?>' name='userdocfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='docextension<?php echo $ConvertGuiCounter1; ?>' name='docextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="txt">Formato</option>
|
||||
<option value="doc">Doc</option>
|
||||
<option value="docx">Docx</option>
|
||||
<option value="rtf">Rtf</option>
|
||||
<option value="txt">Txt</option>
|
||||
<option value="odt">Odt</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
</select></p>
|
||||
<input type="submit" id="docconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="docconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Converti Documento' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#docconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('docextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userdocfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userdocfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('docextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userdocfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('docextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $SpreadsheetArray)) {
|
||||
?>
|
||||
<div id='spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Converti Questo Foglio di Calcolo</strong></p>
|
||||
<p>Specifica Nome File: <input type="text" id='userspreadfilename<?php echo $ConvertGuiCounter1; ?>' name='userspreadfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='spreadextension<?php echo $ConvertGuiCounter1; ?>' name='spreadextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="ods">Formato</option>
|
||||
<option value="xls">Xls</option>
|
||||
<option value="xlsx">Xlsx</option>
|
||||
<option value="ods">Ods</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
</select></p>
|
||||
<input type="submit" id="spreadconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="spreadconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Converti Foglio di Calcolo' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#spreadconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('spreadextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('spreadextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('spreadextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); }
|
||||
}); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $PresentationArray)) {
|
||||
?>
|
||||
<div id='presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Converti Questa Presentazione</strong></p>
|
||||
<p>Specifica Nome File: <input type="text" id='userpresentationfilename<?php echo $ConvertGuiCounter1; ?>' name='userpresentationfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='presentationextension<?php echo $ConvertGuiCounter1; ?>' name='presentationextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="odp">Formato</option>
|
||||
<option value="pages">Pages</option>
|
||||
<option value="pptx">Pptx</option>
|
||||
<option value="ppt">Ppt</option>
|
||||
<option value="xps">Xps</option>
|
||||
<option value="potx">Potx</option>
|
||||
<option value="pot">Pot</option>
|
||||
<option value="ppa">Ppa</option>
|
||||
<option value="odp">Odp</option>
|
||||
</select></p>
|
||||
<input type="submit" id="presentationconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="presentationconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Converti Presentazione' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#presentationconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('presentationextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userpresentationfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userpresentationfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('presentationextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('presentationextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $MediaArray)) {
|
||||
?>
|
||||
<div id='audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Converti Questo Audio</strong></p>
|
||||
<p>Specifica Nome File: <input type="text" id='useraudiofilename<?php echo $ConvertGuiCounter1; ?>' name='useraudiofilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='audioextension<?php echo $ConvertGuiCounter1; ?>' name='audioextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="mp3">Formato</option>
|
||||
<option value="mp2">Mp2</option>
|
||||
<option value="mp3">Mp3</option>
|
||||
<option value="wav">Wav</option>
|
||||
<option value="wma">Wma</option>
|
||||
<option value="flac">Flac</option>
|
||||
<option value="ogg">Ogg</option>
|
||||
</select></p>
|
||||
<input type="submit" id="audioconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="audioconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Converti Audio' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#audioconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('audioextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('useraudiofilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('useraudiofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('audioextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('useraudiofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('audioextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $VideoArray)) {
|
||||
?>
|
||||
<div id='videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Converti Questo Video</strong></p>
|
||||
<p>Specifica Nome File: <input type="text" id='uservideofilename<?php echo $ConvertGuiCounter1; ?>' name='uservideofilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='videoextension<?php echo $ConvertGuiCounter1; ?>' name='videoextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="mp4">Formato</option>
|
||||
<option value="3gp">3gp</option>
|
||||
<option value="mkv">Mkv</option>
|
||||
<option value="avi">Avi</option>
|
||||
<option value="mp4">Mp4</option>
|
||||
<option value="flv">Flv</option>
|
||||
<option value="mpeg">Mpeg</option>
|
||||
<option value="wmv">Wmv</option>
|
||||
<option value="mov">Mov</option>
|
||||
</select></p>
|
||||
<input type="submit" id="videoconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="videoconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Converti Video' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#videoconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('videoextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('uservideofilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('uservideofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('videoextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('uservideofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('videoextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $StreamArray)) {
|
||||
?>
|
||||
<div id='streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Converti Questo Flusso</strong></p>
|
||||
<p>Specifica Nome File: <input type="text" id='userstreamfilename<?php echo $ConvertGuiCounter1; ?>' name='userstreamfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='streamextension<?php echo $ConvertGuiCounter1; ?>' name='streamextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="mp4">Format</option>
|
||||
<option value="3gp">3gp</option>
|
||||
<option value="mkv">Mkv</option>
|
||||
<option value="avi">Avi</option>
|
||||
<option value="mp4">Mp4</option>
|
||||
<option value="flv">Flv</option>
|
||||
<option value="mpeg">Mpeg</option>
|
||||
<option value="wmv">Wmv</option>
|
||||
<option value="mov">Mov</option>
|
||||
</select></p>
|
||||
<input type="submit" id="streamconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="streamconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Converti Flusso' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#streamconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('streamextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userstreamfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userstreamfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('streamextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userstreamfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('streamextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ModelArray)) {
|
||||
?>
|
||||
<div id='modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Converti Questo Modello Tridimensionale</strong></p>
|
||||
<p>Specifica Nome File: <input type="text" id='usermodelfilename<?php echo $ConvertGuiCounter1; ?>' name='usermodelfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='modelextension<?php echo $ConvertGuiCounter1; ?>' name='modelextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="3ds">Formato</option>
|
||||
<option value="3ds">3ds</option>
|
||||
<option value="collada">Collada</option>
|
||||
<option value="obj">Obj</option>
|
||||
<option value="off">Off</option>
|
||||
<option value="ply">Ply</option>
|
||||
<option value="stl">Stl</option>
|
||||
<option value="ptx">Ptx</option>
|
||||
<option value="dxf">Dxf</option>
|
||||
<option value="u3d">U3d</option>
|
||||
<option value="vrml">Vrml</option>
|
||||
</select></p>
|
||||
<input type="submit" id="modelconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="modelconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Converti Modello' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#modelconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('modelextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('usermodelfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('usermodelfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('modelextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('usermodelfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('modelextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DrawingArray)) {
|
||||
?>
|
||||
<div id='drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Converti Questo Fisegno Tecnico o File Vettoriale</strong></p>
|
||||
<p>Specifica Nome File: <input type="text" id='userdrawingfilename<?php echo $ConvertGuiCounter1; ?>' name='userdrawingfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='drawingextension<?php echo $ConvertGuiCounter1; ?>' name='drawingextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="jpg">Formato</option>
|
||||
<option value="svg">Svg</option>
|
||||
<option value="dxf">Dxf</option>
|
||||
<option value="vdx">Vdx</option>
|
||||
<option value="fig">Fig</option>
|
||||
<option value="jpg">Jpg</option>
|
||||
<option value="png">Png</option>
|
||||
<option value="bmp">Bmp</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
</select></p>
|
||||
<input type="submit" id="drawingconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="drawingconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Converti Disegno' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#drawingconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('drawingextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userdrawingfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('drawingfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('drawingextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userdrawingfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('drawingextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ImageArray)) {
|
||||
?>
|
||||
<div id='imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Converti Questa Immagine</strong></p>
|
||||
<p>Specifica Nome File: <input type="text" id='userphotofilename<?php echo $ConvertGuiCounter1; ?>' name='userphotofilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='photoextension<?php echo $ConvertGuiCounter1; ?>' name='photoextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="jpg">Formato</option>
|
||||
<option value="jpg">Jpg</option>
|
||||
<option value="bmp">Bmp</option>
|
||||
<option value="webp">Webp</option>
|
||||
<option value="png">Png</option>
|
||||
<option value="cin">Cin</option>
|
||||
<option value="dds">Dds</option>
|
||||
<option value="dib">Dib</option>
|
||||
<option value="flif">Flif</option>
|
||||
<option value="avif">Avif</option>
|
||||
</select></p>
|
||||
<p>Larghezza e Altezza: </p>
|
||||
<p><input type="number" size="4" value="0" id='width<?php echo $ConvertGuiCounter1; ?>' name='width<?php echo $ConvertGuiCounter1; ?>' min="0" max="10000"> X <input type="number" size="4" value="0" id="height<?php echo $ConvertGuiCounter1; ?>" name="height<?php echo $ConvertGuiCounter1; ?>" min="0" max="10000"></p>
|
||||
<p>Ruotare: <input type="number" size="3" id='rotate<?php echo $ConvertGuiCounter1; ?>' name='rotate<?php echo $ConvertGuiCounter1; ?>' value="0" min="0" max="359"></p>
|
||||
<input type="submit" id='convertPhotoSubmit<?php echo $ConvertGuiCounter1; ?>' name='convertPhotoSubmit<?php echo $ConvertGuiCounter1; ?>' value='Converti Immagine' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#convertPhotoSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
rotate:$('#rotate<?php echo $ConvertGuiCounter1; ?>').val(),
|
||||
width:$('#width<?php echo $ConvertGuiCounter1; ?>').val(),
|
||||
height:$('#height<?php echo $ConvertGuiCounter1; ?>').val(),
|
||||
extension:document.getElementById('photoextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userphotofilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userphotofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('photoextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userphotofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('photoextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<hr />
|
||||
<?php } ?>
|
||||
</div>
|
10
Languages/it/footer.php
Normal file
10
Languages/it/footer.php
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?php if (!isset($ShowFinePrint)) $ShowFinePrint = TRUE;
|
||||
if ($ShowFinePrint) { ?>
|
||||
<div id="footer" name="footer" style="max-width:1000px; margin-left:auto; margin-right:auto; text-align:center;">
|
||||
<p>Consulta i nostri <a href="<?php echo $TOSURL; ?>" target="_blank" rel="noopener noreferrer">Termini di Servizio</a>
|
||||
e <a href="<?php echo $PPURL; ?>" target="_blank" rel="noopener noreferrer">Informativa Sulla Privacy</a></p>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</body>
|
||||
</html>
|
20
Languages/it/header.php
Normal file
20
Languages/it/header.php
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?php if (!isset($ApplicationName)) $ApplicationName = 'HRConvert2';
|
||||
if (!isset($ApplicationTitle)) $ApplicationTitle = 'Converti Qualsiasi Cosa!';
|
||||
if (!isset($Font)) $Font = 'Arial'; ?>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="shortcut icon" href="Resources/favicon.ico"/>
|
||||
<link rel="stylesheet" href="Resources/dropzone.css"/>
|
||||
<link rel="stylesheet" href="Resources/HRConvert2.css"/>
|
||||
<script type="text/javascript" src="Resources/HRC2-Functions.js"></script>
|
||||
<script type="text/javascript">var dropzoneText = 'Fai clic, tocca o rilascia i tuoi file qui per caricarli.';</script>
|
||||
<script type="text/javascript" src="Resources/dropzone.js"></script>
|
||||
<style>
|
||||
body {
|
||||
font-family: <?php echo $Font; ?>; }
|
||||
<?php if (isset($ButtonCode)) echo $ButtonCode; ?>
|
||||
</style>
|
||||
<title><?php echo $ApplicationName; ?> - <?php echo $ApplicationTitle; ?></title>
|
||||
</head>
|
||||
|
21
Languages/it/index.html
Normal file
21
Languages/it/index.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en-US">
|
||||
<title>HRConvert2 | HRConvert2 Authentication</title>
|
||||
<body>
|
||||
<div id="outer" align="center"><h1>Configuring HRConvert2 ...</h1>
|
||||
|
||||
<div id="inner" style="position:absolute; top:50%; left:50%; height:10em; margin-top:-5em; margin-right:5em;"><strong>Please wait . . .</strong></div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
|
||||
// Set the URL below to the page the user is sent to if their screensize is UNDER the specified number of pixels.
|
||||
if (screen.width <= 699) { document.location = "/HRProprietary/HRConvert2/convertCore.php"; }
|
||||
// / Set the URL below to the page the user is sent to if their screensize is OVER the specified number of pixels.
|
||||
if (screen.width >= 700) { document.location = "/HRProprietary/HRConvert2/convertCore.php"; }
|
||||
|
||||
</script>
|
||||
|
||||
<meta id="IfNothingHappens" http-equiv="refresh" content="5"; url="/HRProprietary/HRConvert2/convertCore.php" >
|
||||
|
||||
</body>
|
||||
</html>
|
224
Languages/ko/convertGui1.php
Normal file
224
Languages/ko/convertGui1.php
Normal file
|
@ -0,0 +1,224 @@
|
|||
<?php
|
||||
if (!isset($ApplicationName)) $ApplicationName = 'HRConvert2';
|
||||
if (!isset($ApplicationTitle)) $ApplicationTitle = '무엇이든 변환하십시오!';
|
||||
if (!isset($CoreLoaded)) die('ERROR!!! '.$ApplicationName.'-2, This file cannot process your request! Please submit your file to convertCore.php instead!');
|
||||
if (!isset($ShowFinePrint)) $ShowFinePrint = TRUE;
|
||||
?>
|
||||
<body>
|
||||
<?php
|
||||
if (!isset($_GET['noGui'])) { ?>
|
||||
<div id="header-text" style="max-width:1000px; margin-left:auto; margin-right:auto; text-align:center;">
|
||||
<h1><?php echo $ApplicationName; ?></h1>
|
||||
<h3>온라인 파일 변환기, 추출기, 압축기</h3>
|
||||
<hr />
|
||||
</div>
|
||||
<div id="main" align="center">
|
||||
<div id="overview" style="max-width:1000px; text-align:left; margin:25px;">
|
||||
<p id="info" style="display:block;"><?php echo $ApplicationName; ?>는 <a href='https://github.com/zelon88/HRConvert2'>HRConvert2</a>라는 <a href='https://github.com/zelon88'>Zelon88</a>의 오픈 소스 애플리케이션을 기반으로 합니다. 사용자를 추적하거나 지적 재산권을 침해하지 않고 파일을 변환하도록 설계되었습니다.</p>
|
||||
<button id="more-info-button" class="info-button" onclick="toggle_visibility('more-info'); toggle_visibility('more-info-button'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('less-info-button');" style="text-align:center; display:block; margin-left:auto; margin-right:auto;"><i>정보보기 ...</i></button>
|
||||
<button id="less-info-button" class="info-button" onclick="toggle_visibility('more-info'); toggle_visibility('more-info-button'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('less-info-button');" style="text-align:center; display:none; margin-left:auto; margin-right:auto;"><i>정보 숨기기 ...</i></button>
|
||||
<div id="more-info" style="display:none;">
|
||||
<hr />
|
||||
<p>사용자가 제공한 모든 데이터는 자동으로 삭제되므로 서비스를 사용하는 동안 개인 정보나 재산을 잃어버릴 염려가 없습니다.</p>
|
||||
<p>현재 <?php echo $ApplicationName; ?>는 문서, 스프레드시트, 이미지, 미디어, 3D 모델, CAD 도면, 벡터 파일, 아카이브, 디스크 이미지 등을 포함한 77가지 다양한 파일 형식을 지원합니다.</p>
|
||||
<button id="supported-formats-show-button" class="info-button" onclick="toggle_visibility('supported-formats'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('supported-formats-hide-button');" style="text-align:center; display:none; margin-left:auto; margin-right:auto;"><i>지원되는 형식 보기 ...</i></button>
|
||||
<button id="supported-formats-hide-button" class="info-button" onclick="toggle_visibility('supported-formats'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('supported-formats-hide-button');" style="text-align:center; display:none; margin-left:auto; margin-right:auto;"><i>지원되는 형식 숨기기 ...</i></button>
|
||||
<br>
|
||||
<div id="supported-formats" class="supported-formats" style="margin-left:33%; display:none;">
|
||||
<h3>지원되는 형식</h3>
|
||||
<hr />
|
||||
<strong>오디오 형식</strong>
|
||||
<p><i>응용 프로그래밍 인터페이스를 통해 특정 비트 전송률을 지원합니다.</i></p>
|
||||
<ol>
|
||||
<li>Mp2</li>
|
||||
<li>Mp3</li>
|
||||
<li>Avi</li>
|
||||
<li>Flac</li>
|
||||
<li>Ogg</li>
|
||||
<li>Wav</li>
|
||||
<li>Wma</li>
|
||||
<li>M4a</li>
|
||||
<li>M4p</li>
|
||||
</ol>
|
||||
<strong>비디오 형식</strong>
|
||||
<ol>
|
||||
<li>3gp</li>
|
||||
<li>Mkv</li>
|
||||
<li>Avi</li>
|
||||
<li>Mp4</li>
|
||||
<li>Flv</li>
|
||||
<li>Mpeg</li>
|
||||
<li>Wmv</li>
|
||||
<li>Mov</li>
|
||||
<li>M4v</li>
|
||||
</ol>
|
||||
<strong>스트림 형식</strong>
|
||||
<ol>
|
||||
<li>m3u8</li>
|
||||
</ol>
|
||||
<strong>문서 형식</strong>
|
||||
<ol>
|
||||
<li>Doc</li>
|
||||
<li>Docx</li>
|
||||
<li>Txt</li>
|
||||
<li>Rtf</li>
|
||||
<li>Odt</li>
|
||||
<li>Pdf</li>
|
||||
</ol>
|
||||
<strong>스프레드시트 형식</strong>
|
||||
<ol>
|
||||
<li>Xls</li>
|
||||
<li>Xlsx</li>
|
||||
<li>Ods</li>
|
||||
</ol>
|
||||
<strong>프레젠테이션 형식</strong>
|
||||
<ol>
|
||||
<li>Pages</li>
|
||||
<li>Pptx</li>
|
||||
<li>Ppt</li>
|
||||
<li>Xps</li>
|
||||
<li>Pot</li>
|
||||
<li>Potx</li>
|
||||
<li>Ppa</li>
|
||||
<li>Ppt</li>
|
||||
<li>Pptx</li>
|
||||
<li>Odp</li>
|
||||
</ol>
|
||||
<strong>아카이브 형식</strong>
|
||||
<p><i>다음 중 하나를 생성, 변환 및 보관 해제할 수 있습니다....</i></p>
|
||||
<ol>
|
||||
<li>Zip</li>
|
||||
<li>Rar</li>
|
||||
<li>Tar</li>
|
||||
<li>Tar.Bz2</li>
|
||||
<li>7z</li>
|
||||
</ol>
|
||||
<strong>디스크 이미지 형식</strong>
|
||||
<p><i>다음 중 하나를 추출하거나 지원되는 아카이브 형식으로 변환할 수 있습니다....</i></p>
|
||||
<ol>
|
||||
<li>Iso</li>
|
||||
<li>Vhd</li>
|
||||
<li>Vdi</li>
|
||||
</ol>
|
||||
<strong>이미지 형식</strong>
|
||||
<p><i>그래픽 사용자 인터페이스 및 애플리케이션 프로그래밍 인터페이스를 통해 크기 조정 및 회전을 지원합니다.</i></p>
|
||||
<p><i>애플리케이션 프로그래밍 인터페이스를 통해 화면비 유지 비활성화를 지원합니다.</i></p>
|
||||
<p><i>이미지 변환 작업은 다음 입력 형식을 지원합니다....</i></p>
|
||||
<ol>
|
||||
<li>Jpg</li>
|
||||
<li>Jpeg</li>
|
||||
<li>Png</li>
|
||||
<li>Bmp</li>
|
||||
<li>Webp</li>
|
||||
<li>Gif</li>
|
||||
<li>Cin</li>
|
||||
<li>Dds</li>
|
||||
<li>Dib</li>
|
||||
<li>Flif</li>
|
||||
<li>Avif</li>
|
||||
<li>Crw</li>
|
||||
<li>Dcr</li>
|
||||
<li>Gplt</li>
|
||||
<li>Nef</li>
|
||||
<li>Orf</li>
|
||||
<li>Ora</li>
|
||||
<li>Sct</li>
|
||||
<li>Sfw</li>
|
||||
<li>Xcf</li>
|
||||
<li>Xwd</li>
|
||||
<li>Avif</li>
|
||||
<li>Ico</li>
|
||||
</ol>
|
||||
<p><i>이미지 변환 작업은 다음 출력 형식을 지원합니다....</i></p>
|
||||
<ol>
|
||||
<li>Jpg</li>
|
||||
<li>Jpeg</li>
|
||||
<li>Png</li>
|
||||
<li>Bmp</li>
|
||||
<li>Webp</li>
|
||||
<li>Cin</li>
|
||||
<li>Dds</li>
|
||||
<li>Dib</li>
|
||||
<li>Flif</li>
|
||||
<li>Avif</li>
|
||||
</ol>
|
||||
<strong>3차원 모델 형식</strong>
|
||||
<ol>
|
||||
<li>3ds</li>
|
||||
<li>Obj</li>
|
||||
<li>Collada</li>
|
||||
<li>Off</li>
|
||||
<li>Ply</li>
|
||||
<li>Stl</li>
|
||||
<li>Ptx</li>
|
||||
<li>Dxf</li>
|
||||
<li>U3d</li>
|
||||
<li>Vrml</li>
|
||||
</ol>
|
||||
<strong>도면 형식</strong>
|
||||
<p><i>도면 파일을 이미지 형식으로 출력할 수 있습니다.</i></p>
|
||||
<p><i>다음 중 하나로 변환 가능...</i></p>
|
||||
<ol>
|
||||
<li>Svg</li>
|
||||
<li>Dxf</li>
|
||||
<li>Fig</li>
|
||||
<li>Vdx</li>
|
||||
</ol>
|
||||
<strong>광학 문자 인식 지원</strong>
|
||||
<p><i>광학 문자 인식 작업은 다음 입력 형식을 지원합니다....</i></p>
|
||||
<ol>
|
||||
<li>Jpg</li>
|
||||
<li>Jpeg</li>
|
||||
<li>Png</li>
|
||||
<li>Bmp</li>
|
||||
<li>Pdf</li>
|
||||
<li>Gif</li>
|
||||
</ol>
|
||||
<p><i>광학 문자 인식 작업은 다음 출력 형식을 지원합니다....</i></p>
|
||||
<ol>
|
||||
<li>Doc</li>
|
||||
<li>Docx</li>
|
||||
<li>Txt</li>
|
||||
<li>Rtf</li>
|
||||
<li>Odt</li>
|
||||
<li>Pdf</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<hr />
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div align="center">
|
||||
<div id="call-to-action1" style="max-width:1000px; text-align:center;">
|
||||
<p>아래 상자에 파일을 클릭, 탭 또는 드롭하여 파일을 선택합니다.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div align="center">
|
||||
<div id="dropzone" style="max-height:1000px; max-width:1000px; margin:25px;">
|
||||
<form action="convertCore.php" class="dropzone" id="filesToUpload" name="filesToUpload" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" id="token1" name="Token1" value="<?php echo $Token1; ?>">
|
||||
<input type="hidden" id="token2" name="Token2" value="<?php echo $Token2; ?>">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div align="center">
|
||||
<div id="continue" style="max-width:1000px; text-align:center;">
|
||||
<form action="convertCore.php?showFiles=1<?php if (isset($_GET['noGui'])) echo '&noGui=TRUE'; if (isset($_GET['language'])) echo '&language='.$_GET['language']; ?>" method="post">
|
||||
<input type="hidden" id="token1" name="Token1" value="<?php echo $Token1; ?>">
|
||||
<input type="hidden" id="token2" name="Token2" value="<?php echo $Token2; ?>">
|
||||
<input type="submit" id="continue-button" class="info-button" value="계속하다 ...">
|
||||
</form>
|
||||
<br />
|
||||
<?php if (!isset($_GET['noGui'])) { ?>
|
||||
<hr />
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if (!isset($_GET['noGui'])) { ?>
|
||||
</div>
|
||||
<?php } ?>
|
989
Languages/ko/convertGui2.php
Normal file
989
Languages/ko/convertGui2.php
Normal file
|
@ -0,0 +1,989 @@
|
|||
<?php
|
||||
$Alert = '이 파일을 변환할 수 없습니다! 이름을 변경해 보십시오.';
|
||||
$Alert1 = '이 파일에 대해 바이러스 검사를 수행할 수 없습니다!';
|
||||
$Alert2 = '파일 링크가 클립보드에 복사되었습니다!';
|
||||
$Alert3 = '작업 실패!';
|
||||
$FCPlural1 = '';
|
||||
if (!is_numeric($FileCount)) $FileCount = 0;
|
||||
if (!isset($ApplicationName)) $ApplicationName = 'HRConvert2';
|
||||
if (!isset($ApplicationTitle)) $ApplicationTitle = '무엇이든 변환하십시오!';
|
||||
if (!isset($CoreLoaded)) die('오류!!! '.$ApplicationName.'-2, 이 파일은 귀하의 요청을 처리할 수 없습니다! 대신 파일을 convertCore.php로 제출하십시오!');
|
||||
if (!isset($ShowFinePrint)) $ShowFinePrint = TRUE;
|
||||
if ($FileCount === 0) $FCPlural1 = $ApplicationName.'에 업로드된 유효한 파일 0개.';
|
||||
if ($FileCount >= 1) $FCPlural1 = $FileCount.'개의 유효한 파일이 '.$ApplicationName.'에 업로드되었습니다.';
|
||||
?>
|
||||
<body>
|
||||
<script type="text/javascript" src="Resources/jquery-3.6.0.min.js"></script>
|
||||
<div id="header-text" style="max-width:1000px; margin-left:auto; margin-right:auto; text-align:center;">
|
||||
<?php if (!isset($_GET['noGui'])) { ?><h1><?php echo $ApplicationName; ?></h1>
|
||||
<hr /><?php } ?>
|
||||
<h3>파일 변환 옵션</h3>
|
||||
<p><?php echo $FCPlural1; ?></p>
|
||||
<p>아래 옵션을 사용하여 파일을 변환할 수 있습니다.</p>
|
||||
</div>
|
||||
|
||||
<div id='utility' align="center">
|
||||
<p><img id='loadingCommandDiv' name='loadingCommandDiv' src='Resources/pacman.gif' style="max-width:64px; max-height:64px; display:none;"/></p>
|
||||
<a id='downloadTarget' href='about:blank' style="display: none;" download></a>
|
||||
</div>
|
||||
|
||||
<div id='utility' align="center">
|
||||
<p><img id='loadingCommandDiv' name='loadingCommandDiv' src='<?php echo $PacmanLoc; ?>' style="max-width:64px; max-height:64px; display:none;"/></p>
|
||||
<a id='downloadTarget' href='about:blank' style="display: none;" download></a>
|
||||
</div>
|
||||
|
||||
<div id="compressAll" name="compressAll" style="max-width:1000px; margin-left: auto; margin-right: auto; text-align:center;">
|
||||
<button id="backButton" name="backButton" style="width:50px;" class="info-button" onclick="window.history.back();">←</button>
|
||||
<button id="refreshButton" name="refreshButton" style="width:50px;" class="info-button" onclick="javascript:location.reload(true);">↻</button>
|
||||
<br /> <br />
|
||||
<button id="scandocMoreOptionsButton" name="scandocMoreOptionsButton" class="info-button" onclick="toggle_visibility('compressAllOptions');">대량 파일 옵션</button>
|
||||
<div id="compressAllOptions" name="compressAllOptions" align="center" style="display:none;">
|
||||
<?php if ($AllowUserVirusScan) { ?>
|
||||
<hr style='width: 50%;' />
|
||||
<p><strong>모든 파일에서 바이러스 검사</strong></p>
|
||||
<p>ClamAV로 스캔: <input type="checkbox" id="clamscanall" value="clamscanall" name="clamScan" checked></p>
|
||||
<p>ScanCore로 스캔: <input type="checkbox" id="scancoreall" value="scancoreall" name="phpavScan" checked></p>
|
||||
<p><input type="submit" id="scanAllButton" name="scanAllButton" class="info-button" value='모두 스캔' onclick="toggle_visibility('loadingCommandDiv');"></p>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#scanAllButton').click(function() {
|
||||
var scanfiles = <?php echo json_encode($Files); ?>;
|
||||
var scanType = 'all';
|
||||
if($("input#clamscanall").is(":checked")) {
|
||||
var scanType = 'clamav'; }
|
||||
if($("input#scancoreall").is(":checked")) {
|
||||
var scanType = 'scancore'; }
|
||||
if($("input#clamscanall").is(":checked") && $("input#scancoreall").is(":checked")) {
|
||||
var scanType = 'all'; }
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:scanType,
|
||||
filesToScan:scanfiles },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); }); });
|
||||
</script>
|
||||
<?php } ?>
|
||||
<hr style='width: 50%;' />
|
||||
<p><strong>모든 파일 압축 및 다운로드</strong></p>
|
||||
<p>파일명 지정: <input type="text" id='userarchallfilename' name='userarchallfilename' value='HRConvert2_Files-<?php echo $Date; ?>'></p>
|
||||
<select id='archallextension' name='archallextension'>
|
||||
<option value="zip">파일 형식</option>
|
||||
<option value="zip">Zip</option>
|
||||
<option value="rar">Rar</option>
|
||||
<option value="tar">Tar</option>
|
||||
<option value="7z">7z</option>
|
||||
</select>
|
||||
<input type="submit" id="archallSubmit" name="archallSubmit" class="info-button" value='압축 및 다운로드' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#archallSubmit').click(function() {
|
||||
var extension = document.getElementById('archallextension').value;
|
||||
if (extension === "") {
|
||||
extension = 'zip'; }
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
archive:'1',
|
||||
filesToArchive:<?php echo json_encode($Files); ?>,
|
||||
archextension:extension,
|
||||
userfilename:document.getElementById('userarchallfilename').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userarchallfilename').value+'.'+extension },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userarchallfilename').value+'.'+extension;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
<hr style='width: 50%;' />
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div style="max-width:1000px; margin-left:auto; margin-right:auto;">
|
||||
<hr />
|
||||
|
||||
<?php
|
||||
foreach ($Files as $File) {
|
||||
$extension = getExtension($ConvertTempDir.'/'.$File);
|
||||
$FileNoExt = str_replace($extension, '', $File);
|
||||
if (!in_array($extension, $ConvertArray)) continue;
|
||||
$ConvertGuiCounter1++;
|
||||
?>
|
||||
|
||||
<div id="file<?php echo $ConvertGuiCounter1; ?>" name="<?php echo $ConvertGuiCounter1; ?>">
|
||||
<p href=""><strong><?php echo $ConvertGuiCounter1; ?>.</strong> <u><?php echo $File; ?></u></p>
|
||||
<div id="buttonDiv<?php echo $ConvertGuiCounter1; ?>" name="buttonDiv<?php echo $ConvertGuiCounter1; ?>" style="height:25px;">
|
||||
|
||||
<img id="downloadfilebutton<?php echo $ConvertGuiCounter1; ?>" name="downloadfilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/download.png" style="float:left; display:block;" onclick="toggle_visibility('loadingCommandDiv');"/>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#downloadfilebutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $File; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$File; ?>";
|
||||
document.getElementById('downloadTarget').click(); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
|
||||
<?php if ($AllowUserShare) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
<img id="sharefilebutton<?php echo $ConvertGuiCounter1; ?>" name="sharefilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/link.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('sharefilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('shareXfilebutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="shareXfilebutton<?php echo $ConvertGuiCounter1; ?>" name="shareXfilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('sharefilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('shareXfilebutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($AllowUserVirusScan) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
<img id="scanfilebutton<?php echo $ConvertGuiCounter1; ?>" name="scanfilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/scan.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfileXbutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="scanfileXbutton<?php echo $ConvertGuiCounter1; ?>" name="scanfileXbutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfileXbutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<a style="float:left;"> | </a>
|
||||
<img id="archfileButton<?php echo $ConvertGuiCounter1; ?>" name="archfileButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/archive.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="archfileXButton<?php echo $ConvertGuiCounter1; ?>" name="archfileXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
|
||||
<?php if (in_array($extension, $PDFWorkArr)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="docscanButton<?php echo $ConvertGuiCounter1; ?>" name="docscanButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/docscan.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="docscanXButton<?php echo $ConvertGuiCounter1; ?>" name="docscanXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ArchiveArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="archiveButton<?php echo $ConvertGuiCounter1; ?>" name="archiveButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/convert.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="archiveXButton<?php echo $ConvertGuiCounter1; ?>" name="archiveXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DocumentArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="documentButton<?php echo $ConvertGuiCounter1; ?>" name="documentButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/document.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('docOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="documentXButton<?php echo $ConvertGuiCounter1; ?>" name="documentXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('docOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $SpreadsheetArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="spreadsheetButton<?php echo $ConvertGuiCounter1; ?>" name="spreadsheetButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/spreadsheet.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>" name="spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $PresentationArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="presentationButton<?php echo $ConvertGuiCounter1; ?>" name="presentationButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/presentation.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="presentationXButton<?php echo $ConvertGuiCounter1; ?>" name="presentationXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ImageArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="imageButton<?php echo $ConvertGuiCounter1; ?>" name="imageButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/photo.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="imageXButton<?php echo $ConvertGuiCounter1; ?>" name="imageXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $MediaArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="mediaButton<?php echo $ConvertGuiCounter1; ?>" name="mediaButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/stream.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="mediaXButton<?php echo $ConvertGuiCounter1; ?>" name="mediaXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $VideoArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="videoButton<?php echo $ConvertGuiCounter1; ?>" name="videoButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/stream.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="videoXButton<?php echo $ConvertGuiCounter1; ?>" name="videoXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $StreamArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="streamButton<?php echo $ConvertGuiCounter1; ?>" name="streamButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/stream.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="streamXButton<?php echo $ConvertGuiCounter1; ?>" name="streamXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DrawingArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="drawingButton<?php echo $ConvertGuiCounter1; ?>" name="drawingButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/convert.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="drawingXButton<?php echo $ConvertGuiCounter1; ?>" name="drawingXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ModelArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="modelButton<?php echo $ConvertGuiCounter1; ?>" name="modelButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/convert.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="modelXButton<?php echo $ConvertGuiCounter1; ?>" name="modelXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<div id='archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>이 파일 압축</strong></p>
|
||||
<p>파일명 지정: <input type="text" id='userarchfilefilename<?php echo $ConvertGuiCounter1; ?>' name='userarchfilefilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='archfileextension<?php echo $ConvertGuiCounter1; ?>' name='archfileextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="zip">파일 형식</option>
|
||||
<option value="zip">Zip</option>
|
||||
<option value="rar">Rar</option>
|
||||
<option value="tar">Tar</option>
|
||||
<option value="7z">7z</option>
|
||||
</select></p>
|
||||
<input type="submit" id="archfileSubmit<?php echo $ConvertGuiCounter1; ?>" name="archfileSubmit<?php echo $ConvertGuiCounter1; ?>" value='압박 붕대' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#archfileSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
archive:'<?php echo $File; ?>',
|
||||
filesToArchive:'<?php echo $File; ?>',
|
||||
archextension:document.getElementById('archfileextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userfilename:document.getElementById('userarchfilefilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userarchfilefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archfileextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userarchfilefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archfileextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
|
||||
<?php if ($AllowUserShare) { ?>
|
||||
<div id='sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>이 파일 공유</strong></p>
|
||||
<p id='sharelinkStatus<?php echo $ConvertGuiCounter1; ?>' name='sharelinkStatus<?php echo $ConvertGuiCounter1; ?>'>링크 상태: <i>생성되지 않음</i></p>
|
||||
<p id='shareclipStatus<?php echo $ConvertGuiCounter1; ?>' name='shareclipStatus<?php echo $ConvertGuiCounter1; ?>'>클립보드 상태: <i>복사되지 않음</i></p>
|
||||
<p id='sharelinkURL<?php echo $ConvertGuiCounter1; ?>' name='sharelinkURL<?php echo $ConvertGuiCounter1; ?>'>파일 링크: <i>생성되지 않음</i></p>
|
||||
|
||||
<input type="submit" id="sharegeneratebutton<?php echo $ConvertGuiCounter1; ?>" name="sharegeneratebutton<?php echo $ConvertGuiCounter1; ?>" value='링크 생성 및 클립보드에 복사' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<input type="submit" id="sharecopybutton<?php echo $ConvertGuiCounter1; ?>" name="sharecopybutton<?php echo $ConvertGuiCounter1; ?>" value='링크 생성' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#sharegeneratebutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $File; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('sharelinkStatus<?php echo $ConvertGuiCounter1; ?>').innerHTML = '링크 상태: <i>생성됨</i>';
|
||||
document.getElementById('shareclipStatus<?php echo $ConvertGuiCounter1; ?>').innerHTML = '클립보드 상태: <i>복사됨</i>';
|
||||
document.getElementById('sharelinkURL<?php echo $ConvertGuiCounter1; ?>').innerHTML = '파일 링크: <i><?php echo $FullURL.'/DATA/'.$SesHash3.'/'.$File; ?></i>';
|
||||
copy_share_link("<?php echo $FullURL.'/DATA/'.$SesHash3.'/'.$File; ?>");
|
||||
alert("<?php echo $Alert2; ?>"); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert3; ?>"); } }); });
|
||||
$('#sharecopybutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $File; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('sharelinkStatus<?php echo $ConvertGuiCounter1; ?>').innerHTML = '링크 상태: <i>생성됨</i>';
|
||||
document.getElementById('sharelinkURL<?php echo $ConvertGuiCounter1; ?>').innerHTML = '파일 링크: <i><?php echo $FullURL.'/DATA/'.$SesHash3.'/'.$File; ?></i>'; },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert3; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if ($AllowUserVirusScan) { ?>
|
||||
<div id='scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>이 파일에서 바이러스 검사</strong></p>
|
||||
<input type="submit" id="scancorebutton<?php echo $ConvertGuiCounter1; ?>" name="scancorebutton<?php echo $ConvertGuiCounter1; ?>" value='ScanCore로 파일 스캔' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<input type="submit" id="clamscanbutton<?php echo $ConvertGuiCounter1; ?>" name="clamscanbutton<?php echo $ConvertGuiCounter1; ?>" value='ClamAV로 파일 스캔' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<input type="submit" id="scanallbutton<?php echo $ConvertGuiCounter1; ?>" name="scanallbutton<?php echo $ConvertGuiCounter1; ?>" value='ScanCore 및 ClamAV로 파일 스캔' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#scancorebutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:'scancore',
|
||||
filesToScan:'<?php echo $File; ?>' },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); });
|
||||
$('#clamscanbutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:'all',
|
||||
filesToScan:'<?php echo $File; ?>' },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); });
|
||||
$('#scanallbutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:'all',
|
||||
filesToScan:'<?php echo $File; ?>' },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $PDFWorkArr)) {
|
||||
?>
|
||||
<div id='pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>이 파일에서 광학 문자 인식 수행</strong></p>
|
||||
<p>파일명 지정: <input type="text" id='userpdffilename<?php echo $ConvertGuiCounter1; ?>' name='userpdffilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='pdfmethod<?php echo $ConvertGuiCounter1; ?>' name='pdfmethod<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="0">방법</option>
|
||||
<option value="1">방법 1(단순)</option>
|
||||
<option value="2">방법 2(고급)</option>
|
||||
</select>
|
||||
<select id='pdfextension<?php echo $ConvertGuiCounter1; ?>' name='pdfextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="pdf">파일 형식</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
<option value="doc">Doc</option>
|
||||
<option value="docx">Docx</option>
|
||||
<option value="rtf">Rtf</option>
|
||||
<option value="txt">Txt</option>
|
||||
<option value="odt">Odt</option>
|
||||
</select></p>
|
||||
<p><input type="submit" id='pdfconvertSubmit<?php echo $ConvertGuiCounter1; ?>' name='pdfconvertSubmit<?php echo $ConvertGuiCounter1; ?>' value='이 파일에서 광학 문자 인식 수행' onclick="toggle_visibility('loadingCommandDiv');"></p>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#pdfconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
pdfworkSelected:'<?php echo $File; ?>',
|
||||
method:document.getElementById('pdfmethod<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
pdfextension:document.getElementById('pdfextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userpdfconvertfilename:document.getElementById('userpdffilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userpdffilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('pdfextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userpdffilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('pdfextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ArchiveArray)) {
|
||||
?>
|
||||
<div id='archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>이 아카이브 변환</strong></p>
|
||||
<p>파일명 지정: <input type="text" id='userarchivefilename<?php echo $ConvertGuiCounter1; ?>' name='userarchivefilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='archiveextension<?php echo $ConvertGuiCounter1; ?>' name='archiveextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="zip">파일 형식</option>
|
||||
<option value="zip">Zip</option>
|
||||
<option value="rar">Rar</option>
|
||||
<option value="tar">Tar</option>
|
||||
<option value="7z">7z</option>
|
||||
</select></p>
|
||||
<input type="submit" id="archiveconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="archiveconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='전환하다' onclick="toggle_visibility('loadingCommandDiv'); display:none;">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#archiveconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('archiveextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userarchivefilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userarchivefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archiveextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userarchivefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archiveextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DocumentArray)) {
|
||||
?>
|
||||
<div id='docOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='docOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>이 문서를 변환하십시오</strong></p>
|
||||
<p>파일명 지정: <input type="text" id='userdocfilename<?php echo $ConvertGuiCounter1; ?>' name='userdocfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='docextension<?php echo $ConvertGuiCounter1; ?>' name='docextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="txt">파일 형식</option>
|
||||
<option value="doc">Doc</option>
|
||||
<option value="docx">Docx</option>
|
||||
<option value="rtf">Rtf</option>
|
||||
<option value="txt">Txt</option>
|
||||
<option value="odt">Odt</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
</select></p>
|
||||
<input type="submit" id="docconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="docconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='변하게 하다' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#docconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('docextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userdocfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userdocfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('docextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userdocfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('docextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $SpreadsheetArray)) {
|
||||
?>
|
||||
<div id='spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>이 스프레드시트 변환</strong></p>
|
||||
<p>파일명 지정: <input type="text" id='userspreadfilename<?php echo $ConvertGuiCounter1; ?>' name='userspreadfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='spreadextension<?php echo $ConvertGuiCounter1; ?>' name='spreadextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="ods">파일 형식</option>
|
||||
<option value="xls">Xls</option>
|
||||
<option value="xlsx">Xlsx</option>
|
||||
<option value="ods">Ods</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
</select></p>
|
||||
<input type="submit" id="spreadconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="spreadconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='변하게 하다' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#spreadconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('spreadextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('spreadextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('spreadextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); }
|
||||
}); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $PresentationArray)) {
|
||||
?>
|
||||
<div id='presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>이 프레젠테이션 변환</strong></p>
|
||||
<p>파일명 지정: <input type="text" id='userpresentationfilename<?php echo $ConvertGuiCounter1; ?>' name='userpresentationfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='presentationextension<?php echo $ConvertGuiCounter1; ?>' name='presentationextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="odp">파일 형식</option>
|
||||
<option value="pages">Pages</option>
|
||||
<option value="pptx">Pptx</option>
|
||||
<option value="ppt">Ppt</option>
|
||||
<option value="xps">Xps</option>
|
||||
<option value="potx">Potx</option>
|
||||
<option value="pot">Pot</option>
|
||||
<option value="ppa">Ppa</option>
|
||||
<option value="odp">Odp</option>
|
||||
</select></p>
|
||||
<input type="submit" id="presentationconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="presentationconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='변하게 하다' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#presentationconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('presentationextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userpresentationfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userpresentationfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('presentationextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('presentationextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $MediaArray)) {
|
||||
?>
|
||||
<div id='audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>이 오디오 변환</strong></p>
|
||||
<p>파일명 지정: <input type="text" id='useraudiofilename<?php echo $ConvertGuiCounter1; ?>' name='useraudiofilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='audioextension<?php echo $ConvertGuiCounter1; ?>' name='audioextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="mp3">파일 형식</option>
|
||||
<option value="mp2">Mp2</option>
|
||||
<option value="mp3">Mp3</option>
|
||||
<option value="wav">Wav</option>
|
||||
<option value="wma">Wma</option>
|
||||
<option value="flac">Flac</option>
|
||||
<option value="ogg">Ogg</option>
|
||||
</select></p>
|
||||
<input type="submit" id="audioconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="audioconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='변하게 하다' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#audioconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('audioextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('useraudiofilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('useraudiofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('audioextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('useraudiofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('audioextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $VideoArray)) {
|
||||
?>
|
||||
<div id='videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>이 비디오 변환</strong></p>
|
||||
<p>파일명 지정: <input type="text" id='uservideofilename<?php echo $ConvertGuiCounter1; ?>' name='uservideofilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='videoextension<?php echo $ConvertGuiCounter1; ?>' name='videoextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="mp4">파일 형식</option>
|
||||
<option value="3gp">3gp</option>
|
||||
<option value="mkv">Mkv</option>
|
||||
<option value="avi">Avi</option>
|
||||
<option value="mp4">Mp4</option>
|
||||
<option value="flv">Flv</option>
|
||||
<option value="mpeg">Mpeg</option>
|
||||
<option value="wmv">Wmv</option>
|
||||
<option value="mov">Mov</option>
|
||||
</select></p>
|
||||
<input type="submit" id="videoconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="videoconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='변하게 하다' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#videoconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('videoextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('uservideofilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('uservideofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('videoextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('uservideofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('videoextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $StreamArray)) {
|
||||
?>
|
||||
<div id='streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>이 스트림 변환</strong></p>
|
||||
<p>파일명 지정: <input type="text" id='userstreamfilename<?php echo $ConvertGuiCounter1; ?>' name='userstreamfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='streamextension<?php echo $ConvertGuiCounter1; ?>' name='streamextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="mp4">Format</option>
|
||||
<option value="3gp">3gp</option>
|
||||
<option value="mkv">Mkv</option>
|
||||
<option value="avi">Avi</option>
|
||||
<option value="mp4">Mp4</option>
|
||||
<option value="flv">Flv</option>
|
||||
<option value="mpeg">Mpeg</option>
|
||||
<option value="wmv">Wmv</option>
|
||||
<option value="mov">Mov</option>
|
||||
</select></p>
|
||||
<input type="submit" id="streamconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="streamconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='스트림 변환' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#streamconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('streamextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userstreamfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userstreamfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('streamextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userstreamfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('streamextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ModelArray)) {
|
||||
?>
|
||||
<div id='modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>이 3차원 모델 변환</strong></p>
|
||||
<p>파일명 지정: <input type="text" id='usermodelfilename<?php echo $ConvertGuiCounter1; ?>' name='usermodelfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='modelextension<?php echo $ConvertGuiCounter1; ?>' name='modelextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="3ds">파일 형식</option>
|
||||
<option value="3ds">3ds</option>
|
||||
<option value="collada">Collada</option>
|
||||
<option value="obj">Obj</option>
|
||||
<option value="off">Off</option>
|
||||
<option value="ply">Ply</option>
|
||||
<option value="stl">Stl</option>
|
||||
<option value="ptx">Ptx</option>
|
||||
<option value="dxf">Dxf</option>
|
||||
<option value="u3d">U3d</option>
|
||||
<option value="vrml">Vrml</option>
|
||||
</select></p>
|
||||
<input type="submit" id="modelconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="modelconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='변하게 하다' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#modelconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('modelextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('usermodelfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('usermodelfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('modelextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('usermodelfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('modelextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DrawingArray)) {
|
||||
?>
|
||||
<div id='drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>이 기술 도면 또는 벡터 파일 변환</strong></p>
|
||||
<p>파일명 지정: <input type="text" id='userdrawingfilename<?php echo $ConvertGuiCounter1; ?>' name='userdrawingfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='drawingextension<?php echo $ConvertGuiCounter1; ?>' name='drawingextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="jpg">파일 형식</option>
|
||||
<option value="svg">Svg</option>
|
||||
<option value="dxf">Dxf</option>
|
||||
<option value="vdx">Vdx</option>
|
||||
<option value="fig">Fig</option>
|
||||
<option value="jpg">Jpg</option>
|
||||
<option value="png">Png</option>
|
||||
<option value="bmp">Bmp</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
</select></p>
|
||||
<input type="submit" id="drawingconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="drawingconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='변하게 하다' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#drawingconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('drawingextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userdrawingfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('drawingfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('drawingextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userdrawingfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('drawingextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ImageArray)) {
|
||||
?>
|
||||
<div id='imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>이 이미지를 변환하십시오</strong></p>
|
||||
<p>파일명 지정: <input type="text" id='userphotofilename<?php echo $ConvertGuiCounter1; ?>' name='userphotofilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='photoextension<?php echo $ConvertGuiCounter1; ?>' name='photoextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="jpg">파일 형식</option>
|
||||
<option value="jpg">Jpg</option>
|
||||
<option value="bmp">Bmp</option>
|
||||
<option value="webp">Webp</option>
|
||||
<option value="png">Png</option>
|
||||
<option value="cin">Cin</option>
|
||||
<option value="dds">Dds</option>
|
||||
<option value="dib">Dib</option>
|
||||
<option value="flif">Flif</option>
|
||||
<option value="avif">Avif</option>
|
||||
</select></p>
|
||||
<p>너비와 높이: </p>
|
||||
<p><input type="number" size="4" value="0" id='width<?php echo $ConvertGuiCounter1; ?>' name='width<?php echo $ConvertGuiCounter1; ?>' min="0" max="10000"> X <input type="number" size="4" value="0" id="height<?php echo $ConvertGuiCounter1; ?>" name="height<?php echo $ConvertGuiCounter1; ?>" min="0" max="10000"></p>
|
||||
<p>회전: <input type="number" size="3" id='rotate<?php echo $ConvertGuiCounter1; ?>' name='rotate<?php echo $ConvertGuiCounter1; ?>' value="0" min="0" max="359"></p>
|
||||
<input type="submit" id='convertPhotoSubmit<?php echo $ConvertGuiCounter1; ?>' name='convertPhotoSubmit<?php echo $ConvertGuiCounter1; ?>' value='변하게 하다' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#convertPhotoSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
rotate:$('#rotate<?php echo $ConvertGuiCounter1; ?>').val(),
|
||||
width:$('#width<?php echo $ConvertGuiCounter1; ?>').val(),
|
||||
height:$('#height<?php echo $ConvertGuiCounter1; ?>').val(),
|
||||
extension:document.getElementById('photoextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userphotofilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userphotofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('photoextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userphotofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('photoextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<hr />
|
||||
<?php } ?>
|
||||
</div>
|
10
Languages/ko/footer.php
Normal file
10
Languages/ko/footer.php
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?php if (!isset($ShowFinePrint)) $ShowFinePrint = TRUE;
|
||||
if ($ShowFinePrint) { ?>
|
||||
<div id="footer" name="footer" style="max-width:1000px; margin-left:auto; margin-right:auto; text-align:center;">
|
||||
<p><a href="<?php echo $TOSURL; ?>" target="_blank" rel="noopener noreferrer">서비스 약관</a>
|
||||
및 <a href="<?php echo $PPURL; ?>" target="_blank" rel="noopener noreferrer">개인정보 보호정책을</a>확인하세요.</p>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</body>
|
||||
</html>
|
20
Languages/ko/header.php
Normal file
20
Languages/ko/header.php
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?php if (!isset($ApplicationName)) $ApplicationName = 'HRConvert2';
|
||||
if (!isset($ApplicationTitle)) $ApplicationTitle = '무엇이든 변환하십시오!';
|
||||
if (!isset($Font)) $Font = 'Arial'; ?>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="shortcut icon" href="Resources/favicon.ico"/>
|
||||
<link rel="stylesheet" href="Resources/dropzone.css"/>
|
||||
<link rel="stylesheet" href="Resources/HRConvert2.css"/>
|
||||
<script type="text/javascript" src="Resources/HRC2-Functions.js"></script>
|
||||
<script type="text/javascript">var dropzoneText = '업로드하려면 여기에서 파일을 클릭, 탭 또는 드롭하세요.';</script>
|
||||
<script type="text/javascript" src="Resources/dropzone.js"></script>
|
||||
<style>
|
||||
body {
|
||||
font-family: <?php echo $Font; ?>; }
|
||||
<?php if (isset($ButtonCode)) echo $ButtonCode; ?>
|
||||
</style>
|
||||
<title><?php echo $ApplicationName; ?> - <?php echo $ApplicationTitle; ?></title>
|
||||
</head>
|
||||
|
21
Languages/ko/index.html
Normal file
21
Languages/ko/index.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en-US">
|
||||
<title>HRConvert2 | HRConvert2 Authentication</title>
|
||||
<body>
|
||||
<div id="outer" align="center"><h1>Configuring HRConvert2 ...</h1>
|
||||
|
||||
<div id="inner" style="position:absolute; top:50%; left:50%; height:10em; margin-top:-5em; margin-right:5em;"><strong>Please wait . . .</strong></div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
|
||||
// Set the URL below to the page the user is sent to if their screensize is UNDER the specified number of pixels.
|
||||
if (screen.width <= 699) { document.location = "/HRProprietary/HRConvert2/convertCore.php"; }
|
||||
// / Set the URL below to the page the user is sent to if their screensize is OVER the specified number of pixels.
|
||||
if (screen.width >= 700) { document.location = "/HRProprietary/HRConvert2/convertCore.php"; }
|
||||
|
||||
</script>
|
||||
|
||||
<meta id="IfNothingHappens" http-equiv="refresh" content="5"; url="/HRProprietary/HRConvert2/convertCore.php" >
|
||||
|
||||
</body>
|
||||
</html>
|
224
Languages/pt/convertGui1.php
Normal file
224
Languages/pt/convertGui1.php
Normal file
|
@ -0,0 +1,224 @@
|
|||
<?php
|
||||
if (!isset($ApplicationName)) $ApplicationName = 'HRConvert2';
|
||||
if (!isset($ApplicationTitle)) $ApplicationTitle = 'Converta Qualquer Coisa!';
|
||||
if (!isset($CoreLoaded)) die('ERRO!!! '.$ApplicationName.'-2, Este arquivo não pode processar sua solicitação! Por favor, envie seu arquivo para convertCore.php!');
|
||||
if (!isset($ShowFinePrint)) $ShowFinePrint = TRUE;
|
||||
?>
|
||||
<body>
|
||||
<?php
|
||||
if (!isset($_GET['noGui'])) { ?>
|
||||
<div id="header-text" style="max-width:1000px; margin-left:auto; margin-right:auto; text-align:center;">
|
||||
<h1><?php echo $ApplicationName; ?></h1>
|
||||
<h3>Conversor de Arquivos Online, Extrator, Compressor</h3>
|
||||
<hr />
|
||||
</div>
|
||||
<div id="main" align="center">
|
||||
<div id="overview" style="max-width:1000px; text-align:left; margin:25px;">
|
||||
<p id="info" style="display:block;">O <?php echo $ApplicationName; ?> é baseado no aplicativo web de código aberto <a href='https://github.com/zelon88/HRConvert2'>HRConvert2</a> da <a href='https://github.com/zelon88'>Zelon88</a>. Ele foi projetado para converter arquivos sem rastrear usuários pela Internet ou infringir sua propriedade intelectual.</p>
|
||||
<button id="more-info-button" class="info-button" onclick="toggle_visibility('more-info'); toggle_visibility('more-info-button'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('less-info-button');" style="text-align:center; display:block; margin-left:auto; margin-right:auto;"><i>Mais Informações...</i></button>
|
||||
<button id="less-info-button" class="info-button" onclick="toggle_visibility('more-info'); toggle_visibility('more-info-button'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('less-info-button');" style="text-align:center; display:none; margin-left:auto; margin-right:auto;"><i>Menos Informações...</i></button>
|
||||
<div id="more-info" style="display:none;">
|
||||
<hr />
|
||||
<p>Todos os dados fornecidos pelo usuário são apagados automaticamente, para que você não precise se preocupar em perder suas informações pessoais ou propriedades ao usar nossos serviços.</p>
|
||||
<p>Atualmente <?php echo $ApplicationName; ?> suporta 77 formatos de arquivo diferentes, incluindo documentos, planilhas, imagens, mídia, modelos tridimensionais, desenhos técnicos, arquivos vetoriais, arquivos, imagens de disco e muito mais.</p>
|
||||
<button id="supported-formats-show-button" class="info-button" onclick="toggle_visibility('supported-formats'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('supported-formats-hide-button');" style="text-align:center; display:none; margin-left:auto; margin-right:auto;"><i>Ver Formatos Suportados...</i></button>
|
||||
<button id="supported-formats-hide-button" class="info-button" onclick="toggle_visibility('supported-formats'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('supported-formats-hide-button');" style="text-align:center; display:none; margin-left:auto; margin-right:auto;"><i>Ocultar Formatos Suportados...</i></button>
|
||||
<br>
|
||||
<div id="supported-formats" class="supported-formats" style="margin-left:33%; display:none;">
|
||||
<h3>Formatos Suportados</h3>
|
||||
<hr />
|
||||
<strong>Formatos de Áudio</strong>
|
||||
<p><i>Suporta taxa de bits específica por meio da interface de programação do aplicativo.</i></p>
|
||||
<ol>
|
||||
<li>Mp2</li>
|
||||
<li>Mp3</li>
|
||||
<li>Avi</li>
|
||||
<li>Flac</li>
|
||||
<li>Ogg</li>
|
||||
<li>Wav</li>
|
||||
<li>Wma</li>
|
||||
<li>M4a</li>
|
||||
<li>M4p</li>
|
||||
</ol>
|
||||
<strong>Formatos de Vídeo</strong>
|
||||
<ol>
|
||||
<li>3gp</li>
|
||||
<li>Mkv</li>
|
||||
<li>Avi</li>
|
||||
<li>Mp4</li>
|
||||
<li>Flv</li>
|
||||
<li>Mpeg</li>
|
||||
<li>Wmv</li>
|
||||
<li>Mov</li>
|
||||
<li>M4v</li>
|
||||
</ol>
|
||||
<strong>Formatos de Transmissão</strong>
|
||||
<ol>
|
||||
<li>m3u8</li>
|
||||
</ol>
|
||||
<strong>Formatos de Documentos</strong>
|
||||
<ol>
|
||||
<li>Doc</li>
|
||||
<li>Docx</li>
|
||||
<li>Txt</li>
|
||||
<li>Rtf</li>
|
||||
<li>Odt</li>
|
||||
<li>Pdf</li>
|
||||
</ol>
|
||||
<strong>Formatos de Planilha</strong>
|
||||
<ol>
|
||||
<li>Xls</li>
|
||||
<li>Xlsx</li>
|
||||
<li>Ods</li>
|
||||
</ol>
|
||||
<strong>Formatos de Apresentação</strong>
|
||||
<ol>
|
||||
<li>Pages</li>
|
||||
<li>Pptx</li>
|
||||
<li>Ppt</li>
|
||||
<li>Xps</li>
|
||||
<li>Pot</li>
|
||||
<li>Potx</li>
|
||||
<li>Ppa</li>
|
||||
<li>Ppt</li>
|
||||
<li>Pptx</li>
|
||||
<li>Odp</li>
|
||||
</ol>
|
||||
<strong>Formatos de Arquivo</strong>
|
||||
<p><i>Pode criar, converter e desarquivar qualquer um dos itens a seguir...</i></p>
|
||||
<ol>
|
||||
<li>Zip</li>
|
||||
<li>Rar</li>
|
||||
<li>Tar</li>
|
||||
<li>Tar.Bz2</li>
|
||||
<li>7z</li>
|
||||
</ol>
|
||||
<strong>Formatos de Imagem de Disco</strong>
|
||||
<p><i>Pode extrair qualquer um dos seguintes ou converter para formatos de arquivo suportados...</i></p>
|
||||
<ol>
|
||||
<li>Iso</li>
|
||||
<li>Vhd</li>
|
||||
<li>Vdi</li>
|
||||
</ol>
|
||||
<strong>Formatos de Imagem</strong>
|
||||
<p><i>Suporta redimensionamento e rotação através da interface gráfica do usuário e da interface de programação de aplicativos.</i></p>
|
||||
<p><i>Suporta desabilitar a manutenção da proporção por meio da interface de programação de aplicativos.</i></p>
|
||||
<p><i>As operações de conversão de imagem são compatíveis com os seguintes formatos de entrada...</i></p>
|
||||
<ol>
|
||||
<li>Jpg</li>
|
||||
<li>Jpeg</li>
|
||||
<li>Png</li>
|
||||
<li>Bmp</li>
|
||||
<li>Webp</li>
|
||||
<li>Gif</li>
|
||||
<li>Cin</li>
|
||||
<li>Dds</li>
|
||||
<li>Dib</li>
|
||||
<li>Flif</li>
|
||||
<li>Avif</li>
|
||||
<li>Crw</li>
|
||||
<li>Dcr</li>
|
||||
<li>Gplt</li>
|
||||
<li>Nef</li>
|
||||
<li>Orf</li>
|
||||
<li>Ora</li>
|
||||
<li>Sct</li>
|
||||
<li>Sfw</li>
|
||||
<li>Xcf</li>
|
||||
<li>Xwd</li>
|
||||
<li>Avif</li>
|
||||
<li>Ico</li>
|
||||
</ol>
|
||||
<p><i>As operações de conversão de imagem são compatíveis com os seguintes formatos de saída...</i></p>
|
||||
<ol>
|
||||
<li>Jpg</li>
|
||||
<li>Jpeg</li>
|
||||
<li>Png</li>
|
||||
<li>Bmp</li>
|
||||
<li>Webp</li>
|
||||
<li>Cin</li>
|
||||
<li>Dds</li>
|
||||
<li>Dib</li>
|
||||
<li>Flif</li>
|
||||
<li>Avif</li>
|
||||
</ol>
|
||||
<strong>Formatos de Modelos Tridimensionais</strong>
|
||||
<ol>
|
||||
<li>3ds</li>
|
||||
<li>Obj</li>
|
||||
<li>Collada</li>
|
||||
<li>Off</li>
|
||||
<li>Ply</li>
|
||||
<li>Stl</li>
|
||||
<li>Ptx</li>
|
||||
<li>Dxf</li>
|
||||
<li>U3d</li>
|
||||
<li>Vrml</li>
|
||||
</ol>
|
||||
<strong>Formatos de Desenho</strong>
|
||||
<p><i>Pode produzir arquivos de desenho para formatos de imagem.</i></p>
|
||||
<p><i>Pode converter entre qualquer um dos seguintes...</i></p>
|
||||
<ol>
|
||||
<li>Svg</li>
|
||||
<li>Dxf</li>
|
||||
<li>Fig</li>
|
||||
<li>Vdx</li>
|
||||
</ol>
|
||||
<strong>Suporte ao Reconhecimento Óptico de Caracteres</strong>
|
||||
<p><i>As operações de reconhecimento óptico de caracteres suportam os seguintes formatos de entrada...</i></p>
|
||||
<ol>
|
||||
<li>Jpg</li>
|
||||
<li>Jpeg</li>
|
||||
<li>Png</li>
|
||||
<li>Bmp</li>
|
||||
<li>Pdf</li>
|
||||
<li>Gif</li>
|
||||
</ol>
|
||||
<p><i>As operações de reconhecimento óptico de caracteres suportam os seguintes formatos de saída...</i></p>
|
||||
<ol>
|
||||
<li>Doc</li>
|
||||
<li>Docx</li>
|
||||
<li>Txt</li>
|
||||
<li>Rtf</li>
|
||||
<li>Odt</li>
|
||||
<li>Pdf</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<hr />
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div align="center">
|
||||
<div id="call-to-action1" style="max-width:1000px; text-align:center;">
|
||||
<p>Selecione os arquivos clicando, tocando ou soltando os arquivos na caixa abaixo.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div align="center">
|
||||
<div id="dropzone" style="max-height:1000px; max-width:1000px; margin:25px;">
|
||||
<form action="convertCore.php" class="dropzone" id="filesToUpload" name="filesToUpload" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" id="token1" name="Token1" value="<?php echo $Token1; ?>">
|
||||
<input type="hidden" id="token2" name="Token2" value="<?php echo $Token2; ?>">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div align="center">
|
||||
<div id="continue" style="max-width:1000px; text-align:center;">
|
||||
<form action="convertCore.php?showFiles=1<?php if (isset($_GET['noGui'])) echo '&noGui=TRUE'; if (isset($_GET['language'])) echo '&language='.$_GET['language']; ?>" method="post">
|
||||
<input type="hidden" id="token1" name="Token1" value="<?php echo $Token1; ?>">
|
||||
<input type="hidden" id="token2" name="Token2" value="<?php echo $Token2; ?>">
|
||||
<input type="submit" id="continue-button" class="info-button" value="Continuar...">
|
||||
</form>
|
||||
<br />
|
||||
<?php if (!isset($_GET['noGui'])) { ?>
|
||||
<hr />
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if (!isset($_GET['noGui'])) { ?>
|
||||
</div>
|
||||
<?php } ?>
|
986
Languages/pt/convertGui2.php
Normal file
986
Languages/pt/convertGui2.php
Normal file
|
@ -0,0 +1,986 @@
|
|||
<?php
|
||||
$Alert = 'Não é possível converter este arquivo! Tente mudar o nome.';
|
||||
$Alert1 = 'Não é possível executar uma verificação de vírus neste arquivo!';
|
||||
$Alert2 = 'Link do arquivo copiado para a área de transferência!';
|
||||
$Alert3 = 'Operação falhou!';
|
||||
$FCPlural1 = '';
|
||||
if (!is_numeric($FileCount)) $FileCount = 0;
|
||||
if (!isset($ApplicationName)) $ApplicationName = 'HRConvert2';
|
||||
if (!isset($ApplicationTitle)) $ApplicationTitle = 'Converta Qualquer Coisa!';
|
||||
if (!isset($CoreLoaded)) die('ERRO!!! '.$ApplicationName.'-2, Este arquivo não pode processar sua solicitação! Por favor, envie seu arquivo para convertCore.php!');
|
||||
if (!isset($ShowFinePrint)) $ShowFinePrint = TRUE;
|
||||
if ($FileCount === 0) $FCPlural1 = 'Você carregou 0 arquivos válidos para o '.$ApplicationName.'.';
|
||||
if ($FileCount === 1) $FCPlural1 = 'Você carregou 1 arquivo válido para '.$ApplicationName.'.';
|
||||
if ($FileCount === 2) $FCPlural1 = 'Você carregou 2 arquivos válidos para '.$ApplicationName.'.';
|
||||
if ($FileCount >= 3) $FCPlural1 = 'Você carregou '.$FileCount.' arquivos válidos para o '.$ApplicationName.'.';
|
||||
?>
|
||||
<body>
|
||||
<script type="text/javascript" src="Resources/jquery-3.6.0.min.js"></script>
|
||||
<div id="header-text" style="max-width:1000px; margin-left:auto; margin-right:auto; text-align:center;">
|
||||
<?php if (!isset($_GET['noGui'])) { ?><h1><?php echo $ApplicationName; ?></h1>
|
||||
<hr /><?php } ?>
|
||||
<h3>Opções de Conversão de Arquivo</h3>
|
||||
<p><?php echo $FCPlural1; ?></p>
|
||||
<p>Seus arquivos agora estão prontos para serem convertidos usando as opções abaixo.</p>
|
||||
</div>
|
||||
|
||||
<div id='utility' align="center">
|
||||
<p><img id='loadingCommandDiv' name='loadingCommandDiv' src='<?php echo $PacmanLoc; ?>' style="max-width:64px; max-height:64px; display:none;"/></p>
|
||||
<a id='downloadTarget' href='about:blank' style="display: none;" download></a>
|
||||
</div>
|
||||
|
||||
<div id="compressAll" name="compressAll" style="max-width:1000px; margin-left: auto; margin-right: auto; text-align:center;">
|
||||
<button id="backButton" name="backButton" style="width:50px;" class="info-button" onclick="window.history.back();">←</button>
|
||||
<button id="refreshButton" name="refreshButton" style="width:50px;" class="info-button" onclick="javascript:location.reload(true);">↻</button>
|
||||
<br /> <br />
|
||||
<button id="scandocMoreOptionsButton" name="scandocMoreOptionsButton" class="info-button" onclick="toggle_visibility('compressAllOptions');">Opções de Arquivo em Massa</button>
|
||||
<div id="compressAllOptions" name="compressAllOptions" align="center" style="display:none;">
|
||||
<?php if ($AllowUserVirusScan) { ?>
|
||||
<hr style='width: 50%;' />
|
||||
<p><strong>Verificar Todos os Arquivos em Busca de Vírus</strong></p>
|
||||
<p>Digitalize com ClamAV: <input type="checkbox" id="clamscanall" value="clamscanall" name="clamScan" checked></p>
|
||||
<p>Digitalize com ScanCore: <input type="checkbox" id="scancoreall" value="scancoreall" name="phpavScan" checked></p>
|
||||
<p><input type="submit" id="scanAllButton" name="scanAllButton" class="info-button" value='Digitalizar Tudo' onclick="toggle_visibility('loadingCommandDiv');"></p>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#scanAllButton').click(function() {
|
||||
var scanfiles = <?php echo json_encode($Files); ?>;
|
||||
var scanType = 'all';
|
||||
if($("input#clamscanall").is(":checked")) {
|
||||
var scanType = 'clamav'; }
|
||||
if($("input#scancoreall").is(":checked")) {
|
||||
var scanType = 'scancore'; }
|
||||
if($("input#clamscanall").is(":checked") && $("input#scancoreall").is(":checked")) {
|
||||
var scanType = 'all'; }
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:scanType,
|
||||
filesToScan:scanfiles },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); }); });
|
||||
</script>
|
||||
<?php } ?>
|
||||
<hr style='width: 50%;' />
|
||||
<p><strong>Compactar e Baixar Todos os Arquivos</strong></p>
|
||||
<p>Especifique o Nome do Arquivo: <input type="text" id='userarchallfilename' name='userarchallfilename' value='HRConvert2_Files-<?php echo $Date; ?>'></p>
|
||||
<select id='archallextension' name='archallextension'>
|
||||
<option value="zip">Formatar</option>
|
||||
<option value="zip">Zip</option>
|
||||
<option value="rar">Rar</option>
|
||||
<option value="tar">Tar</option>
|
||||
<option value="7z">7z</option>
|
||||
</select>
|
||||
<input type="submit" id="archallSubmit" name="archallSubmit" class="info-button" value='Compress & Download' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#archallSubmit').click(function() {
|
||||
var extension = document.getElementById('archallextension').value;
|
||||
if (extension === "") {
|
||||
extension = 'zip'; }
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
archive:'1',
|
||||
filesToArchive:<?php echo json_encode($Files); ?>,
|
||||
archextension:extension,
|
||||
userfilename:document.getElementById('userarchallfilename').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userarchallfilename').value+'.'+extension },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userarchallfilename').value+'.'+extension;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
<hr style='width: 50%;' />
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div style="max-width:1000px; margin-left:auto; margin-right:auto;">
|
||||
<hr />
|
||||
|
||||
<?php
|
||||
foreach ($Files as $File) {
|
||||
$extension = getExtension($ConvertTempDir.'/'.$File);
|
||||
$FileNoExt = str_replace($extension, '', $File);
|
||||
if (!in_array($extension, $ConvertArray)) continue;
|
||||
$ConvertGuiCounter1++;
|
||||
?>
|
||||
|
||||
<div id="file<?php echo $ConvertGuiCounter1; ?>" name="<?php echo $ConvertGuiCounter1; ?>">
|
||||
<p href=""><strong><?php echo $ConvertGuiCounter1; ?>.</strong> <u><?php echo $File; ?></u></p>
|
||||
<div id="buttonDiv<?php echo $ConvertGuiCounter1; ?>" name="buttonDiv<?php echo $ConvertGuiCounter1; ?>" style="height:25px;">
|
||||
|
||||
<img id="downloadfilebutton<?php echo $ConvertGuiCounter1; ?>" name="downloadfilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/download.png" style="float:left; display:block;" onclick="toggle_visibility('loadingCommandDiv');"/>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#downloadfilebutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $File; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$File; ?>";
|
||||
document.getElementById('downloadTarget').click(); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
|
||||
<?php if ($AllowUserShare) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
<img id="sharefilebutton<?php echo $ConvertGuiCounter1; ?>" name="sharefilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/link.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('sharefilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('shareXfilebutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="shareXfilebutton<?php echo $ConvertGuiCounter1; ?>" name="shareXfilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('sharefilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('shareXfilebutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($AllowUserVirusScan) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
<img id="scanfilebutton<?php echo $ConvertGuiCounter1; ?>" name="scanfilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/scan.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfileXbutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="scanfileXbutton<?php echo $ConvertGuiCounter1; ?>" name="scanfileXbutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfileXbutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<a style="float:left;"> | </a>
|
||||
<img id="archfileButton<?php echo $ConvertGuiCounter1; ?>" name="archfileButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/archive.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="archfileXButton<?php echo $ConvertGuiCounter1; ?>" name="archfileXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
|
||||
<?php if (in_array($extension, $PDFWorkArr)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="docscanButton<?php echo $ConvertGuiCounter1; ?>" name="docscanButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/docscan.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="docscanXButton<?php echo $ConvertGuiCounter1; ?>" name="docscanXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ArchiveArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="archiveButton<?php echo $ConvertGuiCounter1; ?>" name="archiveButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/convert.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="archiveXButton<?php echo $ConvertGuiCounter1; ?>" name="archiveXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DocumentArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="documentButton<?php echo $ConvertGuiCounter1; ?>" name="documentButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/document.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('docOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="documentXButton<?php echo $ConvertGuiCounter1; ?>" name="documentXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('docOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $SpreadsheetArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="spreadsheetButton<?php echo $ConvertGuiCounter1; ?>" name="spreadsheetButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/spreadsheet.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>" name="spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $PresentationArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="presentationButton<?php echo $ConvertGuiCounter1; ?>" name="presentationButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/presentation.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="presentationXButton<?php echo $ConvertGuiCounter1; ?>" name="presentationXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ImageArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="imageButton<?php echo $ConvertGuiCounter1; ?>" name="imageButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/photo.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="imageXButton<?php echo $ConvertGuiCounter1; ?>" name="imageXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $MediaArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="mediaButton<?php echo $ConvertGuiCounter1; ?>" name="mediaButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/stream.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="mediaXButton<?php echo $ConvertGuiCounter1; ?>" name="mediaXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $VideoArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="videoButton<?php echo $ConvertGuiCounter1; ?>" name="videoButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/stream.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="videoXButton<?php echo $ConvertGuiCounter1; ?>" name="videoXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $StreamArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="streamButton<?php echo $ConvertGuiCounter1; ?>" name="streamButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/stream.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="streamXButton<?php echo $ConvertGuiCounter1; ?>" name="streamXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DrawingArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="drawingButton<?php echo $ConvertGuiCounter1; ?>" name="drawingButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/convert.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="drawingXButton<?php echo $ConvertGuiCounter1; ?>" name="drawingXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ModelArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="modelButton<?php echo $ConvertGuiCounter1; ?>" name="modelButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/convert.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="modelXButton<?php echo $ConvertGuiCounter1; ?>" name="modelXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<div id='archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Arquivar Este Arquivo</strong></p>
|
||||
<p>Especifique o Nome do Arquivo: <input type="text" id='userarchfilefilename<?php echo $ConvertGuiCounter1; ?>' name='userarchfilefilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='archfileextension<?php echo $ConvertGuiCounter1; ?>' name='archfileextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="zip">Formatar</option>
|
||||
<option value="zip">Zip</option>
|
||||
<option value="rar">Rar</option>
|
||||
<option value="tar">Tar</option>
|
||||
<option value="7z">7z</option>
|
||||
</select></p>
|
||||
<input type="submit" id="archfileSubmit<?php echo $ConvertGuiCounter1; ?>" name="archfileSubmit<?php echo $ConvertGuiCounter1; ?>" value='Arquivo' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#archfileSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
archive:'<?php echo $File; ?>',
|
||||
filesToArchive:'<?php echo $File; ?>',
|
||||
archextension:document.getElementById('archfileextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userfilename:document.getElementById('userarchfilefilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userarchfilefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archfileextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userarchfilefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archfileextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
|
||||
<?php if ($AllowUserShare) { ?>
|
||||
<div id='sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Compartilhar Este Arquivo</strong></p>
|
||||
<p id='sharelinkStatus<?php echo $ConvertGuiCounter1; ?>' name='sharelinkStatus<?php echo $ConvertGuiCounter1; ?>'>Status do Link: <i>Não Gerado</i></p>
|
||||
<p id='shareclipStatus<?php echo $ConvertGuiCounter1; ?>' name='shareclipStatus<?php echo $ConvertGuiCounter1; ?>'>Status da Área de Transferência: <i>Não Copiada</i></p>
|
||||
<p id='sharelinkURL<?php echo $ConvertGuiCounter1; ?>' name='sharelinkURL<?php echo $ConvertGuiCounter1; ?>'>Link do Arquivo: <i>Não Gerado</i></p>
|
||||
|
||||
<input type="submit" id="sharegeneratebutton<?php echo $ConvertGuiCounter1; ?>" name="sharegeneratebutton<?php echo $ConvertGuiCounter1; ?>" value='Gerar Link e Copiar Para a Área de Transferência' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<input type="submit" id="sharecopybutton<?php echo $ConvertGuiCounter1; ?>" name="sharecopybutton<?php echo $ConvertGuiCounter1; ?>" value='Gerar Link' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#sharegeneratebutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $File; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('sharelinkStatus<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'Status do Link: <i>Gerado</i>';
|
||||
document.getElementById('shareclipStatus<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'Status da Área de Transferência: <i>Copiada</i>';
|
||||
document.getElementById('sharelinkURL<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'Link do Arquivo: <i><?php echo $FullURL.'/DATA/'.$SesHash3.'/'.$File; ?></i>';
|
||||
copy_share_link("<?php echo $FullURL.'/DATA/'.$SesHash3.'/'.$File; ?>");
|
||||
alert("<?php echo $Alert2; ?>"); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert3; ?>"); } }); });
|
||||
$('#sharecopybutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $File; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('sharelinkStatus<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'Status do Link: <i>Gerado</i>';
|
||||
document.getElementById('sharelinkURL<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'Link do Arquivo: <i><?php echo $FullURL.'/DATA/'.$SesHash3.'/'.$File; ?></i>'; },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert3; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if ($AllowUserVirusScan) { ?>
|
||||
<div id='scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Scan This File For Viruses</strong></p>
|
||||
<input type="submit" id="scancorebutton<?php echo $ConvertGuiCounter1; ?>" name="scancorebutton<?php echo $ConvertGuiCounter1; ?>" value='Digitalizar Arquivo com ScanCore' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<input type="submit" id="clamscanbutton<?php echo $ConvertGuiCounter1; ?>" name="clamscanbutton<?php echo $ConvertGuiCounter1; ?>" value='Digitalizar Arquivo com ClamAV' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<input type="submit" id="scanallbutton<?php echo $ConvertGuiCounter1; ?>" name="scanallbutton<?php echo $ConvertGuiCounter1; ?>" value='Digitalizar Arquivo com ScanCore e ClamAV' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#scancorebutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:'scancore',
|
||||
filesToScan:'<?php echo $File; ?>' },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); });
|
||||
$('#clamscanbutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:'all',
|
||||
filesToScan:'<?php echo $File; ?>' },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); });
|
||||
$('#scanallbutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:'all',
|
||||
filesToScan:'<?php echo $File; ?>' },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $PDFWorkArr)) {
|
||||
?>
|
||||
<div id='pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Executar Reconhecimento Óptico de Caracteres Neste Arquivo</strong></p>
|
||||
<p>Especifique o Nome do Arquivo: <input type="text" id='userpdffilename<?php echo $ConvertGuiCounter1; ?>' name='userpdffilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='pdfmethod<?php echo $ConvertGuiCounter1; ?>' name='pdfmethod<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="0">Método</option>
|
||||
<option value="1">Método 1 (Simples)</option>
|
||||
<option value="2">Método 2 (Avançada)</option>
|
||||
</select>
|
||||
<select id='pdfextension<?php echo $ConvertGuiCounter1; ?>' name='pdfextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="pdf">Formatar</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
<option value="doc">Doc</option>
|
||||
<option value="docx">Docx</option>
|
||||
<option value="rtf">Rtf</option>
|
||||
<option value="txt">Txt</option>
|
||||
<option value="odt">Odt</option>
|
||||
</select></p>
|
||||
<p><input type="submit" id='pdfconvertSubmit<?php echo $ConvertGuiCounter1; ?>' name='pdfconvertSubmit<?php echo $ConvertGuiCounter1; ?>' value='Convert Into Document' onclick="toggle_visibility('loadingCommandDiv');"></p>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#pdfconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
pdfworkSelected:'<?php echo $File; ?>',
|
||||
method:document.getElementById('pdfmethod<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
pdfextension:document.getElementById('pdfextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userpdfconvertfilename:document.getElementById('userpdffilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userpdffilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('pdfextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userpdffilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('pdfextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ArchiveArray)) {
|
||||
?>
|
||||
<div id='archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Converter Este Arquivo</strong></p>
|
||||
<p>Especifique o Nome do Arquivo: <input type="text" id='userarchivefilename<?php echo $ConvertGuiCounter1; ?>' name='userarchivefilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='archiveextension<?php echo $ConvertGuiCounter1; ?>' name='archiveextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="zip">Formatar</option>
|
||||
<option value="zip">Zip</option>
|
||||
<option value="rar">Rar</option>
|
||||
<option value="tar">Tar</option>
|
||||
<option value="7z">7z</option>
|
||||
</select></p>
|
||||
<input type="submit" id="archiveconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="archiveconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Arquivar Arquivos' onclick="toggle_visibility('loadingCommandDiv'); display:none;">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#archiveconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('archiveextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userarchivefilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userarchivefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archiveextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userarchivefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archiveextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DocumentArray)) {
|
||||
?>
|
||||
<div id='docOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='docOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Converter Este Documento</strong></p>
|
||||
<p>Especifique o Nome do Arquivo: <input type="text" id='userdocfilename<?php echo $ConvertGuiCounter1; ?>' name='userdocfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='docextension<?php echo $ConvertGuiCounter1; ?>' name='docextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="txt">Formatar</option>
|
||||
<option value="doc">Doc</option>
|
||||
<option value="docx">Docx</option>
|
||||
<option value="rtf">Rtf</option>
|
||||
<option value="txt">Txt</option>
|
||||
<option value="odt">Odt</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
</select></p>
|
||||
<input type="submit" id="docconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="docconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Converter Documento' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#docconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('docextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userdocfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userdocfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('docextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userdocfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('docextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $SpreadsheetArray)) {
|
||||
?>
|
||||
<div id='spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Converter Esta Planilha</strong></p>
|
||||
<p>Especifique o Nome do Arquivo: <input type="text" id='userspreadfilename<?php echo $ConvertGuiCounter1; ?>' name='userspreadfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='spreadextension<?php echo $ConvertGuiCounter1; ?>' name='spreadextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="ods">Formatar</option>
|
||||
<option value="xls">Xls</option>
|
||||
<option value="xlsx">Xlsx</option>
|
||||
<option value="ods">Ods</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
</select></p>
|
||||
<input type="submit" id="spreadconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="spreadconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Converter Planilha' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#spreadconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('spreadextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('spreadextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('spreadextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); }
|
||||
}); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $PresentationArray)) {
|
||||
?>
|
||||
<div id='presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Converter Esta Apresentação</strong></p>
|
||||
<p>Especifique o Nome do Arquivo: <input type="text" id='userpresentationfilename<?php echo $ConvertGuiCounter1; ?>' name='userpresentationfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='presentationextension<?php echo $ConvertGuiCounter1; ?>' name='presentationextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="odp">Formatar</option>
|
||||
<option value="pages">Pages</option>
|
||||
<option value="pptx">Pptx</option>
|
||||
<option value="ppt">Ppt</option>
|
||||
<option value="xps">Xps</option>
|
||||
<option value="potx">Potx</option>
|
||||
<option value="pot">Pot</option>
|
||||
<option value="ppa">Ppa</option>
|
||||
<option value="odp">Odp</option>
|
||||
</select></p>
|
||||
<input type="submit" id="presentationconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="presentationconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Converter Apresentação' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#presentationconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('presentationextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userpresentationfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userpresentationfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('presentationextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('presentationextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $MediaArray)) {
|
||||
?>
|
||||
<div id='audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Converter Este Áudio</strong></p>
|
||||
<p>Especifique o Nome do Arquivo: <input type="text" id='useraudiofilename<?php echo $ConvertGuiCounter1; ?>' name='useraudiofilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='audioextension<?php echo $ConvertGuiCounter1; ?>' name='audioextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="mp3">Formatar</option>
|
||||
<option value="mp2">Mp2</option>
|
||||
<option value="mp3">Mp3</option>
|
||||
<option value="wav">Wav</option>
|
||||
<option value="wma">Wma</option>
|
||||
<option value="flac">Flac</option>
|
||||
<option value="ogg">Ogg</option>
|
||||
</select></p>
|
||||
<input type="submit" id="audioconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="audioconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Converter Áudio' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#audioconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('audioextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('useraudiofilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('useraudiofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('audioextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('useraudiofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('audioextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $VideoArray)) {
|
||||
?>
|
||||
<div id='videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Converter Este Vídeo</strong></p>
|
||||
<p>Especifique o Nome do Arquivo: <input type="text" id='uservideofilename<?php echo $ConvertGuiCounter1; ?>' name='uservideofilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='videoextension<?php echo $ConvertGuiCounter1; ?>' name='videoextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="mp4">Formatar</option>
|
||||
<option value="3gp">3gp</option>
|
||||
<option value="mkv">Mkv</option>
|
||||
<option value="avi">Avi</option>
|
||||
<option value="mp4">Mp4</option>
|
||||
<option value="flv">Flv</option>
|
||||
<option value="mpeg">Mpeg</option>
|
||||
<option value="wmv">Wmv</option>
|
||||
<option value="mov">Mov</option>
|
||||
</select></p>
|
||||
<input type="submit" id="videoconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="videoconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Converter Vídeo' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#videoconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('videoextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('uservideofilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('uservideofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('videoextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('uservideofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('videoextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $StreamArray)) {
|
||||
?>
|
||||
<div id='streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Converter Esta Transmissão</strong></p>
|
||||
<p>Especifique o Nome do Arquivo: <input type="text" id='userstreamfilename<?php echo $ConvertGuiCounter1; ?>' name='userstreamfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='streamextension<?php echo $ConvertGuiCounter1; ?>' name='streamextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="mp4">Format</option>
|
||||
<option value="3gp">3gp</option>
|
||||
<option value="mkv">Mkv</option>
|
||||
<option value="avi">Avi</option>
|
||||
<option value="mp4">Mp4</option>
|
||||
<option value="flv">Flv</option>
|
||||
<option value="mpeg">Mpeg</option>
|
||||
<option value="wmv">Wmv</option>
|
||||
<option value="mov">Mov</option>
|
||||
</select></p>
|
||||
<input type="submit" id="streamconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="streamconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Converter Transmissão' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#streamconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('streamextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userstreamfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userstreamfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('streamextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userstreamfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('streamextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ModelArray)) {
|
||||
?>
|
||||
<div id='modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Converter Este Modelo Tridimensional</strong></p>
|
||||
<p>Especifique o Nome do Arquivo: <input type="text" id='usermodelfilename<?php echo $ConvertGuiCounter1; ?>' name='usermodelfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='modelextension<?php echo $ConvertGuiCounter1; ?>' name='modelextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="3ds">Formatar</option>
|
||||
<option value="3ds">3ds</option>
|
||||
<option value="collada">Collada</option>
|
||||
<option value="obj">Obj</option>
|
||||
<option value="off">Off</option>
|
||||
<option value="ply">Ply</option>
|
||||
<option value="stl">Stl</option>
|
||||
<option value="ptx">Ptx</option>
|
||||
<option value="dxf">Dxf</option>
|
||||
<option value="u3d">U3d</option>
|
||||
<option value="vrml">Vrml</option>
|
||||
</select></p>
|
||||
<input type="submit" id="modelconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="modelconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Converter Modelo' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#modelconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('modelextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('usermodelfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('usermodelfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('modelextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('usermodelfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('modelextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DrawingArray)) {
|
||||
?>
|
||||
<div id='drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Converter Este Desenho Técnico ou Arquivo Vetorial</strong></p>
|
||||
<p>Especifique o Nome do Arquivo: <input type="text" id='userdrawingfilename<?php echo $ConvertGuiCounter1; ?>' name='userdrawingfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='drawingextension<?php echo $ConvertGuiCounter1; ?>' name='drawingextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="jpg">Formatar</option>
|
||||
<option value="svg">Svg</option>
|
||||
<option value="dxf">Dxf</option>
|
||||
<option value="vdx">Vdx</option>
|
||||
<option value="fig">Fig</option>
|
||||
<option value="jpg">Jpg</option>
|
||||
<option value="png">Png</option>
|
||||
<option value="bmp">Bmp</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
</select></p>
|
||||
<input type="submit" id="drawingconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="drawingconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Converter Desenho' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#drawingconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('drawingextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userdrawingfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('drawingfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('drawingextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userdrawingfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('drawingextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ImageArray)) {
|
||||
?>
|
||||
<div id='imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Converter Esta Imagem</strong></p>
|
||||
<p>Especifique o Nome do Arquivo: <input type="text" id='userphotofilename<?php echo $ConvertGuiCounter1; ?>' name='userphotofilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='photoextension<?php echo $ConvertGuiCounter1; ?>' name='photoextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="jpg">Formatar</option>
|
||||
<option value="jpg">Jpg</option>
|
||||
<option value="bmp">Bmp</option>
|
||||
<option value="webp">Webp</option>
|
||||
<option value="png">Png</option>
|
||||
<option value="cin">Cin</option>
|
||||
<option value="dds">Dds</option>
|
||||
<option value="dib">Dib</option>
|
||||
<option value="flif">Flif</option>
|
||||
<option value="avif">Avif</option>
|
||||
</select></p>
|
||||
<p>Largura e Altura: </p>
|
||||
<p><input type="number" size="4" value="0" id='width<?php echo $ConvertGuiCounter1; ?>' name='width<?php echo $ConvertGuiCounter1; ?>' min="0" max="10000"> X <input type="number" size="4" value="0" id="height<?php echo $ConvertGuiCounter1; ?>" name="height<?php echo $ConvertGuiCounter1; ?>" min="0" max="10000"></p>
|
||||
<p>Girar: <input type="number" size="3" id='rotate<?php echo $ConvertGuiCounter1; ?>' name='rotate<?php echo $ConvertGuiCounter1; ?>' value="0" min="0" max="359"></p>
|
||||
<input type="submit" id='convertPhotoSubmit<?php echo $ConvertGuiCounter1; ?>' name='convertPhotoSubmit<?php echo $ConvertGuiCounter1; ?>' value='Converter Imagem' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#convertPhotoSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
rotate:$('#rotate<?php echo $ConvertGuiCounter1; ?>').val(),
|
||||
width:$('#width<?php echo $ConvertGuiCounter1; ?>').val(),
|
||||
height:$('#height<?php echo $ConvertGuiCounter1; ?>').val(),
|
||||
extension:document.getElementById('photoextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userphotofilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userphotofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('photoextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userphotofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('photoextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<hr />
|
||||
<?php } ?>
|
||||
</div>
|
10
Languages/pt/footer.php
Normal file
10
Languages/pt/footer.php
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?php if (!isset($ShowFinePrint)) $ShowFinePrint = TRUE;
|
||||
if ($ShowFinePrint) { ?>
|
||||
<div id="footer" name="footer" style="max-width:1000px; margin-left:auto; margin-right:auto; text-align:center;">
|
||||
<p>Confira nossos <a href="<?php echo $TOSURL; ?>" target="_blank" rel="noopener noreferrer">Termos de Serviço</a>
|
||||
e <a href="<?php echo $PPURL; ?>" target="_blank" rel="noopener noreferrer">Política de Privacidade</a></p>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</body>
|
||||
</html>
|
20
Languages/pt/header.php
Normal file
20
Languages/pt/header.php
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?php if (!isset($ApplicationName)) $ApplicationName = 'HRConvert2';
|
||||
if (!isset($ApplicationTitle)) $ApplicationTitle = 'Converta Qualquer Coisa!';
|
||||
if (!isset($Font)) $Font = 'Arial'; ?>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="shortcut icon" href="Resources/favicon.ico"/>
|
||||
<link rel="stylesheet" href="Resources/dropzone.css"/>
|
||||
<link rel="stylesheet" href="Resources/HRConvert2.css"/>
|
||||
<script type="text/javascript" src="Resources/HRC2-Functions.js"></script>
|
||||
<script type="text/javascript">var dropzoneText = 'Clique, toque ou solte os arquivos aqui para fazer o upload.';</script>
|
||||
<script type="text/javascript" src="Resources/dropzone.js"></script>
|
||||
<style>
|
||||
body {
|
||||
font-family: <?php echo $Font; ?>; }
|
||||
<?php if (isset($ButtonCode)) echo $ButtonCode; ?>
|
||||
</style>
|
||||
<title><?php echo $ApplicationName; ?> - <?php echo $ApplicationTitle; ?></title>
|
||||
</head>
|
||||
|
21
Languages/pt/index.html
Normal file
21
Languages/pt/index.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en-US">
|
||||
<title>HRConvert2 | HRConvert2 Authentication</title>
|
||||
<body>
|
||||
<div id="outer" align="center"><h1>Configuring HRConvert2 ...</h1>
|
||||
|
||||
<div id="inner" style="position:absolute; top:50%; left:50%; height:10em; margin-top:-5em; margin-right:5em;"><strong>Please wait . . .</strong></div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
|
||||
// Set the URL below to the page the user is sent to if their screensize is UNDER the specified number of pixels.
|
||||
if (screen.width <= 699) { document.location = "/HRProprietary/HRConvert2/convertCore.php"; }
|
||||
// / Set the URL below to the page the user is sent to if their screensize is OVER the specified number of pixels.
|
||||
if (screen.width >= 700) { document.location = "/HRProprietary/HRConvert2/convertCore.php"; }
|
||||
|
||||
</script>
|
||||
|
||||
<meta id="IfNothingHappens" http-equiv="refresh" content="5"; url="/HRProprietary/HRConvert2/convertCore.php" >
|
||||
|
||||
</body>
|
||||
</html>
|
224
Languages/ru/convertGui1.php
Normal file
224
Languages/ru/convertGui1.php
Normal file
|
@ -0,0 +1,224 @@
|
|||
<?php
|
||||
if (!isset($ApplicationName)) $ApplicationName = 'HRConvert2';
|
||||
if (!isset($ApplicationTitle)) $ApplicationTitle = 'Конвертируйте что угодно!';
|
||||
if (!isset($CoreLoaded)) die('ОШИБКА!!! '.$ApplicationName.'-2, Этот файл не может обработать ваш запрос! Вместо этого отправьте файл на convertCore.php!');
|
||||
if (!isset($ShowFinePrint)) $ShowFinePrint = TRUE;
|
||||
?>
|
||||
<body>
|
||||
<?php
|
||||
if (!isset($_GET['noGui'])) { ?>
|
||||
<div id="header-text" style="max-width:1000px; margin-left:auto; margin-right:auto; text-align:center;">
|
||||
<h1><?php echo $ApplicationName; ?></h1>
|
||||
<h3>Онлайн-конвертер файлов, экстрактор, компрессор</h3>
|
||||
<hr />
|
||||
</div>
|
||||
<div id="main" align="center">
|
||||
<div id="overview" style="max-width:1000px; text-align:left; margin:25px;">
|
||||
<p id="info" style="display:block;"><?php echo $ApplicationName; ?> основан на веб-приложении с открытым исходным кодом <a href='https://github.com/zelon88/HRConvert2'>HRConvert2</a> от <a href='https://github.com/zelon88'>Zelon88</a>. Он был разработан для преобразования файлов без отслеживания пользователей в Интернете или нарушения вашей интеллектуальной собственности.</p>
|
||||
<button id="more-info-button" class="info-button" onclick="toggle_visibility('more-info'); toggle_visibility('more-info-button'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('less-info-button');" style="text-align:center; display:block; margin-left:auto; margin-right:auto;"><i>Больше информации ...</i></button>
|
||||
<button id="less-info-button" class="info-button" onclick="toggle_visibility('more-info'); toggle_visibility('more-info-button'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('less-info-button');" style="text-align:center; display:none; margin-left:auto; margin-right:auto;"><i>Меньше информации ...</i></button>
|
||||
<div id="more-info" style="display:none;">
|
||||
<hr />
|
||||
<p>Все предоставленные пользователем данные удаляются автоматически, поэтому вам не нужно беспокоиться о потере вашей личной информации или собственности при использовании наших услуг.</p>
|
||||
<p><?php echo $ApplicationName; ?> поддерживает 77 различных форматов файлов, включая документы, электронные таблицы, изображения, мультимедиа, трехмерные модели, файлы чертежей, векторные файлы, архивы, образы дисков и многое другое.</p>
|
||||
<button id="supported-formats-show-button" class="info-button" onclick="toggle_visibility('supported-formats'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('supported-formats-hide-button');" style="text-align:center; display:none; margin-left:auto; margin-right:auto;"><i>Просмотр поддерживаемых форматов ...</i></button>
|
||||
<button id="supported-formats-hide-button" class="info-button" onclick="toggle_visibility('supported-formats'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('supported-formats-hide-button');" style="text-align:center; display:none; margin-left:auto; margin-right:auto;"><i>Скрыть поддерживаемые форматы ...</i></button>
|
||||
<br>
|
||||
<div id="supported-formats" class="supported-formats" style="margin-left:33%; display:none;">
|
||||
<h3>Поддерживаемые форматы</h3>
|
||||
<hr />
|
||||
<strong>Аудио форматы</strong>
|
||||
<p><i>Поддерживает определенный битрейт через API.</i></p>
|
||||
<ol>
|
||||
<li>Mp2</li>
|
||||
<li>Mp3</li>
|
||||
<li>Avi</li>
|
||||
<li>Flac</li>
|
||||
<li>Ogg</li>
|
||||
<li>Wav</li>
|
||||
<li>Wma</li>
|
||||
<li>M4a</li>
|
||||
<li>M4p</li>
|
||||
</ol>
|
||||
<strong>Форматы видео</strong>
|
||||
<ol>
|
||||
<li>3gp</li>
|
||||
<li>Mkv</li>
|
||||
<li>Avi</li>
|
||||
<li>Mp4</li>
|
||||
<li>Flv</li>
|
||||
<li>Mpeg</li>
|
||||
<li>Wmv</li>
|
||||
<li>Mov</li>
|
||||
<li>M4v</li>
|
||||
</ol>
|
||||
<strong>Потоковые форматы</strong>
|
||||
<ol>
|
||||
<li>m3u8</li>
|
||||
</ol>
|
||||
<strong>Форматы документов</strong>
|
||||
<ol>
|
||||
<li>Doc</li>
|
||||
<li>Docx</li>
|
||||
<li>Txt</li>
|
||||
<li>Rtf</li>
|
||||
<li>Odt</li>
|
||||
<li>Pdf</li>
|
||||
</ol>
|
||||
<strong>Форматы электронных таблиц</strong>
|
||||
<ol>
|
||||
<li>Xls</li>
|
||||
<li>Xlsx</li>
|
||||
<li>Ods</li>
|
||||
</ol>
|
||||
<strong>Форматы презентации</strong>
|
||||
<ol>
|
||||
<li>Pages</li>
|
||||
<li>Pptx</li>
|
||||
<li>Ppt</li>
|
||||
<li>Xps</li>
|
||||
<li>Pot</li>
|
||||
<li>Potx</li>
|
||||
<li>Ppa</li>
|
||||
<li>Ppt</li>
|
||||
<li>Pptx</li>
|
||||
<li>Odp</li>
|
||||
</ol>
|
||||
<strong>Форматы архивов</strong>
|
||||
<p><i>Может создавать, конвертировать и разархивировать любой из следующих...</i></p>
|
||||
<ol>
|
||||
<li>Zip</li>
|
||||
<li>Rar</li>
|
||||
<li>Tar</li>
|
||||
<li>Tar.Bz2</li>
|
||||
<li>7z</li>
|
||||
</ol>
|
||||
<strong>Disk Image Formats</strong>
|
||||
<p><i>Может извлекать любой из следующих файлов или конвертировать в поддерживаемые форматы архивов....</i></p>
|
||||
<ol>
|
||||
<li>Iso</li>
|
||||
<li>Vhd</li>
|
||||
<li>Vdi</li>
|
||||
</ol>
|
||||
<strong>Форматы изображений</strong>
|
||||
<p><i>Поддерживает изменение размера и поворот через графический интерфейс и интерфейс прикладного программирования.</i></p>
|
||||
<p><i>Поддерживает отключение поддержания соотношения сторон через интерфейс прикладного программирования.</i></p>
|
||||
<p><i>Операции преобразования изображений поддерживают следующие входные форматы....</i></p>
|
||||
<ol>
|
||||
<li>Jpg</li>
|
||||
<li>Jpeg</li>
|
||||
<li>Png</li>
|
||||
<li>Bmp</li>
|
||||
<li>Webp</li>
|
||||
<li>Gif</li>
|
||||
<li>Cin</li>
|
||||
<li>Dds</li>
|
||||
<li>Dib</li>
|
||||
<li>Flif</li>
|
||||
<li>Avif</li>
|
||||
<li>Crw</li>
|
||||
<li>Dcr</li>
|
||||
<li>Gplt</li>
|
||||
<li>Nef</li>
|
||||
<li>Orf</li>
|
||||
<li>Ora</li>
|
||||
<li>Sct</li>
|
||||
<li>Sfw</li>
|
||||
<li>Xcf</li>
|
||||
<li>Xwd</li>
|
||||
<li>Avif</li>
|
||||
<li>Ico</li>
|
||||
</ol>
|
||||
<p><i>Операции преобразования изображений поддерживают следующие форматы вывода....</i></p>
|
||||
<ol>
|
||||
<li>Jpg</li>
|
||||
<li>Jpeg</li>
|
||||
<li>Png</li>
|
||||
<li>Bmp</li>
|
||||
<li>Webp</li>
|
||||
<li>Cin</li>
|
||||
<li>Dds</li>
|
||||
<li>Dib</li>
|
||||
<li>Flif</li>
|
||||
<li>Avif</li>
|
||||
</ol>
|
||||
<strong>Форматы трехмерной модели</strong>
|
||||
<ol>
|
||||
<li>3ds</li>
|
||||
<li>Obj</li>
|
||||
<li>Collada</li>
|
||||
<li>Off</li>
|
||||
<li>Ply</li>
|
||||
<li>Stl</li>
|
||||
<li>Ptx</li>
|
||||
<li>Dxf</li>
|
||||
<li>U3d</li>
|
||||
<li>Vrml</li>
|
||||
</ol>
|
||||
<strong>Форматы чертежей</strong>
|
||||
<p><i>Может выводить файлы чертежей в форматы изображений.</i></p>
|
||||
<p><i>Может конвертировать между любым из следующих...</i></p>
|
||||
<ol>
|
||||
<li>Svg</li>
|
||||
<li>Dxf</li>
|
||||
<li>Fig</li>
|
||||
<li>Vdx</li>
|
||||
</ol>
|
||||
<strong>Поддержка оптического распознавания символов</strong>
|
||||
<p><i>Операции оптического распознавания символов поддерживают следующие входные форматы....</i></p>
|
||||
<ol>
|
||||
<li>Jpg</li>
|
||||
<li>Jpeg</li>
|
||||
<li>Png</li>
|
||||
<li>Bmp</li>
|
||||
<li>Pdf</li>
|
||||
<li>Gif</li>
|
||||
</ol>
|
||||
<p><i>Операции оптического распознавания символов поддерживают следующие форматы вывода....</i></p>
|
||||
<ol>
|
||||
<li>Doc</li>
|
||||
<li>Docx</li>
|
||||
<li>Txt</li>
|
||||
<li>Rtf</li>
|
||||
<li>Odt</li>
|
||||
<li>Pdf</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<hr />
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div align="center">
|
||||
<div id="call-to-action1" style="max-width:1000px; text-align:center;">
|
||||
<p>Выберите файлы, щелкнув, коснувшись или перетащив файлы в поле ниже.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div align="center">
|
||||
<div id="dropzone" style="max-height:1000px; max-width:1000px; margin:25px;">
|
||||
<form action="convertCore.php" class="dropzone" id="filesToUpload" name="filesToUpload" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" id="token1" name="Token1" value="<?php echo $Token1; ?>">
|
||||
<input type="hidden" id="token2" name="Token2" value="<?php echo $Token2; ?>">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div align="center">
|
||||
<div id="continue" style="max-width:1000px; text-align:center;">
|
||||
<form action="convertCore.php?showFiles=1<?php if (isset($_GET['noGui'])) echo '&noGui=TRUE'; if (isset($_GET['language'])) echo '&language='.$_GET['language']; ?>" method="post">
|
||||
<input type="hidden" id="token1" name="Token1" value="<?php echo $Token1; ?>">
|
||||
<input type="hidden" id="token2" name="Token2" value="<?php echo $Token2; ?>">
|
||||
<input type="submit" id="continue-button" class="info-button" value="Продолжать ...">
|
||||
</form>
|
||||
<br />
|
||||
<?php if (!isset($_GET['noGui'])) { ?>
|
||||
<hr />
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if (!isset($_GET['noGui'])) { ?>
|
||||
</div>
|
||||
<?php } ?>
|
985
Languages/ru/convertGui2.php
Normal file
985
Languages/ru/convertGui2.php
Normal file
|
@ -0,0 +1,985 @@
|
|||
<?php
|
||||
$Alert = 'Невозможно преобразовать этот файл! Попробуйте изменить имя.';
|
||||
$Alert1 = 'Не удается выполнить сканирование этого файла на наличие вирусов!';
|
||||
$Alert2 = 'Ссылка на файл скопирована в буфер обмена!';
|
||||
$Alert3 = 'Операция провалена!';
|
||||
$FCPlural1 = '';
|
||||
if (!is_numeric($FileCount)) $FileCount = 0;
|
||||
if (!isset($ApplicationName)) $ApplicationName = 'HRConvert2';
|
||||
if (!isset($ApplicationTitle)) $ApplicationTitle = 'Конвертируйте что угодно!';
|
||||
if (!isset($CoreLoaded)) die('ОШИБКА!!! '.$ApplicationName.'-2, Этот файл не может обработать ваш запрос! Вместо этого отправьте файл на convertCore.php!');
|
||||
if (!isset($ShowFinePrint)) $ShowFinePrint = TRUE;
|
||||
if ($FileCount === 0) $FCPlural1 = 'Вы загрузили 0 действительных файлов в '.$ApplicationName.'.';
|
||||
if ($FileCount === 1) $FCPlural1 = 'Вы загрузили 1 действительный файл в '.$ApplicationName.'.';
|
||||
if ($FileCount >= 2) $FCPlural1 = 'Вы загрузили '.$FileCount.' действительных файла в '.$ApplicationName.'.';
|
||||
?>
|
||||
<body>
|
||||
<script type="text/javascript" src="Resources/jquery-3.6.0.min.js"></script>
|
||||
<div id="header-text" style="max-width:1000px; margin-left:auto; margin-right:auto; text-align:center;">
|
||||
<?php if (!isset($_GET['noGui'])) { ?><h1><?php echo $ApplicationName; ?></h1>
|
||||
<hr /><?php } ?>
|
||||
<h3>Параметры преобразования файлов</h3>
|
||||
<p><?php echo $FCPlural1; ?></p>
|
||||
<p>Теперь ваши файлы готовы к конвертации с использованием приведенных ниже параметров.</p>
|
||||
</div>
|
||||
|
||||
<div id='utility' align="center">
|
||||
<p><img id='loadingCommandDiv' name='loadingCommandDiv' src='<?php echo $PacmanLoc; ?>' style="max-width:64px; max-height:64px; display:none;"/></p>
|
||||
<a id='downloadTarget' href='about:blank' style="display: none;" download></a>
|
||||
</div>
|
||||
|
||||
<div id="compressAll" name="compressAll" style="max-width:1000px; margin-left: auto; margin-right: auto; text-align:center;">
|
||||
<button id="backButton" name="backButton" style="width:50px;" class="info-button" onclick="window.history.back();">←</button>
|
||||
<button id="refreshButton" name="refreshButton" style="width:50px;" class="info-button" onclick="javascript:location.reload(true);">↻</button>
|
||||
<br /> <br />
|
||||
<button id="scandocMoreOptionsButton" name="scandocMoreOptionsButton" class="info-button" onclick="toggle_visibility('compressAllOptions');">Параметры массового файла</button>
|
||||
<div id="compressAllOptions" name="compressAllOptions" align="center" style="display:none;">
|
||||
<?php if ($AllowUserVirusScan) { ?>
|
||||
<hr style='width: 50%;' />
|
||||
<p><strong>Сжать и загрузить все файлы</strong></p>
|
||||
<p>Сканирование с помощью ClamAV: <input type="checkbox" id="clamscanall" value="clamscanall" name="clamScan" checked></p>
|
||||
<p>Сканирование с помощью ScanCore: <input type="checkbox" id="scancoreall" value="scancoreall" name="phpavScan" checked></p>
|
||||
<p><input type="submit" id="scanAllButton" name="scanAllButton" class="info-button" value='Сканировать все' onclick="toggle_visibility('loadingCommandDiv');"></p>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#scanAllButton').click(function() {
|
||||
var scanfiles = <?php echo json_encode($Files); ?>;
|
||||
var scanType = 'all';
|
||||
if($("input#clamscanall").is(":checked")) {
|
||||
var scanType = 'clamav'; }
|
||||
if($("input#scancoreall").is(":checked")) {
|
||||
var scanType = 'scancore'; }
|
||||
if($("input#clamscanall").is(":checked") && $("input#scancoreall").is(":checked")) {
|
||||
var scanType = 'all'; }
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:scanType,
|
||||
filesToScan:scanfiles },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); }); });
|
||||
</script>
|
||||
<?php } ?>
|
||||
<hr style='width: 50%;' />
|
||||
<p><strong>Сжать и загрузить все файлы</strong></p>
|
||||
<p>Укажите имя файла: <input type="text" id='userarchallfilename' name='userarchallfilename' value='HRConvert2_Files-<?php echo $Date; ?>'></p>
|
||||
<select id='archallextension' name='archallextension'>
|
||||
<option value="zip">Формат</option>
|
||||
<option value="zip">Zip</option>
|
||||
<option value="rar">Rar</option>
|
||||
<option value="tar">Tar</option>
|
||||
<option value="7z">7z</option>
|
||||
</select>
|
||||
<input type="submit" id="archallSubmit" name="archallSubmit" class="info-button" value='Сжать и скачать' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#archallSubmit').click(function() {
|
||||
var extension = document.getElementById('archallextension').value;
|
||||
if (extension === "") {
|
||||
extension = 'zip'; }
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
archive:'1',
|
||||
filesToArchive:<?php echo json_encode($Files); ?>,
|
||||
archextension:extension,
|
||||
userfilename:document.getElementById('userarchallfilename').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userarchallfilename').value+'.'+extension },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userarchallfilename').value+'.'+extension;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
<hr style='width: 50%;' />
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div style="max-width:1000px; margin-left:auto; margin-right:auto;">
|
||||
<hr />
|
||||
|
||||
<?php
|
||||
foreach ($Files as $File) {
|
||||
$extension = getExtension($ConvertTempDir.'/'.$File);
|
||||
$FileNoExt = str_replace($extension, '', $File);
|
||||
if (!in_array($extension, $ConvertArray)) continue;
|
||||
$ConvertGuiCounter1++;
|
||||
?>
|
||||
|
||||
<div id="file<?php echo $ConvertGuiCounter1; ?>" name="<?php echo $ConvertGuiCounter1; ?>">
|
||||
<p href=""><strong><?php echo $ConvertGuiCounter1; ?>.</strong> <u><?php echo $File; ?></u></p>
|
||||
<div id="buttonDiv<?php echo $ConvertGuiCounter1; ?>" name="buttonDiv<?php echo $ConvertGuiCounter1; ?>" style="height:25px;">
|
||||
|
||||
<img id="downloadfilebutton<?php echo $ConvertGuiCounter1; ?>" name="downloadfilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/download.png" style="float:left; display:block;" onclick="toggle_visibility('loadingCommandDiv');"/>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#downloadfilebutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $File; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$File; ?>";
|
||||
document.getElementById('downloadTarget').click(); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
|
||||
<?php if ($AllowUserShare) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
<img id="sharefilebutton<?php echo $ConvertGuiCounter1; ?>" name="sharefilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/link.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('sharefilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('shareXfilebutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="shareXfilebutton<?php echo $ConvertGuiCounter1; ?>" name="shareXfilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('sharefilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('shareXfilebutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($AllowUserVirusScan) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
<img id="scanfilebutton<?php echo $ConvertGuiCounter1; ?>" name="scanfilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/scan.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfileXbutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="scanfileXbutton<?php echo $ConvertGuiCounter1; ?>" name="scanfileXbutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfileXbutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<a style="float:left;"> | </a>
|
||||
<img id="archfileButton<?php echo $ConvertGuiCounter1; ?>" name="archfileButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/archive.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="archfileXButton<?php echo $ConvertGuiCounter1; ?>" name="archfileXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
|
||||
<?php if (in_array($extension, $PDFWorkArr)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="docscanButton<?php echo $ConvertGuiCounter1; ?>" name="docscanButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/docscan.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="docscanXButton<?php echo $ConvertGuiCounter1; ?>" name="docscanXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ArchiveArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="archiveButton<?php echo $ConvertGuiCounter1; ?>" name="archiveButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/convert.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="archiveXButton<?php echo $ConvertGuiCounter1; ?>" name="archiveXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DocumentArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="documentButton<?php echo $ConvertGuiCounter1; ?>" name="documentButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/document.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('docOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="documentXButton<?php echo $ConvertGuiCounter1; ?>" name="documentXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('docOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $SpreadsheetArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="spreadsheetButton<?php echo $ConvertGuiCounter1; ?>" name="spreadsheetButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/spreadsheet.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>" name="spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $PresentationArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="presentationButton<?php echo $ConvertGuiCounter1; ?>" name="presentationButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/presentation.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="presentationXButton<?php echo $ConvertGuiCounter1; ?>" name="presentationXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ImageArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="imageButton<?php echo $ConvertGuiCounter1; ?>" name="imageButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/photo.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="imageXButton<?php echo $ConvertGuiCounter1; ?>" name="imageXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $MediaArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="mediaButton<?php echo $ConvertGuiCounter1; ?>" name="mediaButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/stream.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="mediaXButton<?php echo $ConvertGuiCounter1; ?>" name="mediaXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $VideoArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="videoButton<?php echo $ConvertGuiCounter1; ?>" name="videoButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/stream.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="videoXButton<?php echo $ConvertGuiCounter1; ?>" name="videoXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $StreamArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="streamButton<?php echo $ConvertGuiCounter1; ?>" name="streamButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/stream.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="streamXButton<?php echo $ConvertGuiCounter1; ?>" name="streamXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DrawingArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="drawingButton<?php echo $ConvertGuiCounter1; ?>" name="drawingButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/convert.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="drawingXButton<?php echo $ConvertGuiCounter1; ?>" name="drawingXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ModelArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="modelButton<?php echo $ConvertGuiCounter1; ?>" name="modelButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/convert.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="modelXButton<?php echo $ConvertGuiCounter1; ?>" name="modelXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<div id='archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Архивировать этот файл</strong></p>
|
||||
<p>Укажите имя файла: <input type="text" id='userarchfilefilename<?php echo $ConvertGuiCounter1; ?>' name='userarchfilefilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='archfileextension<?php echo $ConvertGuiCounter1; ?>' name='archfileextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="zip">Формат</option>
|
||||
<option value="zip">Zip</option>
|
||||
<option value="rar">Rar</option>
|
||||
<option value="tar">Tar</option>
|
||||
<option value="7z">7z</option>
|
||||
</select></p>
|
||||
<input type="submit" id="archfileSubmit<?php echo $ConvertGuiCounter1; ?>" name="archfileSubmit<?php echo $ConvertGuiCounter1; ?>" value='Архивный файл' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#archfileSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
archive:'<?php echo $File; ?>',
|
||||
filesToArchive:'<?php echo $File; ?>',
|
||||
archextension:document.getElementById('archfileextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userfilename:document.getElementById('userarchfilefilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userarchfilefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archfileextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userarchfilefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archfileextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
|
||||
<?php if ($AllowUserShare) { ?>
|
||||
<div id='sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Поделиться этим файлом</strong></p>
|
||||
<p id='sharelinkStatus<?php echo $ConvertGuiCounter1; ?>' name='sharelinkStatus<?php echo $ConvertGuiCounter1; ?>'>Статус ссылки: <i>Не сгенерировано</i></p>
|
||||
<p id='shareclipStatus<?php echo $ConvertGuiCounter1; ?>' name='shareclipStatus<?php echo $ConvertGuiCounter1; ?>'>Статус буфера обмена: <i>Не скопировано</i></p>
|
||||
<p id='sharelinkURL<?php echo $ConvertGuiCounter1; ?>' name='sharelinkURL<?php echo $ConvertGuiCounter1; ?>'>Ссылка на файл: <i>Не сгенерировано</i></p>
|
||||
|
||||
<input type="submit" id="sharegeneratebutton<?php echo $ConvertGuiCounter1; ?>" name="sharegeneratebutton<?php echo $ConvertGuiCounter1; ?>" value='Создать ссылку и скопировать в буфер обмена' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<input type="submit" id="sharecopybutton<?php echo $ConvertGuiCounter1; ?>" name="sharecopybutton<?php echo $ConvertGuiCounter1; ?>" value='Создать ссылку' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#sharegeneratebutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $File; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('sharelinkStatus<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'Статус ссылки: <i>Сгенерировано</i>';
|
||||
document.getElementById('shareclipStatus<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'Статус буфера обмена: <i>Скопировано</i>';
|
||||
document.getElementById('sharelinkURL<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'Ссылка на файл: <i><?php echo $FullURL.'/DATA/'.$SesHash3.'/'.$File; ?></i>';
|
||||
copy_share_link("<?php echo $FullURL.'/DATA/'.$SesHash3.'/'.$File; ?>");
|
||||
alert("<?php echo $Alert2; ?>"); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert3; ?>"); } }); });
|
||||
$('#sharecopybutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $File; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('sharelinkStatus<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'Статус буфера обмена: <i>Сгенерировано</i>';
|
||||
document.getElementById('sharelinkURL<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'Ссылка на файл: <i><?php echo $FullURL.'/DATA/'.$SesHash3.'/'.$File; ?></i>'; },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert3; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if ($AllowUserVirusScan) { ?>
|
||||
<div id='scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Сканировать этот файл на наличие вирусов</strong></p>
|
||||
<input type="submit" id="scancorebutton<?php echo $ConvertGuiCounter1; ?>" name="scancorebutton<?php echo $ConvertGuiCounter1; ?>" value='Сканировать файл с помощью ScanCore' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<input type="submit" id="clamscanbutton<?php echo $ConvertGuiCounter1; ?>" name="clamscanbutton<?php echo $ConvertGuiCounter1; ?>" value='Сканировать файл с помощью ClamAV' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<input type="submit" id="scanallbutton<?php echo $ConvertGuiCounter1; ?>" name="scanallbutton<?php echo $ConvertGuiCounter1; ?>" value='Сканировать файл с помощью ScanCore и ClamAV' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#scancorebutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:'scancore',
|
||||
filesToScan:'<?php echo $File; ?>' },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); });
|
||||
$('#clamscanbutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:'all',
|
||||
filesToScan:'<?php echo $File; ?>' },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); });
|
||||
$('#scanallbutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:'all',
|
||||
filesToScan:'<?php echo $File; ?>' },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $PDFWorkArr)) {
|
||||
?>
|
||||
<div id='pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Выполнить оптическое распознавание символов в этом файле</strong></p>
|
||||
<p>Укажите имя файла: <input type="text" id='userpdffilename<?php echo $ConvertGuiCounter1; ?>' name='userpdffilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='pdfmethod<?php echo $ConvertGuiCounter1; ?>' name='pdfmethod<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="0">Метод</option>
|
||||
<option value="1">Метод 1 (Простой)</option>
|
||||
<option value="2">Метод 2 (Передовой)</option>
|
||||
</select>
|
||||
<select id='pdfextension<?php echo $ConvertGuiCounter1; ?>' name='pdfextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="pdf">Формат</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
<option value="doc">Doc</option>
|
||||
<option value="docx">Docx</option>
|
||||
<option value="rtf">Rtf</option>
|
||||
<option value="txt">Txt</option>
|
||||
<option value="odt">Odt</option>
|
||||
</select></p>
|
||||
<p><input type="submit" id='pdfconvertSubmit<?php echo $ConvertGuiCounter1; ?>' name='pdfconvertSubmit<?php echo $ConvertGuiCounter1; ?>' value='Преобразовать в документ' onclick="toggle_visibility('loadingCommandDiv');"></p>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#pdfconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
pdfworkSelected:'<?php echo $File; ?>',
|
||||
method:document.getElementById('pdfmethod<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
pdfextension:document.getElementById('pdfextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userpdfconvertfilename:document.getElementById('userpdffilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userpdffilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('pdfextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userpdffilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('pdfextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ArchiveArray)) {
|
||||
?>
|
||||
<div id='archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Конвертировать этот архив</strong></p>
|
||||
<p>Укажите имя файла: <input type="text" id='userarchivefilename<?php echo $ConvertGuiCounter1; ?>' name='userarchivefilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='archiveextension<?php echo $ConvertGuiCounter1; ?>' name='archiveextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="zip">Формат</option>
|
||||
<option value="zip">Zip</option>
|
||||
<option value="rar">Rar</option>
|
||||
<option value="tar">Tar</option>
|
||||
<option value="7z">7z</option>
|
||||
</select></p>
|
||||
<input type="submit" id="archiveconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="archiveconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Архивные файлы' onclick="toggle_visibility('loadingCommandDiv'); display:none;">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#archiveconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('archiveextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userarchivefilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userarchivefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archiveextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userarchivefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archiveextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DocumentArray)) {
|
||||
?>
|
||||
<div id='docOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='docOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Преобразовать этот документ</strong></p>
|
||||
<p>Укажите имя файла: <input type="text" id='userdocfilename<?php echo $ConvertGuiCounter1; ?>' name='userdocfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='docextension<?php echo $ConvertGuiCounter1; ?>' name='docextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="txt">Формат</option>
|
||||
<option value="doc">Doc</option>
|
||||
<option value="docx">Docx</option>
|
||||
<option value="rtf">Rtf</option>
|
||||
<option value="txt">Txt</option>
|
||||
<option value="odt">Odt</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
</select></p>
|
||||
<input type="submit" id="docconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="docconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Конвертировать документ' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#docconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('docextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userdocfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userdocfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('docextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userdocfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('docextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $SpreadsheetArray)) {
|
||||
?>
|
||||
<div id='spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Преобразовать эту таблицу</strong></p>
|
||||
<p>Укажите имя файла: <input type="text" id='userspreadfilename<?php echo $ConvertGuiCounter1; ?>' name='userspreadfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='spreadextension<?php echo $ConvertGuiCounter1; ?>' name='spreadextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="ods">Формат</option>
|
||||
<option value="xls">Xls</option>
|
||||
<option value="xlsx">Xlsx</option>
|
||||
<option value="ods">Ods</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
</select></p>
|
||||
<input type="submit" id="spreadconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="spreadconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Преобразовать электронную таблицу' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#spreadconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('spreadextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('spreadextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('spreadextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); }
|
||||
}); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $PresentationArray)) {
|
||||
?>
|
||||
<div id='presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Преобразовать эту презентацию</strong></p>
|
||||
<p>Укажите имя файла: <input type="text" id='userpresentationfilename<?php echo $ConvertGuiCounter1; ?>' name='userpresentationfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='presentationextension<?php echo $ConvertGuiCounter1; ?>' name='presentationextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="odp">Формат</option>
|
||||
<option value="pages">Pages</option>
|
||||
<option value="pptx">Pptx</option>
|
||||
<option value="ppt">Ppt</option>
|
||||
<option value="xps">Xps</option>
|
||||
<option value="potx">Potx</option>
|
||||
<option value="pot">Pot</option>
|
||||
<option value="ppa">Ppa</option>
|
||||
<option value="odp">Odp</option>
|
||||
</select></p>
|
||||
<input type="submit" id="presentationconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="presentationconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Преобразовать презентацию' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#presentationconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('presentationextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userpresentationfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userpresentationfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('presentationextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('presentationextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $MediaArray)) {
|
||||
?>
|
||||
<div id='audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Конвертировать это аудио</strong></p>
|
||||
<p>Укажите имя файла: <input type="text" id='useraudiofilename<?php echo $ConvertGuiCounter1; ?>' name='useraudiofilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='audioextension<?php echo $ConvertGuiCounter1; ?>' name='audioextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="mp3">Формат</option>
|
||||
<option value="mp2">Mp2</option>
|
||||
<option value="mp3">Mp3</option>
|
||||
<option value="wav">Wav</option>
|
||||
<option value="wma">Wma</option>
|
||||
<option value="flac">Flac</option>
|
||||
<option value="ogg">Ogg</option>
|
||||
</select></p>
|
||||
<input type="submit" id="audioconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="audioconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Конвертировать аудио' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#audioconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('audioextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('useraudiofilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('useraudiofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('audioextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('useraudiofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('audioextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $VideoArray)) {
|
||||
?>
|
||||
<div id='videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Конвертировать это видео</strong></p>
|
||||
<p>Укажите имя файла: <input type="text" id='uservideofilename<?php echo $ConvertGuiCounter1; ?>' name='uservideofilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='videoextension<?php echo $ConvertGuiCounter1; ?>' name='videoextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="mp4">Формат</option>
|
||||
<option value="3gp">3gp</option>
|
||||
<option value="mkv">Mkv</option>
|
||||
<option value="avi">Avi</option>
|
||||
<option value="mp4">Mp4</option>
|
||||
<option value="flv">Flv</option>
|
||||
<option value="mpeg">Mpeg</option>
|
||||
<option value="wmv">Wmv</option>
|
||||
<option value="mov">Mov</option>
|
||||
</select></p>
|
||||
<input type="submit" id="videoconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="videoconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Конвертировать видео' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#videoconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('videoextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('uservideofilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('uservideofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('videoextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('uservideofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('videoextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $StreamArray)) {
|
||||
?>
|
||||
<div id='streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Преобразовать этот поток</strong></p>
|
||||
<p>кажите имя файла: <input type="text" id='userstreamfilename<?php echo $ConvertGuiCounter1; ?>' name='userstreamfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='streamextension<?php echo $ConvertGuiCounter1; ?>' name='streamextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="mp4">Format</option>
|
||||
<option value="3gp">3gp</option>
|
||||
<option value="mkv">Mkv</option>
|
||||
<option value="avi">Avi</option>
|
||||
<option value="mp4">Mp4</option>
|
||||
<option value="flv">Flv</option>
|
||||
<option value="mpeg">Mpeg</option>
|
||||
<option value="wmv">Wmv</option>
|
||||
<option value="mov">Mov</option>
|
||||
</select></p>
|
||||
<input type="submit" id="streamconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="streamconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Конвертировать поток' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#streamconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('streamextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userstreamfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userstreamfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('streamextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userstreamfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('streamextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ModelArray)) {
|
||||
?>
|
||||
<div id='modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Преобразуйте эту трехмерную модель</strong></p>
|
||||
<p>Укажите имя файла: <input type="text" id='usermodelfilename<?php echo $ConvertGuiCounter1; ?>' name='usermodelfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='modelextension<?php echo $ConvertGuiCounter1; ?>' name='modelextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="3ds">Формат</option>
|
||||
<option value="3ds">3ds</option>
|
||||
<option value="collada">Collada</option>
|
||||
<option value="obj">Obj</option>
|
||||
<option value="off">Off</option>
|
||||
<option value="ply">Ply</option>
|
||||
<option value="stl">Stl</option>
|
||||
<option value="ptx">Ptx</option>
|
||||
<option value="dxf">Dxf</option>
|
||||
<option value="u3d">U3d</option>
|
||||
<option value="vrml">Vrml</option>
|
||||
</select></p>
|
||||
<input type="submit" id="modelconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="modelconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Преобразовать модель' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#modelconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('modelextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('usermodelfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('usermodelfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('modelextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('usermodelfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('modelextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DrawingArray)) {
|
||||
?>
|
||||
<div id='drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Конвертируйте этот технический чертеж или векторный файл</strong></p>
|
||||
<p>Укажите имя файла: <input type="text" id='userdrawingfilename<?php echo $ConvertGuiCounter1; ?>' name='userdrawingfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='drawingextension<?php echo $ConvertGuiCounter1; ?>' name='drawingextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="jpg">Формат</option>
|
||||
<option value="svg">Svg</option>
|
||||
<option value="dxf">Dxf</option>
|
||||
<option value="vdx">Vdx</option>
|
||||
<option value="fig">Fig</option>
|
||||
<option value="jpg">Jpg</option>
|
||||
<option value="png">Png</option>
|
||||
<option value="bmp">Bmp</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
</select></p>
|
||||
<input type="submit" id="drawingconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="drawingconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Преобразование чертежа' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#drawingconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('drawingextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userdrawingfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('drawingfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('drawingextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userdrawingfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('drawingextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ImageArray)) {
|
||||
?>
|
||||
<div id='imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Преобразовать это изображениеe</strong></p>
|
||||
<p>Укажите имя файла: <input type="text" id='userphotofilename<?php echo $ConvertGuiCounter1; ?>' name='userphotofilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='photoextension<?php echo $ConvertGuiCounter1; ?>' name='photoextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="jpg">Формат</option>
|
||||
<option value="jpg">Jpg</option>
|
||||
<option value="bmp">Bmp</option>
|
||||
<option value="webp">Webp</option>
|
||||
<option value="png">Png</option>
|
||||
<option value="cin">Cin</option>
|
||||
<option value="dds">Dds</option>
|
||||
<option value="dib">Dib</option>
|
||||
<option value="flif">Flif</option>
|
||||
<option value="avif">Avif</option>
|
||||
</select></p>
|
||||
<p>Ширина высота: </p>
|
||||
<p><input type="number" size="4" value="0" id='width<?php echo $ConvertGuiCounter1; ?>' name='width<?php echo $ConvertGuiCounter1; ?>' min="0" max="10000"> X <input type="number" size="4" value="0" id="height<?php echo $ConvertGuiCounter1; ?>" name="height<?php echo $ConvertGuiCounter1; ?>" min="0" max="10000"></p>
|
||||
<p>Повернуть:<input type="number" size="3" id='rotate<?php echo $ConvertGuiCounter1; ?>' name='rotate<?php echo $ConvertGuiCounter1; ?>' value="0" min="0" max="359"></p>
|
||||
<input type="submit" id='convertPhotoSubmit<?php echo $ConvertGuiCounter1; ?>' name='convertPhotoSubmit<?php echo $ConvertGuiCounter1; ?>' value='Преобразовать изображение' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#convertPhotoSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
rotate:$('#rotate<?php echo $ConvertGuiCounter1; ?>').val(),
|
||||
width:$('#width<?php echo $ConvertGuiCounter1; ?>').val(),
|
||||
height:$('#height<?php echo $ConvertGuiCounter1; ?>').val(),
|
||||
extension:document.getElementById('photoextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userphotofilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userphotofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('photoextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userphotofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('photoextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<hr />
|
||||
<?php } ?>
|
||||
</div>
|
10
Languages/ru/footer.php
Normal file
10
Languages/ru/footer.php
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?php if (!isset($ShowFinePrint)) $ShowFinePrint = TRUE;
|
||||
if ($ShowFinePrint) { ?>
|
||||
<div id="footer" name="footer" style="max-width:1000px; margin-left:auto; margin-right:auto; text-align:center;">
|
||||
<p>Ознакомьтесь с <a href="<?php echo $TOSURL; ?>" target="_blank" rel="noopener noreferrer">нашими Условиями обслуживания</a>
|
||||
и <a href="<?php echo $PPURL; ?>" target="_blank" rel="noopener noreferrer">Политикой конфиденциальности</a></p>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</body>
|
||||
</html>
|
20
Languages/ru/header.php
Normal file
20
Languages/ru/header.php
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?php if (!isset($ApplicationName)) $ApplicationName = 'HRConvert2';
|
||||
if (!isset($ApplicationTitle)) $ApplicationTitle = 'Конвертируйте что угодно!';
|
||||
if (!isset($Font)) $Font = 'Arial'; ?>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="shortcut icon" href="Resources/favicon.ico"/>
|
||||
<link rel="stylesheet" href="Resources/dropzone.css"/>
|
||||
<link rel="stylesheet" href="Resources/HRConvert2.css"/>
|
||||
<script type="text/javascript" src="Resources/HRC2-Functions.js"></script>
|
||||
<script type="text/javascript">var dropzoneText = 'Щелкните, коснитесь или перетащите сюда файлы, чтобы загрузить их.';</script>
|
||||
<script type="text/javascript" src="Resources/dropzone.js"></script>
|
||||
<style>
|
||||
body {
|
||||
font-family: <?php echo $Font; ?>; }
|
||||
<?php if (isset($ButtonCode)) echo $ButtonCode; ?>
|
||||
</style>
|
||||
<title><?php echo $ApplicationName; ?> - <?php echo $ApplicationTitle; ?></title>
|
||||
</head>
|
||||
|
21
Languages/ru/index.html
Normal file
21
Languages/ru/index.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en-US">
|
||||
<title>HRConvert2 | HRConvert2 Authentication</title>
|
||||
<body>
|
||||
<div id="outer" align="center"><h1>Configuring HRConvert2 ...</h1>
|
||||
|
||||
<div id="inner" style="position:absolute; top:50%; left:50%; height:10em; margin-top:-5em; margin-right:5em;"><strong>Please wait . . .</strong></div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
|
||||
// Set the URL below to the page the user is sent to if their screensize is UNDER the specified number of pixels.
|
||||
if (screen.width <= 699) { document.location = "/HRProprietary/HRConvert2/convertCore.php"; }
|
||||
// / Set the URL below to the page the user is sent to if their screensize is OVER the specified number of pixels.
|
||||
if (screen.width >= 700) { document.location = "/HRProprietary/HRConvert2/convertCore.php"; }
|
||||
|
||||
</script>
|
||||
|
||||
<meta id="IfNothingHappens" http-equiv="refresh" content="5"; url="/HRProprietary/HRConvert2/convertCore.php" >
|
||||
|
||||
</body>
|
||||
</html>
|
224
Languages/uk/convertGui1.php
Normal file
224
Languages/uk/convertGui1.php
Normal file
|
@ -0,0 +1,224 @@
|
|||
<?php
|
||||
if (!isset($ApplicationName)) $ApplicationName = 'HRConvert2';
|
||||
if (!isset($ApplicationTitle)) $ApplicationTitle = 'Перетворюйте будь-що!';
|
||||
if (!isset($CoreLoaded)) die('ПОМИЛКА!!! '.$ApplicationName.'-2, цей файл не може обробити ваш запит! Натомість надішліть свій файл у convertCore.php!');
|
||||
if (!isset($ShowFinePrint)) $ShowFinePrint = TRUE;
|
||||
?>
|
||||
<body>
|
||||
<?php
|
||||
if (!isset($_GET['noGui'])) { ?>
|
||||
<div id="header-text" style="max-width:1000px; margin-left:auto; margin-right:auto; text-align:center;">
|
||||
<h1><?php echo $ApplicationName; ?></h1>
|
||||
<h3>Онлайн-конвертер файлів, екстрактор, компресор</h3>
|
||||
<hr />
|
||||
</div>
|
||||
<div id="main" align="center">
|
||||
<div id="overview" style="max-width:1000px; text-align:left; margin:25px;">
|
||||
<p id="info" style="display:block;"><?php echo $ApplicationName; ?> заснований на веб-додатку <a href='https://github.com/zelon88/HRConvert2'>HRConvert2</a> з відкритим вихідним кодом від <a href='https://github.com/zelon88'>Zelon88</a>. Він був розроблений для перетворення файлів без відстеження користувачів в Інтернеті або порушення прав на вашу інтелектуальну власність.</p>
|
||||
<button id="more-info-button" class="info-button" onclick="toggle_visibility('more-info'); toggle_visibility('more-info-button'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('less-info-button');" style="text-align:center; display:block; margin-left:auto; margin-right:auto;"><i>Більше інформації...</i></button>
|
||||
<button id="less-info-button" class="info-button" onclick="toggle_visibility('more-info'); toggle_visibility('more-info-button'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('less-info-button');" style="text-align:center; display:none; margin-left:auto; margin-right:auto;"><i>Менше інформації...</i></button>
|
||||
<div id="more-info" style="display:none;">
|
||||
<hr />
|
||||
<p>Усі дані, надані користувачами, стираються автоматично, тому вам не потрібно турбуватися про втрату вашої особистої інформації чи майна під час використання наших послуг.</p>
|
||||
<p><?php echo $ApplicationName; ?> HRConvert2 підтримує 77 різних форматів файлів, включаючи документи, електронні таблиці, зображення, медіа, тривимірні моделі, файли малюнків, векторні файли, архіви, образи дисків тощо.</p>
|
||||
<button id="supported-formats-show-button" class="info-button" onclick="toggle_visibility('supported-formats'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('supported-formats-hide-button');" style="text-align:center; display:none; margin-left:auto; margin-right:auto;"><i>Переглянути підтримувані формати...</i></button>
|
||||
<button id="supported-formats-hide-button" class="info-button" onclick="toggle_visibility('supported-formats'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('supported-formats-hide-button');" style="text-align:center; display:none; margin-left:auto; margin-right:auto;"><i>Приховати підтримувані формати...</i></button>
|
||||
<br>
|
||||
<div id="supported-formats" class="supported-formats" style="margin-left:33%; display:none;">
|
||||
<h3>Підтримувані формати</h3>
|
||||
<hr />
|
||||
<strong>Аудіоформати</strong>
|
||||
<p><i>Підтримує певний бітрейт через API.</i></p>
|
||||
<ol>
|
||||
<li>Mp2</li>
|
||||
<li>Mp3</li>
|
||||
<li>Avi</li>
|
||||
<li>Flac</li>
|
||||
<li>Ogg</li>
|
||||
<li>Wav</li>
|
||||
<li>Wma</li>
|
||||
<li>M4a</li>
|
||||
<li>M4p</li>
|
||||
</ol>
|
||||
<strong>Відео формати</strong>
|
||||
<ol>
|
||||
<li>3gp</li>
|
||||
<li>Mkv</li>
|
||||
<li>Avi</li>
|
||||
<li>Mp4</li>
|
||||
<li>Flv</li>
|
||||
<li>Mpeg</li>
|
||||
<li>Wmv</li>
|
||||
<li>Mov</li>
|
||||
<li>M4v</li>
|
||||
</ol>
|
||||
<strong>Формати потоку</strong>
|
||||
<ol>
|
||||
<li>m3u8</li>
|
||||
</ol>
|
||||
<strong>Формати документів</strong>
|
||||
<ol>
|
||||
<li>Doc</li>
|
||||
<li>Docx</li>
|
||||
<li>Txt</li>
|
||||
<li>Rtf</li>
|
||||
<li>Odt</li>
|
||||
<li>Pdf</li>
|
||||
</ol>
|
||||
<strong>Формати електронних таблиць</strong>
|
||||
<ol>
|
||||
<li>Xls</li>
|
||||
<li>Xlsx</li>
|
||||
<li>Ods</li>
|
||||
</ol>
|
||||
<strong>Формати презентації</strong>
|
||||
<ol>
|
||||
<li>Pages</li>
|
||||
<li>Pptx</li>
|
||||
<li>Ppt</li>
|
||||
<li>Xps</li>
|
||||
<li>Pot</li>
|
||||
<li>Potx</li>
|
||||
<li>Ppa</li>
|
||||
<li>Ppt</li>
|
||||
<li>Pptx</li>
|
||||
<li>Odp</li>
|
||||
</ol>
|
||||
<strong>Архівні формати</strong>
|
||||
<p><i>Може створювати, конвертувати та розархівувати будь-яке з наведеного нижче...</i></p>
|
||||
<ol>
|
||||
<li>Zip</li>
|
||||
<li>Rar</li>
|
||||
<li>Tar</li>
|
||||
<li>Tar.Bz2</li>
|
||||
<li>7z</li>
|
||||
</ol>
|
||||
<strong>Формати образів дисків</strong>
|
||||
<p><i>Можна розпакувати будь-яке з наведеного нижче або конвертувати в підтримувані формати архівів...</i></p>
|
||||
<ol>
|
||||
<li>Iso</li>
|
||||
<li>Vhd</li>
|
||||
<li>Vdi</li>
|
||||
</ol>
|
||||
<strong>Image Formats</strong>
|
||||
<p><i>Підтримує зміну розміру та обертання за допомогою графічного інтерфейсу та API.</i></p>
|
||||
<p><i>Supports disable maintain aspect ratio through API.</i></p>
|
||||
<p><i>Операції перетворення зображень підтримують такі формати введення...</i></p>
|
||||
<ol>
|
||||
<li>Jpg</li>
|
||||
<li>Jpeg</li>
|
||||
<li>Png</li>
|
||||
<li>Bmp</li>
|
||||
<li>Webp</li>
|
||||
<li>Gif</li>
|
||||
<li>Cin</li>
|
||||
<li>Dds</li>
|
||||
<li>Dib</li>
|
||||
<li>Flif</li>
|
||||
<li>Avif</li>
|
||||
<li>Crw</li>
|
||||
<li>Dcr</li>
|
||||
<li>Gplt</li>
|
||||
<li>Nef</li>
|
||||
<li>Orf</li>
|
||||
<li>Ora</li>
|
||||
<li>Sct</li>
|
||||
<li>Sfw</li>
|
||||
<li>Xcf</li>
|
||||
<li>Xwd</li>
|
||||
<li>Avif</li>
|
||||
<li>Ico</li>
|
||||
</ol>
|
||||
<p><i>Операції перетворення зображень підтримують наступні вихідні формати...</i></p>
|
||||
<ol>
|
||||
<li>Jpg</li>
|
||||
<li>Jpeg</li>
|
||||
<li>Png</li>
|
||||
<li>Bmp</li>
|
||||
<li>Webp</li>
|
||||
<li>Cin</li>
|
||||
<li>Dds</li>
|
||||
<li>Dib</li>
|
||||
<li>Flif</li>
|
||||
<li>Avif</li>
|
||||
</ol>
|
||||
<strong>Тривимірні формати моделей</strong>
|
||||
<ol>
|
||||
<li>3ds</li>
|
||||
<li>Obj</li>
|
||||
<li>Collada</li>
|
||||
<li>Off</li>
|
||||
<li>Ply</li>
|
||||
<li>Stl</li>
|
||||
<li>Ptx</li>
|
||||
<li>Dxf</li>
|
||||
<li>U3d</li>
|
||||
<li>Vrml</li>
|
||||
</ol>
|
||||
<strong>Формати малювання</strong>
|
||||
<p><i>Може виводити файли малюнків у формати зображень.</i></p>
|
||||
<p><i>Можна конвертувати між будь-яким із наведених нижче...</i></p>
|
||||
<ol>
|
||||
<li>Svg</li>
|
||||
<li>Dxf</li>
|
||||
<li>Fig</li>
|
||||
<li>Vdx</li>
|
||||
</ol>
|
||||
<strong>Підтримка оптичного розпізнавання символів</strong>
|
||||
<p><i>Операції оптичного розпізнавання символів підтримують такі формати введення...</i></p>
|
||||
<ol>
|
||||
<li>Jpg</li>
|
||||
<li>Jpeg</li>
|
||||
<li>Png</li>
|
||||
<li>Bmp</li>
|
||||
<li>Pdf</li>
|
||||
<li>Gif</li>
|
||||
</ol>
|
||||
<p><i>Операції оптичного розпізнавання символів підтримують наступні вихідні формати...</i></p>
|
||||
<ol>
|
||||
<li>Doc</li>
|
||||
<li>Docx</li>
|
||||
<li>Txt</li>
|
||||
<li>Rtf</li>
|
||||
<li>Odt</li>
|
||||
<li>Pdf</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<hr />
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div align="center">
|
||||
<div id="call-to-action1" style="max-width:1000px; text-align:center;">
|
||||
<p>Виберіть файли, клацнувши, торкнувшись або опустивши файли в поле нижче.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div align="center">
|
||||
<div id="dropzone" style="max-height:1000px; max-width:1000px; margin:25px;">
|
||||
<form action="convertCore.php" class="dropzone" id="filesToUpload" name="filesToUpload" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" id="token1" name="Token1" value="<?php echo $Token1; ?>">
|
||||
<input type="hidden" id="token2" name="Token2" value="<?php echo $Token2; ?>">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div align="center">
|
||||
<div id="continue" style="max-width:1000px; text-align:center;">
|
||||
<form action="convertCore.php?showFiles=1<?php if (isset($_GET['noGui'])) echo '&noGui=TRUE'; if (isset($_GET['language'])) echo '&language='.$_GET['language']; ?>" method="post">
|
||||
<input type="hidden" id="token1" name="Token1" value="<?php echo $Token1; ?>">
|
||||
<input type="hidden" id="token2" name="Token2" value="<?php echo $Token2; ?>">
|
||||
<input type="submit" id="continue-button" class="info-button" value="Продовжуйте...">
|
||||
</form>
|
||||
<br />
|
||||
<?php if (!isset($_GET['noGui'])) { ?>
|
||||
<hr />
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if (!isset($_GET['noGui'])) { ?>
|
||||
</div>
|
||||
<?php } ?>
|
988
Languages/uk/convertGui2.php
Normal file
988
Languages/uk/convertGui2.php
Normal file
|
@ -0,0 +1,988 @@
|
|||
<?php
|
||||
$Alert = 'Неможливо конвертувати цей файл! Спробуйте змінити назву.';
|
||||
$Alert1 = 'Неможливо виконати перевірку цього файлу на віруси!';
|
||||
$Alert2 = 'Посилання на файл скопійовано в буфер обміну!';
|
||||
$Alert3 = 'Операція не вдалася!';
|
||||
$FCPlural1 = '';
|
||||
if (!is_numeric($FileCount)) $FileCount = 0;
|
||||
if (!isset($ApplicationName)) $ApplicationName = 'HRConvert2';
|
||||
if (!isset($ApplicationTitle)) $ApplicationTitle = 'Перетворюйте будь-що!';
|
||||
if (!isset($CoreLoaded)) die('ПОМИЛКА!!! '.$ApplicationName.'-2, цей файл не може обробити ваш запит! Натомість надішліть свій файл у convertCore.php!');
|
||||
if (!isset($ShowFinePrint)) $ShowFinePrint = TRUE;
|
||||
if ($FileCount == 0) $FCPlural1 = 'Ви завантажили 0 дійсних файлів до '.$ApplicationName.'.';
|
||||
if ($FileCount == 1) $FCPlural1 = 'Ви завантажили 1 дійсний файл до '.$ApplicationName.'.';
|
||||
if ($FileCount == 2) $FCPlural1 = 'Ви завантажили 2 дійсні файли до '.$ApplicationName.'.';
|
||||
if ($FileCount == 3) $FCPlural1 = 'Ви завантажили 3 дійсні файли до '.$ApplicationName.'.';
|
||||
if ($FileCount == 4) $FCPlural1 = 'Ви завантажили 4 дійсні файли до '.$ApplicationName.'.';
|
||||
if ($FileCount >= 5) $FCPlural1 = 'Ви завантажили 5 дійсних файлів до '.$ApplicationName.'.';
|
||||
?>
|
||||
<body>
|
||||
<script type="text/javascript" src="Resources/jquery-3.6.0.min.js"></script>
|
||||
<div id="header-text" style="max-width:1000px; margin-left:auto; margin-right:auto; text-align:center;">
|
||||
<?php if (!isset($_GET['noGui'])) { ?><h1><?php echo $ApplicationName; ?></h1>
|
||||
<hr /><?php } ?>
|
||||
<h3>Параметри перетворення файлів</h3>
|
||||
<p><?php echo $FCPlural1; ?></p>
|
||||
<p>Тепер ваші файли готові до конвертації за допомогою наведених нижче параметрів.</p>
|
||||
</div>
|
||||
|
||||
<div id='utility' align="center">
|
||||
<p><img id='loadingCommandDiv' name='loadingCommandDiv' src='<?php echo $PacmanLoc; ?>' style="max-width:64px; max-height:64px; display:none;"/></p>
|
||||
<a id='downloadTarget' href='about:blank' style="display: none;" download></a>
|
||||
</div>
|
||||
|
||||
<div id="compressAll" name="compressAll" style="max-width:1000px; margin-left: auto; margin-right: auto; text-align:center;">
|
||||
<button id="backButton" name="backButton" style="width:50px;" class="info-button" onclick="window.history.back();">←</button>
|
||||
<button id="refreshButton" name="refreshButton" style="width:50px;" class="info-button" onclick="javascript:location.reload(true);">↻</button>
|
||||
<br /> <br />
|
||||
<button id="scandocMoreOptionsButton" name="scandocMoreOptionsButton" class="info-button" onclick="toggle_visibility('compressAllOptions');">Параметри масового файлу</button>
|
||||
<div id="compressAllOptions" name="compressAllOptions" align="center" style="display:none;">
|
||||
<?php if ($AllowUserVirusScan) { ?>
|
||||
<hr style='width: 50%;' />
|
||||
<p><strong>Сканувати всі файли на віруси</strong></p>
|
||||
<p>Сканувати за допомогою ClamAV: <input type="checkbox" id="clamscanall" value="clamscanall" name="clamScan" checked></p>
|
||||
<p>Сканувати за допомогою ScanCore: <input type="checkbox" id="scancoreall" value="scancoreall" name="phpavScan" checked></p>
|
||||
<p><input type="submit" id="scanAllButton" name="scanAllButton" class="info-button" value='Сканувати все' onclick="toggle_visibility('loadingCommandDiv');"></p>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#scanAllButton').click(function() {
|
||||
var scanfiles = <?php echo json_encode($Files); ?>;
|
||||
var scanType = 'all';
|
||||
if($("input#clamscanall").is(":checked")) {
|
||||
var scanType = 'clamav'; }
|
||||
if($("input#scancoreall").is(":checked")) {
|
||||
var scanType = 'scancore'; }
|
||||
if($("input#clamscanall").is(":checked") && $("input#scancoreall").is(":checked")) {
|
||||
var scanType = 'all'; }
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:scanType,
|
||||
filesToScan:scanfiles },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); }); });
|
||||
</script>
|
||||
<?php } ?>
|
||||
<hr style='width: 50%;' />
|
||||
<p><strong>Стисніть і завантажте всі файли</strong></p>
|
||||
<p>Вкажіть ім'я файлу: <input type="text" id='userarchallfilename' name='userarchallfilename' value='HRConvert2_Files-<?php echo $Date; ?>'></p>
|
||||
<select id='archallextension' name='archallextension'>
|
||||
<option value="zip">Формат</option>
|
||||
<option value="zip">Zip</option>
|
||||
<option value="rar">Rar</option>
|
||||
<option value="tar">Tar</option>
|
||||
<option value="7z">7z</option>
|
||||
</select>
|
||||
<input type="submit" id="archallSubmit" name="archallSubmit" class="info-button" value='Стисніть і завантажте' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#archallSubmit').click(function() {
|
||||
var extension = document.getElementById('archallextension').value;
|
||||
if (extension === "") {
|
||||
extension = 'zip'; }
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
archive:'1',
|
||||
filesToArchive:<?php echo json_encode($Files); ?>,
|
||||
archextension:extension,
|
||||
userfilename:document.getElementById('userarchallfilename').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userarchallfilename').value+'.'+extension },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userarchallfilename').value+'.'+extension;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
<hr style='width: 50%;' />
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div style="max-width:1000px; margin-left:auto; margin-right:auto;">
|
||||
<hr />
|
||||
|
||||
<?php
|
||||
foreach ($Files as $File) {
|
||||
$extension = getExtension($ConvertTempDir.'/'.$File);
|
||||
$FileNoExt = str_replace($extension, '', $File);
|
||||
if (!in_array($extension, $ConvertArray)) continue;
|
||||
$ConvertGuiCounter1++;
|
||||
?>
|
||||
|
||||
<div id="file<?php echo $ConvertGuiCounter1; ?>" name="<?php echo $ConvertGuiCounter1; ?>">
|
||||
<p href=""><strong><?php echo $ConvertGuiCounter1; ?>.</strong> <u><?php echo $File; ?></u></p>
|
||||
<div id="buttonDiv<?php echo $ConvertGuiCounter1; ?>" name="buttonDiv<?php echo $ConvertGuiCounter1; ?>" style="height:25px;">
|
||||
|
||||
<img id="downloadfilebutton<?php echo $ConvertGuiCounter1; ?>" name="downloadfilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/download.png" style="float:left; display:block;" onclick="toggle_visibility('loadingCommandDiv');"/>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#downloadfilebutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $File; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$File; ?>";
|
||||
document.getElementById('downloadTarget').click(); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
|
||||
<?php if ($AllowUserShare) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
<img id="sharefilebutton<?php echo $ConvertGuiCounter1; ?>" name="sharefilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/link.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('sharefilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('shareXfilebutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="shareXfilebutton<?php echo $ConvertGuiCounter1; ?>" name="shareXfilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('sharefilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('shareXfilebutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($AllowUserVirusScan) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
<img id="scanfilebutton<?php echo $ConvertGuiCounter1; ?>" name="scanfilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/scan.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfileXbutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="scanfileXbutton<?php echo $ConvertGuiCounter1; ?>" name="scanfileXbutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfileXbutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<a style="float:left;"> | </a>
|
||||
<img id="archfileButton<?php echo $ConvertGuiCounter1; ?>" name="archfileButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/archive.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="archfileXButton<?php echo $ConvertGuiCounter1; ?>" name="archfileXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
|
||||
<?php if (in_array($extension, $PDFWorkArr)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="docscanButton<?php echo $ConvertGuiCounter1; ?>" name="docscanButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/docscan.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="docscanXButton<?php echo $ConvertGuiCounter1; ?>" name="docscanXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ArchiveArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="archiveButton<?php echo $ConvertGuiCounter1; ?>" name="archiveButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/convert.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="archiveXButton<?php echo $ConvertGuiCounter1; ?>" name="archiveXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DocumentArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="documentButton<?php echo $ConvertGuiCounter1; ?>" name="documentButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/document.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('docOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="documentXButton<?php echo $ConvertGuiCounter1; ?>" name="documentXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('docOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $SpreadsheetArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="spreadsheetButton<?php echo $ConvertGuiCounter1; ?>" name="spreadsheetButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/spreadsheet.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>" name="spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $PresentationArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="presentationButton<?php echo $ConvertGuiCounter1; ?>" name="presentationButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/presentation.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="presentationXButton<?php echo $ConvertGuiCounter1; ?>" name="presentationXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ImageArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="imageButton<?php echo $ConvertGuiCounter1; ?>" name="imageButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/photo.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="imageXButton<?php echo $ConvertGuiCounter1; ?>" name="imageXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $MediaArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="mediaButton<?php echo $ConvertGuiCounter1; ?>" name="mediaButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/stream.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="mediaXButton<?php echo $ConvertGuiCounter1; ?>" name="mediaXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $VideoArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="videoButton<?php echo $ConvertGuiCounter1; ?>" name="videoButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/stream.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="videoXButton<?php echo $ConvertGuiCounter1; ?>" name="videoXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $StreamArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="streamButton<?php echo $ConvertGuiCounter1; ?>" name="streamButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/stream.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="streamXButton<?php echo $ConvertGuiCounter1; ?>" name="streamXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DrawingArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="drawingButton<?php echo $ConvertGuiCounter1; ?>" name="drawingButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/convert.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="drawingXButton<?php echo $ConvertGuiCounter1; ?>" name="drawingXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ModelArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="modelButton<?php echo $ConvertGuiCounter1; ?>" name="modelButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/convert.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="modelXButton<?php echo $ConvertGuiCounter1; ?>" name="modelXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<div id='archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Архівуйте цей файл</strong></p>
|
||||
<p>Вкажіть ім'я файлу: <input type="text" id='userarchfilefilename<?php echo $ConvertGuiCounter1; ?>' name='userarchfilefilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='archfileextension<?php echo $ConvertGuiCounter1; ?>' name='archfileextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="zip">Формат</option>
|
||||
<option value="zip">Zip</option>
|
||||
<option value="rar">Rar</option>
|
||||
<option value="tar">Tar</option>
|
||||
<option value="7z">7z</option>
|
||||
</select></p>
|
||||
<input type="submit" id="archfileSubmit<?php echo $ConvertGuiCounter1; ?>" name="archfileSubmit<?php echo $ConvertGuiCounter1; ?>" value='Архівний файл' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#archfileSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
archive:'<?php echo $File; ?>',
|
||||
filesToArchive:'<?php echo $File; ?>',
|
||||
archextension:document.getElementById('archfileextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userfilename:document.getElementById('userarchfilefilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userarchfilefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archfileextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userarchfilefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archfileextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
|
||||
<?php if ($AllowUserShare) { ?>
|
||||
<div id='sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Поділіться цим файлом</strong></p>
|
||||
<p id='sharelinkStatus<?php echo $ConvertGuiCounter1; ?>' name='sharelinkStatus<?php echo $ConvertGuiCounter1; ?>'>Статус посилання: <i>Не створено</i></p>
|
||||
<p id='shareclipStatus<?php echo $ConvertGuiCounter1; ?>' name='shareclipStatus<?php echo $ConvertGuiCounter1; ?>'>Статус буфера обміну: <i>Не скопійовано</i></p>
|
||||
<p id='sharelinkURL<?php echo $ConvertGuiCounter1; ?>' name='sharelinkURL<?php echo $ConvertGuiCounter1; ?>'>Посилання на файл: <i>Не створено</i></p>
|
||||
|
||||
<input type="submit" id="sharegeneratebutton<?php echo $ConvertGuiCounter1; ?>" name="sharegeneratebutton<?php echo $ConvertGuiCounter1; ?>" value='Створіть посилання та скопіюйте в буфер обміну' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<input type="submit" id="sharecopybutton<?php echo $ConvertGuiCounter1; ?>" name="sharecopybutton<?php echo $ConvertGuiCounter1; ?>" value='Створити посилання' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#sharegeneratebutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $File; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('sharelinkStatus<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'Статус посилання: <i>Згенеровано</i>';
|
||||
document.getElementById('shareclipStatus<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'Статус буфера обміну: <i>Скопійовано</i>';
|
||||
document.getElementById('sharelinkURL<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'Посилання на файл: <i><?php echo $FullURL.'/DATA/'.$SesHash3.'/'.$File; ?></i>';
|
||||
copy_share_link("<?php echo $FullURL.'/DATA/'.$SesHash3.'/'.$File; ?>");
|
||||
alert("<?php echo $Alert2; ?>"); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert3; ?>"); } }); });
|
||||
$('#sharecopybutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $File; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('sharelinkStatus<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'Статус посилання: <i>Згенеровано</i>';
|
||||
document.getElementById('sharelinkURL<?php echo $ConvertGuiCounter1; ?>').innerHTML = 'Посилання на файл: <i><?php echo $FullURL.'/DATA/'.$SesHash3.'/'.$File; ?></i>'; },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert3; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if ($AllowUserVirusScan) { ?>
|
||||
<div id='scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Скануйте цей файл на наявність вірусів</strong></p>
|
||||
<input type="submit" id="scancorebutton<?php echo $ConvertGuiCounter1; ?>" name="scancorebutton<?php echo $ConvertGuiCounter1; ?>" value='Сканувати файл за допомогою ScanCore' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<input type="submit" id="clamscanbutton<?php echo $ConvertGuiCounter1; ?>" name="clamscanbutton<?php echo $ConvertGuiCounter1; ?>" value='Скануйте файл за допомогою ClamAV' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<input type="submit" id="scanallbutton<?php echo $ConvertGuiCounter1; ?>" name="scanallbutton<?php echo $ConvertGuiCounter1; ?>" value='Скануйте файл за допомогою ScanCore & ClamAV' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#scancorebutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:'scancore',
|
||||
filesToScan:'<?php echo $File; ?>' },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); });
|
||||
$('#clamscanbutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:'all',
|
||||
filesToScan:'<?php echo $File; ?>' },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); });
|
||||
$('#scanallbutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:'all',
|
||||
filesToScan:'<?php echo $File; ?>' },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $PDFWorkArr)) {
|
||||
?>
|
||||
<div id='pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Виконайте оптичне розпізнавання символів у цьому файлі</strong></p>
|
||||
<p>Вкажіть ім'я файлу: <input type="text" id='userpdffilename<?php echo $ConvertGuiCounter1; ?>' name='userpdffilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='pdfmethod<?php echo $ConvertGuiCounter1; ?>' name='pdfmethod<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="0">Метод</option>
|
||||
<option value="1">Метод 1 (Просто)</option>
|
||||
<option value="2">Метод 2 (Розширений)</option>
|
||||
</select>
|
||||
<select id='pdfextension<?php echo $ConvertGuiCounter1; ?>' name='pdfextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="pdf">Формат</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
<option value="doc">Doc</option>
|
||||
<option value="docx">Docx</option>
|
||||
<option value="rtf">Rtf</option>
|
||||
<option value="txt">Txt</option>
|
||||
<option value="odt">Odt</option>
|
||||
</select></p>
|
||||
<p><input type="submit" id='pdfconvertSubmit<?php echo $ConvertGuiCounter1; ?>' name='pdfconvertSubmit<?php echo $ConvertGuiCounter1; ?>' value='Перетворити в документ' onclick="toggle_visibility('loadingCommandDiv');"></p>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#pdfconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
pdfworkSelected:'<?php echo $File; ?>',
|
||||
method:document.getElementById('pdfmethod<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
pdfextension:document.getElementById('pdfextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userpdfconvertfilename:document.getElementById('userpdffilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userpdffilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('pdfextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userpdffilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('pdfextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ArchiveArray)) {
|
||||
?>
|
||||
<div id='archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Перетворіть цей архів</strong></p>
|
||||
<p>Вкажіть ім'я файлу: <input type="text" id='userarchivefilename<?php echo $ConvertGuiCounter1; ?>' name='userarchivefilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='archiveextension<?php echo $ConvertGuiCounter1; ?>' name='archiveextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="zip">Формат</option>
|
||||
<option value="zip">Zip</option>
|
||||
<option value="rar">Rar</option>
|
||||
<option value="tar">Tar</option>
|
||||
<option value="7z">7z</option>
|
||||
</select></p>
|
||||
<input type="submit" id="archiveconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="archiveconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Архівні файли' onclick="toggle_visibility('loadingCommandDiv'); display:none;">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#archiveconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('archiveextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userarchivefilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userarchivefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archiveextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userarchivefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archiveextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DocumentArray)) {
|
||||
?>
|
||||
<div id='docOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='docOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Перетворіть цей документ</strong></p>
|
||||
<p>Вкажіть ім'я файлу: <input type="text" id='userdocfilename<?php echo $ConvertGuiCounter1; ?>' name='userdocfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='docextension<?php echo $ConvertGuiCounter1; ?>' name='docextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="txt">Формат</option>
|
||||
<option value="doc">Doc</option>
|
||||
<option value="docx">Docx</option>
|
||||
<option value="rtf">Rtf</option>
|
||||
<option value="txt">Txt</option>
|
||||
<option value="odt">Odt</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
</select></p>
|
||||
<input type="submit" id="docconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="docconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Перетворити документ' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#docconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('docextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userdocfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userdocfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('docextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userdocfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('docextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $SpreadsheetArray)) {
|
||||
?>
|
||||
<div id='spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Перетворіть цю електронну таблицю</strong></p>
|
||||
<p>Вкажіть ім'я файлу: <input type="text" id='userspreadfilename<?php echo $ConvertGuiCounter1; ?>' name='userspreadfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='spreadextension<?php echo $ConvertGuiCounter1; ?>' name='spreadextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="ods">Формат</option>
|
||||
<option value="xls">Xls</option>
|
||||
<option value="xlsx">Xlsx</option>
|
||||
<option value="ods">Ods</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
</select></p>
|
||||
<input type="submit" id="spreadconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="spreadconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Перетворити електронну таблицю' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#spreadconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('spreadextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('spreadextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('spreadextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); }
|
||||
}); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $PresentationArray)) {
|
||||
?>
|
||||
<div id='presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Перетворіть цю презентацію</strong></p>
|
||||
<p>Вкажіть ім'я файлу: <input type="text" id='userpresentationfilename<?php echo $ConvertGuiCounter1; ?>' name='userpresentationfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='presentationextension<?php echo $ConvertGuiCounter1; ?>' name='presentationextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="odp">Формат</option>
|
||||
<option value="pages">Pages</option>
|
||||
<option value="pptx">Pptx</option>
|
||||
<option value="ppt">Ppt</option>
|
||||
<option value="xps">Xps</option>
|
||||
<option value="potx">Potx</option>
|
||||
<option value="pot">Pot</option>
|
||||
<option value="ppa">Ppa</option>
|
||||
<option value="odp">Odp</option>
|
||||
</select></p>
|
||||
<input type="submit" id="presentationconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="presentationconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Конвертувати презентацію' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#presentationconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('presentationextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userpresentationfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userpresentationfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('presentationextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('presentationextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $MediaArray)) {
|
||||
?>
|
||||
<div id='audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Перетворіть цей аудіо</strong></p>
|
||||
<p>Вкажіть ім'я файлу: <input type="text" id='useraudiofilename<?php echo $ConvertGuiCounter1; ?>' name='useraudiofilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='audioextension<?php echo $ConvertGuiCounter1; ?>' name='audioextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="mp3">Формат</option>
|
||||
<option value="mp2">Mp2</option>
|
||||
<option value="mp3">Mp3</option>
|
||||
<option value="wav">Wav</option>
|
||||
<option value="wma">Wma</option>
|
||||
<option value="flac">Flac</option>
|
||||
<option value="ogg">Ogg</option>
|
||||
</select></p>
|
||||
<input type="submit" id="audioconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="audioconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Конвертувати аудіо' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#audioconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('audioextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('useraudiofilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('useraudiofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('audioextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('useraudiofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('audioextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $VideoArray)) {
|
||||
?>
|
||||
<div id='Конвертувати відео<?php echo $ConvertGuiCounter1; ?>' name='videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Перетворіть це відео</strong></p>
|
||||
<p>Вкажіть ім'я файлу: <input type="text" id='uservideofilename<?php echo $ConvertGuiCounter1; ?>' name='uservideofilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='videoextension<?php echo $ConvertGuiCounter1; ?>' name='videoextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="mp4">Формат</option>
|
||||
<option value="3gp">3gp</option>
|
||||
<option value="mkv">Mkv</option>
|
||||
<option value="avi">Avi</option>
|
||||
<option value="mp4">Mp4</option>
|
||||
<option value="flv">Flv</option>
|
||||
<option value="mpeg">Mpeg</option>
|
||||
<option value="wmv">Wmv</option>
|
||||
<option value="mov">Mov</option>
|
||||
</select></p>
|
||||
<input type="submit" id="videoconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="videoconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Конвертувати відео' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#videoconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('videoextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('uservideofilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('uservideofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('videoextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('uservideofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('videoextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $StreamArray)) {
|
||||
?>
|
||||
<div id='streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Перетворити цей потік</strong></p>
|
||||
<p>Вкажіть ім'я файлу: <input type="text" id='userstreamfilename<?php echo $ConvertGuiCounter1; ?>' name='userstreamfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='streamextension<?php echo $ConvertGuiCounter1; ?>' name='streamextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="mp4">Format</option>
|
||||
<option value="3gp">3gp</option>
|
||||
<option value="mkv">Mkv</option>
|
||||
<option value="avi">Avi</option>
|
||||
<option value="mp4">Mp4</option>
|
||||
<option value="flv">Flv</option>
|
||||
<option value="mpeg">Mpeg</option>
|
||||
<option value="wmv">Wmv</option>
|
||||
<option value="mov">Mov</option>
|
||||
</select></p>
|
||||
<input type="submit" id="streamconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="streamconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Перетворити потік' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#streamconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('streamextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userstreamfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userstreamfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('streamextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userstreamfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('streamextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ModelArray)) {
|
||||
?>
|
||||
<div id='modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Перетворіть цю тривимірну модель</strong></p>
|
||||
<p>Вкажіть ім'я файлу: <input type="text" id='usermodelfilename<?php echo $ConvertGuiCounter1; ?>' name='usermodelfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='modelextension<?php echo $ConvertGuiCounter1; ?>' name='modelextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="3ds">Формат</option>
|
||||
<option value="3ds">3ds</option>
|
||||
<option value="collada">Collada</option>
|
||||
<option value="obj">Obj</option>
|
||||
<option value="off">Off</option>
|
||||
<option value="ply">Ply</option>
|
||||
<option value="stl">Stl</option>
|
||||
<option value="ptx">Ptx</option>
|
||||
<option value="dxf">Dxf</option>
|
||||
<option value="u3d">U3d</option>
|
||||
<option value="vrml">Vrml</option>
|
||||
</select></p>
|
||||
<input type="submit" id="modelconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="modelconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Перетворити модель' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#modelconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('modelextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('usermodelfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('usermodelfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('modelextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('usermodelfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('modelextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DrawingArray)) {
|
||||
?>
|
||||
<div id='drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Перетворіть цей технічний малюнок або векторний файл</strong></p>
|
||||
<p>Вкажіть ім'я файлу: <input type="text" id='userdrawingfilename<?php echo $ConvertGuiCounter1; ?>' name='userdrawingfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='drawingextension<?php echo $ConvertGuiCounter1; ?>' name='drawingextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="jpg">Формат</option>
|
||||
<option value="svg">Svg</option>
|
||||
<option value="dxf">Dxf</option>
|
||||
<option value="vdx">Vdx</option>
|
||||
<option value="fig">Fig</option>
|
||||
<option value="jpg">Jpg</option>
|
||||
<option value="png">Png</option>
|
||||
<option value="bmp">Bmp</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
</select></p>
|
||||
<input type="submit" id="drawingconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="drawingconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='Перетворити малюнок' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#drawingconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('drawingextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userdrawingfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('drawingfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('drawingextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userdrawingfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('drawingextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ImageArray)) {
|
||||
?>
|
||||
<div id='imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>Перетворіть це зображення</strong></p>
|
||||
<p>Вкажіть ім'я файлу: <input type="text" id='userphotofilename<?php echo $ConvertGuiCounter1; ?>' name='userphotofilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='photoextension<?php echo $ConvertGuiCounter1; ?>' name='photoextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="jpg">Формат</option>
|
||||
<option value="jpg">Jpg</option>
|
||||
<option value="bmp">Bmp</option>
|
||||
<option value="webp">Webp</option>
|
||||
<option value="png">Png</option>
|
||||
<option value="cin">Cin</option>
|
||||
<option value="dds">Dds</option>
|
||||
<option value="dib">Dib</option>
|
||||
<option value="flif">Flif</option>
|
||||
<option value="avif">Avif</option>
|
||||
</select></p>
|
||||
<p>Ширина висота: </p>
|
||||
<p><input type="number" size="4" value="0" id='width<?php echo $ConvertGuiCounter1; ?>' name='width<?php echo $ConvertGuiCounter1; ?>' min="0" max="10000"> X <input type="number" size="4" value="0" id="height<?php echo $ConvertGuiCounter1; ?>" name="height<?php echo $ConvertGuiCounter1; ?>" min="0" max="10000"></p>
|
||||
<p>Поворот: <input type="number" size="3" id='rotate<?php echo $ConvertGuiCounter1; ?>' name='rotate<?php echo $ConvertGuiCounter1; ?>' value="0" min="0" max="359"></p>
|
||||
<input type="submit" id='convertPhotoSubmit<?php echo $ConvertGuiCounter1; ?>' name='convertPhotoSubmit<?php echo $ConvertGuiCounter1; ?>' value='Перетворити зображення' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#convertPhotoSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
rotate:$('#rotate<?php echo $ConvertGuiCounter1; ?>').val(),
|
||||
width:$('#width<?php echo $ConvertGuiCounter1; ?>').val(),
|
||||
height:$('#height<?php echo $ConvertGuiCounter1; ?>').val(),
|
||||
extension:document.getElementById('photoextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userphotofilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userphotofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('photoextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userphotofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('photoextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<hr />
|
||||
<?php } ?>
|
||||
</div>
|
10
Languages/uk/footer.php
Normal file
10
Languages/uk/footer.php
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?php if (!isset($ShowFinePrint)) $ShowFinePrint = TRUE;
|
||||
if ($ShowFinePrint) { ?>
|
||||
<div id="footer" name="footer" style="max-width:1000px; margin-left:auto; margin-right:auto; text-align:center;">
|
||||
<p>Ознайомтеся з нашими <a href="<?php echo $TOSURL; ?>" target="_blank" rel="noopener noreferrer">Умовами надання послуг</a>
|
||||
та <a href="<?php echo $PPURL; ?>" target="_blank" rel="noopener noreferrer">Політикою конфіденційності</a></p>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</body>
|
||||
</html>
|
20
Languages/uk/header.php
Normal file
20
Languages/uk/header.php
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?php if (!isset($ApplicationName)) $ApplicationName = 'HRConvert2';
|
||||
if (!isset($ApplicationTitle)) $ApplicationTitle = 'Перетворюйте будь-що!';
|
||||
if (!isset($Font)) $Font = 'Arial'; ?>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="shortcut icon" href="Resources/favicon.ico"/>
|
||||
<link rel="stylesheet" href="Resources/dropzone.css"/>
|
||||
<link rel="stylesheet" href="Resources/HRConvert2.css"/>
|
||||
<script type="text/javascript" src="Resources/HRC2-Functions.js"></script>
|
||||
<script type="text/javascript">var dropzoneText = 'Натисніть, торкніться або перекиньте файли сюди, щоб завантажити.';</script>
|
||||
<script type="text/javascript" src="Resources/dropzone.js"></script>
|
||||
<style>
|
||||
body {
|
||||
font-family: <?php echo $Font; ?>; }
|
||||
<?php if (isset($ButtonCode)) echo $ButtonCode; ?>
|
||||
</style>
|
||||
<title><?php echo $ApplicationName; ?> - <?php echo $ApplicationTitle; ?></title>
|
||||
</head>
|
||||
|
21
Languages/uk/index.html
Normal file
21
Languages/uk/index.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en-US">
|
||||
<title>HRConvert2 | HRConvert2 Authentication</title>
|
||||
<body>
|
||||
<div id="outer" align="center"><h1>Configuring HRConvert2 ...</h1>
|
||||
|
||||
<div id="inner" style="position:absolute; top:50%; left:50%; height:10em; margin-top:-5em; margin-right:5em;"><strong>Please wait . . .</strong></div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
|
||||
// Set the URL below to the page the user is sent to if their screensize is UNDER the specified number of pixels.
|
||||
if (screen.width <= 699) { document.location = "/HRProprietary/HRConvert2/convertCore.php"; }
|
||||
// / Set the URL below to the page the user is sent to if their screensize is OVER the specified number of pixels.
|
||||
if (screen.width >= 700) { document.location = "/HRProprietary/HRConvert2/convertCore.php"; }
|
||||
|
||||
</script>
|
||||
|
||||
<meta id="IfNothingHappens" http-equiv="refresh" content="5"; url="/HRProprietary/HRConvert2/convertCore.php" >
|
||||
|
||||
</body>
|
||||
</html>
|
224
Languages/zh/convertGui1.php
Normal file
224
Languages/zh/convertGui1.php
Normal file
|
@ -0,0 +1,224 @@
|
|||
<?php
|
||||
if (!isset($ApplicationName)) $ApplicationName = 'HRConvert2';
|
||||
if (!isset($ApplicationTitle)) $ApplicationTitle = '转换任何东西!';
|
||||
if (!isset($CoreLoaded)) die('错误!!! '.$ApplicationName.'-2, 此文件无法处理您的请求! 请改为将您的文件提交到 convertCore.php!');
|
||||
if (!isset($ShowFinePrint)) $ShowFinePrint = TRUE;
|
||||
?>
|
||||
<body>
|
||||
<?php
|
||||
if (!isset($_GET['noGui'])) { ?>
|
||||
<div id="header-text" style="max-width:1000px; margin-left:auto; margin-right:auto; text-align:center;">
|
||||
<h1><?php echo $ApplicationName; ?></h1>
|
||||
<h3>在线文件转换器、提取器、压缩器</h3>
|
||||
<hr />
|
||||
</div>
|
||||
<div id="main" align="center">
|
||||
<div id="overview" style="max-width:1000px; text-align:left; margin:25px;">
|
||||
<p id="info" style="display:block;"><a href='https://github.com/zelon88/HRConvert2'>HRConvert2</a> 基于 <a href='https://github.com/zelon88'>Zelon88</a> 的开源应用程序 <?php echo $ApplicationName; ?>。 它可以在不跟踪网络用户或侵犯您的知识产权的情况下转换文件。</p>
|
||||
<button id="more-info-button" class="info-button" onclick="toggle_visibility('more-info'); toggle_visibility('more-info-button'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('less-info-button');" style="text-align:center; display:block; margin-left:auto; margin-right:auto;"><i>更多信息。。。</i></button>
|
||||
<button id="less-info-button" class="info-button" onclick="toggle_visibility('more-info'); toggle_visibility('more-info-button'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('less-info-button');" style="text-align:center; display:none; margin-left:auto; margin-right:auto;"><i>少信息。。。</i></button>
|
||||
<div id="more-info" style="display:none;">
|
||||
<hr />
|
||||
<p>所有用户提供的数据都会自动删除,因此您无需担心在使用我们的服务时会没收您的个人信息或财产。</p>
|
||||
<p><?php echo $ApplicationName; ?> 支持 77 种不同的文件格式,包括文档、电子表格、图像、媒体、三维模型、矢量图、矢量文件、档案、磁盘图像等。</p>
|
||||
<button id="supported-formats-show-button" class="info-button" onclick="toggle_visibility('supported-formats'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('supported-formats-hide-button');" style="text-align:center; display:none; margin-left:auto; margin-right:auto;"><i>查看支持的格式。。。</i></button>
|
||||
<button id="supported-formats-hide-button" class="info-button" onclick="toggle_visibility('supported-formats'); toggle_visibility('supported-formats-show-button');
|
||||
toggle_visibility('supported-formats-hide-button');" style="text-align:center; display:none; margin-left:auto; margin-right:auto;"><i>隐藏支持的格式。。。</i></button>
|
||||
<br>
|
||||
<div id="supported-formats" class="supported-formats" style="margin-left:33%; display:none;">
|
||||
<h3>支持的格式</h3>
|
||||
<hr />
|
||||
<strong>音频格式</strong>
|
||||
<p><i>通过应用程序接口支持特定比特率。</i></p>
|
||||
<ol>
|
||||
<li>Mp2</li>
|
||||
<li>Mp3</li>
|
||||
<li>Avi</li>
|
||||
<li>Flac</li>
|
||||
<li>Ogg</li>
|
||||
<li>Wav</li>
|
||||
<li>Wma</li>
|
||||
<li>M4a</li>
|
||||
<li>M4p</li>
|
||||
</ol>
|
||||
<strong>视频格式</strong>
|
||||
<ol>
|
||||
<li>3gp</li>
|
||||
<li>Mkv</li>
|
||||
<li>Avi</li>
|
||||
<li>Mp4</li>
|
||||
<li>Flv</li>
|
||||
<li>Mpeg</li>
|
||||
<li>Wmv</li>
|
||||
<li>Mov</li>
|
||||
<li>M4v</li>
|
||||
</ol>
|
||||
<strong>流格式</strong>
|
||||
<ol>
|
||||
<li>m3u8</li>
|
||||
</ol>
|
||||
<strong>文件格式</strong>
|
||||
<ol>
|
||||
<li>Doc</li>
|
||||
<li>Docx</li>
|
||||
<li>Txt</li>
|
||||
<li>Rtf</li>
|
||||
<li>Odt</li>
|
||||
<li>Pdf</li>
|
||||
</ol>
|
||||
<strong>电子表格格式</strong>
|
||||
<ol>
|
||||
<li>Xls</li>
|
||||
<li>Xlsx</li>
|
||||
<li>Ods</li>
|
||||
</ol>
|
||||
<strong>演示格式</strong>
|
||||
<ol>
|
||||
<li>Pages</li>
|
||||
<li>Pptx</li>
|
||||
<li>Ppt</li>
|
||||
<li>Xps</li>
|
||||
<li>Pot</li>
|
||||
<li>Potx</li>
|
||||
<li>Ppa</li>
|
||||
<li>Ppt</li>
|
||||
<li>Pptx</li>
|
||||
<li>Odp</li>
|
||||
</ol>
|
||||
<strong>存档格式</strong>
|
||||
<p><i>可以创建、转换和取消归档以下任何内容。。。</i></p>
|
||||
<ol>
|
||||
<li>Zip</li>
|
||||
<li>Rar</li>
|
||||
<li>Tar</li>
|
||||
<li>Tar.Bz2</li>
|
||||
<li>7z</li>
|
||||
</ol>
|
||||
<strong>磁盘映像格式</strong>
|
||||
<p><i>可以提取以下任何内容或转换为支持的存档格式。。。</i></p>
|
||||
<ol>
|
||||
<li>Iso</li>
|
||||
<li>Vhd</li>
|
||||
<li>Vdi</li>
|
||||
</ol>
|
||||
<strong>图像格式</strong>
|
||||
<p><i>支持通过图形用户界面和应用程序界面调整大小和旋转。</i></p>
|
||||
<p><i>支持通过应用程序接口禁用保持纵横比。</i></p>
|
||||
<p><i>图像转换操作支持以下输入格式。。。</i></p>
|
||||
<ol>
|
||||
<li>Jpg</li>
|
||||
<li>Jpeg</li>
|
||||
<li>Png</li>
|
||||
<li>Bmp</li>
|
||||
<li>Webp</li>
|
||||
<li>Gif</li>
|
||||
<li>Cin</li>
|
||||
<li>Dds</li>
|
||||
<li>Dib</li>
|
||||
<li>Flif</li>
|
||||
<li>Avif</li>
|
||||
<li>Crw</li>
|
||||
<li>Dcr</li>
|
||||
<li>Gplt</li>
|
||||
<li>Nef</li>
|
||||
<li>Orf</li>
|
||||
<li>Ora</li>
|
||||
<li>Sct</li>
|
||||
<li>Sfw</li>
|
||||
<li>Xcf</li>
|
||||
<li>Xwd</li>
|
||||
<li>Avif</li>
|
||||
<li>Ico</li>
|
||||
</ol>
|
||||
<p><i>图像转换操作支持以下输出格式。。。</i></p>
|
||||
<ol>
|
||||
<li>Jpg</li>
|
||||
<li>Jpeg</li>
|
||||
<li>Png</li>
|
||||
<li>Bmp</li>
|
||||
<li>Webp</li>
|
||||
<li>Cin</li>
|
||||
<li>Dds</li>
|
||||
<li>Dib</li>
|
||||
<li>Flif</li>
|
||||
<li>Avif</li>
|
||||
</ol>
|
||||
<strong>三维模型格式</strong>
|
||||
<ol>
|
||||
<li>3ds</li>
|
||||
<li>Obj</li>
|
||||
<li>Collada</li>
|
||||
<li>Off</li>
|
||||
<li>Ply</li>
|
||||
<li>Stl</li>
|
||||
<li>Ptx</li>
|
||||
<li>Dxf</li>
|
||||
<li>U3d</li>
|
||||
<li>Vrml</li>
|
||||
</ol>
|
||||
<strong>绘图格式</strong>
|
||||
<p><i>可以将绘图文件输出为图像格式。</i></p>
|
||||
<p><i>可以在以下任何一种之间转换。。。</i></p>
|
||||
<ol>
|
||||
<li>Svg</li>
|
||||
<li>Dxf</li>
|
||||
<li>Fig</li>
|
||||
<li>Vdx</li>
|
||||
</ol>
|
||||
<strong>光学字符识别支持</strong>
|
||||
<p><i>光学字符识别操作支持以下输入格式。。。</i></p>
|
||||
<ol>
|
||||
<li>Jpg</li>
|
||||
<li>Jpeg</li>
|
||||
<li>Png</li>
|
||||
<li>Bmp</li>
|
||||
<li>Pdf</li>
|
||||
<li>Gif</li>
|
||||
</ol>
|
||||
<p><i>光学字符识别操作支持以下输出格式。。。</i></p>
|
||||
<ol>
|
||||
<li>Doc</li>
|
||||
<li>Docx</li>
|
||||
<li>Txt</li>
|
||||
<li>Rtf</li>
|
||||
<li>Odt</li>
|
||||
<li>Pdf</li>
|
||||
</ol>
|
||||
</div>
|
||||
</div>
|
||||
<hr />
|
||||
</div>
|
||||
<?php } ?>
|
||||
<div align="center">
|
||||
<div id="call-to-action1" style="max-width:1000px; text-align:center;">
|
||||
<p>通过单击、点击或将文件拖放到下面的框中来选择文件。</p>
|
||||
</div>
|
||||
</div>
|
||||
<div align="center">
|
||||
<div id="dropzone" style="max-height:1000px; max-width:1000px; margin:25px;">
|
||||
<form action="convertCore.php" class="dropzone" id="filesToUpload" name="filesToUpload" method="post" enctype="multipart/form-data">
|
||||
<input type="hidden" id="token1" name="Token1" value="<?php echo $Token1; ?>">
|
||||
<input type="hidden" id="token2" name="Token2" value="<?php echo $Token2; ?>">
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
<div align="center">
|
||||
<div id="continue" style="max-width:1000px; text-align:center;">
|
||||
<form action="convertCore.php?showFiles=1<?php if (isset($_GET['noGui'])) echo '&noGui=TRUE'; if (isset($_GET['language'])) echo '&language='.$_GET['language']; ?>" method="post">
|
||||
<input type="hidden" id="token1" name="Token1" value="<?php echo $Token1; ?>">
|
||||
<input type="hidden" id="token2" name="Token2" value="<?php echo $Token2; ?>">
|
||||
<input type="submit" id="continue-button" class="info-button" value="继续。。。">
|
||||
</form>
|
||||
<br />
|
||||
<?php if (!isset($_GET['noGui'])) { ?>
|
||||
<hr />
|
||||
<?php } ?>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<?php if (!isset($_GET['noGui'])) { ?>
|
||||
</div>
|
||||
<?php } ?>
|
984
Languages/zh/convertGui2.php
Normal file
984
Languages/zh/convertGui2.php
Normal file
|
@ -0,0 +1,984 @@
|
|||
<?php
|
||||
$Alert = '无法转换此文件! 尝试更改名称。';
|
||||
$Alert1 = '无法对此文件执行病毒扫描!';
|
||||
$Alert2 = '文件链接已复制到剪贴板!';
|
||||
$Alert3 = '手术失败!';
|
||||
$FCPlural1 = '';
|
||||
if (!is_numeric($FileCount)) $FileCount = 0;
|
||||
if ($FileCount === 0) $FCPlural1 = '您尚未将任何有效文件上传到 ';
|
||||
else $FCPlural1 = '您已将 '.$FileCount.' 个有效文件上传到 ';
|
||||
if (!isset($ApplicationName)) $ApplicationName = 'HRConvert2';
|
||||
if (!isset($ApplicationTitle)) $ApplicationTitle = '转换任何东西!';
|
||||
if (!isset($CoreLoaded)) die('错误!!! '.$ApplicationName.'-2, 此文件无法处理您的请求! 请改为将您的文件提交到 convertCore.php!');
|
||||
if (!isset($ShowFinePrint)) $ShowFinePrint = TRUE;
|
||||
?>
|
||||
<body>
|
||||
<script type="text/javascript" src="Resources/jquery-3.6.0.min.js"></script>
|
||||
<div id="header-text" style="max-width:1000px; margin-left:auto; margin-right:auto; text-align:center;">
|
||||
<?php if (!isset($_GET['noGui'])) { ?><h1><?php echo $ApplicationName; ?></h1>
|
||||
<hr /><?php } ?>
|
||||
<h3>文件转换选项</h3>
|
||||
<p><?php echo $FCPlural1.$ApplicationName; ?>.</p>
|
||||
<p>您的文件现在可以使用以下选项进行转换。</p>
|
||||
</div>
|
||||
|
||||
<div id='utility' align="center">
|
||||
<p><img id='loadingCommandDiv' name='loadingCommandDiv' src='<?php echo $PacmanLoc; ?>' style="max-width:64px; max-height:64px; display:none;"/></p>
|
||||
<a id='downloadTarget' href='about:blank' style="display: none;" download></a>
|
||||
</div>
|
||||
|
||||
<div id="compressAll" name="compressAll" style="max-width:1000px; margin-left: auto; margin-right: auto; text-align:center;">
|
||||
<button id="backButton" name="backButton" style="width:50px;" class="info-button" onclick="window.history.back();">←</button>
|
||||
<button id="refreshButton" name="refreshButton" style="width:50px;" class="info-button" onclick="javascript:location.reload(true);">↻</button>
|
||||
<br /> <br />
|
||||
<button id="scandocMoreOptionsButton" name="scandocMoreOptionsButton" class="info-button" onclick="toggle_visibility('compressAllOptions');">批量文件选项</button>
|
||||
<div id="compressAllOptions" name="compressAllOptions" align="center" style="display:none;">
|
||||
<?php if ($AllowUserVirusScan) { ?>
|
||||
<hr style='width: 50%;' />
|
||||
<p><strong>扫描所有文件以查找病毒</strong></p>
|
||||
<p>使用 ClamAV 扫描: <input type="checkbox" id="clamscanall" value="clamscanall" name="clamScan" checked></p>
|
||||
<p>使用 ScanCore 扫描: <input type="checkbox" id="scancoreall" value="scancoreall" name="phpavScan" checked></p>
|
||||
<p><input type="submit" id="scanAllButton" name="scanAllButton" class="info-button" value='扫描所有' onclick="toggle_visibility('loadingCommandDiv');"></p>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#scanAllButton').click(function() {
|
||||
var scanfiles = <?php echo json_encode($Files); ?>;
|
||||
var scanType = 'all';
|
||||
if($("input#clamscanall").is(":checked")) {
|
||||
var scanType = 'clamav'; }
|
||||
if($("input#scancoreall").is(":checked")) {
|
||||
var scanType = 'scancore'; }
|
||||
if($("input#clamscanall").is(":checked") && $("input#scancoreall").is(":checked")) {
|
||||
var scanType = 'all'; }
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:scanType,
|
||||
filesToScan:scanfiles },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); }); });
|
||||
</script>
|
||||
<?php } ?>
|
||||
<hr style='width: 50%;' />
|
||||
<p><strong>压缩和下载所有文件</strong></p>
|
||||
<p>指定文件名: <input type="text" id='userarchallfilename' name='userarchallfilename' value='HRConvert2_Files-<?php echo $Date; ?>'></p>
|
||||
<select id='archallextension' name='archallextension'>
|
||||
<option value="zip">文件格式</option>
|
||||
<option value="zip">Zip</option>
|
||||
<option value="rar">Rar</option>
|
||||
<option value="tar">Tar</option>
|
||||
<option value="7z">7z</option>
|
||||
</select>
|
||||
<input type="submit" id="archallSubmit" name="archallSubmit" class="info-button" value='压缩和下载' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#archallSubmit').click(function() {
|
||||
var extension = document.getElementById('archallextension').value;
|
||||
if (extension === "") {
|
||||
extension = 'zip'; }
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
archive:'1',
|
||||
filesToArchive:<?php echo json_encode($Files); ?>,
|
||||
archextension:extension,
|
||||
userfilename:document.getElementById('userarchallfilename').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userarchallfilename').value+'.'+extension },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userarchallfilename').value+'.'+extension;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
<hr style='width: 50%;' />
|
||||
</div>
|
||||
</div>
|
||||
<br />
|
||||
<div style="max-width:1000px; margin-left:auto; margin-right:auto;">
|
||||
<hr />
|
||||
|
||||
<?php
|
||||
foreach ($Files as $File) {
|
||||
$extension = getExtension($ConvertTempDir.'/'.$File);
|
||||
$FileNoExt = str_replace($extension, '', $File);
|
||||
if (!in_array($extension, $ConvertArray)) continue;
|
||||
$ConvertGuiCounter1++;
|
||||
?>
|
||||
|
||||
<div id="file<?php echo $ConvertGuiCounter1; ?>" name="<?php echo $ConvertGuiCounter1; ?>">
|
||||
<p href=""><strong><?php echo $ConvertGuiCounter1; ?>.</strong> <u><?php echo $File; ?></u></p>
|
||||
<div id="buttonDiv<?php echo $ConvertGuiCounter1; ?>" name="buttonDiv<?php echo $ConvertGuiCounter1; ?>" style="height:25px;">
|
||||
|
||||
<img id="downloadfilebutton<?php echo $ConvertGuiCounter1; ?>" name="downloadfilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/download.png" style="float:left; display:block;" onclick="toggle_visibility('loadingCommandDiv');"/>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#downloadfilebutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $File; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$File; ?>";
|
||||
document.getElementById('downloadTarget').click(); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
|
||||
<?php if ($AllowUserShare) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
<img id="sharefilebutton<?php echo $ConvertGuiCounter1; ?>" name="sharefilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/link.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('sharefilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('shareXfilebutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="shareXfilebutton<?php echo $ConvertGuiCounter1; ?>" name="shareXfilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('sharefilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('shareXfilebutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<?php if ($AllowUserVirusScan) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
<img id="scanfilebutton<?php echo $ConvertGuiCounter1; ?>" name="scanfilebutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/scan.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfileXbutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="scanfileXbutton<?php echo $ConvertGuiCounter1; ?>" name="scanfileXbutton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfilebutton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('scanfileXbutton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
|
||||
<?php } ?>
|
||||
|
||||
<a style="float:left;"> | </a>
|
||||
<img id="archfileButton<?php echo $ConvertGuiCounter1; ?>" name="archfileButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/archive.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="archfileXButton<?php echo $ConvertGuiCounter1; ?>" name="archfileXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archfileXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
|
||||
<?php if (in_array($extension, $PDFWorkArr)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="docscanButton<?php echo $ConvertGuiCounter1; ?>" name="docscanButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/docscan.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="docscanXButton<?php echo $ConvertGuiCounter1; ?>" name="docscanXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('docscanXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ArchiveArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="archiveButton<?php echo $ConvertGuiCounter1; ?>" name="archiveButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/convert.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="archiveXButton<?php echo $ConvertGuiCounter1; ?>" name="archiveXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('archiveXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DocumentArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="documentButton<?php echo $ConvertGuiCounter1; ?>" name="documentButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/document.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('docOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="documentXButton<?php echo $ConvertGuiCounter1; ?>" name="documentXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('docOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('documentXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $SpreadsheetArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="spreadsheetButton<?php echo $ConvertGuiCounter1; ?>" name="spreadsheetButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/spreadsheet.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>" name="spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('spreadsheetXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $PresentationArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="presentationButton<?php echo $ConvertGuiCounter1; ?>" name="presentationButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/presentation.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="presentationXButton<?php echo $ConvertGuiCounter1; ?>" name="presentationXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('presentationXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ImageArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="imageButton<?php echo $ConvertGuiCounter1; ?>" name="imageButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/photo.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="imageXButton<?php echo $ConvertGuiCounter1; ?>" name="imageXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('imageXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $MediaArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="mediaButton<?php echo $ConvertGuiCounter1; ?>" name="mediaButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/stream.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="mediaXButton<?php echo $ConvertGuiCounter1; ?>" name="mediaXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('mediaXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $VideoArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="videoButton<?php echo $ConvertGuiCounter1; ?>" name="videoButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/stream.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="videoXButton<?php echo $ConvertGuiCounter1; ?>" name="videoXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('videoXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $StreamArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="streamButton<?php echo $ConvertGuiCounter1; ?>" name="streamButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/stream.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="streamXButton<?php echo $ConvertGuiCounter1; ?>" name="streamXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('streamXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DrawingArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="drawingButton<?php echo $ConvertGuiCounter1; ?>" name="drawingButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/convert.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="drawingXButton<?php echo $ConvertGuiCounter1; ?>" name="drawingXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('drawingXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ModelArray)) { ?>
|
||||
<a style="float:left;"> | </a>
|
||||
|
||||
<img id="modelButton<?php echo $ConvertGuiCounter1; ?>" name="modelButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/convert.png" style="float:left; display:block;"
|
||||
onclick="toggle_visibility('modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<img id="modelXButton<?php echo $ConvertGuiCounter1; ?>" name="modelXButton<?php echo $ConvertGuiCounter1; ?>" src="Resources/x.png" style="float:left; display:none;"
|
||||
onclick="toggle_visibility('modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelButton<?php echo $ConvertGuiCounter1; ?>'); toggle_visibility('modelXButton<?php echo $ConvertGuiCounter1; ?>');"/>
|
||||
<?php } ?>
|
||||
</div>
|
||||
|
||||
<div id='archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='archfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>存档此文件</strong></p>
|
||||
<p>指定文件名: <input type="text" id='userarchfilefilename<?php echo $ConvertGuiCounter1; ?>' name='userarchfilefilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='archfileextension<?php echo $ConvertGuiCounter1; ?>' name='archfileextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="zip">文件格式</option>
|
||||
<option value="zip">Zip</option>
|
||||
<option value="rar">Rar</option>
|
||||
<option value="tar">Tar</option>
|
||||
<option value="7z">7z</option>
|
||||
</select></p>
|
||||
<input type="submit" id="archfileSubmit<?php echo $ConvertGuiCounter1; ?>" name="archfileSubmit<?php echo $ConvertGuiCounter1; ?>" value='存档文件' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#archfileSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
archive:'<?php echo $File; ?>',
|
||||
filesToArchive:'<?php echo $File; ?>',
|
||||
archextension:document.getElementById('archfileextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userfilename:document.getElementById('userarchfilefilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userarchfilefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archfileextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userarchfilefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archfileextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
|
||||
<?php if ($AllowUserShare) { ?>
|
||||
<div id='sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='sharefileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>分享这个文件</strong></p>
|
||||
<p id='sharelinkStatus<?php echo $ConvertGuiCounter1; ?>' name='sharelinkStatus<?php echo $ConvertGuiCounter1; ?>'>链接状态: <i>未生成</i></p>
|
||||
<p id='shareclipStatus<?php echo $ConvertGuiCounter1; ?>' name='shareclipStatus<?php echo $ConvertGuiCounter1; ?>'>剪贴板状态: <i>未复制</i></p>
|
||||
<p id='sharelinkURL<?php echo $ConvertGuiCounter1; ?>' name='sharelinkURL<?php echo $ConvertGuiCounter1; ?>'>文件链接: <i>未生成</i></p>
|
||||
|
||||
<input type="submit" id="sharegeneratebutton<?php echo $ConvertGuiCounter1; ?>" name="sharegeneratebutton<?php echo $ConvertGuiCounter1; ?>" value='生成链接并复制到剪贴板' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<input type="submit" id="sharecopybutton<?php echo $ConvertGuiCounter1; ?>" name="sharecopybutton<?php echo $ConvertGuiCounter1; ?>" value='生成链接' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#sharegeneratebutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $File; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('sharelinkStatus<?php echo $ConvertGuiCounter1; ?>').innerHTML = '链接状态: <i>生成</i>';
|
||||
document.getElementById('shareclipStatus<?php echo $ConvertGuiCounter1; ?>').innerHTML = '剪贴板状态: <i>已复制</i>';
|
||||
document.getElementById('sharelinkURL<?php echo $ConvertGuiCounter1; ?>').innerHTML = '文件链接: <i><?php echo $FullURL.'/DATA/'.$SesHash3.'/'.$File; ?></i>';
|
||||
copy_share_link("<?php echo $FullURL.'/DATA/'.$SesHash3.'/'.$File; ?>");
|
||||
alert("<?php echo $Alert2; ?>"); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert3; ?>"); } }); });
|
||||
$('#sharecopybutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $File; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('sharelinkStatus<?php echo $ConvertGuiCounter1; ?>').innerHTML = '链接状态: <i>生成</i>';
|
||||
document.getElementById('sharelinkURL<?php echo $ConvertGuiCounter1; ?>').innerHTML = '文件链接: <i><?php echo $FullURL.'/DATA/'.$SesHash3.'/'.$File; ?></i>'; },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert3; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if ($AllowUserVirusScan) { ?>
|
||||
<div id='scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='scanfileOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>扫描此文件以查找病毒</strong></p>
|
||||
<input type="submit" id="scancorebutton<?php echo $ConvertGuiCounter1; ?>" name="scancorebutton<?php echo $ConvertGuiCounter1; ?>" value='使用 ScanCore 扫描文件' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<input type="submit" id="clamscanbutton<?php echo $ConvertGuiCounter1; ?>" name="clamscanbutton<?php echo $ConvertGuiCounter1; ?>" value='使用 ClamAV 扫描文件' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<input type="submit" id="scanallbutton<?php echo $ConvertGuiCounter1; ?>" name="scanallbutton<?php echo $ConvertGuiCounter1; ?>" value='使用 ScanCore 和 ClamAV 扫描文件' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#scancorebutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:'scancore',
|
||||
filesToScan:'<?php echo $File; ?>' },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); });
|
||||
$('#clamscanbutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:'all',
|
||||
filesToScan:'<?php echo $File; ?>' },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); });
|
||||
$('#scanallbutton<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
scantype:'all',
|
||||
filesToScan:'<?php echo $File; ?>' },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:'<?php echo $ConsolidatedLogFileName; ?>' },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'.$ConsolidatedLogFileName; ?>";
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert1; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $PDFWorkArr)) {
|
||||
?>
|
||||
<div id='pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='pdfOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>对该文件执行光学字符识别</strong></p>
|
||||
<p>指定文件名: <input type="text" id='userpdffilename<?php echo $ConvertGuiCounter1; ?>' name='userpdffilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='pdfmethod<?php echo $ConvertGuiCounter1; ?>' name='pdfmethod<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="0">方法</option>
|
||||
<option value="1">方法 1 (简单的)</option>
|
||||
<option value="2">方法 2 (先进的)</option>
|
||||
</select>
|
||||
<select id='pdfextension<?php echo $ConvertGuiCounter1; ?>' name='pdfextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="pdf">文件格式</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
<option value="doc">Doc</option>
|
||||
<option value="docx">Docx</option>
|
||||
<option value="rtf">Rtf</option>
|
||||
<option value="txt">Txt</option>
|
||||
<option value="odt">Odt</option>
|
||||
</select></p>
|
||||
<p><input type="submit" id='pdfconvertSubmit<?php echo $ConvertGuiCounter1; ?>' name='pdfconvertSubmit<?php echo $ConvertGuiCounter1; ?>' value='转换成文档' onclick="toggle_visibility('loadingCommandDiv');"></p>
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#pdfconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
pdfworkSelected:'<?php echo $File; ?>',
|
||||
method:document.getElementById('pdfmethod<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
pdfextension:document.getElementById('pdfextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userpdfconvertfilename:document.getElementById('userpdffilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userpdffilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('pdfextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userpdffilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('pdfextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ArchiveArray)) {
|
||||
?>
|
||||
<div id='archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='archiveOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>转换此档案</strong></p>
|
||||
<p>指定文件名: <input type="text" id='userarchivefilename<?php echo $ConvertGuiCounter1; ?>' name='userarchivefilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='archiveextension<?php echo $ConvertGuiCounter1; ?>' name='archiveextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="zip">文件格式</option>
|
||||
<option value="zip">Zip</option>
|
||||
<option value="rar">Rar</option>
|
||||
<option value="tar">Tar</option>
|
||||
<option value="7z">7z</option>
|
||||
</select></p>
|
||||
<input type="submit" id="archiveconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="archiveconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='存档文件' onclick="toggle_visibility('loadingCommandDiv'); display:none;">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#archiveconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('archiveextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userarchivefilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userarchivefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archiveextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userarchivefilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('archiveextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DocumentArray)) {
|
||||
?>
|
||||
<div id='docOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='docOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>转换此文档</strong></p>
|
||||
<p>指定文件名: <input type="text" id='userdocfilename<?php echo $ConvertGuiCounter1; ?>' name='userdocfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='docextension<?php echo $ConvertGuiCounter1; ?>' name='docextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="txt">文件格式</option>
|
||||
<option value="doc">Doc</option>
|
||||
<option value="docx">Docx</option>
|
||||
<option value="rtf">Rtf</option>
|
||||
<option value="txt">Txt</option>
|
||||
<option value="odt">Odt</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
</select></p>
|
||||
<input type="submit" id="docconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="docconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='转换文档' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#docconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('docextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userdocfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userdocfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('docextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userdocfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('docextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $SpreadsheetArray)) {
|
||||
?>
|
||||
<div id='spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='spreadOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>转换此电子表格</strong></p>
|
||||
<p>指定文件名: <input type="text" id='userspreadfilename<?php echo $ConvertGuiCounter1; ?>' name='userspreadfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='spreadextension<?php echo $ConvertGuiCounter1; ?>' name='spreadextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="ods">文件格式</option>
|
||||
<option value="xls">Xls</option>
|
||||
<option value="xlsx">Xlsx</option>
|
||||
<option value="ods">Ods</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
</select></p>
|
||||
<input type="submit" id="spreadconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="spreadconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='转换电子表格' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#spreadconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('spreadextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('spreadextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('spreadextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); }
|
||||
}); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $PresentationArray)) {
|
||||
?>
|
||||
<div id='presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='presentationOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>转换此演示文稿</strong></p>
|
||||
<p>指定文件名: <input type="text" id='userpresentationfilename<?php echo $ConvertGuiCounter1; ?>' name='userpresentationfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='presentationextension<?php echo $ConvertGuiCounter1; ?>' name='presentationextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="odp">文件格式</option>
|
||||
<option value="pages">Pages</option>
|
||||
<option value="pptx">Pptx</option>
|
||||
<option value="ppt">Ppt</option>
|
||||
<option value="xps">Xps</option>
|
||||
<option value="potx">Potx</option>
|
||||
<option value="pot">Pot</option>
|
||||
<option value="ppa">Ppa</option>
|
||||
<option value="odp">Odp</option>
|
||||
</select></p>
|
||||
<input type="submit" id="presentationconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="presentationconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='转换演示文稿' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#presentationconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('presentationextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userpresentationfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userpresentationfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('presentationextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userspreadfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('presentationextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $MediaArray)) {
|
||||
?>
|
||||
<div id='audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='audioOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>转换此音频</strong></p>
|
||||
<p>指定文件名: <input type="text" id='useraudiofilename<?php echo $ConvertGuiCounter1; ?>' name='useraudiofilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='audioextension<?php echo $ConvertGuiCounter1; ?>' name='audioextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="mp3">文件格式</option>
|
||||
<option value="mp2">Mp2</option>
|
||||
<option value="mp3">Mp3</option>
|
||||
<option value="wav">Wav</option>
|
||||
<option value="wma">Wma</option>
|
||||
<option value="flac">Flac</option>
|
||||
<option value="ogg">Ogg</option>
|
||||
</select></p>
|
||||
<input type="submit" id="audioconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="audioconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='转换音频' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#audioconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('audioextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('useraudiofilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('useraudiofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('audioextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('useraudiofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('audioextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $VideoArray)) {
|
||||
?>
|
||||
<div id='videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='videoOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>转换此视频</strong></p>
|
||||
<p>指定文件名: <input type="text" id='uservideofilename<?php echo $ConvertGuiCounter1; ?>' name='uservideofilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='videoextension<?php echo $ConvertGuiCounter1; ?>' name='videoextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="mp4">文件格式</option>
|
||||
<option value="3gp">3gp</option>
|
||||
<option value="mkv">Mkv</option>
|
||||
<option value="avi">Avi</option>
|
||||
<option value="mp4">Mp4</option>
|
||||
<option value="flv">Flv</option>
|
||||
<option value="mpeg">Mpeg</option>
|
||||
<option value="wmv">Wmv</option>
|
||||
<option value="mov">Mov</option>
|
||||
</select></p>
|
||||
<input type="submit" id="videoconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="videoconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='转换视频' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#videoconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('videoextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('uservideofilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('uservideofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('videoextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('uservideofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('videoextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $StreamArray)) {
|
||||
?>
|
||||
<div id='streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='streamOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>转换此流</strong></p>
|
||||
<p>指定文件名: <input type="text" id='userstreamfilename<?php echo $ConvertGuiCounter1; ?>' name='userstreamfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='streamextension<?php echo $ConvertGuiCounter1; ?>' name='streamextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="mp4">Format</option>
|
||||
<option value="3gp">3gp</option>
|
||||
<option value="mkv">Mkv</option>
|
||||
<option value="avi">Avi</option>
|
||||
<option value="mp4">Mp4</option>
|
||||
<option value="flv">Flv</option>
|
||||
<option value="mpeg">Mpeg</option>
|
||||
<option value="wmv">Wmv</option>
|
||||
<option value="mov">Mov</option>
|
||||
</select></p>
|
||||
<input type="submit" id="streamconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="streamconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='转换流' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#streamconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('streamextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userstreamfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userstreamfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('streamextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userstreamfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('streamextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ModelArray)) {
|
||||
?>
|
||||
<div id='modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='modelOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>转换此三维模型</strong></p>
|
||||
<p>指定文件名: <input type="text" id='usermodelfilename<?php echo $ConvertGuiCounter1; ?>' name='usermodelfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='modelextension<?php echo $ConvertGuiCounter1; ?>' name='modelextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="3ds">文件格式</option>
|
||||
<option value="3ds">3ds</option>
|
||||
<option value="collada">Collada</option>
|
||||
<option value="obj">Obj</option>
|
||||
<option value="off">Off</option>
|
||||
<option value="ply">Ply</option>
|
||||
<option value="stl">Stl</option>
|
||||
<option value="ptx">Ptx</option>
|
||||
<option value="dxf">Dxf</option>
|
||||
<option value="u3d">U3d</option>
|
||||
<option value="vrml">Vrml</option>
|
||||
</select></p>
|
||||
<input type="submit" id="modelconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="modelconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='转换模型' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#modelconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('modelextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('usermodelfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('usermodelfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('modelextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('usermodelfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('modelextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $DrawingArray)) {
|
||||
?>
|
||||
<div id='drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='drawingOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>转换此技术图纸或矢量文件</strong></p>
|
||||
<p>指定文件名: <input type="text" id='userdrawingfilename<?php echo $ConvertGuiCounter1; ?>' name='userdrawingfilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='drawingextension<?php echo $ConvertGuiCounter1; ?>' name='drawingextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="jpg">文件格式</option>
|
||||
<option value="svg">Svg</option>
|
||||
<option value="dxf">Dxf</option>
|
||||
<option value="vdx">Vdx</option>
|
||||
<option value="fig">Fig</option>
|
||||
<option value="jpg">Jpg</option>
|
||||
<option value="png">Png</option>
|
||||
<option value="bmp">Bmp</option>
|
||||
<option value="pdf">Pdf</option>
|
||||
</select></p>
|
||||
<input type="submit" id="drawingconvertSubmit<?php echo $ConvertGuiCounter1; ?>" name="drawingconvertSubmit<?php echo $ConvertGuiCounter1; ?>" value='转换绘图' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#drawingconvertSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
extension:document.getElementById('drawingextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userdrawingfilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('drawingfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('drawingextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userdrawingfilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('drawingextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
</div>
|
||||
<?php }
|
||||
|
||||
if (in_array($extension, $ImageArray)) {
|
||||
?>
|
||||
<div id='imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>' name='imageOptionsDiv<?php echo $ConvertGuiCounter1; ?>' style="max-width:750px; display:none;">
|
||||
<p style="max-width:1000px;"></p>
|
||||
<p><strong>转换此图像</strong></p>
|
||||
<p>指定文件名: <input type="text" id='userphotofilename<?php echo $ConvertGuiCounter1; ?>' name='userphotofilename<?php echo $ConvertGuiCounter1; ?>' value='<?php echo str_replace('.', '', $FileNoExt); ?>'>
|
||||
<select id='photoextension<?php echo $ConvertGuiCounter1; ?>' name='photoextension<?php echo $ConvertGuiCounter1; ?>'>
|
||||
<option value="jpg">文件格式</option>
|
||||
<option value="jpg">Jpg</option>
|
||||
<option value="bmp">Bmp</option>
|
||||
<option value="webp">Webp</option>
|
||||
<option value="png">Png</option>
|
||||
<option value="cin">Cin</option>
|
||||
<option value="dds">Dds</option>
|
||||
<option value="dib">Dib</option>
|
||||
<option value="flif">Flif</option>
|
||||
<option value="avif">Avif</option>
|
||||
</select></p>
|
||||
<p>宽度和高度: </p>
|
||||
<p><input type="number" size="4" value="0" id='width<?php echo $ConvertGuiCounter1; ?>' name='width<?php echo $ConvertGuiCounter1; ?>' min="0" max="10000"> X <input type="number" size="4" value="0" id="height<?php echo $ConvertGuiCounter1; ?>" name="height<?php echo $ConvertGuiCounter1; ?>" min="0" max="10000"></p>
|
||||
<p>旋转: <input type="number" size="3" id='rotate<?php echo $ConvertGuiCounter1; ?>' name='rotate<?php echo $ConvertGuiCounter1; ?>' value="0" min="0" max="359"></p>
|
||||
<input type="submit" id='convertPhotoSubmit<?php echo $ConvertGuiCounter1; ?>' name='convertPhotoSubmit<?php echo $ConvertGuiCounter1; ?>' value='转换图像' onclick="toggle_visibility('loadingCommandDiv');">
|
||||
<script type="text/javascript">
|
||||
$(document).ready(function () {
|
||||
$('#convertPhotoSubmit<?php echo $ConvertGuiCounter1; ?>').click(function() {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
convertSelected:'<?php echo $File; ?>',
|
||||
rotate:$('#rotate<?php echo $ConvertGuiCounter1; ?>').val(),
|
||||
width:$('#width<?php echo $ConvertGuiCounter1; ?>').val(),
|
||||
height:$('#height<?php echo $ConvertGuiCounter1; ?>').val(),
|
||||
extension:document.getElementById('photoextension<?php echo $ConvertGuiCounter1; ?>').value,
|
||||
userconvertfilename:document.getElementById('userphotofilename<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(ReturnData) {
|
||||
$.ajax({
|
||||
type: 'POST',
|
||||
url: 'convertCore.php',
|
||||
data: {
|
||||
Token1:'<?php echo $Token1; ?>',
|
||||
Token2:'<?php echo $Token2; ?>',
|
||||
download:document.getElementById('userphotofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('photoextension<?php echo $ConvertGuiCounter1; ?>').value },
|
||||
success: function(returnFile) {
|
||||
toggle_visibility('loadingCommandDiv');
|
||||
document.getElementById('downloadTarget').href = "<?php echo 'DATA/'.$SesHash3.'/'; ?>"+document.getElementById('userphotofilename<?php echo $ConvertGuiCounter1; ?>').value+'.'+document.getElementById('photoextension<?php echo $ConvertGuiCounter1; ?>').value;
|
||||
document.getElementById('downloadTarget').click(); } }); },
|
||||
error: function(ReturnData) {
|
||||
alert("<?php echo $Alert; ?>"); } }); }); });
|
||||
</script>
|
||||
<?php } ?>
|
||||
</div>
|
||||
<hr />
|
||||
<?php } ?>
|
||||
</div>
|
10
Languages/zh/footer.php
Normal file
10
Languages/zh/footer.php
Normal file
|
@ -0,0 +1,10 @@
|
|||
<?php if (!isset($ShowFinePrint)) $ShowFinePrint = TRUE;
|
||||
if ($ShowFinePrint) { ?>
|
||||
<div id="footer" name="footer" style="max-width:1000px; margin-left:auto; margin-right:auto; text-align:center;">
|
||||
<p>查看我们的 <a href="<?php echo $TOSURL; ?>" target="_blank" rel="noopener noreferrer">服务条款</a>
|
||||
和 <a href="<?php echo $PPURL; ?>" target="_blank" rel="noopener noreferrer">隐私政策</a></p>
|
||||
</div>
|
||||
<?php } ?>
|
||||
|
||||
</body>
|
||||
</html>
|
20
Languages/zh/header.php
Normal file
20
Languages/zh/header.php
Normal file
|
@ -0,0 +1,20 @@
|
|||
<?php if (!isset($ApplicationName)) $ApplicationName = 'HRConvert2';
|
||||
if (!isset($ApplicationTitle)) $ApplicationTitle = '转换任何东西!';
|
||||
if (!isset($Font)) $Font = 'Arial'; ?>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<link rel="shortcut icon" href="Resources/favicon.ico"/>
|
||||
<link rel="stylesheet" href="Resources/dropzone.css"/>
|
||||
<link rel="stylesheet" href="Resources/HRConvert2.css"/>
|
||||
<script type="text/javascript" src="Resources/HRC2-Functions.js"></script>
|
||||
<script type="text/javascript">var dropzoneText = '在此处单击、点击或拖放文件以上传。';</script>
|
||||
<script type="text/javascript" src="Resources/dropzone.js"></script>
|
||||
<style>
|
||||
body {
|
||||
font-family: <?php echo $Font; ?>; }
|
||||
<?php if (isset($ButtonCode)) echo $ButtonCode; ?>
|
||||
</style>
|
||||
<title><?php echo $ApplicationName; ?> - <?php echo $ApplicationTitle; ?></title>
|
||||
</head>
|
||||
|
21
Languages/zh/index.html
Normal file
21
Languages/zh/index.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en-US">
|
||||
<title>HRConvert2 | HRConvert2 Authentication</title>
|
||||
<body>
|
||||
<div id="outer" align="center"><h1>Configuring HRConvert2 ...</h1>
|
||||
|
||||
<div id="inner" style="position:absolute; top:50%; left:50%; height:10em; margin-top:-5em; margin-right:5em;"><strong>Please wait . . .</strong></div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
|
||||
// Set the URL below to the page the user is sent to if their screensize is UNDER the specified number of pixels.
|
||||
if (screen.width <= 699) { document.location = "/HRProprietary/HRConvert2/convertCore.php"; }
|
||||
// / Set the URL below to the page the user is sent to if their screensize is OVER the specified number of pixels.
|
||||
if (screen.width >= 700) { document.location = "/HRProprietary/HRConvert2/convertCore.php"; }
|
||||
|
||||
</script>
|
||||
|
||||
<meta id="IfNothingHappens" http-equiv="refresh" content="5"; url="/HRProprietary/HRConvert2/convertCore.php" >
|
||||
|
||||
</body>
|
||||
</html>
|
|
@ -1,5 +1,5 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<html lang="en-US">
|
||||
<title>HRConvert2 | HRConvert2 Authentication</title>
|
||||
<body>
|
||||
<div id="outer" align="center"><h1>Configuring HRConvert2 ...</h1>
|
||||
|
|
58
README.md
58
README.md
|
@ -1,15 +1,18 @@
|
|||
[Join the HonestRepair Slack Team!](https://join.slack.com/t/honestrepair/shared_invite/zt-17sa3aydc-Eig9NOOXgjtUjj0l7g87Uw)
|
||||
-----------------------------------------------
|
||||
**[Installation Instructions](https://github.com/zelon88/HRConvert2/blob/master/Documentation/INSTALLATION_INSTRUCTIONS.txt)**
|
||||
-----------------------------------------------
|
||||
**[Docker Image by dwaaan](https://github.com/dwaaan/HRConvert2-Docker)**
|
||||
-----------------------------------------------
|
||||
# HRConvert2
|
||||
|
||||
### A self-hosted drag-and-drop file conversion server & file sharing tool that supports 445 file formats with 4 color schemes & 13 end-user selectable languages.
|
||||
### A self-hosted drag-and-drop file conversion server & file sharing tool that supports 77 file formats with 4 color schemes & 13 end-user selctable languages.
|
||||
|
||||

|
||||
|
||||
---
|
||||
### Features
|
||||
- Converts 445 different file formats.
|
||||
- Converts 77 different file formats.
|
||||
- Self hosted. Installs on a home server!
|
||||
- All conversions are performed locally on your server.
|
||||
- Performs Optical Character Recognition (OCR) on PDFs & images.
|
||||
|
@ -29,19 +32,16 @@
|
|||
- Secure, performant, & compact codebase that's been open-source for years.
|
||||
|
||||
---
|
||||
### Here Is A Sample Of Just Some Supported Formats
|
||||
### Supported Formats
|
||||
#### Audio Formats
|
||||
Supports specific bitrate through the API.
|
||||
- Mp2
|
||||
- Mp3
|
||||
- Aac
|
||||
- Avi
|
||||
- Flac
|
||||
- Ogg
|
||||
- Wav
|
||||
- Wma
|
||||
- M4a
|
||||
- M4p
|
||||
#### Video Formats
|
||||
- 3gp
|
||||
- Mkv
|
||||
|
@ -51,9 +51,8 @@ Supports specific bitrate through the API.
|
|||
- Mpeg
|
||||
- Wmv
|
||||
- Mov
|
||||
- M4v
|
||||
#### Stream Formats
|
||||
- M3u8
|
||||
- m3u8
|
||||
#### Document Formats
|
||||
- Doc
|
||||
- Docx
|
||||
|
@ -62,7 +61,6 @@ Supports specific bitrate through the API.
|
|||
- Odt
|
||||
- Pdf
|
||||
#### Spreadsheet Formats
|
||||
- Csv
|
||||
- Xls
|
||||
- Xlsx
|
||||
- Ods
|
||||
|
@ -73,44 +71,45 @@ Supports specific bitrate through the API.
|
|||
- Xps
|
||||
- Pot
|
||||
- Potx
|
||||
- Potm
|
||||
- Ppa
|
||||
- Ppt
|
||||
- Pptx
|
||||
- Odp
|
||||
#### Archive Formats
|
||||
Can convert between archive formats & disk image formats.
|
||||
Can create, convert, and dearchive any of the following...
|
||||
- Zip
|
||||
- Rar
|
||||
- Tar
|
||||
- Bz
|
||||
- Gz
|
||||
- Bz2
|
||||
- 7z
|
||||
#### Disk Image Formats
|
||||
Can extract any of the following or convert to supported archive formats...
|
||||
- Iso
|
||||
- Vhd
|
||||
- Vdi
|
||||
- Tar.bz2
|
||||
- Tar.gz
|
||||
#### Image Formats
|
||||
Can convert pictures of documents to document formats.
|
||||
Supports resize & rotate.
|
||||
Supports resize & rotate through the GUI and API.
|
||||
Supports disable maintain aspect ratio through API.
|
||||
- Jpg
|
||||
- Jpeg
|
||||
- Png
|
||||
- Bmp
|
||||
- Pdf
|
||||
- Gif
|
||||
- Webp
|
||||
- Crw
|
||||
- Cin
|
||||
- Dcr
|
||||
- Dds
|
||||
- Dib
|
||||
- Flif
|
||||
- Avif
|
||||
- Gplt
|
||||
- Nef
|
||||
- Orf
|
||||
- Ora
|
||||
- Sct
|
||||
- Sfw
|
||||
- Xcf
|
||||
- Heic
|
||||
- Xwd
|
||||
- Avif
|
||||
- Ico
|
||||
#### 3D Model Formats
|
||||
- 3ds
|
||||
|
@ -119,26 +118,17 @@ Supports resize & rotate.
|
|||
- Off
|
||||
- Ply
|
||||
- Stl
|
||||
- Gts
|
||||
- Ptx
|
||||
- Dxf
|
||||
- U3d
|
||||
- X3d
|
||||
- Vrml
|
||||
#### Subtitle Formats
|
||||
- Vtt
|
||||
- Ssa
|
||||
- Ass
|
||||
- Srt
|
||||
- Dvb
|
||||
#### Drawing Files
|
||||
Can convert drawing files to image formats.
|
||||
Can output drawing files to image formats.
|
||||
Can convert between any of the following...
|
||||
- Svg
|
||||
- Dxf
|
||||
- Fig
|
||||
- Vdx
|
||||
- Dia
|
||||
- Wpg
|
||||
#### OCR Support
|
||||
OCR Operations support the following input formats...
|
||||
- Jpg
|
||||
|
@ -191,7 +181,3 @@ Developers can craft links or redirects to load the correct language for each us
|
|||

|
||||
|
||||

|
||||
|
||||
---
|
||||
# License
|
||||
This project is licensed under the [GNU General Public License v3.0 License](https://github.com/zelon88/HRConvert2/blob/master/Documentation/LICENSE). See the [Official Documentation](https://github.com/zelon88/HRConvert2/tree/master/Documentation) for more information.
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
// / -----------------------------------------------------------------------------------
|
||||
// / COPYRIGHT INFORMATION ...
|
||||
// / HRConvert2, Copyright on 3/7/2024 by Justin Grimes, www.github.com/zelon88
|
||||
// / APPLICATION INFORMATION ...
|
||||
// / HRConvert2, Copyright on 4/11/2022 by Justin Grimes, www.github.com/zelon88
|
||||
// /
|
||||
// / LICENSE INFORMATION ...
|
||||
// / This project is protected by the GNU GPLv3 Open-Source license.
|
||||
|
@ -11,7 +11,6 @@
|
|||
// / on a server for users of any web browser without authentication.
|
||||
// /
|
||||
// / FILE INFORMATION
|
||||
// / v3.3.2.
|
||||
// / This file contains the client side javascript library that supports the HRConvert2 GUI.
|
||||
// /
|
||||
// / HARDWARE REQUIREMENTS ...
|
||||
|
@ -20,8 +19,8 @@
|
|||
// /
|
||||
// / DEPENDENCY REQUIREMENTS ...
|
||||
// / This application requires Debian Linux (w/3rd Party audio license),
|
||||
// / Apache 2.4, PHP 8+, LibreOffice, Unoconv, ClamAV, Tesseract, Rar, Unrar, Unzip,
|
||||
// / 7zipper, FFMPEG, PDFTOTEXT, Dia, PopplerUtils, MeshLab, Mkisofs & ImageMagick.
|
||||
// / Apache 2.4, PHP 7+, LibreOffice, Unoconv, ClamAV, Tesseract, Rar, Unrar, Unzip,
|
||||
// / 7zipper, FFMPEG, PDFTOTEXT, Dia, PopplerUtils, MeshLab & ImageMagick.
|
||||
// /
|
||||
// / <3 Open-Source
|
||||
// / -----------------------------------------------------------------------------------
|
60
Resources/HRConvert2.css
Normal file
60
Resources/HRConvert2.css
Normal file
|
@ -0,0 +1,60 @@
|
|||
select {
|
||||
width: 140px;
|
||||
padding: 5px 5px 5px 5px;
|
||||
font-size: 16px;
|
||||
border: 1px solid #ccc;
|
||||
height: 34px;
|
||||
-webkit-appearance: none;
|
||||
-moz-appearance: none;
|
||||
appearance: none; }
|
||||
|
||||
/* CAUTION: IE hackery ahead */
|
||||
select::-ms-expand {
|
||||
display: none; } /* remove default arrow in IE 10 and 11 */
|
||||
|
||||
/* target Internet Explorer 9 to undo the custom arrow */
|
||||
@media screen and (min-width:0\0) {
|
||||
select {
|
||||
background:none\9;
|
||||
padding: 5px\9; } }
|
||||
|
||||
.info-button {
|
||||
-moz-box-shadow: 3px 4px 0px 0px #f3f6f4;
|
||||
-webkit-box-shadow: 3px 4px 0px 0px #f3f6f4;
|
||||
box-shadow: 3px 4px 0px 0px #f3f6f4;
|
||||
background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #bcbcbc), color-stop(1, #eeeeee));
|
||||
background:-moz-linear-gradient(top, #bcbcbc 5%, #eeeeee 100%);
|
||||
background:-webkit-linear-gradient(top, #bcbcbc 5%, #eeeeee 100%);
|
||||
background:-o-linear-gradient(top, #bcbcbc 5%, #eeeeee 100%);
|
||||
background:-ms-linear-gradient(top, #bcbcbc 5%, #eeeeee 100%);
|
||||
background:linear-gradient(to bottom, #bcbcbc 5%, #eeeeee 100%);
|
||||
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=\'#bcbcbc\', endColorstr=\'#eeeeee\',GradientType=0);
|
||||
background-color:#bcbcbc;
|
||||
-moz-border-radius:5px;
|
||||
-webkit-border-radius:5px;
|
||||
border-radius:5px;
|
||||
border:1px solid #5b5b5b;
|
||||
display:inline-block;
|
||||
cursor:pointer;
|
||||
color:#ffffff;
|
||||
font-family:Arial;
|
||||
font-size:17px;
|
||||
font-weight:bold;
|
||||
padding:12px 44px;
|
||||
text-decoration:none;
|
||||
text-shadow:0px 1px 0px #bcbcbc;
|
||||
min-width:100px;
|
||||
width:250px;
|
||||
max-width:1000px; }
|
||||
.info-button:hover {
|
||||
background:-webkit-gradient(linear, left top, left bottom, color-stop(0.05, #eeeeee), color-stop(1, #bcbcbc));
|
||||
background:-moz-linear-gradient(top, #eeeeee 5%, #bcbcbc 100%);
|
||||
background:-webkit-linear-gradient(top, #eeeeee 5%, #bcbcbc 100%);
|
||||
background:-o-linear-gradient(top, #eeeeee 5%, #bcbcbc 100%);
|
||||
background:-ms-linear-gradient(top, #eeeeee 5%, #bcbcbc 100%);
|
||||
background:linear-gradient(to bottom, #eeeeee 5%, #bcbcbc 100%);
|
||||
filter:progid:DXImageTransform.Microsoft.gradient(startColorstr=\'#eeeeee\', endColorstr=\'#bcbcbc\',GradientType=0);
|
||||
background-color:#eeeeee; }
|
||||
.info-button:active {
|
||||
position:relative;
|
||||
top:1px; }
|
|
@ -1,147 +0,0 @@
|
|||
-----------------------------------------------------------------------------------
|
||||
COPYRIGHT INFORMATION ...
|
||||
ScanCore, Copyright on 3/29/2024 by Justin Grimes, www.github.com/zelon88
|
||||
|
||||
LICENSE INFORMATION ...
|
||||
This project is protected by the GNU GPLv3 Open-Source license.
|
||||
BSD or MIT licensing is available. Reach out to @zelon88 for more information.
|
||||
https://www.gnu.org/licenses/gpl-3.0.html
|
||||
|
||||
APPLICATION INFORMATION ...
|
||||
This application is designed to scan files & folders for viruses.
|
||||
|
||||
FILE INFORMATION ...
|
||||
v1.5.
|
||||
This file contains a list of itemized changes made in each iteration of the application.
|
||||
|
||||
HARDWARE REQUIREMENTS ...
|
||||
This application requires at least a Raspberry Pi Model B+ or greater.
|
||||
This application will run on just about any x86 or x64 computer.
|
||||
|
||||
DEPENDENCY REQUIREMENTS ...
|
||||
This application should run on Linux or Windows systems with PHP 8.0 (or later).
|
||||
Git is preferred for performing automatic update operations, but not required.
|
||||
|
||||
VALID SWITCHES / ARGUMENTS / USAGE ...
|
||||
Quick Start Example:
|
||||
C:\Path-To-PHP-Binary.exe C:\Path-To-ScanCore.php C:\Path-To-Scan\ -m [integer] -c [integer] -v -d
|
||||
|
||||
Start by opening a command-prompt.
|
||||
Type the absolute path to a portable PHP 7.0+ binary. Don't press enter just yet.
|
||||
Now type the absolute path to this PHP file as the only argument for the PHP binary.
|
||||
Everything after the path to this script will be passed to this file as an argument.
|
||||
The first Argument Must be a valid absolute path to the file or folder being scanned.
|
||||
Optional arguments can be specified after the scan path. Separate them with spaces.
|
||||
|
||||
Reqiured Arguments Include:
|
||||
|
||||
File or folder to scan: /path/to/scan
|
||||
|
||||
Optional Arguments Include:
|
||||
|
||||
Show version information: -version
|
||||
-ver
|
||||
|
||||
Show help information: -help
|
||||
-h
|
||||
|
||||
Force recursion: -recursion
|
||||
-r
|
||||
|
||||
Force no recursion: -norecursion
|
||||
-nr
|
||||
|
||||
Specify memory limit (in bytes): -memorylimit ####
|
||||
-m ####
|
||||
|
||||
Specify chunk size (in bytes); -chunksize ####
|
||||
-c ####
|
||||
|
||||
Enable "debug" mode (more logging): -debug
|
||||
-d
|
||||
|
||||
Enable "verbose" mode (more console): -verbose
|
||||
-v
|
||||
|
||||
Force a specific report file: -reportfile /path/to/file
|
||||
-rf path/to/file
|
||||
|
||||
Force a specific configuration file: -configfile /path/to/file
|
||||
-cf path/to/file
|
||||
|
||||
Force a specific definitions file: -defsfile /path/to/file
|
||||
-df path/to/file
|
||||
|
||||
Force maximum log size (in bytes): -maxlogsize ###
|
||||
-ml ###
|
||||
|
||||
Perform definition update: -updatedefinitions
|
||||
-ud
|
||||
|
||||
Perform application update: -updateapplication
|
||||
-ua
|
||||
|
||||
<3 Open-Source
|
||||
-----------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
|
||||
--------------------
|
||||
COMMIT 3/31/2024
|
||||
v1.5 - Finish Application Update logic. Now the app is fully self-updating.
|
||||
|
||||
-v1.5.
|
||||
-Add additional text to index files.
|
||||
-"This is a command line application! Please open a terminal, navigate to this directory, and submit commands to ScanCore.php!"
|
||||
-Fix potential infinite loop bug in chunking.
|
||||
-Improve optimization by reducing the amount of exposed logic, especially in scanning logic.
|
||||
-Fix indentation of code blocks.
|
||||
|
||||
--------------------
|
||||
COMMIT 3/29/2024
|
||||
v1.4 - Finish Application Update logic. Now the app is fully self-updating.
|
||||
|
||||
-v1.4.
|
||||
-Finish application update logic.
|
||||
-Supports url_fopen, cURL, or git update methods.
|
||||
-Represented in config as raw or git.
|
||||
-Config files are backed up prior to application updates.
|
||||
-These must remain .php files. If ScanCore is installed to a hosted location, they will not be downloadable.
|
||||
|
||||
--------------------
|
||||
COMMIT 3/28/2024
|
||||
v1.3 - Add -defsfile, -df argument. Reorder logic & functions. Clean up output. Improve help, version output.
|
||||
|
||||
-v1.3 - Add -defsfile, -df argument. Reorder logic & functions. Clean up output. Improve help, version output.
|
||||
-Add -defsfile & -df argument for specifying a definition file by command line.
|
||||
-Now ScanCore is completely modular. It can be run against any defs file and any config file, so automating tasks is easy & granular.
|
||||
-Add config file last modified, which core file, and which defs file to version output.
|
||||
-Add new commands to help output.
|
||||
-Will update the docs with proper error descriptions and instructions once the error numbers stop chaning.
|
||||
|
||||
|
||||
--------------------
|
||||
COMMIT 3/26/2024
|
||||
v1.2 - Add several def update methods, so even with no deps they work.
|
||||
|
||||
-v1.2.
|
||||
-Add 'raw' and 'git' update methods. So if you can't get git (hehe) then you can still perform updates.
|
||||
-Use globals $EOL, $SEP for PHP_EOL and DIRECTORY_SEPARATOR, as intended.
|
||||
-Add -version argument for displaying useful info.
|
||||
-Info like the source for def & app updates, the original repo, subscribed defs, version, last update, ect...
|
||||
-Added a plug to the LICENSE INFORMATION section of the header text.
|
||||
-// / BSD or MIT licensing is available. Reach out to @zelon88 for more information.
|
||||
-Support your favorite developer by buying a trophy license for your favorite open-source software.
|
||||
-Imrove comments / formatting in ScanCore_Config.php. Add default values, labels, better descriptions for everything.
|
||||
-Add -help, -h and -version, -ver arguments for showing version & help, respectively.
|
||||
-Add -configfile, -cf argument for selecting which configuration file to use.
|
||||
-Now one scanner can rule them all!
|
||||
-Instead of installing multiple scanners to scan different subscriptions, just have different config files.
|
||||
-Revise output. Make more consistent, easier to read.
|
||||
-Remove unused $LogFile and $LogDir references from core.
|
||||
-Remove unused $LogFile and $LogDir references from config.
|
||||
-ReportsDir is now the only location for logs. Logs & reports are officially the same thing.
|
||||
-The -logfile & -lf arguments are now undocumented aliases of the -reportfile and -rf arguments.
|
||||
-I plan on removing -logfile & -lf arguments in the future.
|
||||
-What will probably happen is I'll forget I said that and wind up re-documenting these undocumented aliases in the future.
|
|
@ -1,7 +0,0 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en-US">
|
||||
<title>ScanCore | Virus Scanner</title>
|
||||
<body>
|
||||
This is a command line application! Please open a terminal, navigate to this directory, and submit commands to ScanCore.php!
|
||||
</body>
|
||||
</html>
|
|
@ -1,114 +0,0 @@
|
|||
## APPLICATION INFORMATION ...
|
||||
|
||||
Copyright on 3/22/2024 by Justin Grimes, www.github.com/zelon88. ScanCore is a portable, single thread, cross platform, command line virus scanner written in PHP that detects infections based on data match, MD5 hash, SHA1 hash, or SHA256 hash.
|
||||
|
||||
Features include:
|
||||
|
||||
- High speed, single thread virus scanner that you use in your command line or terminal.
|
||||
- Updates virus definitions automatically.
|
||||
- Small memory footprint with the ability to set a custom memory limit.
|
||||
- Written in PHP, so it works from Apache or the command line.
|
||||
- Cross platform. Works in Windows or Linux.
|
||||
- Fully portable. If you have PHP installed & in your PATH you're good to go.
|
||||
- Works with portable PHP binaries.
|
||||
- Virus definitions in plain text that you can actually understand.
|
||||
- Fully open source, including definitions.
|
||||
- Highly configurable. Great for scripting, devops, or automation.
|
||||
|
||||
This scanner can detect files based on the following criteria:
|
||||
|
||||
1. MD5 Hash
|
||||
2. SHA1 Hash
|
||||
3. SHA256 Hash
|
||||
4. Raw Data Match
|
||||
|
||||
-----------------------------------------------------------------------------------
|
||||
|
||||
## LICENSE INFORMATION ...
|
||||
|
||||
This project is protected by the GNU GPLv3 Open-Source license.
|
||||
|
||||
-----------------------------------------------------------------------------------
|
||||
|
||||
## DEPENDENCY REQUIREMENTS ...
|
||||
|
||||
This application requires Windows or Linux with PHP 8.0 (or later).
|
||||
|
||||
-----------------------------------------------------------------------------------
|
||||
|
||||
## VALID SWITCHES / ARGUMENTS / USAGE ...
|
||||
|
||||
Quick Start Example:
|
||||
|
||||
C:\Path-To-PHP-Binary.exe C:\Path-To-ScanCore.php C:\Path-To-Scan\ -m [integer] -c [integer] -v -d
|
||||
C:\PHP\PHP.exe C:\scanCore\scanCore.php C:\Windows\Temp -memorylimit 4000000000 -chunksize 1000000000 -verbose -debug
|
||||
C:\PHP\PHP.exe C:\scanCore\scanCore.php C:\Windows\Temp -m 4000000000 -c 1000000000 -v -d
|
||||
C:\PHP\PHP.exe C:\scanCore\scanCore.php C:\Windows\Temp -nr -m 1000000000 -c 200000000 -v -d
|
||||
|
||||
Start by opening a command-prompt.
|
||||
1. Type the absolute path to a portable PHP 8.0+ binary, or use the php command if it's in your PATH.
|
||||
2. Now type the absolute path to the ScanCore PHP file as the only argument for the PHP binary.
|
||||
3. Everything after the path to ScanCore will be passed to ScanCore as an argument.
|
||||
4. The first Argument must be a valid absolute path to the file or folder being scanned.
|
||||
5. Optional arguments can be specified after the scan path. Separate them with spaces.
|
||||
|
||||
Reqiured Arguments Include:
|
||||
|
||||
File or folder to scan: /path/to/scan
|
||||
|
||||
Optional Arguments Include:
|
||||
|
||||
Show version information: -version
|
||||
-ver
|
||||
|
||||
Show help information: -help
|
||||
-h
|
||||
|
||||
Force recursion: -recursion
|
||||
-r
|
||||
|
||||
Force no recursion: -norecursion
|
||||
-nr
|
||||
|
||||
Specify memory limit (in bytes): -memorylimit ####
|
||||
-m ####
|
||||
|
||||
Specify chunk size (in bytes); -chunksize ####
|
||||
-c ####
|
||||
|
||||
Enable "debug" mode (more logging): -debug
|
||||
-d
|
||||
|
||||
Enable "verbose" mode (more console): -verbose
|
||||
-v
|
||||
|
||||
Force a specific report file: -reportfile /path/to/file
|
||||
-rf path/to/file
|
||||
|
||||
Force a specific configuration file: -configfile /path/to/file
|
||||
-cf path/to/file
|
||||
|
||||
Force maximum log size (in bytes): -maxlogsize ###
|
||||
-ml ###
|
||||
|
||||
Perform definition update: -updatedefinitions
|
||||
-ud
|
||||
-----------------------------------------------------------------------------------
|
||||
|
||||
## USAGE TIPS ...
|
||||
|
||||
- If the target is a file larger than the [memorylimit] argument it will be chopped into [chunksize] and each chunk will be scanned separately.
|
||||
- If the target is a folder you must also specify [recursion] or [no-recursion] via command line arguments.
|
||||
- If you use the verbose and debug arguments to scan an entire hard drive be prepared for logfiles that are several GB in size with scans that can take days to complete.
|
||||
|
||||
-----------------------------------------------------------------------------------
|
||||
|
||||
## MORE INFORMATION ...
|
||||
|
||||
Currently virus definitions are maintained at [The ScanCore_Definitions Github Repository](https://github.com/zelon88/ScanCore_Definitions). Definition updates can be performed using command line switches. The repository of definitions is organized into different categories. Each portable scanner can subscribe or unsubscruibe to specific definition categories, allowing administrators to build custom definitions tailored to specific servers, roles, or applications.
|
||||
|
||||
This scanner was designed for high performance single threaded use. It can be used with the Windows or Linux command-line, or with custom applications such as thread handlers which create & destroy multiple script instances at different targets simultaniously. The whole idea of a fast single-threaded scanner is that you can run several dozen (or hundred) scans at the same time on multiple small targets rather than running one large scan.
|
||||
|
||||
-----------------------------------------------------------------------------------
|
||||
|
||||
<3 Open-Source
|
|
@ -1,739 +0,0 @@
|
|||
<?php
|
||||
// / -----------------------------------------------------------------------------------
|
||||
// / COPYRIGHT INFORMATION ...
|
||||
// / ScanCore, Copyright on 3/31/2024 by Justin Grimes, www.github.com/zelon88
|
||||
// /
|
||||
// / LICENSE INFORMATION ...
|
||||
// / This project is protected by the GNU GPLv3 Open-Source license.
|
||||
// / BSD or MIT licensing is available. Reach out to @zelon88 for more information.
|
||||
// / https://www.gnu.org/licenses/gpl-3.0.html
|
||||
// /
|
||||
// / APPLICATION INFORMATION ...
|
||||
// / This application is designed to scan files & folders for viruses.
|
||||
// /
|
||||
// / FILE INFORMATION ...
|
||||
// / v1.5.
|
||||
// / This file contains the core logic of the ScanCore application.
|
||||
// /
|
||||
// / HARDWARE REQUIREMENTS ...
|
||||
// / This application requires at least a Raspberry Pi Model B+ or greater.
|
||||
// / This application will run on just about any x86 or x64 computer.
|
||||
// /
|
||||
// / DEPENDENCY REQUIREMENTS ...
|
||||
// / This application should run on Linux or Windows systems with PHP 8.0 (or later).
|
||||
// / Git is preferred for performing automatic update operations, but not required.
|
||||
// /
|
||||
// / VALID SWITCHES / ARGUMENTS / USAGE ...
|
||||
// / Quick Start Example:
|
||||
// / C:\Path-To-PHP-Binary.exe C:\Path-To-ScanCore.php C:\Path-To-Scan\ -m [integer] -c [integer] -v -d
|
||||
// /
|
||||
// / Start by opening a command-prompt.
|
||||
// / Type the absolute path to a portable PHP 7.0+ binary. Don't press enter just yet.
|
||||
// / Now type the absolute path to this PHP file as the only argument for the PHP binary.
|
||||
// / Everything after the path to this script will be passed to this file as an argument.
|
||||
// / The first Argument Must be a valid absolute path to the file or folder being scanned.
|
||||
// / Optional arguments can be specified after the scan path. Separate them with spaces.
|
||||
// /
|
||||
// / Reqiured Arguments Include:
|
||||
// /
|
||||
// / File or folder to scan: /path/to/scan
|
||||
// /
|
||||
// / Optional Arguments Include:
|
||||
// /
|
||||
// / Show version information: -version
|
||||
// / -ver
|
||||
// /
|
||||
// / Show help information: -help
|
||||
// / -h
|
||||
// /
|
||||
// / Force recursion: -recursion
|
||||
// / -r
|
||||
// /
|
||||
// / Force no recursion: -norecursion
|
||||
// / -nr
|
||||
// /
|
||||
// / Specify memory limit (in bytes): -memorylimit ####
|
||||
// / -m ####
|
||||
// /
|
||||
// / Specify chunk size (in bytes); -chunksize ####
|
||||
// / -c ####
|
||||
// /
|
||||
// / Enable "debug" mode (more logging): -debug
|
||||
// / -d
|
||||
// /
|
||||
// / Enable "verbose" mode (more console): -verbose
|
||||
// / -v
|
||||
// /
|
||||
// / Force a specific report file: -reportfile /path/to/file
|
||||
// / -rf path/to/file
|
||||
// /
|
||||
// / Force a specific configuration file: -configfile /path/to/file
|
||||
// / -cf path/to/file
|
||||
// /
|
||||
// / Force a specific definitions file: -defsfile /path/to/file
|
||||
// / -df path/to/file
|
||||
// /
|
||||
// / Force maximum log size (in bytes): -maxlogsize ###
|
||||
// / -ml ###
|
||||
// /
|
||||
// / Perform definition update: -updatedefinitions
|
||||
// / -ud
|
||||
// /
|
||||
// / Perform application update: -updateapplication
|
||||
// / -ua
|
||||
// /
|
||||
// / <3 Open-Source
|
||||
// / -----------------------------------------------------------------------------------
|
||||
|
||||
|
||||
|
||||
// / -----------------------------------------------------------------------------------
|
||||
// / The following code sets global variables for the session.
|
||||
function verifyInstallation() {
|
||||
// / Set variables.
|
||||
global $Date, $Time, $Version, $InstallationVerified, $FileCount, $DirCount, $Infected, $EOL, $SEP, $RP, $CoreFile, $DefaultConfigFile;
|
||||
// / Time related variables.
|
||||
$Date = date("m_d_y");
|
||||
$Time = date("F j, Y, g:i a");
|
||||
// / Application related variables.
|
||||
$Version = 'v1.5';
|
||||
$DefaultConfigFile = 'ScanCore_Config.php';
|
||||
$FileCount = $DirCount = $Infected = 0;;
|
||||
$EOL = PHP_EOL;
|
||||
$SEP = DIRECTORY_SEPARATOR;
|
||||
$RP = realpath(dirname(__FILE__));
|
||||
$CoreFile = 'ScanCore.php';
|
||||
$InstallationVerified = TRUE;
|
||||
return array($InstallationVerified, $Version); }
|
||||
// / -----------------------------------------------------------------------------------
|
||||
|
||||
// / -----------------------------------------------------------------------------------
|
||||
// / A function to load a specified configuration file.
|
||||
// / If either the -configfile or -cf argument is not set, the default configuration file named 'ScanCore_Config.php' will be used instead.
|
||||
// / If either the -defsfile or -df argument is not set, the definitions file named specified in 'ScanCore_Config.php' will be used instead.
|
||||
function loadConfig($Version) {
|
||||
// / Set variables.
|
||||
global $argv, $ConfigFilePath, $RP, $SEP, $EOL, $ConfigFile, $ScanLoc, $DefsFile, $ConfigVersion, $ConfigLoaded, $DefsExist, $Version, $ReportFile, $ReportDir, $ReportFileName, $RequiredDirs, $InstallDir, $MaxLogSize, $MemoryLimit, $ChunkSize, $DefaultMemoryLimit, $DefaultChunkSize, $DefaultMaxLogSize, $DefinitionRepositoryName, $DefinitionUpdates, $DefinitionUpdateDomain, $DefinitionUpdateURL, $DefInstallDir, $DefGitDir, $ApplicationRepositoryName, $ApplicationUpdates, $ApplicationUpdateDomain, $ApplicationUpdateURL, $AppInstallDir, $AppGitDir, $DefinitionsUpdateSubscriptions, $DefsFileName, $Verbose, $Debug, $UpdateMethod, $DefinitionBranchName, $ApplicationBranchName, $ApplicationUpdateSubscriptions, $VersionsMatch;
|
||||
$ConfigLoaded = $DefsExist = $VersionsMatch = FALSE;
|
||||
$ConfigFile = 'ScanCore_Config.php';
|
||||
$ConfigFilePath = $RP.$SEP.$ConfigFile;
|
||||
// / Initialize an empty array if no arguments are set.
|
||||
if (!isset($argv)) $argv = array();
|
||||
// / Briefly iterate through supplied arguments just to see if we need to load a special configuration file.
|
||||
foreach ($argv as $key => $arg) if ($arg == '-configfile' or $arg == '-cf') $ConfigFilePath = $argv[$key + 1];
|
||||
// / Load the configuration file located at $ConfigFile.
|
||||
if (file_exists($ConfigFilePath)) $ConfigLoaded = require_once ($ConfigFilePath);
|
||||
// / Briefly iterate through supplied arguments just to see if we need to create or load a special definitions file.
|
||||
foreach ($argv as $key => $arg) if ($arg == '-defsfile' or $arg == '-df') {
|
||||
$DefsFile = $argv[$key + 1];
|
||||
// / Create a blank definitions file if needed.
|
||||
foreach ($argv as $key => $arg) if ($arg == '-updatedefinitions' or $arg == '-ud') if (!file_exists($DefsFile)) file_put_contents($DefsFile, ''); }
|
||||
// / Check to make sure the configuration file was loaded & the configuration version is compatible with the core.
|
||||
if (file_exists($DefsFile)) $DefsExist = TRUE;
|
||||
if (isset($ConfigVersion) && $ConfigVersion === $Version && $ConfigLoaded) {
|
||||
// / Check if the definitions file exists.
|
||||
// / Configuration related variables.
|
||||
$VersionsMatch = TRUE;
|
||||
$ReportFile = $ReportDir.$SEP.$ReportFileName;
|
||||
$RequiredDirs = array($ReportDir);
|
||||
$UpdateMethod = strtolower($UpdateMethod);
|
||||
$MaxLogSize = $DefaultMaxLogSize;
|
||||
$MemoryLimit = $DefaultMemoryLimit;
|
||||
$ChunkSize = $DefaultChunkSize;
|
||||
$DefInstallDir = $InstallDir.$SEP.$DefinitionRepositoryName;
|
||||
$AppInstallDir = $InstallDir.$SEP.$ApplicationRepositoryName;
|
||||
$DefGitDir = $DefInstallDir.$SEP.'.git';
|
||||
$AppGitDir = $AppInstallDir.$SEP.'.git'; }
|
||||
// / Manually clean up sensitive memory. Helps to keep track of variable assignments.
|
||||
$arg = $key = NULL;
|
||||
unset($arg, $key);
|
||||
return array($ConfigLoaded, $DefsExist, $ConfigFilePath, $VersionsMatch); }
|
||||
// / -----------------------------------------------------------------------------------
|
||||
|
||||
// / -----------------------------------------------------------------------------------
|
||||
// / A function to reliably build help & version information.
|
||||
function buildHelpInformation() {
|
||||
// / Set variables.
|
||||
global $DefinitionsUpdateSubscriptions, $SubText, $VersionText, $HelpText, $ApplicationUpdateURL, $DefinitionUpdateURL, $DefsFile, $CoreFile, $ConfigFile, $Version, $EOL, $RP;
|
||||
$InformationBuilt = FALSE;
|
||||
$SubText = $VersionText = $HelpText = '';
|
||||
foreach ($DefinitionsUpdateSubscriptions as $defSubs) $SubText = $SubText.' '.$defSubs.',';
|
||||
if (file_exists($CoreFile) && file_exists($DefsFile) && file_exists($ConfigFile)) {
|
||||
$InformationBuilt = TRUE;
|
||||
$SubText = trim(trim($SubText, ','), ' ');
|
||||
$originalRepo = 'https://github.com/zelon88/ScanCore';
|
||||
$licenseText = 'GPLv3';
|
||||
$verText1 = 'ScanCore '.$Version.' by Justin Grimes (@zelon88), licensed under '.$licenseText.'.'.$EOL;
|
||||
$verText2 = 'The original source code for this application can be found at: '.$originalRepo.$EOL;
|
||||
$verText3 = 'This installation is located at: '.realpath(__FILE__).$EOL;
|
||||
$verText4 = 'This installation is using a definitions file located at: '.realpath($DefsFile).$EOL;
|
||||
$verText5 = 'This installation is using a configuration file located at: '.realpath($ConfigFile).$EOL;
|
||||
$verText6 = 'This installation downloads Application updates from: '.$ApplicationUpdateURL.$EOL;
|
||||
$verText7 = 'This installation downloads Definition updates from: '.$DefinitionUpdateURL.$EOL;
|
||||
$verText8 = 'Configuration file was last updated on: '.date("F d Y H:i:s.", @filectime($ConfigFile)).$EOL;
|
||||
$verText9 = 'Application update was last installed on: '.date("F d Y H:i:s.", @filectime($CoreFile)).$EOL;
|
||||
$verText10 = 'Definition update was last installed on: '.date("F d Y H:i:s.", @filectime($DefsFile)).$EOL;
|
||||
$verText11 = 'This installation has the following Definition Subscriptions: '.$SubText;
|
||||
$helpText0 = $EOL.'Reqiured Arguments Include:'.$EOL;
|
||||
$helpText1 = $EOL.' File or folder to scan: /path/to/scan'.$EOL;
|
||||
$helpText2 = $EOL.'Optional Arguments Include:'.$EOL;
|
||||
$helpText3 = $EOL.' Show version information: -version'.$EOL;
|
||||
$helpText4 = ' -ver'.$EOL;
|
||||
$helpText5 = $EOL.' Show help information: -help'.$EOL;
|
||||
$helpText6 = ' -h'.$EOL;
|
||||
$helpText7 = $EOL.' Force recursion: -recursion'.$EOL;
|
||||
$helpText8 = ' -r'.$EOL;
|
||||
$helpText9 = $EOL.' Force no recursion: -norecursion'.$EOL;
|
||||
$helpText10 = ' -nr'.$EOL;
|
||||
$helpText11 = $EOL.' Specify memory limit (in bytes): -memorylimit ####'.$EOL;
|
||||
$helpText12 = ' -m ####'.$EOL;
|
||||
$helpText13 = $EOL.' Specify chunk size (in bytes); -chunksize ####'.$EOL;
|
||||
$helpText14 = ' -c ####'.$EOL;
|
||||
$helpText15 = $EOL.' Enable "debug" mode (more logging): -debug'.$EOL;
|
||||
$helpText16 = ' -d'.$EOL;
|
||||
$helpText17 = $EOL.' Enable "verbose" mode (more console): -verbose'.$EOL;
|
||||
$helpText18 = ' -v'.$EOL;
|
||||
$helpText21 = $EOL.' Force a specific report file: -reportfile /path/to/file'.$EOL;
|
||||
$helpText22 = ' -rf path/to/file'.$EOL;
|
||||
$helpText23 = $EOL.' Force a specific configuration file: -configfile /path/to/file'.$EOL;
|
||||
$helpText24 = ' -cf path/to/file'.$EOL;
|
||||
$helpText25 = $EOL.' Force a specific definitions file: -defsfile /path/to/file'.$EOL;
|
||||
$helpText26 = ' -df path/to/file'.$EOL;
|
||||
$helpText27 = $EOL.' Force maximum log size (in bytes): -maxlogsize ###'.$EOL;
|
||||
$helpText28 = ' -ml ###'.$EOL;
|
||||
$helpText29 = $EOL.' Perform definition update: -updatedefinitions'.$EOL;
|
||||
$helpText30 = ' -ud'.$EOL;
|
||||
$helpText31 = $EOL.' Perform application update: -updateapplication'.$EOL;
|
||||
$helpText32 = ' -ua'.$EOL;
|
||||
$qsText1 = $EOL.'Quick Start Example:'.$EOL;
|
||||
$qsText2 = $EOL.' C:\Path-To-PHP-Binary.exe C:\Path-To-ScanCore.php C:\Path-To-Scan\ -m [integer] -c [integer] -v -d'.$EOL;
|
||||
$HelpText = $verText1.$qsText1.$qsText2.$helpText0.$helpText1.$helpText2.$helpText3.$helpText4.$helpText5.$helpText6.$helpText7.$helpText8.$helpText9.$helpText10.$helpText11.$helpText12.$helpText13.$helpText14.$helpText15.$helpText16.$helpText17.$helpText18.$helpText21.$helpText22.$helpText23.$helpText24.$helpText25.$helpText26.$helpText27.$helpText28.$helpText29.$helpText30.$helpText31.$helpText32;
|
||||
$VersionText = $verText1.$verText2.$verText3.$verText4.$verText5.$verText6.$verText7.$verText8.$verText9.$verText10.$verText11; }
|
||||
// / Manually clean up sensitive memory. Helps to keep track of variable assignments.
|
||||
$defSubs = $verText1 = $verText2 = $verText3 = $verText4 = $verText5 = $verText6 = $verText7 = $originalRepo = $licenseText = $arg = $key = $helpText0 = $helpText1 = $helpText2 = $helpText3 = $helpText4 = $helpText5 = $helpText6 = $helpText7 = $helpText8 = $helpText9 = $helpText10 = $helpText11 = $helpText12 = $helpText13 = $helpText14 = $helpText15 = $helpText16 = $helpText17 = $helpText18 = $helpText21 = $helpText22 = $helpText23 = $helpText24 = $helpText25 = $helpText26 = $helpText27 = $helpText28 = $helpText29 = $helpText30 = $qsText1 = $qsText2 = NULL;
|
||||
unset($defSubs, $verText1, $verText2, $verText3, $verText4, $verText5, $verText6, $verText7, $originalRepo, $licenseText, $arg, $key, $helpText0, $helpText1, $helpText2, $helpText3, $helpText4, $helpText5, $helpText6, $helpText7, $helpText8, $helpText9, $helpText10, $helpText11, $helpText12, $helpText13, $helpText14, $helpText15, $helpText16, $helpText17, $helpText18, $helpText19, $helpText20, $helpText21, $helpText22, $helpText23, $helpText24, $helpText25, $helpText26, $helpText27, $helpText28, $helpText29, $helpText30, $qsText1, $qsText2);
|
||||
return array($InformationBuilt, $SubText, $VersionText, $HelpText); }
|
||||
// / -----------------------------------------------------------------------------------
|
||||
|
||||
// / -----------------------------------------------------------------------------------
|
||||
// / A function to create required directories when they do not already exist.
|
||||
function createDirs($RequiredDirs) {
|
||||
// / Set variables.
|
||||
global $Time, $RP, $SEP;
|
||||
$RequiredDirsExist = TRUE;
|
||||
// / Iterate through each required directory.
|
||||
foreach ($RequiredDirs as $reqdDir) {
|
||||
// / Detect if the directory already exists & create it if required.
|
||||
if (!file_exists($reqdDir)) mkdir($reqdDir);
|
||||
// / If an index.html file is present in the installation directory, copy it to the newly created dictory.
|
||||
if (!file_exists($reqdDir.$SEP.'index.html')) if (file_exists($RP.$SEP.'index.html')) copy($RP.$SEP.'index.html', $reqdDir.$SEP.'index.html');
|
||||
if (!file_exists($reqdDir)) $RequiredDirsExist = FALSE; }
|
||||
// / Manually clean up sensitive memory. Helps to keep track of variable assignments.
|
||||
$reqdDir = NULL;
|
||||
unset($reqdDir);
|
||||
return array($RequiredDirsExist); }
|
||||
// / -----------------------------------------------------------------------------------
|
||||
|
||||
// / -----------------------------------------------------------------------------------
|
||||
// / A function to add an entry to the logs.
|
||||
function addLogEntry($entry, $error, $errorNumber) {
|
||||
// / Set variables.
|
||||
global $ReportFile, $Time, $EOL;
|
||||
if (!is_numeric($errorNumber)) $errorNumber = 0;
|
||||
if ($error === TRUE) $preText = 'ERROR!!! ScanCore-'.$errorNumber.' on '.$Time.', ';
|
||||
else $preText = $Time.', ';
|
||||
$LogCreated = file_put_contents($ReportFile, $preText.$entry.$EOL, FILE_APPEND);
|
||||
// / Manually clean up sensitive memory. Helps to keep track of variable assignments.
|
||||
$preText = $error = $entry = $errorNumber = NULL;
|
||||
unset($preText, $error, $entry, $errorNumber);
|
||||
return array($LogCreated); }
|
||||
// / -----------------------------------------------------------------------------------
|
||||
|
||||
// / -----------------------------------------------------------------------------------
|
||||
// / A function to handle important messages to the console & log file.
|
||||
function processOutput($txt, $error, $errorNumber, $requiredLog, $requiredConsole, $fatal) {
|
||||
global $Date, $Tiome, $EOL, $Debug, $Verbose;
|
||||
$OutputProcessed = FALSE;
|
||||
// / Verify that all inputs are of the correct type.
|
||||
if (!is_string($txt)) $txt = '';
|
||||
if (!is_int($errorNumber)) $errorNumber = 0;
|
||||
// / Log the provided text if $Debug variable (-d switch) is set.
|
||||
if ($Debug or $requiredLog) list ($OutputProcessed) = addLogEntry($txt, $error, $errorNumber);
|
||||
// / Output the summary text to the terminal if the $Verbose (-v switch) variable is set.
|
||||
if ($Verbose or $requiredConsole) echo $txt.$EOL;
|
||||
// / Manually clean up sensitive memory. Helps to keep track of variable assignments.
|
||||
$txt = $error = $errorNumber = $requiredLog = $requiredConsole = NULL;
|
||||
unset($txt, $error, $errorNumber, $requiredLog, $requiredConsole);
|
||||
// / Stop execution as needed.
|
||||
if ($fatal) die();
|
||||
return array($OutputProcessed); }
|
||||
// / -----------------------------------------------------------------------------------
|
||||
|
||||
// / -----------------------------------------------------------------------------------
|
||||
// / A function to parse supplied command-line arguments.
|
||||
// / The -configfile & -cf arguments are processed by the loadConfig() function.
|
||||
// / The -defsfile & -df arguments are processed by the loadConfig() function.
|
||||
function parseArgs($argv) {
|
||||
// / Set variables.
|
||||
// / Most of these should already be set to the values contained in the configuration file.
|
||||
global $ArgsParsed, $ReportFile, $MaxLogSize, $Debug, $Verbose, $ChunkSize, $MemoryLimit, $DefaultMemoryLimit, $DefaultChunkSize, $PerformDefUpdate, $PerformAppUpdate, $VersionText, $HelpText, $ConfigFilePath, $PerformScan, $DefsFile;
|
||||
$PerformScan = $Recursion = FALSE;
|
||||
$ArgsParsed = $PathToScan = $PerformDefUpdate = $PerformAppUpdate = $showVersion = $showHelp = FALSE;
|
||||
foreach ($argv as $key => $arg) {
|
||||
$arg = htmlentities(str_replace(str_split('~#[](){};:$!#^&%@>*<"\''), '', $arg));
|
||||
if ($arg == '-version' or $arg == '-ver') $showVersion = TRUE;
|
||||
if ($arg == '-h' or $arg == '-help') $showHelp = TRUE;
|
||||
if ($arg == '-memorylimit' or $arg == '-m') $MemoryLimit = $argv[$key + 1];
|
||||
if ($arg == '-chunksize' or $arg == '-c') $ChunkSize = $argv[$key + 1];
|
||||
if ($arg == '-debug' or $arg == '-d') $Debug = TRUE;
|
||||
if ($arg == '-verbose' or $arg == '-v') $Verbose = TRUE;
|
||||
if ($arg == '-recursion' or $arg == '-r') $Recursion = TRUE;
|
||||
if ($arg == '-norecursion' or $arg == '-nr') $Recursion = FALSE;
|
||||
if ($arg == '-updatedefinitions' or $arg == '-ud') $PerformDefUpdate = TRUE;
|
||||
if ($arg == '-updateapplication' or $arg == '-ua') $PerformAppUpdate = TRUE;
|
||||
if ($arg == '-reportfile' or $arg == '-rf' or $arg == '-logfile' or $arg == '-lf') $ReportFile = $argv[$key + 1];
|
||||
if ($arg == '-maxlogsize' or $arg == '-ml') $MaxLogSize = $argv[$key + 1]; }
|
||||
// / Detect if version or help information is being requested.
|
||||
if ($showVersion or $showHelp) {
|
||||
// / Build the help & version information.
|
||||
list ($InformationBuilt, $SubText, $VersionText, $HelpText) = buildHelpInformation();
|
||||
if ($InformationBuilt) processOutput('Built version information.', FALSE, 0, FALSE, FALSE, FALSE);
|
||||
else processOutput('Cannot not build version information!', TRUE, 0, TRUE, TRUE, TRUE);
|
||||
if ($showVersion) processOutput($VersionText, FALSE, 0, TRUE, TRUE, FALSE);
|
||||
if ($showHelp) processOutput($HelpText, FALSE, 0, TRUE, TRUE, FALSE);
|
||||
$ArgsParsed = TRUE; }
|
||||
// / Detect if an update is being requested.
|
||||
if ($PerformDefUpdate or $PerformAppUpdate) {
|
||||
processOutput('Starting ScanCore updater!', FALSE, 0, TRUE, TRUE, FALSE);
|
||||
$ArgsParsed = TRUE; }
|
||||
if (!$PerformDefUpdate && !$PerformAppUpdate && !$showVersion && !$showHelp) {
|
||||
// / Detect if no arguments were supplied.
|
||||
if (!isset($argv[1])) processOutput('There were no arguments set!', TRUE, 100, TRUE, TRUE, FALSE);
|
||||
else {
|
||||
// / Detect if a valid path to scan was supplied.
|
||||
if (!file_exists($argv[1])) processOutput('The specified file was not found! The first argument must be a valid file or directory path!', TRUE, 300, TRUE, TRUE, FALSE);
|
||||
else {
|
||||
$PathToScan = $argv[1];
|
||||
// / Detect if the MemoryLimit and ChunkSize variables are valid.
|
||||
if (!is_numeric($MemoryLimit) or !is_numeric($ChunkSize)) {
|
||||
processOutput('Using default ChunkSize & MemoryLimit values.', TRUE, 0, TRUE, FALSE, FALSE);
|
||||
$MemoryLimit = $DefaultMemoryLimit;
|
||||
$ChunkSize = $DefaultChunkSize; }
|
||||
// / Output status information.
|
||||
processOutput('Starting ScanCore!', FALSE, 0, TRUE, TRUE, FALSE);
|
||||
processOutput('Loaded configuration file: '.$ConfigFilePath, FALSE, 0, TRUE, FALSE, FALSE);
|
||||
if (is_numeric($ChunkSize)) processOutput('The ChunkSize is: '.$ChunkSize, TRUE, 0, FALSE, FALSE, FALSE);
|
||||
if (is_numeric($MemoryLimit)) processOutput('The MemoryLimit is: '.$MemoryLimit, TRUE, 0, FALSE, FALSE, FALSE);
|
||||
$ArgsParsed = $PerformScan = TRUE; } } }
|
||||
// / Manually clean up sensitive memory. Helps to keep track of variable assignments.
|
||||
$key = $arg = $showVersion = $showHelp = NULL;
|
||||
unset($key, $arg, $showVersion, $showHelp);
|
||||
return array($ArgsParsed, $PerformScan, $PathToScan, $MemoryLimit, $ChunkSize, $Debug, $Verbose, $Recursion, $ReportFile, $MaxLogSize, $PerformDefUpdate, $PerformAppUpdate); }
|
||||
// / -----------------------------------------------------------------------------------
|
||||
|
||||
// / -----------------------------------------------------------------------------------
|
||||
// / A function to remove files & folders.
|
||||
function clean($Location) {
|
||||
// / Set variables.
|
||||
global $SEP;
|
||||
$LocationCleaned = FALSE;
|
||||
$f = FALSE;
|
||||
$i = array();
|
||||
// / Detect if the location is a folder.
|
||||
if (is_dir($Location)) {
|
||||
// / Scan the folder for contents.
|
||||
$i = array_diff(scandir($Location), array('..', '.'));
|
||||
// / Iterate through the contents of the folder.
|
||||
foreach ($i as $f) {
|
||||
// / If this object is a folder, run this function on it.
|
||||
if (is_dir($Location.$SEP.$f)) clean($Location.$SEP.$f);
|
||||
// / If this object is a file, delete it.
|
||||
else unlink($Location.$SEP.$f); }
|
||||
// / Try to delete the folder now that we've deleted the contents.
|
||||
if (is_dir($Location)) rmdir($Location); }
|
||||
// / If the location is a file, delete it.
|
||||
if (file_exists($Location) && !is_dir($Location)) unlink($Location);
|
||||
// / Check if the location was deleted.
|
||||
if (!is_dir($Location) && !file_exists($Location)) $LocationCleaned = TRUE;
|
||||
// / Manually clean up sensitive memory. Helps to keep track of variable assignments.
|
||||
$f = $i = NULL;
|
||||
unset($f, $i);
|
||||
return array($LocationCleaned); }
|
||||
// / -----------------------------------------------------------------------------------
|
||||
|
||||
// / -----------------------------------------------------------------------------------
|
||||
// / A function to verify internet connectivity before attempting to perform update operations.
|
||||
// / Type must be either 'application' or 'definition'.
|
||||
// / This function is limited to the two domains defined in config.php, to reduce potential for abuse.
|
||||
function connectionSuccess($type) {
|
||||
global $ApplicationUpdateDomain, $DefinitionUpdateDomain;
|
||||
$ConnectionResult = TRUE;
|
||||
$connection = FALSE;
|
||||
$urlToCheck = '';
|
||||
if ($type === 'application') $urlToCheck = $ApplicationUpdateDomain;
|
||||
if ($type === 'definition') $urlToCheck = $DefinitionUpdateDomain;
|
||||
if ($urlToCheck !== '') $connection = @fsockopen($urlToCheck, 443);
|
||||
if ($connection) fclose($connection);
|
||||
else $ConnectionResult = FALSE;
|
||||
// / Manually clean up sensitive memory. Helps to keep track of variable assignments.
|
||||
$connection = NULL;
|
||||
unset($connection);
|
||||
return $ConnectionResult; }
|
||||
// / -----------------------------------------------------------------------------------
|
||||
|
||||
// / -----------------------------------------------------------------------------------
|
||||
// / A function to install definition updates.
|
||||
function updateDefinitions() {
|
||||
// / Set variables.
|
||||
global $DefinitionUpdates, $DefinitionUpdateURL, $DefinitionsUpdateSubscriptions, $InstallDir, $DefsFile, $DefinitionRepositoryName, $DefInstallDir, $DefGitDir, $UpdateMethod, $SEP, $EOL, $SubText, $RP, $DefinitionBranchName;
|
||||
$UpdateDefininitionsComplete = $UpdateDefinitionsErrors = $defSubs = $writeCheck = $defInstallDirCleaned = $defGitDirCleaned = $cleanCheck = $rawWriteCheck = $rawWriteCheckDir = FALSE;
|
||||
$subData = $subData1 = $returnData = $rawDefData = $rawDefURL = $defSubFile = '';
|
||||
$subCount = 0;
|
||||
$subCount1 = count($DefinitionsUpdateSubscriptions);
|
||||
// / Only perform definition updates if they are enabled in $ConfigFile.
|
||||
if ($DefinitionUpdates) {
|
||||
processOutput('Starting definition update. Update method is: '.$UpdateMethod, FALSE, 0, TRUE, FALSE, FALSE);
|
||||
processOutput('Preparing to install the following Definition Subscriptions: '.$SubText, FALSE, 0, FALSE, FALSE, FALSE);
|
||||
processOutput('Cleaning update environment.', FALSE, 0, TRUE, FALSE, FALSE);
|
||||
// / If a definition install directory already exists, remove all the files inside & then remove the folder.
|
||||
list($defInstallDirCleaned) = clean($DefInstallDir);
|
||||
list($defGitDirCleaned) = clean($DefGitDir);
|
||||
processOutput('Verifying network connectivity.', FALSE, 0, FALSE, FALSE, FALSE);
|
||||
$ConnectionResult = connectionSuccess('definition');
|
||||
if ($ConnectionResult) processOutput('Verified network connectivity.', FALSE, 0, FALSE, FALSE, FALSE);
|
||||
else processOutput('Cannot not verify network connectivity!', TRUE, 400, TRUE, TRUE, FALSE);
|
||||
// / Continue only if a connection could be made and the definition install directory was able to be cleaned.
|
||||
if ($ConnectionResult && $defGitDirCleaned && $defInstallDirCleaned) {
|
||||
// / Download the latest definitions from the $DefinitionUpdateURL.
|
||||
// / Perform the definition update by downloading the raw definition data.
|
||||
if ($UpdateMethod === 'raw') {
|
||||
processOutput('Creating a folder at: '.$DefInstallDir, FALSE, 0, FALSE, FALSE, FALSE);
|
||||
$rawWriteCheckDir = mkdir($DefInstallDir);
|
||||
foreach ($DefinitionsUpdateSubscriptions as $defSubs) {
|
||||
$rawDefData = '';
|
||||
$defSubFile = $DefInstallDir.$SEP.'ScanCore_'.$defSubs.'.def';
|
||||
$rawDefURL = $DefinitionUpdateURL.'/raw/'.$DefinitionBranchName.'/ScanCore_'.$defSubs.'.def';
|
||||
processOutput('Attempting download with built in functions against URL: '.$rawDefURL, FALSE, 0, FALSE, FALSE, FALSE);
|
||||
if (file_exists($rawDefURL)) $rawDefData = file_get_contents($DefinitionUpdateURL);
|
||||
if (!file_exists($rawDefURL) or $rawDefData === '' or $rawDefData !== '404: Not Found') {
|
||||
processOutput('Attempting download with cURL against URL: '.$rawDefURL, FALSE, 0, FALSE, FALSE, FALSE);
|
||||
$returnData = shell_exec('curl -Ls '.$rawDefURL.' --output '.$defSubFile);
|
||||
$rawWriteCheck = file_exists($defSubFile); }
|
||||
else $rawWriteCheck = file_put_contents($defSubFile, $rawDefData); } }
|
||||
// / Perform the definition update using 'git', if available.
|
||||
if ($UpdateMethod === 'git') $returnData = shell_exec('git clone '.$DefinitionUpdateURL);
|
||||
// / Only continue with the update if the previous operation was able to create a folder.
|
||||
if (is_dir($DefInstallDir)) {
|
||||
// / Copy an index.html file to the newly created folder as document root protection, incase this application is in a hosted location.
|
||||
if (file_exists($RP.$SEP.'index.html')) copy($RP.$SEP.'index.html', $DefInstallDir.$SEP.'index.html');
|
||||
// / Remove the .git directory, just in case this is installed in a hosted location we don't want to maintin that many directories.
|
||||
if (is_dir($DefGitDir)) list($cleanCheck) = clean($DefGitDir);
|
||||
else $cleanCheck = TRUE;
|
||||
// / Iterate through the list of susbscribed definitions.
|
||||
foreach ($DefinitionsUpdateSubscriptions as $defSubs) {
|
||||
$defSubFile = $DefInstallDir.$SEP.'ScanCore_'.$defSubs.'.def';
|
||||
// / Build the new definitions in memory from the subscriptions that apply to this installation.
|
||||
if (file_exists($defSubFile)) {
|
||||
processOutput('Loading Definition Subscription file: '.$defSubFile, FALSE, 0, FALSE, FALSE, FALSE);
|
||||
$subCount++;
|
||||
$subData1 = file_get_contents($defSubFile);
|
||||
if ($subData1 !== FALSE) $subData = $subData.$EOL.$subData1; } }
|
||||
// / Write the new definition data to a new definition file.
|
||||
if (file_exists($DefsFile)) $writeCheck = unlink($DefsFile);
|
||||
else $writeCheck = TRUE;
|
||||
processOutput('Writing Combined Definitions file: '.$DefsFile, FALSE, 0, FALSE, FALSE, FALSE);
|
||||
$writeCheck = file_put_contents($DefsFile, $subData); }
|
||||
// / If a definition install directory already exists, remove all the files inside & then remove the folder.
|
||||
list($defInstallDirCleaned) = clean($DefInstallDir);
|
||||
list($defGitDirCleaned) = clean($DefGitDir); } }
|
||||
// / Check if the subscription file was written successfully.
|
||||
if ($UpdateMethod === 'raw' && $rawWriteCheck) $UpdateDefininitionsComplete = TRUE;
|
||||
if ($UpdateMethod === 'git' && $writeCheck) $UpdateDefininitionsComplete = TRUE;
|
||||
if ($subCount !== $subCount1) $UpdateDefinitionsErrors = TRUE;
|
||||
// / Manually clean up sensitive memory. Helps to keep track of variable assignments.
|
||||
$defSubs = $defSubFile = $subData = $writeCheck = $subCount = $subCount1 = $returnData = $f = $i = $cleanCheck = $rawWriteCheck = $rawWriteCheckDir = $rawDefData = $rawDefURL = $defGitDirCleaned = $defInstallDirCleaned = $subData1 = NULL;
|
||||
unset($defSubs, $defSubFile, $subData, $writeCheck, $subCount, $subCount1, $returnData, $f, $i, $cleanCheck, $rawWriteCheck, $rawWriteCheckDir, $rawDefData, $rawDefURL, $defGitDirCleaned, $defInstallDirCleaned, $subData1);
|
||||
return array($UpdateDefininitionsComplete, $UpdateDefinitionsErrors); }
|
||||
// / -----------------------------------------------------------------------------------
|
||||
|
||||
// / -----------------------------------------------------------------------------------
|
||||
// / A function to backup the configuration file prior to commencing application updates.
|
||||
function backupConfig() {
|
||||
// / Set variables.
|
||||
global $ConfigFile;
|
||||
$ConfigCopied = FALSE;
|
||||
$configInc = 0;
|
||||
$backupConfigFile = $ConfigFile.'_Backup_'.$configInc.'.php';
|
||||
// / Check if an existing backup configuration file exists, & set a path to a new one with an unused name.
|
||||
while (file_exists($backupConfigFile)) {
|
||||
$configInc++;
|
||||
$backupConfigFile = $ConfigFile.'_Backup_'.$configInc.'.php'; }
|
||||
// / Copy the configuration file to a backup.
|
||||
processOutput('Backing up the existing configuration file to: '.$backupConfigFile, FALSE, 0, FALSE, FALSE, FALSE);
|
||||
$ConfigCopied = copy($ConfigFile, $backupConfigFile);
|
||||
// / Only proceed if the configuration file was backed up.
|
||||
if (!$ConfigCopied) processOutput('Cannot backup the existing configuration file to: '.$backupConfigFile, TRUE, 800, TRUE, TRUE, FALSE);
|
||||
// / Manually clean up sensitive memory. Helps to keep track of variable assignments.
|
||||
$configInc = $backupConfigFile = NULL;
|
||||
unset($configInc, $backupConfigFile);
|
||||
return array($ConfigCopied); }
|
||||
// / -----------------------------------------------------------------------------------
|
||||
|
||||
// / -----------------------------------------------------------------------------------
|
||||
// / A function to install application updates.
|
||||
function updateApplication() {
|
||||
// / Set variables.
|
||||
global $ApplicationUpdates, $ApplicationUpdateURL, $ApplicationUpdateSubscriptions, $InstallDir, $ApplicationRepositoryName, $AppInstallDir, $AppGitDir, $UpdateMethod, $SEP, $EOL, $SubText, $RP, $ApplicationBranchName;
|
||||
$UpdateAppininitionsComplete = $UpdateApplicationsErrors = $appSubs = $writeCheck = $appInstallDirCleaned = $appGitDirCleaned = $cleanCheck = $rawWriteCheck = $rawWriteCheckDir = FALSE;
|
||||
$subData = $subData1 = $returnData = $rawAppData = $rawAppURL = $appSubFile ='';
|
||||
$subCount = 0;
|
||||
$subCount1 = count($ApplicationUpdateSubscriptions);
|
||||
// / Only perform application updates if they are enabled in $ConfigFile.
|
||||
// / If application updates are enabled, download the latest application update from the $ApplicationUpdateURL.
|
||||
if ($ApplicationUpdates) {
|
||||
processOutput('Starting application update. Update method is: '.$UpdateMethod, FALSE, 0, TRUE, FALSE, FALSE);
|
||||
list($ConfigCopied) = backupConfig();
|
||||
if ($ConfigCopied) {
|
||||
processOutput('Cleaning update environment.', FALSE, 0, TRUE, FALSE, FALSE);
|
||||
// / If a application install directory already exists, remove all the files inside & then remove the folder.
|
||||
list($appInstallDirCleaned) = clean($AppInstallDir);
|
||||
list($appGitDirCleaned) = clean($AppGitDir);
|
||||
processOutput('Verifying network connectivity.', FALSE, 0, FALSE, FALSE, FALSE);
|
||||
$ConnectionResult = connectionSuccess('application');
|
||||
if ($ConnectionResult) processOutput('Verified network connectivity.', FALSE, 0, FALSE, FALSE, FALSE);
|
||||
else processOutput('Cannot not verify network connectivity!', TRUE, 700, TRUE, TRUE, FALSE);
|
||||
// / Continue only if a connection could be made and the definition install directory was able to be cleaned.
|
||||
if ($ConnectionResult && $appGitDirCleaned && $appInstallDirCleaned) {
|
||||
// / Download the latest application from the $ApplicationUpdateURL.
|
||||
// / Perform the application update by downloading the raw application data.
|
||||
if ($UpdateMethod === 'raw') {
|
||||
processOutput('Creating a folder at: '.$AppInstallDir, FALSE, 0, FALSE, FALSE, FALSE);
|
||||
$rawWriteCheckDir = mkdir($AppInstallDir);
|
||||
$rawWriteCheckDir = mkdir($AppInstallDir.$SEP.'Documentation');
|
||||
foreach ($ApplicationUpdateSubscriptions as $appSubs) {
|
||||
$rawAppData = '';
|
||||
$appSubFile = $AppInstallDir.$SEP.$appSubs;
|
||||
$appSubFile = str_replace('/', $SEP, $appSubFile);
|
||||
$rawAppURL = $ApplicationUpdateURL.'/raw/'.$ApplicationBranchName.'/'.$appSubs;
|
||||
processOutput('Attempting download with built in functions against URL: '.$rawAppURL, FALSE, 0, FALSE, FALSE, FALSE);
|
||||
if (file_exists($rawAppURL)) $rawAppData = file_get_contents($ApplicationUpdateURL);
|
||||
if (!file_exists($rawAppURL) or $rawAppData === '' or $rawAppData !== '404: Not Found') {
|
||||
processOutput('Attempting download with cURL against URL: '.$rawAppURL, FALSE, 0, FALSE, FALSE, FALSE);
|
||||
$returnData = shell_exec('curl -Ls '.$rawAppURL.' --output '.$appSubFile);
|
||||
$rawWriteCheck = file_exists($appSubFile); }
|
||||
else $rawWriteCheck = file_put_contents($appSubFile, $rawAppData); } }
|
||||
// / Perform the application update using 'git', if available.
|
||||
if ($UpdateMethod === 'git') $returnData = shell_exec('git clone '.$ApplicationUpdateURL);
|
||||
// / Only continue with the update if the previous operation was able to create a folder.
|
||||
if (is_dir($AppInstallDir)) {
|
||||
// / Copy an index.html file to the newly created folder as document root protection, incase this application is in a hosted location.
|
||||
if (file_exists($RP.$SEP.'index.html')) copy($RP.$SEP.'index.html', $AppInstallDir.$SEP.'index.html');
|
||||
// / Remove the .git directory, just in case this is installed in a hosted location we don't want to maintin that many directories.
|
||||
if (is_dir($AppGitDir)) list($cleanCheck) = clean($AppGitDir);
|
||||
// / Iterate through the list of susbscribed applications.
|
||||
foreach ($ApplicationUpdateSubscriptions as $appSubs) {
|
||||
$appSubFile = $AppInstallDir.$SEP.$appSubs;
|
||||
// / Build the new applications in memory from the subscriptions that apply to this installation.
|
||||
if (file_exists($appSubFile)) {
|
||||
processOutput('Loading Application file: '.$appSubFile, FALSE, 0, FALSE, FALSE, FALSE);
|
||||
$subCount++;
|
||||
$subData1 = file_get_contents($appSubFile);
|
||||
$appSubFileName = basename($appSubFile);
|
||||
if (strpos($appSubFile, 'Documentation') > 0) $appSubFileName = 'Documentation'.$SEP.$appSubFileName;
|
||||
if ($subData1 !== FALSE) {
|
||||
processOutput('Writing Application file: '.$appSubFile, FALSE, 0, FALSE, FALSE, FALSE);
|
||||
$subData2 = unlink($InstallDir.$SEP.$appSubFileName);
|
||||
$writeCheck = file_put_contents($InstallDir.$SEP.$appSubFileName, $subData1); } } } } }
|
||||
// / If a application install directory already exists, remove all the files inside & then remove the folder.
|
||||
list($appInstallDirCleaned) = clean($AppInstallDir);
|
||||
list($appGitDirCleaned) = clean($AppGitDir); }
|
||||
else processOutput('Application update was aborted because the existing configuration file could not be backed up!', TRUE, 900, TRUE, TRUE, FALSE); }
|
||||
// / Check if the subscription file was written successfully.
|
||||
if ($writeCheck) $UpdateAppininitionsComplete = TRUE;
|
||||
if ($subCount !== $subCount1) $UpdateApplicationsErrors = TRUE;
|
||||
// / Manually clean up sensitive memory. Helps to keep track of variable assignments.
|
||||
$appSubs = $appSubFile = $subData = $writeCheck = $subCount = $subCount1 = $returnData = $f = $i = $cleanCheck = $rawWriteCheck = $rawWriteCheckDir = $rawAppData = $rawAppURL = $appGitDirCleaned = $appInstallDirCleaned = $subData1 = $appSubFileName = NULL;
|
||||
unset($appSubs, $appSubFile, $subData, $writeCheck, $subCount, $subCount1, $returnData, $f, $i, $cleanCheck, $rawWriteCheck, $rawWriteCheckDir, $rawAppData, $rawAppURL, $appGitDirCleaned, $appInstallDirCleaned, $subData1, $appSubFileName);
|
||||
return array($UpdateAppininitionsComplete, $UpdateApplicationsErrors); }
|
||||
// / -----------------------------------------------------------------------------------
|
||||
|
||||
// / -----------------------------------------------------------------------------------
|
||||
// Read tab-delimited definitions file. Also hash the file to avoid self-detection.
|
||||
function load_defs($DefsFile) {
|
||||
// / Set variables.
|
||||
$DefsLoaded = $Defs = $DefData = FALSE;
|
||||
if (!file_exists($DefsFile)) processOutput('Cannot not load the definitions file: '.$DefsFile, TRUE, 500, TRUE, TRUE, TRUE);
|
||||
else {
|
||||
processOutput('Loaded the definitions file: '.$DefsFile, FALSE, 0, FALSE, FALSE, FALSE);
|
||||
$Defs = file($DefsFile);
|
||||
$DefData = hash_file('sha256', $DefsFile);
|
||||
$counter = 0;
|
||||
$counttop = sizeof($Defs);
|
||||
while ($counter < $counttop) {
|
||||
$Defs[$counter] = explode(' ', $Defs[$counter]);
|
||||
$counter++; }
|
||||
processOutput('Found '.sizeof($Defs).' definitions.', FALSE, 0, FALSE, FALSE, FALSE);
|
||||
$DefsLoaded = TRUE; }
|
||||
// / Manually clean up sensitive memory. Helps to keep track of variable assignments.
|
||||
$counter = $counttop = NULL;
|
||||
unset($counter, $counttop);
|
||||
return array($DefsLoaded, $Defs, $DefData); }
|
||||
// / -----------------------------------------------------------------------------------
|
||||
|
||||
// / -----------------------------------------------------------------------------------
|
||||
// Hunt files/folders recursively for scannable items.
|
||||
function file_scan($folder, $Defs, $DefsFile, $DefData, $Debug, $Verbose, $MemoryLimit, $ChunkSize, $Recursion) {
|
||||
// / Set variables.
|
||||
global $SEP, $FileCount, $DirCount, $Infected;
|
||||
$ScanComplete = FALSE;
|
||||
$DirCount++;
|
||||
if ($folder !== '.') if ($folder !== '..') {
|
||||
if (is_dir($folder)) {
|
||||
processOutput('Scanning folder: '.$folder, FALSE, 0, TRUE, FALSE, FALSE);
|
||||
$files = scandir($folder);
|
||||
foreach ($files as $file) {
|
||||
if ($file === '' or $file === '.' or $file === '..') continue;
|
||||
$entry = str_replace($SEP.$SEP, $SEP, $folder.$SEP.$file);
|
||||
if (!is_dir($entry)) list($checkComplete, $Infected, $FileCount) = virus_check($entry, $Defs, $DefsFile, $DefData, $Debug, $Verbose, $MemoryLimit, $ChunkSize);
|
||||
else if ($Recursion) {
|
||||
list ($scanComplete, $DirCount, $FileCount, $Infected) = file_scan($entry, $Defs, $DefsFile, $DefData, $Debug, $Verbose, $MemoryLimit, $ChunkSize, $Recursion);
|
||||
$entry = ''; } } }
|
||||
else {
|
||||
$FileCount++;
|
||||
list($checkComplete, $Infected, $FileCount) = virus_check($folder, $Defs, $DefsFile, $DefData, $Debug, $Verbose, $MemoryLimit, $ChunkSize); } }
|
||||
$ScanComplete = TRUE;
|
||||
// / Manually clean up sensitive memory. Helps to keep track of variable assignments.
|
||||
$files = $file = $entry = $folder = NULL;
|
||||
unset($files, $file, $entry, $folder);
|
||||
return array($ScanComplete, $DirCount, $FileCount, $Infected); }
|
||||
// / -----------------------------------------------------------------------------------
|
||||
|
||||
// / -----------------------------------------------------------------------------------
|
||||
// Hash & check files/folders for viruses against static virus definitions.
|
||||
function virus_check($file, $Defs, $DefsFile, $DefData, $Debug, $Verbose, $MemoryLimit, $ChunkSize) {
|
||||
// / Set variables.
|
||||
global $Infected, $DefsFileName, $FileCount;
|
||||
$CheckComplete = FALSE;
|
||||
// / Check that the file exists & is not the currently loaded definitions file.
|
||||
if (file_exists($file)) if ($file !== $DefsFileName) {
|
||||
processOutput('Scanning file: '.$file, FALSE, 0, TRUE, FALSE, FALSE);
|
||||
$data2 = hash_file('sha256', $file);
|
||||
// / Double check that the file we're scanning is not the currently loaded definitions file.
|
||||
if ($DefData !== $data2) {
|
||||
$FileCount++;
|
||||
$filesize = filesize($file);
|
||||
$data1 = hash_file('md5', $file);
|
||||
$data3 = hash_file('sha1', $file);
|
||||
// / Scan files larger than the memory limit by breaking them into chunks.
|
||||
if ($filesize >= $MemoryLimit) {
|
||||
processOutput('Chunking file: '.$file, FALSE, 0, TRUE, FALSE, FALSE);
|
||||
$handle = @fopen($file, "r");
|
||||
if ($handle) {
|
||||
// / Break the file into chunks & iterate through each chunk.
|
||||
while (($buffer = fgets($handle, $ChunkSize)) !== FALSE) {
|
||||
$data = $buffer;
|
||||
processOutput('Scanning chunk.', FALSE, 0, TRUE, FALSE, FALSE);
|
||||
// / Scan the current chunk for data matches.
|
||||
foreach ($Defs as $virus) {
|
||||
$virus = explode("\t", $virus[0]);
|
||||
if (isset($virus[1])) if (!is_null($virus[1])) if ($virus[1] !== '') if ($virus[1] !== ' ') {
|
||||
if (strpos(strtolower($data), strtolower($virus[1])) !== FALSE or strpos(strtolower($file), strtolower($virus[1])) !== FALSE) {
|
||||
// File matches virus defs.
|
||||
processOutput('Infected: '.$file.' ('.$virus[0].', Data Match: '.$virus[1].')', FALSE, 0, TRUE, TRUE, FALSE);
|
||||
$Infected++; } } } }
|
||||
if (!feof($handle)) processOutput('Unable to open '.$file.'!', TRUE, 600, TRUE, TRUE, FALSE);
|
||||
fclose($handle); }
|
||||
if (isset($virus[2])) if (!is_null($virus[2])) if ($virus[2] !== '') if ($virus[2] !== ' ') {
|
||||
if (strpos(strtolower($data1), strtolower($virus[2])) !== FALSE) {
|
||||
// File matches virus defs.
|
||||
processOutput('Infected: '.$file.' ('.$virus[0].', MD5 Hash Match: '.$virus[2].')', FALSE, 0, TRUE, TRUE, FALSE);
|
||||
$Infected++; } }
|
||||
if (isset($virus[3])) if (!is_null($virus[3])) if ($virus[3] !== '') if ($virus[3] !== ' ') {
|
||||
if (strpos(strtolower($data2), strtolower($virus[3])) !== FALSE) {
|
||||
// File matches virus defs.
|
||||
processOutput('Infected: '.$file.' ('.$virus[0].', SHA256 Hash Match: '.$virus[3].')', FALSE, 0, TRUE, TRUE, FALSE);
|
||||
$Infected++; } }
|
||||
if (isset($virus[4])) if (!is_null($virus[4])) if ($virus[4] !== '') if ($virus[4] !== ' ') {
|
||||
if (strpos(strtolower($data3), strtolower($virus[4])) !== FALSE) {
|
||||
// File matches virus defs.
|
||||
processOutput('Infected: '.$file.' ('.$virus[0].', SHA1 Hash Match: '.$virus[4].')', FALSE, 0, TRUE, TRUE, FALSE);
|
||||
$Infected++; } } }
|
||||
// / Scan files smaller than the memory limit by fitting the entire file into memory.
|
||||
else {
|
||||
$data = file_get_contents($file);
|
||||
foreach ($Defs as $virus) {
|
||||
$virus = explode("\t", $virus[0]);
|
||||
if (isset($virus[1])) if (!is_null($virus[1])) if ($virus[1] !== '') if ($virus[1] !== ' ') {
|
||||
if (strpos(strtolower($data), strtolower($virus[1])) !== FALSE or strpos(strtolower($file), strtolower($virus[1])) !== FALSE) {
|
||||
// File matches virus defs.
|
||||
processOutput('Infected: '.$file.' ('.$virus[0].', Data Match: '.$virus[1].')', FALSE, 0, TRUE, TRUE, FALSE);
|
||||
$Infected++; } }
|
||||
if (isset($virus[2])) if (!is_null($virus[2])) if ($virus[2] !== '') if ($virus[2] !== ' ') {
|
||||
if (strpos(strtolower($data1), strtolower($virus[2])) !== FALSE) {
|
||||
// File matches virus defs.
|
||||
processOutput('Infected: '.$file.' ('.$virus[0].', MD5 Hash Match: '.$virus[2].')', FALSE, 0, TRUE, TRUE, FALSE);
|
||||
$Infected++; } }
|
||||
if (isset($virus[3])) if (!is_null($virus[3])) if ($virus[3] !== '') if ($virus[3] !== ' ') {
|
||||
if (strpos(strtolower($data2), strtolower($virus[3])) !== FALSE) {
|
||||
// File matches virus defs.
|
||||
processOutput('Infected: '.$file.' ('.$virus[0].', SHA256 Hash Match: '.$virus[3].')', FALSE, 0, TRUE, TRUE, FALSE);
|
||||
$Infected++; } }
|
||||
if (isset($virus[4])) if (!is_null($virus[4])) if ($virus[4] !== '') if ($virus[4] !== ' ') {
|
||||
if (strpos(strtolower($data3), strtolower($virus[4])) !== FALSE) {
|
||||
// File matches virus defs.
|
||||
processOutput('Infected: '.$file.' ('.$virus[0].', SHA1 Hash Match: '.$virus[4].')', FALSE, 0, TRUE, TRUE, FALSE);
|
||||
$Infected++; } } } }
|
||||
$CheckComplete = TRUE; } }
|
||||
// / Manually clean up sensitive memory. Helps to keep track of variable assignments.
|
||||
$file = $filesize = $data = $buffer = $handle = $virus = $data1 = $data2 = $data3 = NULL;
|
||||
unset($file, $filesize, $data, $buffer, $handle, $virus, $data1, $data2, $data3);
|
||||
return array($CheckComplete, $Infected, $FileCount); }
|
||||
// / -----------------------------------------------------------------------------------
|
||||
|
||||
// / -----------------------------------------------------------------------------------
|
||||
// / The main logic of the program.
|
||||
|
||||
// / Verify the installation.
|
||||
list($InstallationVerified, $Version) = verifyInstallation();
|
||||
if (!$InstallationVerified) die('ERROR!!! ScanCore-1, Cannot verify the ScanCore installation!'.$EOL);
|
||||
|
||||
// / Load the configuration file.
|
||||
list ($ConfigLoaded, $DefsExist, $ConfigFilePath, $VersionsMatch) = loadConfig($Version);
|
||||
if (!$ConfigLoaded) die('ERROR!!! ScanCore-2, Cannot load the configuration file located at: '.$ConfigFilePath.$EOL);
|
||||
if (!$DefsExist) die('ERROR!!! ScanCore-3, Cannot verify the definitions file located at: '.$DefsFile.$EOL);
|
||||
if (!$VersionsMatch) die('ERROR!!! ScanCore-4, Cannot verify the definitions file located at: '.$DefsFile.$EOL);
|
||||
|
||||
// / Create required directories if they don't already exist.
|
||||
list($RequiredDirsExist) = createDirs($RequiredDirs);
|
||||
if (!$ConfigLoaded) die('ERROR!!! ScanCore-5, Cannot create required directories!'.$EOL);
|
||||
|
||||
// / Process supplied command-line arguments.
|
||||
// / Example: C:\Path-To-PHP-Binary.exe C:\Path-To-ScanCore.php C:\Path-To-Scan\ -m [integer] -c [integer] -v -d
|
||||
list($ArgsParsed, $PerformScan, $PathToScan, $MemoryLimit, $ChunkSize, $Debug, $Verbose, $Recursion, $ReportFile, $MaxLogSize, $PerformDefUpdate, $PerformAppUpdate) = parseArgs($argv);
|
||||
if (!$ArgsParsed) processOutput('Cannot verify supplied arguments!', TRUE, 6, TRUE, TRUE, TRUE);
|
||||
else processOutput('Verified supplied arguments.', FALSE, 0, TRUE, FALSE, FALSE);
|
||||
|
||||
// / Perform a definition update, when required.
|
||||
if ($PerformDefUpdate) {
|
||||
list($UpdateDefininitionsComplete, $UpdateDefinitionsErrors) = updateDefinitions();
|
||||
if (!$UpdateDefininitionsComplete) processOutput('Cannot install definition update!', TRUE, 7, TRUE, TRUE, TRUE);
|
||||
else processOutput('Installed definition update.', FALSE, 0, TRUE, TRUE, FALSE); }
|
||||
|
||||
// / Perform an application update, when required.
|
||||
if ($PerformAppUpdate) {
|
||||
list($UpdateApplicationComplete, $UpdateApplicationErrors) = updateApplication();
|
||||
if (!$UpdateApplicationComplete) processOutput('Cannot install application update!', TRUE, 8, TRUE, TRUE, TRUE);
|
||||
else processOutput('Installed application update. Please open '.$DefaultConfigFile.' & validate configuration entries.', FALSE, 0, TRUE, TRUE, TRUE); }
|
||||
|
||||
// / Perform scanning operations, when required
|
||||
if ($PerformScan) {
|
||||
// / Load the virus definitions into memory and calculate it's hash (to avoid detecting our own definitions as an infection).
|
||||
list($DefsLoaded, $Defs, $DefData) = load_defs($DefsFile);
|
||||
if (!$DefsLoaded) processOutput('Cannot load definitions!', TRUE, 9, TRUE, TRUE, TRUE);
|
||||
else processOutput('Loaded definitions.', FALSE, 0, TRUE, FALSE, FALSE);
|
||||
|
||||
// / Start the scanner!
|
||||
list($ScanComplete, $DirCount, $FileCount, $Infected) = file_scan($PathToScan, $Defs, $DefsFile, $DefData, $Debug, $Verbose, $MemoryLimit, $ChunkSize, $Recursion);
|
||||
if (!$ScanComplete) processOutput('Cannot not complete requested scan!', TRUE, 10, TRUE, TRUE, TRUE);
|
||||
else processOutput('Scanned '.$FileCount.' files in '.$DirCount.' folders and found '.$Infected.' potentially infected items.', FALSE, 0, TRUE, TRUE, TRUE); }
|
||||
// / -----------------------------------------------------------------------------------
|
|
@ -1,222 +1,46 @@
|
|||
<?php
|
||||
// / -----------------------------------------------------------------------------------
|
||||
// / COPYRIGHT INFORMATION ...
|
||||
// / ScanCore, Copyright on 3/31/2024 by Justin Grimes, www.github.com/zelon88
|
||||
// /
|
||||
// / LICENSE INFORMATION ...
|
||||
// / This project is protected by the GNU GPLv3 Open-Source license.
|
||||
// / BSD or MIT licensing is available. Reach out to @zelon88 for more information.
|
||||
// / https://www.gnu.org/licenses/gpl-3.0.html
|
||||
// /
|
||||
// / APPLICATION INFORMATION ...
|
||||
// / This application is designed to scan files & folders for viruses.
|
||||
// /
|
||||
// / FILE INFORMATION ...
|
||||
// / v1.5.
|
||||
// / This file contains the core logic of the ScanCore application.
|
||||
// /
|
||||
// / HARDWARE REQUIREMENTS ...
|
||||
// / This application requires at least a Raspberry Pi Model B+ or greater.
|
||||
// / This application will run on just about any x86 or x64 computer.
|
||||
// /
|
||||
// / DEPENDENCY REQUIREMENTS ...
|
||||
// / This application should run on Linux or Windows systems with PHP 8.0 (or later).
|
||||
// / Git is preferred for performing automatic update operations, but not required.
|
||||
// /
|
||||
// / VALID SWITCHES / ARGUMENTS / USAGE ...
|
||||
// / Quick Start Example:
|
||||
// / C:\Path-To-PHP-Binary.exe C:\Path-To-ScanCore.php C:\Path-To-Scan\ -m [integer] -c [integer] -v -d
|
||||
// /
|
||||
// / Start by opening a command-prompt.
|
||||
// / Type the absolute path to a portable PHP 7.0+ binary. Don't press enter just yet.
|
||||
// / Now type the absolute path to this PHP file as the only argument for the PHP binary.
|
||||
// / Everything after the path to this script will be passed to this file as an argument.
|
||||
// / The first Argument Must be a valid absolute path to the file or folder being scanned.
|
||||
// / Optional arguments can be specified after the scan path. Separate them with spaces.
|
||||
// /
|
||||
// / Reqiured Arguments Include:
|
||||
// /
|
||||
// / File or folder to scan: /path/to/scan
|
||||
// /
|
||||
// / Optional Arguments Include:
|
||||
// /
|
||||
// / Show version information: -version
|
||||
// / -ver
|
||||
// /
|
||||
// / Show help information: -help
|
||||
// / -h
|
||||
// /
|
||||
// / Force recursion: -recursion
|
||||
// / -r
|
||||
// /
|
||||
// / Force no recursion: -norecursion
|
||||
// / -nr
|
||||
// /
|
||||
// / Specify memory limit (in bytes): -memorylimit ####
|
||||
// / -m ####
|
||||
// /
|
||||
// / Specify chunk size (in bytes); -chunksize ####
|
||||
// / -c ####
|
||||
// /
|
||||
// / Enable "debug" mode (more logging): -debug
|
||||
// / -d
|
||||
// /
|
||||
// / Enable "verbose" mode (more console): -verbose
|
||||
// / -v
|
||||
// /
|
||||
// / Force a specific report file: -reportfile /path/to/file
|
||||
// / -rf path/to/file
|
||||
// /
|
||||
// / Force a specific configuration file: -configfile /path/to/file
|
||||
// / -cf path/to/file
|
||||
// /
|
||||
// / Force a specific definitions file: -defsfile /path/to/file
|
||||
// / -df path/to/file
|
||||
// /
|
||||
// / Force maximum log size (in bytes): -maxlogsize ###
|
||||
// / -ml ###
|
||||
// /
|
||||
// / Perform definition update: -updatedefinitions
|
||||
// / -ud
|
||||
// /
|
||||
// / Perform application update: -updateapplication
|
||||
// / -ua
|
||||
// /
|
||||
// / <3 Open-Source
|
||||
// / -----------------------------------------------------------------------------------
|
||||
// This file contains the configuration data for the ScanCore Server application.
|
||||
// Make sure to fill out the information below 100% accuratly BEFORE you attempt to run
|
||||
// any ScanCore Server application scripts. Severe filesystem damage could result.
|
||||
|
||||
// BE SURE TO FILL OUT ALL INFORMATION ACCURATELY !!!
|
||||
// PRESERVE ALL SYNTAX AND FORMATTING !!!
|
||||
// SERIOUS FILESYSTEM DAMAGE COULD RESULT FROM INCORRECT DATABASE OR DIRECTORY INFO !!!
|
||||
|
||||
// htts://github.com/zelon88/ScanCore
|
||||
// / ------------------------------
|
||||
|
||||
|
||||
// / ------------------------------
|
||||
// / License Information ...
|
||||
// / To continue, please accept the included GPLv3 license by changing the following
|
||||
// / variable to '1'. By changing the '$Accept_GPLv3_OpenSource_License' variable to '1'
|
||||
// / you aknowledge that you have read and agree to the terms of the included LICENSE file.
|
||||
$Accept_GPLv3_OpenSource_License = '1';
|
||||
// / ------------------------------
|
||||
|
||||
// / -----------------------------------------------------------------------------------
|
||||
// / General Information ...
|
||||
// /
|
||||
// / --Allow Application Updates--
|
||||
// / Allow application updates. Requires git. Will replace ScanCore_Config.php & rename the original.
|
||||
// / Valid options are TRUE or FALSE.
|
||||
// / Default is TRUE.
|
||||
$ApplicationUpdates = TRUE;
|
||||
// / --Application Update URL--
|
||||
// / The URL of a Git repository containing application updates.
|
||||
// / Valid options are a URL to a ScanCore source code Git repository, formatted as a string.
|
||||
// / Default is 'https://github.com/zelon88/ScanCore'.
|
||||
$ApplicationUpdateURL = 'https://github.com/zelon88/ScanCore';
|
||||
// / --Application Update Domain--
|
||||
// / The domain, including http or https, that you intent to use for application updates.
|
||||
// / ScanCore will test this connection before attempting any update operations.
|
||||
// / Valid options are a URL to the domain where you connect for definition updates.
|
||||
// / Default is 'github.com'
|
||||
$ApplicationUpdateDomain = 'github.com';
|
||||
// / --Application Repository Name--
|
||||
// / The name of the repository containing the application updates to use.
|
||||
// / Valid options are the name of the repository, formatted as a string.
|
||||
// / Default is 'ScanCore'.
|
||||
$ApplicationRepositoryName = 'ScanCore';
|
||||
// / --Application Branch Name--
|
||||
// / The name of the repository branch containing the application updates to use.
|
||||
// / Valid options are the name of the application repository branch, formatted as a string.
|
||||
// / Default is 'master'.
|
||||
$ApplicationBranchName = 'master';
|
||||
// / --Application Subscriptions--
|
||||
// / The type of application updates to subscribe to.
|
||||
// / Must be formatted as an array.
|
||||
// / Valid options are 'README.md', 'ScanCore.php', 'ScanCore_Config.php', 'index.html', 'Documentation/CHANGELOG.txt', 'Documentation/index.html'.
|
||||
// / Default is 'README.md', 'ScanCore.php', 'ScanCore_Config.php', 'index.html', 'Documentation/CHANGELOG.txt', 'Documentation/index.html'.
|
||||
$ApplicationUpdateSubscriptions = array('README.md', 'ScanCore.php', 'ScanCore_Config.php', 'index.html', 'Documentation/CHANGELOG.txt', 'Documentation/index.html');
|
||||
// / --Allow Definition Updates--
|
||||
// / Allow definition updates.
|
||||
// / Valid options are TRUE or FALSE.
|
||||
// / Default is TRUE.
|
||||
$DefinitionUpdates = TRUE;
|
||||
// / --Definition Update URL--
|
||||
// / The URL of a Git repository containing the definition updates to use.
|
||||
// / Valid options are a URL to a ScanCore source code Git repository, formatted as a string.
|
||||
// / Default is 'https://github.com/zelon88/ScanCore_Definitions'.
|
||||
$DefinitionUpdateURL = 'https://github.com/zelon88/ScanCore_Definitions';
|
||||
// / --Definition Update Domain--
|
||||
// / The domain, including http or https, that you intent to use for definition updates.
|
||||
// / ScanCore will test this connection before attempting any update operations.
|
||||
// / Valid options are a URL to the domain where you connect for definition updates.
|
||||
// / Default is 'github.com'
|
||||
$DefinitionUpdateDomain = 'github.com';
|
||||
// / --Definition Repository Name--
|
||||
// / The name of the repository containing the definition updates to use.
|
||||
// / Valid options are the name of the repository, formatted as a string.
|
||||
// / Default is 'ScanCore_Definitions'.
|
||||
$DefinitionRepositoryName = 'ScanCore_Definitions';
|
||||
// / --Definition Branch Name--
|
||||
// / The name of the repository branch containing the definition updates to use.
|
||||
// / Valid options are the name of the definition repository branch, formatted as a string.
|
||||
// / Default is 'main'.
|
||||
$DefinitionBranchName = 'main';
|
||||
// / --Definition Subscriptions--
|
||||
// / The type of definition updates to subscribe to.
|
||||
// / Must be formatted as an array.
|
||||
// / Valid options are 'Virus', 'Malware', 'Pup'.
|
||||
// / Default is 'Virus', 'Malware', 'PUP'.
|
||||
$DefinitionsUpdateSubscriptions = array('Virus', 'Malware', 'PUP');
|
||||
// / --Update Method--
|
||||
// / The method to use while performing updates.
|
||||
// / If 'git' is installed locally, the 'git' option is preferred.
|
||||
// / If 'git' is not installed & cannot be installed, the 'raw' option can be used instead.
|
||||
// / Valid options are 'git', 'raw'.
|
||||
// / Default is 'raw'.
|
||||
$UpdateMethod = 'git';
|
||||
// / --Default Maximum Log Size--
|
||||
// / Number of bytes to store in each logfile before splitting to a new one.
|
||||
// / Must be formatted as an integer, or an equation that evaluates to an integer.
|
||||
// / Default is 1024*1024*32.
|
||||
$DefaultMaxLogSize = 1024*1024*32;
|
||||
// / --Enable Debug Mode--
|
||||
// / Enable "debug" mode (more logging).
|
||||
// / Valid options are TRUE or FALSE.
|
||||
// / Default is FALSE.
|
||||
$Debug = FALSE;
|
||||
// / --Enable Verbose Mode--
|
||||
// / Enable "verbose" mode (more console).
|
||||
// / Valid options are TRUE or FALSE.
|
||||
// / Default is FALSE.
|
||||
$Verbose = FALSE;
|
||||
// / --Memory Limit--
|
||||
// / The maximum number of bytes of memory to allocate to file scan operations.
|
||||
// / Must be formatted as an integer, or an equation that evaluates to an integer.
|
||||
// / Default is 1024*1024*512.
|
||||
$DefaultMemoryLimit = 1024*1024*512;
|
||||
// / --Chunk Size--
|
||||
// / When scanning large files the file will be scanned this many bytes at a time.
|
||||
// / Must be formatted as an integer, or an equation that evaluates to an integer.
|
||||
// / Default is 1024*1024*128.
|
||||
$DefaultChunkSize = 1024*1024*128;
|
||||
// / --Configuration Version--
|
||||
// / The version of this file, used for internal version integrity checks.
|
||||
// / Must be formatted as a string. Must match the version of ScanCore.php file.
|
||||
$ConfigVersion = 'v1.5';
|
||||
// / -----------------------------------------------------------------------------------
|
||||
|
||||
// / -----------------------------------------------------------------------------------
|
||||
// / ------------------------------
|
||||
// / Directory locations ...
|
||||
// /
|
||||
// / --Scan Location--
|
||||
// / The default path to scan if run with no input scan path argument.
|
||||
// / Default is ''.
|
||||
// / The default location to scan if run with no input scan path argument.
|
||||
$ScanLoc = '';
|
||||
// / --Report Location--
|
||||
// / The absolute path where report files are stored.
|
||||
// / Default is 'Logs'.
|
||||
// / The absolute path where log files are stored.
|
||||
$LogsDir = 'Logs';
|
||||
// / The absolute path where report files are stored.
|
||||
$ReportDir = 'Logs';
|
||||
// / --Report File Name--
|
||||
// / The filename for the ScanCore report file.
|
||||
// / Default is 'ScanCore_Report.txt'.
|
||||
// / The filename for the ScanCore report file.
|
||||
$ReportFileName = 'ScanCore_Report.txt';
|
||||
// / --Definitions File Name--
|
||||
// / The filename for the ScanCore virus definition file.
|
||||
// / Default is 'ScanCore_Combined_Definitions.def'.
|
||||
$DefsFileName = 'ScanCore_Combined_Definitions.def';
|
||||
// / --Installation Directory--
|
||||
// / The absolute path where this application is installed.
|
||||
// / Default is realpath(dirname(__FILE__)).
|
||||
$InstallDir = realpath(dirname(__FILE__));
|
||||
// / --Definitions File--
|
||||
// / The absolute path where the Definitions File can be found.
|
||||
// / Default is $InstallDir.DIRECTORY_SEPARATOR.$DefsFileName.
|
||||
$DefsFile = $InstallDir.DIRECTORY_SEPARATOR.$DefsFileName;
|
||||
// / -----------------------------------------------------------------------------------
|
||||
// / The filename for the ScanCore log file.
|
||||
$ScanCoreLogfilename = 'ScanCore_Latest-Log.txt';
|
||||
// / The filename for the ScanCore virus definition file.
|
||||
$DefsFileName = 'ScanCore_Virus.def';
|
||||
// / The filename for the ScanCore virus definition file.
|
||||
$DefsDir = realpath(dirname(__FILE__)).DIRECTORY_SEPARATOR;
|
||||
// / The absolute path where virus definitions are found.
|
||||
$DefsFile = $DefsDir.$DefsFileName;
|
||||
// / ------------------------------
|
||||
|
||||
// / ------------------------------
|
||||
// / General Information ...
|
||||
// / Number of bytes to store in each logfile before splitting to a new one.
|
||||
$MaxLogSize = '100000000000000000000';
|
||||
// / ------------------------------
|
File diff suppressed because it is too large
Load diff
|
@ -1,7 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en-US">
|
||||
<title>ScanCore | Virus Scanner</title>
|
||||
<title>HRConvert2 | HRConvert2 Authentication</title>
|
||||
<body>
|
||||
This is a command line application! Please open a terminal, navigate to this directory, and submit commands to ScanCore.php!
|
||||
<div id="outer" align="center"><h1>Configuring HRConvert2 ...</h1>
|
||||
|
||||
<div id="inner" style="position:absolute; top:50%; left:50%; height:10em; margin-top:-5em; margin-right:5em;"><strong>Please wait . . .</strong></div>
|
||||
</div>
|
||||
<script type="text/javascript">
|
||||
|
||||
// Set the URL below to the page the user is sent to if their screensize is UNDER the specified number of pixels.
|
||||
if (screen.width <= 699) { document.location = "/HRProprietary/HRConvert2/convertCore.php"; }
|
||||
// / Set the URL below to the page the user is sent to if their screensize is OVER the specified number of pixels.
|
||||
if (screen.width >= 700) { document.location = "/HRProprietary/HRConvert2/convertCore.php"; }
|
||||
|
||||
</script>
|
||||
|
||||
<meta id="IfNothingHappens" http-equiv="refresh" content="5"; url="/HRProprietary/HRConvert2/convertCore.php" >
|
||||
|
||||
</body>
|
||||
</html>
|
||||
</html>
|
328
Resources/ScanCore/scanCore.php
Normal file
328
Resources/ScanCore/scanCore.php
Normal file
|
@ -0,0 +1,328 @@
|
|||
<?php
|
||||
// / -----------------------------------------------------------------------------------
|
||||
// / APPLICATION INFORMATION ...
|
||||
// / HR-AV, Copyright on 1/4/2023 by Justin Grimes, www.github.com/zelon88
|
||||
// / This file is a heavily modified version of PHP-AV maintained by Justin Grimes.
|
||||
// / This file was designed to function as part of the HR-AV anti-virus application.
|
||||
// / This file may not work properly outside of it's intended environment or use-case.
|
||||
// / This file should be used outside it's intended application only during development.
|
||||
// / Serious data loss or filesystem damage may result! Execute this file at your own risk!
|
||||
// /
|
||||
// / LICENSE INFORMATION ...
|
||||
// / This project is protected by the GNU GPLv3 Open-Source license.
|
||||
// /
|
||||
// / DEPENDENCY REQUIREMENTS ...
|
||||
// / This application requires Windows 7 (or later) with PHP 7.0 (or later).
|
||||
// /
|
||||
// / VALID SWITCHES / ARGUMENTS / USAGE ...
|
||||
// / Quick Start Example:
|
||||
// / C:\Path-To-PHP-Binary.exe C:\Path-To-ScanCore.php C:\Path-To-Scan\ -m [integer] -c [integer] -v -d
|
||||
// /
|
||||
// / Start by opening a command-prompt.
|
||||
// / Type the absolute path to a portable PHP 7.0+ binary. Don't press enter just yet.
|
||||
// / Now type the absolute path to this PHP file as the only argument for the PHP binary.
|
||||
// / Everything after the path to this script will be passed to this file as an argument.
|
||||
// / The first Argument Must be a valid absolute path to the file or folder being scanned.
|
||||
// / Optional arguments can be specified after the scan path. Separate them with spaces.
|
||||
// /
|
||||
// / Optional Arguments Include:
|
||||
// / Force recursion: -recursion
|
||||
// / -r
|
||||
// /
|
||||
// / Force no recursion: -norecursion
|
||||
// / -nr
|
||||
// /
|
||||
// / Specify memory limit (in bytes): -memorylimit ####
|
||||
// / -m ####
|
||||
// /
|
||||
// / Specify chunk size (in bytes); -chunksize ####
|
||||
// / -c ####
|
||||
// /
|
||||
// / Enable "debug" mode (more logging): -debug
|
||||
// / -d
|
||||
// /
|
||||
// / Enable "verbose" mode (more console): -verbose
|
||||
// / -v
|
||||
// /
|
||||
// / Force a specific log file: -logfile /path/to/file
|
||||
// / -lf path/to/file
|
||||
// /
|
||||
// / Force a specific report file: -reportfile /path/to/file
|
||||
// / -rf path/to/file
|
||||
// /
|
||||
// / Force maximum log size (in bytes): -maxlogsize ###
|
||||
// / -ml ###
|
||||
// /
|
||||
// / -----------------------------------------------------------------------------------
|
||||
|
||||
// / -----------------------------------------------------------------------------------
|
||||
// / The following code will load required HR-AV files.
|
||||
$rp = realpath(dirname(__FILE__));
|
||||
if (!file_exists($rp.DIRECTORY_SEPARATOR.'ScanCore_Config.php')) die ('ERROR!!! ScanCore-0, Cannot process the HR-AV ScanCore Configuration file (config.php)!'.PHP_EOL);
|
||||
else require_once ($rp.DIRECTORY_SEPARATOR.'ScanCore_Config.php');
|
||||
// / -----------------------------------------------------------------------------------
|
||||
|
||||
// / -----------------------------------------------------------------------------------
|
||||
// / The following code sets the global variables for the session.
|
||||
// / Application related variables.
|
||||
$scanCoreVersion = 'v0.9';
|
||||
$Versions = 'PHP-AV App v4.1 | Virus Definition v4.9, 4/10/2019';
|
||||
$encType = 'ripemd160';
|
||||
$dirCount = 1;
|
||||
$fileCount = $infected = 0;
|
||||
// / Time related variables.
|
||||
$Date = date("m_d_y");
|
||||
$Time = date("F j, Y, g:i a");
|
||||
// / Directory related variables.
|
||||
$Separator = DIRECTORY_SEPARATOR;
|
||||
$ReportFile = $Separator.$ReportDir.$Separator.$ReportFileName;
|
||||
$ScanCoreLogfile = $ReportDir.$ScanCoreLogfilename;
|
||||
$RequiredDirs = array($ReportDir);
|
||||
// / Unset unneeded variables for security purposes.
|
||||
$encType = $RandomNumber = $SesHash = $SesHash2 = $SesHash3 = $Salts1 = $Salts2 = $Salts3 = $Salts4 = $Salts5 = $Salts6 = NULL;
|
||||
unset($encType, $RandomNumber, $SesHash, $SesHash2, $SesHash3, $Salts1, $Salts2, $Salts3, $Salts4, $Salts5, $Salts6);
|
||||
// / -----------------------------------------------------------------------------------
|
||||
|
||||
// / -----------------------------------------------------------------------------------
|
||||
// / A function to create required directories when they do not already exist.
|
||||
function createDirs($RequiredDirs) {
|
||||
global $Time;
|
||||
foreach ($RequiredDirs as $reqdDir) {
|
||||
if (!file_exists($reqdDir)) mkdir($reqdDir);
|
||||
if (!file_exists($reqdDir)) die('ERROR!!! ScanCore-10 on '.$Time.', Cannot create required directory "'.$reqdDir.'"!'.PHP_EOL); }
|
||||
return TRUE; }
|
||||
// / -----------------------------------------------------------------------------------
|
||||
|
||||
// / -----------------------------------------------------------------------------------
|
||||
// / A function to add an entry to the logs.
|
||||
function addLogEntry($entry, $error, $errorNumber) {
|
||||
global $ReportFile, $Time;
|
||||
if (!is_numeric($errorNumber)) $errorNumber = 0;
|
||||
if ($error === TRUE) $preText = 'ERROR!!! ScanCore-'.$errorNumber.' on '.$Time.', ';
|
||||
else $preText = $Time.', ';
|
||||
return(file_put_contents($ReportFile, $preText.$entry.PHP_EOL, FILE_APPEND)); }
|
||||
// / -----------------------------------------------------------------------------------
|
||||
|
||||
// / -----------------------------------------------------------------------------------
|
||||
// / A function to parse supplied command-line arguments.
|
||||
function parseArgs($argv) {
|
||||
global $ReportFile, $ScanCoreLogfile, $MaxLogSize, $debug, $verbose;
|
||||
$memoryLimit = 4000000;
|
||||
$chunkSize = 1000000;
|
||||
$recursion = TRUE;
|
||||
$debug = $pathToScan = $verbose = FALSE;
|
||||
$reportFile = $ReportFile;
|
||||
$maxLogSize = $MaxLogSize;
|
||||
foreach ($argv as $key => $arg) {
|
||||
trim($arg);
|
||||
$arg = htmlentities(str_replace(str_split('~#[](){};:$!#^&%@>*<"\''), '', $arg));
|
||||
if ($arg == '-memorylimit' or $arg == '-m') $memoryLimit = $argv[$key + 1];
|
||||
if ($arg == '-chunksize' or $arg == '-c') $chunkSize = $argv[$key + 1];
|
||||
if ($arg == '-debug' or $arg == '-d') $debug = TRUE;
|
||||
if ($arg == '-verbose' or $arg == '-v') $verbose = TRUE;
|
||||
if ($arg == '-recursion' or $arg == '-r') $recursion = TRUE;
|
||||
if ($arg == '-norecursion' or $arg == '-nr') $recursion = FALSE;
|
||||
if ($arg == '-reportfile' or $arg == '-rf') $reportFile = $argv[$key + 1];
|
||||
if ($arg == '-logfile' or $arg == '-lf') $ScanCoreLogfile = $argv[$key + 1];
|
||||
if ($arg == '-maxlogsize' or $arg == '-ml') $maxLogSize = $argv[$key + 1]; }
|
||||
if (!isset($argv[1])) {
|
||||
$txt = 'There were no arguments set!';
|
||||
addLogEntry($txt, TRUE, 100);
|
||||
die ($txt.PHP_EOL); }
|
||||
if (!file_exists($argv[1])) {
|
||||
$txt = 'The specified file was not found! The first argument must be a valid file or directory path!';
|
||||
addLogEntry($txt, TRUE, 200);
|
||||
die ($txt.PHP_EOL); }
|
||||
$pathToScan = $argv[1];
|
||||
if (!is_numeric($memoryLimit) or !is_numeric($chunkSize)) {
|
||||
$txt = 'Either the chunkSize argument or the memoryLimit argument is invalid. Substituting default values.';
|
||||
addLogEntry($txt, TRUE, 300);
|
||||
echo $txt.PHP_EOL;
|
||||
$memoryLimit = $defaultMemoryLimit;
|
||||
$chunkSize = $defaultChunkSize; }
|
||||
return(array($pathToScan, $memoryLimit, $chunkSize, $debug, $verbose, $recursion, $reportFile, $ScanCoreLogfile, $maxLogSize)); }
|
||||
// / -----------------------------------------------------------------------------------
|
||||
|
||||
// / -----------------------------------------------------------------------------------
|
||||
// Hunts files/folders recursively for scannable items.
|
||||
function file_scan($folder, $defs, $DefsFile, $defData, $debug, $verbose, $memoryLimit, $chunkSize, $recursion) {
|
||||
global $fileCount, $dirCount, $infected, $Separator;
|
||||
if (is_dir($folder)) {
|
||||
$files = scandir($folder);
|
||||
foreach ($files as $file) {
|
||||
if ($file === '' or $file === '.' or $file === '..') continue;
|
||||
$entry = str_replace($Separator.$Separator, $Separator, $folder.$Separator.$file);
|
||||
if (!is_dir($entry)) list($fileCount, $infected) = virus_check($entry, $defs, $DefsFile, $defData, $debug, $verbose, $memoryLimit, $chunkSize);
|
||||
else if (is_dir($entry) && $recursion) {
|
||||
if ($debug) {
|
||||
$txt = 'Scanning folder "'.$entry.'" ... ';
|
||||
addLogEntry($txt, FALSE, 0); }
|
||||
if ($verbose) {
|
||||
$txt = 'Scanning folder "'.$entry.'" ... ';
|
||||
echo $txt.PHP_EOL; } }
|
||||
$dirCount++;
|
||||
list ($dirCount1, $fileCount1, $infected1) = file_scan($entry, $defs, $DefsFile, $defData, $debug, $verbose, $memoryLimit, $chunkSize, $recursion); } }
|
||||
if (!is_dir($folder) && $folder !== '.' && $folder !== '..') {
|
||||
$fileCount++;
|
||||
list($fileCount1, $infected1) = virus_check($folder, $defs, $DefsFile, $defData, $debug, $verbose, $memoryLimit, $chunkSize); }
|
||||
return array($dirCount, $fileCount, $infected); }
|
||||
// / -----------------------------------------------------------------------------------
|
||||
|
||||
// / -----------------------------------------------------------------------------------
|
||||
// Reads tab-delimited defs file. Also hashes the file to avoid self-detection.
|
||||
function load_defs($file, $debug, $verbose) {
|
||||
if (!file_exists($file)) {
|
||||
$defs = $defData = FALSE;
|
||||
$txt = 'Could not load the virus definition file located at "'.$file.'"! File either does not exist or cannot be read!';
|
||||
addLogEntry($txt, TRUE, 600);
|
||||
if ($verbose) echo $txt.PHP_EOL;
|
||||
die(); }
|
||||
else {
|
||||
$defs = file($file);
|
||||
$counter = 0;
|
||||
$counttop = sizeof($defs);
|
||||
$defData = hash_file('sha256', $file);
|
||||
while ($counter < $counttop) {
|
||||
$defs[$counter] = explode(' ', $defs[$counter]);
|
||||
$counter++; }
|
||||
if ($debug) {
|
||||
$txt = 'Loaded '.sizeof($defs).' virus definitions.';
|
||||
addLogEntry($txt, FALSE, 0); } }
|
||||
if ($verbose) {
|
||||
$txt = 'Loaded '.sizeof($defs).' virus definitions.';
|
||||
echo $txt.PHP_EOL; }
|
||||
return (array($defs, $defData)); }
|
||||
// / -----------------------------------------------------------------------------------
|
||||
|
||||
// / -----------------------------------------------------------------------------------
|
||||
// Hashes and checks files/folders for viruses against static virus defs.
|
||||
function virus_check($file, $defs, $DefsFile, $defData, $debug, $verbose, $memoryLimit, $chunkSize) {
|
||||
global $fileCount, $dirCount, $infected, $DefsFileName;
|
||||
if ($file !== $DefsFileName) {
|
||||
if (file_exists($file)) {
|
||||
$txt = ('Scanning file "'.$file.'".');
|
||||
addLogEntry($txt, FALSE, 0);
|
||||
if ($verbose) echo $txt.PHP_EOL;
|
||||
$filesize = filesize($file);
|
||||
$data1 = hash_file('md5', $file);
|
||||
$data2 = hash_file('sha256', $file);
|
||||
$data3 = hash_file('sha1', $file);
|
||||
// / Scan files larger than the memory limit by breaking them into chunks.
|
||||
if ($filesize >= $memoryLimit && file_exists($file)) {
|
||||
if ($debug) {
|
||||
$txt = 'Chunking file ... ';
|
||||
addLogEntry($txt, FALSE, 0); }
|
||||
if ($verbose) {
|
||||
$txt = 'Chunking File ... ';
|
||||
echo $txt.PHP_EOL; }
|
||||
$handle = @fopen($file, "r");
|
||||
if ($handle) {
|
||||
while (($buffer = fgets($handle, $chunkSize)) !== FALSE) {
|
||||
$data = $buffer;
|
||||
if ($debug) {
|
||||
$txt = 'Scanning chunk ... ';
|
||||
addLogEntry($txt, FALSE, 0); }
|
||||
if ($verbose) {
|
||||
$txt = 'Scanning chunk ... ';
|
||||
echo $txt.PHP_EOL; }
|
||||
foreach ($defs as $virus) {
|
||||
$virus = explode("\t", $virus[0]);
|
||||
if (isset($virus[1]) && !is_null($virus[1]) && $virus[1] !== '' && $virus[1] !== ' ') {
|
||||
if (strpos(strtolower($data), strtolower($virus[1])) !== FALSE or strpos(strtolower($file), strtolower($virus[1])) !== FALSE) {
|
||||
// File matches virus defs.
|
||||
$txt = 'Infected: '.$file.' ('.$virus[0].', Data Match: '.$virus[1].')';
|
||||
addLogEntry($txt, FALSE, 0);
|
||||
if ($verbose) echo $txt.PHP_EOL;
|
||||
$infected++; } } } }
|
||||
if (!feof($handle)) {
|
||||
$txt = 'Unable to open "'.$file.'"!';
|
||||
addLogEntry($txt, TRUE, 800);
|
||||
if ($verbose) echo $txt.PHP_EOL; }
|
||||
fclose($handle); }
|
||||
if (isset($virus[2]) && !is_null($virus[2]) && $virus[2] !== '' && $virus[2] !== ' ') {
|
||||
if (strpos(strtolower($data1), strtolower($virus[2])) !== FALSE) {
|
||||
// File matches virus defs.
|
||||
$txt = 'Infected: '.$file.' ('.$virus[0].', MD5 Hash Match: '.$virus[2].')';
|
||||
addLogEntry($txt, FALSE, 0);
|
||||
if ($verbose) echo $txt.PHP_EOL;
|
||||
$infected++; } }
|
||||
if (isset($virus[3]) && !is_null($virus[3]) && $virus[3] !== '' && $virus[3] !== ' ') {
|
||||
if (strpos(strtolower($data2), strtolower($virus[3])) !== FALSE) {
|
||||
// File matches virus defs.
|
||||
$txt = 'Infected: '.$file.' ('.$virus[0].', SHA256 Hash Match: '.$virus[3].')';
|
||||
addLogEntry($txt, FALSE, 0);
|
||||
if ($verbose) echo $txt.PHP_EOL;
|
||||
$infected++; } }
|
||||
if (isset($virus[4]) && !is_null($virus[4]) && $virus[4] !== '' && $virus[4] !== ' ') {
|
||||
if (strpos(strtolower($data3), strtolower($virus[4])) !== FALSE) {
|
||||
// File matches virus defs.
|
||||
$txt = 'Infected: '.$file.' ('.$virus[0].', SHA1 Hash Match: '.$virus[4].')';
|
||||
addLogEntry($txt, FALSE, 0);
|
||||
if ($verbose) echo $txt.PHP_EOL;
|
||||
$infected++; } } }
|
||||
// / Scan files smaller than the memory limit by fitting the entire file into memory.
|
||||
if ($filesize < $memoryLimit && file_exists($file)) {
|
||||
$data = file_get_contents($file); }
|
||||
if ($defData !== $data2) {
|
||||
foreach ($defs as $virus) {
|
||||
$virus = explode("\t", $virus[0]);
|
||||
if (isset($virus[1]) && !is_null($virus[1]) && $virus[1] !== '' && $virus[1] !== ' ') {
|
||||
if (strpos(strtolower($data), strtolower($virus[1])) !== FALSE or strpos(strtolower($file), strtolower($virus[1])) !== FALSE) {
|
||||
// File matches virus defs.
|
||||
$txt = 'Infected: '.$file.' ('.$virus[0].', Data Match: '.$virus[1].')';
|
||||
addLogEntry($txt, FALSE, 0);
|
||||
if ($verbose) echo $txt.PHP_EOL;
|
||||
$infected++; } }
|
||||
if (isset($virus[2]) && !is_null($virus[2]) && $virus[2] !== '' && $virus[2] !== ' ') {
|
||||
if (strpos(strtolower($data1), strtolower($virus[2])) !== FALSE) {
|
||||
// File matches virus defs.
|
||||
$txt = 'Infected: '.$file.' ('.$virus[0].', MD5 Hash Match: '.$virus[2].')';
|
||||
addLogEntry($txt, FALSE, 0);
|
||||
if ($verbose) echo $txt.PHP_EOL;
|
||||
$infected++; } }
|
||||
if (isset($virus[3]) && !is_null($virus[3]) && $virus[3] !== '' && $virus[3] !== ' ') {
|
||||
if (strpos(strtolower($data2), strtolower($virus[3])) !== FALSE) {
|
||||
// File matches virus defs.
|
||||
$txt = 'Infected: '.$file.' ('.$virus[0].', SHA256 Hash Match: '.$virus[3].')';
|
||||
addLogEntry($txt, FALSE, 0);
|
||||
if ($verbose) echo $txt.PHP_EOL;
|
||||
$infected++; } }
|
||||
if (isset($virus[4]) && !is_null($virus[4]) && $virus[4] !== '' && $virus[4] !== ' ') {
|
||||
if (strpos(strtolower($data3), strtolower($virus[4])) !== FALSE) {
|
||||
// File matches virus defs.
|
||||
$txt = 'Infected: '.$file.' ('.$virus[0].', SHA1 Hash Match: '.$virus[4].')';
|
||||
addLogEntry($txt, FALSE, 0);
|
||||
if ($verbose) echo $txt.PHP_EOL;
|
||||
$infected++; } } } } } }
|
||||
return (array($fileCount, $infected)); }
|
||||
// / -----------------------------------------------------------------------------------
|
||||
|
||||
// / -----------------------------------------------------------------------------------
|
||||
// / The main logic of the program.
|
||||
|
||||
// / Initialize an empty array if no arguments are set.
|
||||
if (!isset($argv)) $argv = array();
|
||||
// / Create required directories if they don't already exist.
|
||||
createDirs($RequiredDirs);
|
||||
// / Process supplied command-line arguments.
|
||||
// / C:\Path-To-PHP-Binary.exe C:\Path-To-ScanCore.php C:\Path-To-Scan\ -m [integer] -c [integer] -v -d
|
||||
list($pathToScan, $memoryLimit, $chunkSize, $debug, $verbose, $recursion, $ReportFile, $ScanCoreLogfile, $MaxLogSize) = parseArgs($argv);
|
||||
// / Set some welcome text.
|
||||
// / Log the welcome text if $debug variable (-d switch) is set.
|
||||
// / Output the welcome text to the terminal if the $verbose (-v switch) variable is set.
|
||||
$txt = 'Starting ScanCore!';
|
||||
if ($debug) addLogEntry($txt, FALSE, 0);
|
||||
if ($verbose) echo PHP_EOL.$txt.PHP_EOL;
|
||||
// / Load the virus definitions into memory and calculate it's hash (to avoid detecting our own definitions as an infection).
|
||||
list($defs, $defData) = load_defs($DefsFile, $debug, $verbose);
|
||||
// / Start the scanner!
|
||||
list($dirCount, $fileCount, $infected) = file_scan($pathToScan, $defs, $DefsFile, $defData, $debug, $verbose, $memoryLimit, $chunkSize, $recursion);
|
||||
// / Copy the report file to the Logs directory for safe permanent keeping.
|
||||
@copy($ReportFile, $ScanCoreLogfile);
|
||||
// / Set some summary text.
|
||||
// / Log the summart text if $debug variable (-d switch) is set.
|
||||
// / Output the summary text to the terminal if the $verbose (-v switch) variable is set.
|
||||
$txt = 'Scanned '.$fileCount.' files in '.$dirCount.' folders and found '.$infected.' potentially infected items.';
|
||||
if ($debug) addLogEntry($txt, FALSE, 0);
|
||||
if ($verbose) echo $txt.PHP_EOL;
|
||||
// / -----------------------------------------------------------------------------------
|
Before Width: | Height: | Size: 266 B After Width: | Height: | Size: 266 B |
39
Resources/basic.css
Normal file
39
Resources/basic.css
Normal file
|
@ -0,0 +1,39 @@
|
|||
/*
|
||||
* The MIT License
|
||||
* Copyright (c) 2012 Matias Meno <m@tias.me>
|
||||
*/
|
||||
.dropzone, .dropzone * {
|
||||
box-sizing: border-box; }
|
||||
|
||||
.dropzone {
|
||||
position: relative; }
|
||||
.dropzone .dz-preview {
|
||||
position: relative;
|
||||
display: inline-block;
|
||||
width: 120px;
|
||||
margin: 0.5em; }
|
||||
.dropzone .dz-preview .dz-progress {
|
||||
display: block;
|
||||
height: 15px;
|
||||
border: 1px solid #aaa; }
|
||||
.dropzone .dz-preview .dz-progress .dz-upload {
|
||||
display: block;
|
||||
height: 100%;
|
||||
width: 0;
|
||||
background: green; }
|
||||
.dropzone .dz-preview .dz-error-message {
|
||||
color: red;
|
||||
display: none; }
|
||||
.dropzone .dz-preview.dz-error .dz-error-message, .dropzone .dz-preview.dz-error .dz-error-mark {
|
||||
display: block; }
|
||||
.dropzone .dz-preview.dz-success .dz-success-mark {
|
||||
display: block; }
|
||||
.dropzone .dz-preview .dz-error-mark, .dropzone .dz-preview .dz-success-mark {
|
||||
position: absolute;
|
||||
display: none;
|
||||
left: 30px;
|
||||
top: 30px;
|
||||
width: 54px;
|
||||
height: 58px;
|
||||
left: 50%;
|
||||
margin-left: -27px; }
|
|
@ -1,370 +0,0 @@
|
|||
<?php
|
||||
// / -----------------------------------------------------------------------------------
|
||||
// / COPYRIGHT INFORMATION ...
|
||||
// / HRConvert2, Copyright on 6/9/2024 by Justin Grimes, www.github.com/zelon88
|
||||
// /
|
||||
// / LICENSE INFORMATION ...
|
||||
// / This project is protected by the GNU GPLv3 Open-Source license.
|
||||
// / https://www.gnu.org/licenses/gpl-3.0.html
|
||||
// /
|
||||
// / APPLICATION INFORMATION ...
|
||||
// / This application is designed to provide a web-interface for converting file formats
|
||||
// / on a server for users of any web browser without authentication.
|
||||
// /
|
||||
// / FILE INFORMATION ...
|
||||
// / v3.3.7.
|
||||
// / This file contains the configuration information for HRConvert2.
|
||||
// / Fill out this file completely & accurately before running the application.
|
||||
// / Serious filesystem damage could occur from incorrect directory settings.
|
||||
// / Be careful to preserve all syntax & formatting.
|
||||
// /
|
||||
// / HARDWARE REQUIREMENTS ...
|
||||
// / This application requires at least a Raspberry Pi Model B+ or greater.
|
||||
// / This application will run on just about any x86 or x64 computer.
|
||||
// /
|
||||
// / DEPENDENCY REQUIREMENTS ...
|
||||
// / This application requires Debian Linux (w/3rd Party audio license),
|
||||
// / Apache 2.4, PHP 8+, LibreOffice, Unoconv, ClamAV, Tesseract, Rar, Unrar, Unzip,
|
||||
// / 7zipper, FFMPEG, PdfToText, Dia, PopplerUtils, MeshLab, Mkisofs & ImageMagick.
|
||||
// /
|
||||
// / <3 Open-Source
|
||||
// / -----------------------------------------------------------------------------------
|
||||
|
||||
|
||||
// / ------------------------------
|
||||
|
||||
// / ---Security Informations---
|
||||
// /
|
||||
// / --Salts--
|
||||
// / Salts for hashing operations.
|
||||
// / Change these Salts to something completely random and keep them secret.
|
||||
// / Store your Salts in hardcopy form or on an encrypted drive in case of emergency.
|
||||
$Salts1 = 'something1SoRa21nDoMThatNobody_4Wiljl_evar+guess+i1tgdgdfgfdsfgdasfdas';
|
||||
$Salts2 = 'gdf4sgdfsg1sdfsomethingSoRa33nDoMThatNobody_Will2_evar_guess+it';
|
||||
$Salts3 = 'somethingSoRanDoMThatNobo423432dy54534534_Will_evar+guess+it';
|
||||
$Salts4 = 'somethin1gSoRanDoMThat123:l_will_evar-guess+it';
|
||||
$Salts5 = 'somethingSoRanDoMThatNobodyr3454r3r33_Will_evar+guess+it';
|
||||
$Salts6 = 'somethingSoR5anDoMThatNob2odyawryoglukfgy;/,6^&__Will_evar+guess+it';
|
||||
// / --Server URL--
|
||||
// / Externally or internally accesible domain or IP.
|
||||
// / Do not include a trailing slash.
|
||||
// / Default is localhost.
|
||||
$URL = 'localhost';
|
||||
// / --Virus Scanning--
|
||||
// / Scan for viruses before performing file operations.
|
||||
// / Requires ClamAV to be installed on the server.
|
||||
// / Set to TRUE to enable virus scanning with ClamAV during file operations.
|
||||
// / Set to FALSE to disable virus scanning during file operations.
|
||||
// / The --User Virus Scanning-- config entry has a major impact on how regular virus scans are performed.
|
||||
// / If set to TRUE & --User Virus Scanning-- is set to TRUE infected files detected during virus scans will not be removed automatically.
|
||||
// / If set to TRUE & --User Virus Scanning-- is set to FALSE any infected file will immediately be deleted upon detection.
|
||||
// / If set to TRUE & --User Virus Scanning-- is set to TRUE incoming file uploads will not be scanned for viruses.
|
||||
// / If set to TRUE & --User Virus Scanning-- is set to FALSE incoming file uploads will be scanned for viruses.
|
||||
// / Regardless of how --User Virus Scanning-- is set, infected files cannot be downloaded, archived, converted, or OCR'd.
|
||||
// / Valid options are TRUE or FALSE.
|
||||
// / Defalt is FALSE.
|
||||
$VirusScan = FALSE;
|
||||
// / --User Virus Scanning--
|
||||
// / Provide users with options to scan their uploaded files for viruses.
|
||||
// / Requires ClamAV to be installed on the server.
|
||||
// / Set to TRUE to allow users to upload potentially infected files.
|
||||
// / Set to FALSE to disallow users uploading potentially infected files.
|
||||
// / This config entry has a major impact on how regular virus scans are performed.
|
||||
// / If set to TRUE & --Virus Scanning-- is set to TRUE infected files detected during virus scans will not be removed automatically.
|
||||
// / If set to FALSE & --Virus Scanning-- is set to TRUE any infected file will immediately be deleted upon detection.
|
||||
// / If set to TRUE & --Virus Scanning-- is set to TRUE incoming file uploads will not be scanned for viruses.
|
||||
// / If set to FALSE & --Virus Scanning-- is set to TRUE incoming file uploads will be scanned for viruses.
|
||||
// / Regardless of how --User Virus Scanning-- is set, infected files cannot be downloaded, archived, converted, or OCR'd.
|
||||
// / Valid options are TRUE or FALSE.
|
||||
// / Default is TRUE.
|
||||
$AllowUserVirusScan = TRUE;
|
||||
// / --User Virus Scanning ScanCore Memory Limit--
|
||||
// / The number of bytes of memory ScanCore is allowed to allocate to large files during User Virus Scans.
|
||||
// / Files larger than this limit will be broken into chunks controlled by the --User Virus Scanning ScanCore Chunk Size-- config entry.
|
||||
// / Default is 268435456.
|
||||
$ScanCoreMemoryLimit = 268435456;
|
||||
// / --User Virus Scanning ScanCore Chunk Size--
|
||||
// / In order to scan files that are larger than the memory limit, large files will be broken into chunks.
|
||||
// / The number of bytes to break large files into in order to fit them into memory.
|
||||
// / Default is 134217928.
|
||||
$ScanCoreChunkSize = 134217928;
|
||||
// / --User Virus Scanning ScanCore Debug Mode--
|
||||
// / Enable an absolutely insane amount of verbosity from ScanCore during file scan operations.
|
||||
// / If set to TRUE these events will be included in the report that is submitted to the user.
|
||||
// / If set to FALSE a normal amount of logging will be submitted to the user. Enough to get the job done.
|
||||
// / If you scanned an entire 500GB hard drive with this set to TRUE ScanCore would generate 10's of GB worth of logs.
|
||||
// / This setting will have an impact on ScanCore scanning performance.
|
||||
// / Seriously, it's a lot of logs.
|
||||
// / Valid options are TRUE or FALSE.
|
||||
// / Default is FALSE.
|
||||
$ScanCoreDebug = FALSE;
|
||||
// / --User Virus Scanning ScanCore Enhanced Verbosity--
|
||||
// / Enable an absolutely insane amount of console output from ScanCore during file scan operations.
|
||||
// / If set to TRUE these events will be included in the log file that is stored on the server.
|
||||
// / If set to FALSE a normal amount of logging will be stored on the server. Enough to get the job done.
|
||||
// / If you scanned an entire 500GB hard drive with this set to TRUE ScanCore would generate 10's of GB worth of logs.
|
||||
// / This setting will have an impact on ScanCore scanning performance.
|
||||
// / Seriously, it's a lot of logs.
|
||||
// / Valid options are TRUE or FALSE.
|
||||
// / Default is TRUE.
|
||||
$ScanCoreVerbose = TRUE;
|
||||
// / --Delete Build Environment--
|
||||
// / Automatically remove the build environment when it is no longer needed.
|
||||
// / Production servers should not keep the 'Build' folder in the --Installation Directory-- as a security precaution.
|
||||
// / If set to TRUE, the 'Build' folder in the root of the --Installation Directory-- will be recursively deleted.
|
||||
// / If set to FALSE, the 'Build' folder in the root of the --Installation Directory-- will NOT be deleted.
|
||||
// / This 'Build' folder could be used by an adversary to obtain configuration information about the application or server.
|
||||
// / This will NOT remove any documentation, logs, or required configuration files.
|
||||
// / If you want to keep the 'Build' folder, consider moving it out of the hosted '/var/www/html' directory.
|
||||
// / It is recommended to eventually set this to TRUE.
|
||||
// / Valid options are TRUE or FALSE.
|
||||
// / Default is FALSE.
|
||||
$DeleteBuildEnvironment = FALSE;
|
||||
// / --Delete Development Documentation--
|
||||
// / Automatically remove 'README.md' & 'Documentation/CHANGELOG.txt' files when they are no longer needed.
|
||||
// / Production servers should not keep these files in the --Installation Directory-- as a security precaution.
|
||||
// / If set to TRUE, the 'README.md' & 'Documentation/CHANGELOG.txt' files will be deleted.
|
||||
// / If set to FALSE, the 'README.md' & 'Documentation/CHANGELOG.txt' files will NOT be deleted.
|
||||
// / These files could be used by an adversary to obtain configuration information about the application or server.
|
||||
// / This will NOT remove any other documentation, logs, or required configuration files.
|
||||
// / If you want to keep these files, consider moving them out of the hosted '/var/www/html' directory.
|
||||
// / It is recommended to eventually set this to TRUE.
|
||||
// / Valid options are TRUE or FALSE.
|
||||
// / Default is FALSE.
|
||||
$DeleteDevelopmentDocumentation = FALSE;
|
||||
// / ------------------------------
|
||||
|
||||
// / ------------------------------
|
||||
// / ---Directory Information---
|
||||
// /
|
||||
// / --Installation Directory--
|
||||
// / Install HRConvert2 to the following directory.
|
||||
// / Do not include a trailing slash.
|
||||
// / Do not use a path with whitespace.
|
||||
// / Changing this value is not recommended.
|
||||
// / Default is /var/www/html/HRProprietary/HRConvert2.
|
||||
$InstLoc = '/var/www/html/HRProprietary/HRConvert2';
|
||||
// / --Server Root Directory--
|
||||
// / This should be pointed at the root of your web server directory.
|
||||
// / Do not include a trailing slash.
|
||||
// / Do not use a path with whitespace.
|
||||
// / Default is /var/www/html.
|
||||
$ServerRootDir = '/var/www/html';
|
||||
// / --Data Storage Directory--
|
||||
// / This is where temporary data files are stored.
|
||||
// / Do not include a trailing slash.
|
||||
// / Do not use a path with whitespace.
|
||||
// / Default is /DATA/HRConvert2.
|
||||
$ConvertLoc = '/DATA/HRConvert2';
|
||||
// / --Log Storage Directory--
|
||||
// / This is where permanent Log files are stored.
|
||||
// / Do not include a trailing slash.
|
||||
// / Do not use a path with whitespace.
|
||||
// / Default is /var/www/html/HRProprietary/HRConvert2/Logs.
|
||||
$LogDir = '/var/www/html/HRProprietary/HRConvert2/Logs';
|
||||
// / ------------------------------
|
||||
|
||||
// / ------------------------------
|
||||
// / ---General Information---
|
||||
// /
|
||||
// / --Application Name String--
|
||||
// / The default name to display for this application.
|
||||
// / You can change this to make it fit with other services your organization provides.
|
||||
// / Default is HRConvert2.
|
||||
$ApplicationName = 'HRConvert2';
|
||||
// / --Application Title String--
|
||||
// / The default title to display in taskbars & window managers.
|
||||
// / You can change this to make it fit with other services your organization provides.
|
||||
// / Default is Convert Anything!
|
||||
$ApplicationTitle = 'Convert Anything!';
|
||||
// / --Supported Guis--
|
||||
// / The list of GUIs that are supported by this application.
|
||||
// / Before adding a supported GUI be sure to add the matching folder full of GUI files to /UI.
|
||||
// / Errors will occur if you add an element to this array without also adding a matching GUI folder.
|
||||
// / Default is 'Default', 'Wide'.
|
||||
$SupportedGuis = array('Default', 'Wide');
|
||||
// / --Default GUI--
|
||||
// / The default GUI to use.
|
||||
// / See README.md for the latest GUI support information.
|
||||
// / If the specified GUI is not available 'en' will be used instead.
|
||||
// / ISO 639-1 reference is available here at https://www.andiamo.co.uk/resources/iso-GUI-codes/
|
||||
// / Valid options are text strings that correspond GUI codes found in the list of --Supported GUIs--.
|
||||
// / Default is Default.
|
||||
$DefaultGui = 'Default';
|
||||
// / --Allow User Selectable GUI--
|
||||
// / Provide users with the option to adjust which GUI is displayed via appending a parameter to the URL.
|
||||
// / Enable or disable dynamic GUI selection via the $_GET['gui'] variable.
|
||||
// / If set to TRUE a user will be able to select different GUIs via $_GET['gui'].
|
||||
// / If set to FALSE the $DefaultGui will always be used.
|
||||
// / To submit a $_GET request append ?gui=<CODE> to the URL & repalce <CODE> with name of the desired GUI.
|
||||
// / If a user attempts a GUI that is not available --Default GUI-- will be used instead.
|
||||
// / Valid options are TRUE or FALSE.
|
||||
// / Default is TRUE.
|
||||
$AllowUserSelectableGui = TRUE;
|
||||
// / --Supported Languages--
|
||||
// / The list of languages that are supported by this application.
|
||||
// / Before adding a supported language be sure to add the matching folder full of GUI files to /Languages.
|
||||
// / Errors will occur if you add an element to this array without also adding a matching Language folder.
|
||||
// / Default is 'en', 'fr', 'es', 'zh', 'hi', 'ar', 'ru', 'uk', 'bn', 'de', 'ko', 'it', 'pt'.
|
||||
$SupportedLanguages = array('en', 'fr', 'es', 'zh', 'hi', 'ar', 'ru', 'uk', 'bn', 'de', 'ko', 'it', 'pt');
|
||||
// / --Default Language--
|
||||
// / The default language to use for GUI elements.
|
||||
// / See README.md for the latest language support information.
|
||||
// / If the specified language is not available 'en' will be used instead.
|
||||
// / ISO 639-1 reference is available here at https://www.andiamo.co.uk/resources/iso-language-codes/
|
||||
// / Valid options are ISO 639-1 language codes found in the list of --Supported Languages--.
|
||||
// / Default is en.
|
||||
$DefaultLanguage = 'en';
|
||||
// / --Allow User Selectable Language--
|
||||
// / Provide users with the option to adjust which language is displayed via appending a parameter to the URL.
|
||||
// / Enable or disable dynamic language selection via the $_GET['language'] variable.
|
||||
// / If set to TRUE a user will be able to select different languages via $_GET['language'].
|
||||
// / If set to FALSE the $DefaultLanguage will always be used.
|
||||
// / To submit a $_GET request append ?language=<CODE> to the URL & repalce <CODE> with a 2 digit ISO 639-1 language code.
|
||||
// / If a user attempts a language that is not available --Default Language-- will be used instead.
|
||||
// / Valid options are TRUE or FALSE.
|
||||
// / Default is TRUE.
|
||||
$AllowUserSelectableLanguage = TRUE;
|
||||
// / --User Shareable File Links--
|
||||
// / Provide users with the option to generate shareable URLs for the files they upload or convert.
|
||||
// / If set to TRUE the user will be provided with buttons to create URLs to files that can be copied & pasted elsewhere.
|
||||
// / If set to FALSE the user will not be provided with the buttons to create URLs to files.
|
||||
// / Files with active links will be removed after the --File Deletion Age Threshold-- is met.
|
||||
// / Active file links will break after the --File Deletion Age Theshold-- is met.
|
||||
// / Valid options are TRUE or FALSE.
|
||||
// / Default is TRUE.
|
||||
$AllowUserShare = TRUE;
|
||||
// / --Allowed Conversion Types--
|
||||
// / The list of supported conversion types.
|
||||
// / Only conversion types contained in this list will be processed.
|
||||
// / If a conversion type is disabled, options for processing that conversion will not be displayed by the UI.
|
||||
// / Default is 'Document', 'Image', 'Model', 'Drawing', 'Video', 'Subtitle', 'Audio', 'Archive', 'Stream', 'OCR'.
|
||||
$SupportedConversionTypes = array('Document', 'Image', 'Model', 'Drawing', 'Video', 'Subtitle', 'Audio', 'Archive', 'Stream', 'OCR');
|
||||
// / --File Deletion Age Theshold--
|
||||
// / Age in minutes of files to be deleted.
|
||||
// / Set to 0 to keep files forever.
|
||||
// / Default is 60.
|
||||
$DeleteThreshold = 60;
|
||||
// / --Enhanced Logging Verbosity--
|
||||
// / Enable verbose logging.
|
||||
// / If set to TRUE all core events will be logged.
|
||||
// / If set to FALSE only errors & certain core events will be logged.
|
||||
// / Valid options are TRUE or FALSE.
|
||||
// / Default is TRUE.
|
||||
$Verbose = TRUE;
|
||||
// / --Maximum Log File Size--
|
||||
// / Set the number of bytes to store in each logfile before splitting to a new one.
|
||||
// / Default is 1048576.
|
||||
$MaxLogSize = 1048576;
|
||||
// / --UI Element Font--
|
||||
// / Set the default font to use throughout HRConvert2 GUI elements.
|
||||
// / The selected font must be installed on the client's machine.
|
||||
// / If the font is not available the client default will be used.
|
||||
// / Default is Arial.
|
||||
$Font = 'Arial';
|
||||
// / --Allow User Selectable Colors--
|
||||
// / Provide users with the option to adjust which colors are displayed via appending a parameter to the URL.
|
||||
// / Enable or disable dynamic GUI selection via the $_GET['color'] variable.
|
||||
// / If set to TRUE a user will be able to select different colors via $_GET['gui'].
|
||||
// / If set to FALSE the $DefaultGui will always be used.
|
||||
// / To submit a $_GET request append ?color=<CODE> to the URL & repalce <CODE> with name of the desired color.
|
||||
// / If a user attempts a color that is not available --Button Color-- will be used instead.
|
||||
// / Valid options are TRUE or FALSE.
|
||||
// / Default is TRUE.
|
||||
$AllowUserSelectableColor = TRUE;
|
||||
// / --Supported Colors--
|
||||
// / The list of colors that are supported by this application.
|
||||
// / Before adding a supported color be sure to add the matching $ButtonStyle code to styleCore.php for each insalled GUI.
|
||||
// / Errors will occur if you add an element to this array without also adding code to each GUI to support the added color.
|
||||
// / Default is 'red', 'green', 'blue', 'grey'.
|
||||
$SupportedColors = array('red', 'green', 'blue', 'grey');
|
||||
// / --Button Color--
|
||||
// / Set the default color scheme to use for buttons.
|
||||
// / Valid options are 'RED', 'GREEN', 'BLUE' or 'GREY'.
|
||||
// / Default is BLUE.
|
||||
$ButtonStyle = 'BLUE';
|
||||
// / --Spinner Style--
|
||||
// / Set the default spinner to use as a loading indicator while operations are being processed.
|
||||
// / Valid options are 0, 1, 2, 3, 4, 5 or 6.
|
||||
// / Default is 6.
|
||||
$SpinnerStyle = 6;
|
||||
// / --Spinner Color--
|
||||
// / Set the default color to use for the loading spinner.
|
||||
// / If you would like the spinner to automatically match the rest of the color scheme, set this to $ButtonStyle.
|
||||
// / Valid options are 'RED', 'GREEN', 'BLUE', 'GREY' or '$ButtonStyle'.
|
||||
// / Default is $ButtonStyle.
|
||||
$SpinnerColor = $ButtonStyle;
|
||||
// / --Show Full GUI--
|
||||
// / Set whether or not to display a full GUI by default.
|
||||
// / If this is set to TRUE a full GUI with text will be displayed.
|
||||
// / If this is set to FALSE a minimal GUI with only required elements will be displayed.
|
||||
// / Valid options are TRUE or FALSE.
|
||||
// / Default is TRUE.
|
||||
$ShowGUI = TRUE;
|
||||
// / --Show Fine Print--
|
||||
// / Set whether or not to display the Terms of Service & Privacy Policy links.
|
||||
// / If set to TRUE links to the --Terms of Service URL-- and --Privacy Policy URL-- will display at the bottom of the page.
|
||||
// / If set to FALSE links to the --Terms of Service URL-- and --Privacy Policy URL-- will be hidden.
|
||||
// / Valid options are TRUE or FALSE.
|
||||
// / Default is TRUE.
|
||||
$ShowFinePrint = TRUE;
|
||||
// / --Terms of Service URL--
|
||||
// / Set the URL to use for the Terms of Service link at te bottom of the GUI.
|
||||
// / Only takes effect if --Show Fine Print-- is set to TRUE.
|
||||
$TOSURL = 'https://www.honestrepair.net/index.php/terms-of-service/';
|
||||
// / --Privacy Policy URL--
|
||||
// / Set the URL to use for the Privacy Policy link at te bottom of the GUI.
|
||||
// / Only takes effect if --Show Fine Print-- is set to TRUE.
|
||||
$PPURL = 'https://www.honestrepair.net/index.php/privacy-policy/';
|
||||
// / --RAR Archive Method--
|
||||
// / Set the software package to use for creating .rar archives.
|
||||
// / This setting allows you to specify which software to use when creating .rar archives.
|
||||
// / Currently only RAR is supported.
|
||||
// / Valid options are 'rar'.
|
||||
// / Default is 'rar'.
|
||||
$RARArchiveMethod = 'rar';
|
||||
// / --File Operation Retry Count--
|
||||
// / Set this to the number of attempts to make during file operations.
|
||||
// / The core will attempt significant file operations this many times, with a pause in between.
|
||||
// / If a significant file operation fails, the core will retry the operation this many times.
|
||||
// / Valid options are integers smaller than 10.
|
||||
// / Default is 5.
|
||||
$RetryCount = 5;
|
||||
// / ------------------------------
|
||||
|
||||
// / ------------------------------
|
||||
// / --Supported File Format Information--
|
||||
// /
|
||||
// / --Supported Archive Formats--
|
||||
$UserArchiveArray = array('zip', 'rar', 'tar', '7z', 'iso');
|
||||
// / --Supported Dearchive Formats--
|
||||
$UserDearchiveArray = array('zip', 'rar', 'tar', 'bz', 'gz', 'bz2', '7z', 'iso', 'vhd', 'vdi', 'tar.bz2', 'tar.gz', 'cbr', 'cbz');
|
||||
// / --Supported Document Formats--
|
||||
$UserDocumentArray = array('txt', 'doc', 'docx', 'rtf', 'odt', 'pdf');
|
||||
// / --Supported Spreadsheet Formats--
|
||||
$UserSpreadsheetArray = array('csv', 'xls', 'xlsx', 'ods');
|
||||
// / --Supported Presentation Formats--
|
||||
$UserPresentationArray = array('pages', 'pptx', 'ppt', 'xps', 'potx', 'potm', 'pot', 'ppa', 'odp');
|
||||
// / --Supported Image Formats--
|
||||
$UserImageArray = array('jpeg', 'jpg', 'jpe', 'png', 'bmp', 'gif', 'webp', 'cin', 'dds', 'dib', 'flif', 'avif', 'gplt', 'sct', 'xcf', 'heic', 'ico');
|
||||
// / --Supported Audio Input Formats--
|
||||
$UserMediaInputArray = array('sox', 'spdif', 'spx', 'tta', 'u16be', 'u16le', 'u24be', 'u24le', 'u32be', 'u32le', 'u8', 'voc', 'wav', 'wv', 'wsaud', 'mulaw', 'mxf', 'mxf_d10', 'mxf_opatom', 'oga', 'ogg', 'opus', 'oss', 'psp', 'rawvideo', 's16be', 's16le', 's24be', 's24le', 's32be', 's32le', 's8', 'sbc', 'ilbc', 'ircam', 'latm', 'lrc', 'mp2', 'mp3', 'mlp', 'flac', 'g722', 'g723_1', 'g726', 'g726le', 'gsm', 'caf', 'daud', 'dts', 'eac3', 'f32be', 'f32le', 'f64be', 'f64le', 'ac3', 'ac4', 'adts', 'aiff', 'alaw', 'amr', 'aptx', 'aptx_hd', 'argo_asf', 'argo_cvg', 'ast', 'au', 'a64', 'aa', 'aac', 'aax', 'acm', 'act', 'adp', 'adx', 'aea', 'afc', 'aix', 'alp', 'amrnb', 'amrwb', 'apac', 'apc', 'ape', 'apm', 'argo_asf', 'binka', 'bit', 'boa', 'bonk', 'brstm', 'dfpwm', 'dsf', 'dss', 'epaf', 'fsb', 'fwse', 'g729', 'hca', 'idf', 'kux', 'kvag', 'laf', 'lavfi', 'loas', 'luodat', 'lvf', 'lxf', 'mca', 'mcc', 'megsts', 'mlv', 'mmf', 'mods', 'moflex', 'mpc8', 'msf', 'msnwctcp', 'mtaf', 'musx', 'nc', 'nistsphere', 'nsp', 'paf', 'pam_pipe', 'pbm_pipe', 'pfm_pipe', 'pp_bnk', 'psxstr', 'pva', 'pvf', 'qcp', 'rka', 'rl2', 'rpl', 'rso', 's337m', 'sap', 'sbg', 'scd', 'sdns', 'sdp', 'sds', 'sdx', 'siff', 'simbiosis_imx', 'sln', 'smk', 'smush', 'sol', 'svag', 'svs', 'tak', 'thp', 'tierexseq', 'tty', 'ty', 'usm', 'vag', 'vidc', 'vpk', 'vqf', 'w64', 'wady', 'wavarc', 'wsd', 'wsvqa', 'wve', 'xa', 'xbin', 'xbm_pipe', 'xmd', 'xpm_pipe', 'xwma', 'yop', 'wma', 'm4a');
|
||||
// / --Supported Audio Output Formats--
|
||||
$UserMediaOutputArray = array('mp3', 'aac', 'ogg', 'wma', 'mp2', 'flac', 'm4a');
|
||||
// / --Supported Video Input Formats--
|
||||
$UserVideoInputArray = array('smoothstreaming', 'svcd', 'swf', 'truehd', 'vc1', 'vc1test', 'vcd', 'vob', 'vvc', 'webm', 'yuv4mpegpipe', 'mpjpeg', 'mxf', 'mxf_d10', 'mxf_opatom', 'nut', 'obu', 'ogv', 'psp', 'rawvideo', 'rm', 'roq', 'rtp_mpegts', 'smjpeg', 'hevc', 'hls', 'image2', 'image2pipe', 'ipod', 'ismv', 'm4v', 'matroska', 'mjpeg', 'mkvtimestamp_v2', 'mov', 'mp4', 'mpeg', 'mpeg1video', 'mpeg2video', 'mpegts', 'mpegtsraw', 'mpegvideo', 'fbdev', 'film_cpk', 'filmstrip', 'gxf', 'h261', 'h263', 'h264', 'hds', 'avs2', 'avs3', 'cavsvideo', 'cavs', 'dirac', 'dnxhd', 'dv', 'dvd', 'evc', '3g2', '3gp', 'apng', 'argo_asf', 'argo_cvg', 'asf', 'asf_stream', 'avi', 'avif', 'avm2', '3dostr', '4xm', 'adf', 'ads', 'alias_pix', 'anm', 'argo_brp', 'asf_o', 'av1', 'avs', 'bethsoftvid', 'bfi', 'bink', 'bmv', 'brender_pix', 'brender', 'cdg', 'cdxl', 'cine', 'concat', 'cri', 'dcstr', 'derf', 'dfa', 'dhav', 'dsicin', 'dtshd', 'dxa', 'ea', 'exr', 'fits', 'flic', 'frm', 'gdv', 'genh', 'gif', 'idcin', 'iff', 'ifv', 'ingenient', 'ipmovie', 'iss', 'iv8', 'ivf', 'ivr', 'j2k', 'jp2', 'jv', 'live_flv', 'lmlm4', 'mtv', 'mv', 'mvi', 'mxg', 'nsv', 'nuv', 'osq', 'pcx_pipe', 'pdv', 'pgm_pipe', 'pgmuv_pipe', 'pgx_pipe', 'phm_pipe', 'protocol_pipe', 'pictor_pipe', 'png_pipe', 'ppm_pipe', 'psd_pipe', 'qdraw_pipe', 'qoi_pipe', 'r3d', 'redspark', 'rroq', 'rsd', 'rtsp', 'sdr2', 'ser', 'sga', 'sgi_pipe', 'shn', 'sunrast_pipe', 'svg_pipe', 'tiff_pipe', 'tmv', 'v210', 'v210x', 'vbn_pipe', 'video4linux2', 'v4l2', 'vividas', 'vivo', 'vmd', 'wc3movie', 'webm_dash_manifest', 'webp_pipe', 'wtv', 'xmv', 'xvag', 'xwd_pipe', 'mkv', 'wmv');
|
||||
// / --Supported Video Output Formats--
|
||||
$UserVideoOutputArray = array('3gp', 'mkv', 'avi', 'mp4', 'mpeg', 'wmv', 'mov', 'm4v');
|
||||
// / --Supported Stream Formats--
|
||||
$UserStreamArray = array('m3u8');
|
||||
// / --Supported Drawing Formats--
|
||||
$UserDrawingArray = array('svg', 'dxf', 'vdx', 'fig', 'dia', 'wpg', 'png');
|
||||
// / --Supported Model Formats--
|
||||
$UserModelArray = array('3ds', 'obj', 'collada', 'off', 'ply', 'stl', 'gts', 'dxf', 'u3d', 'vrml', 'x3d');
|
||||
// / --Supported Subtitle Input Formats--
|
||||
$UserSubtitleInputArray = array('srt', 'stream_segment', 'ssegment', 'streamhash', 'sup', 'subtitles', 'ttml', 'uncodedframecrc', 'webvtt', 'wtv', 'oma', 'rso', 'rtp', 'rtsp', 'scc', 'sdl', 'sdl2', 'segment', 'sap', 'jacosub', 'kvag', 'microdvd', 'ffmetadata', 'fifo', 'fifo_test', 'fits', 'framecrc', 'framehash', 'framemd5', 'dash', 'crc', 'dvbsub', 'dvbtxt', 'gsm', 'ass', 'vobsub', 'mpl2', 'mpsub', 'pjs', 'realtext', 'sami', 'stl', 'subviewer', 'subviewer1', 'tedcaptions', 'txd', 'vtt', 'ssa', 'dvb', 'vplayer');
|
||||
// / --Supported Subtitle Output Formats--
|
||||
$UserSubtitleOutputArray = array('vtt', 'ssa', 'ass', 'srt', 'dvb');
|
||||
// / --Supported OCR Formats--
|
||||
$UserPDFWorkArr = array('pdf', 'jpg', 'jpeg', 'png', 'bmp', 'webp', 'gif');
|
||||
// / ------------------------------
|
Before Width: | Height: | Size: 658 B After Width: | Height: | Size: 658 B |
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Reference in a new issue