rejetto forum

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - bmartino1

Pages: 1 ... 56 57 58 59 60 61
856
FHFS / Re: Expiration date for download links possible?
« on: April 12, 2014, 06:45:03 PM »
it is possible, but hard to do, in the end you have a url that is hard coded, a link that is then linked to a time web code.
it advanced code, and is possible, either by program or html/php

http://www.whatwg.org/specs/web-apps/current-work/
http://www.webvamp.co.uk/blog/coding/creating-one-time-download-links/

you will have to have sql with hfs and or link to index page with php...

---------------
SQL

CREATE TABLE downloads (
   downloadkey varchar(32) NOT NULL unique,
   file varchar(255) NOT NULL default '',
   downloads int UNSIGNED NOT NULL default '0',
   expires int UNSIGNED NOT NULL default '0'
);
PHP Code

//The directory where the download files are kept - keep outside of the web document root
$strDownloadFolder = "/downloads/";

//If you can download a file more than once
$boolAllowMultipleDownload = 0;

//connect to the DB
$resDB = mysql_connect("localhost", "username", "thisismypassword");
mysql_select_db("database", $resDB);

if(!empty($_GET['key'])){
   //check the DB for the key
   $resCheck = mysql_query("SELECT * FROM downloads WHERE downloadkey = '".mysql_real_escape_string($_GET['key'])."' LIMIT 1");
   $arrCheck = mysql_fetch_assoc($resCheck);
   if(!empty($arrCheck['file'])){
      //check that the download time hasnt expired
      if($arrCheck['expires']>=time()){
         if(!$arrCheck['downloads'] OR $boolAllowMultipleDownload){
            //everything is hunky dory - check the file exists and then let the user download it
            $strDownload = $strDownloadFolder.$arrCheck['file'];

            if(file_exists($strDownload)){

               //get the file content
               $strFile = file_get_contents($strDownload);

               //set the headers to force a download
               header("Content-type: application/force-download");
               header("Content-Disposition: attachment; filename=\"".str_replace(" ", "_", $arrCheck['file'])."\"");

               //echo the file to the user
               echo $strFile;

               //update the DB to say this file has been downloaded
               mysql_query("UPDATE downloads SET downloads = downloads + 1 WHERE downloadkey = '".mysql_real_escape_string($_GET['key'])."' LIMIT 1");

               exit;

            }else{
               echo "We couldn't find the file to download.";
            }
         }else{
            //this file has already been downloaded and multiple downloads are not allowed
            echo "This file has already been downloaded.";
         }
      }else{
         //this download has passed its expiry date
         echo "This download has expired.";
      }
   }else{
      //the download key given didnt match anything in the DB
      echo "No file was found to download.";
   }
}else{
   //No download key wa provided to this script
   echo "No download key was provided. Please return to the previous page and try again.";
}
------------------------

857
FHFS / Re: FHFS having issues with special characters in file names
« on: April 12, 2014, 06:36:14 PM »
i don't use FHFS, but if you need a quick and easy way to rename files, here is a free open source program that can help

http://www.den4b.com/?x=products&product=renamer

it called renamer, you point to a directy, and ad rules to name the files, a preview will apear donw below to what the files are called...

858
FHFS / Re: neither STunnel or FileZilla start with FHFS
« on: April 12, 2014, 06:33:11 PM »
yes, windows 8 is still to new of an operating system for there service side, the program needs admin acess to run as a service and windows 8 is blocking them as they aren't windows progrmas..., if you go to the startup folder (hard to do in widnows 8, you can add them to open at boot.

startup folder:
http://www.tech-recipes.com/rx/28206/windows-8-how-to-add-applications-startup-folder/

or report this issue to filezilla (stunnel idk..i use it...) and they will update it when they can. its windows 8, not the program. I have encounterd this when i was in the beta....

859
As a result, many user will need to switch to a new host name or start paying dyndns.org money to keep there curent one.

If you are needing to switch, here is a free site that can supply your needs:
http://freedns.afraid.org/

create and account:
http://freedns.afraid.org/signup/

create a sub domain type A *which is %what you want here%.%freedns pucli server like mooo.com% to (public ip adress)
find you public ip adress here: http://www.ipchicken.com/
you may need a new dns updater:
http://freedns.afraid.org/scripts/freedns.clients.php

(if you use your dynamic ip for more tham web traffice:)
when seting up your new dns domain name
got to sub domains http://freedns.afraid.org/subdomain/
add input info, Public ip should be there, if not type it in, clik on explanation if you need more info, for a dynamic name to ip you will need a type A

(if you just need web forward dns to ip:
when seting up your new dns domain name
got to web forwards: http://freedns.afraid.org/redirect/


( it will be a while before it takes effect and you may need to just create and delte and recreate)
I use hfs as web and https, and i have a working combo with a sub domain and a web redirect
(the names can't be the same... its one or the other)

in HFS, you will have to do some fiddeling, but ti add you dns name to hfs
go to the menue >ip adress > custum
input your new dns,, and then clcuk ok, then go back to menue >ip adress > %you dns hostname%

all expereience may differ, this is just 1 way for thoses on dyndns to stil recieve what they need if not more, as dyndns is officaly shuting down the free side.

860
--------------------
To our Dyn free hostname users:

For the last 15 years, all of us at Dyn have taken pride in offering you and millions of others a free version of our Dynamic DNS Pro product. What was originally a product built for a small group of users has blossomed into an exciting technology used around the world.

That is why with mixed emotions we are notifying you that in 30 days, we will be ending our free hostname program. This change in the business will allow us to invest in our customer support teams, Internet infrastructure, and platform security so that we can continue to strive to deliver an exceptional customer experience for our paying customers.

We would like to invite you to upgrade to VIP status for a 25% discounted rate, good for any package of Remote Access (formerly DynDNS Pro). By doing so, you'll have access to customer support, additional hostnames, and more.

Here's how you get this done in two easy steps:

- Login to account.dyn.com.
- Click here to add Remote Access to your cart at the 25% off VIP rate. The discount will be applied upon checkout.

We thank you for your usage of Dyn through the years, and hope to continue to support you through Dyn Remote Access or other products for years to come. Please visit our FAQ page or this blog post for any additional information.
------------------------

861
HFS ~ HTTP File Server / Re: Uploading or downloading folders
« on: March 21, 2014, 07:34:55 PM »
hightail it, or zip the files... or use aa ftp cliect such as filezilla:
https://filezilla-project.org/download.php?type=server

https://www.hightail.com/

862
HFS ~ HTTP File Server / Re: index page won't load
« on: March 21, 2014, 07:31:47 PM »
from your pictures your hfs is on port 134 and you address path isn't all there.

right click on your index file in hfs
index.html > (f9) brows it
(this will open up the hfs path...)

--------------possible step solutions-----
try going to localhost:134\index.html

if that doesn't work, then right click the house in hfs
properties>different template>

paste you index html code there, then your address of localhost:134
will show your index page....

see picture

863
HFS ~ HTTP File Server / Re: 2 dns
« on: March 21, 2014, 07:22:48 PM »
eddy,

you can use a dyndns on hfs and dyndns updater for the other, both would then work tot he machine provided that you are port forwarding coretly.

have your machine be a dyndns with this software:
http://dyn.com/support/clients/

and hfs custom to the other dyndns site

864
it sounds like the ISP in there networking structure have a weird public ip sharing...

To help me better help you,
what type of dlink router is it,
 ie is it a combo form your ISP,

also how is your hfs machine and what is connected to the dlink router
ie the isp modem to the internet cloud?

is you setup hfs machine > dlink router >modem >internet cloud (which is you ISP provdier...)
or is your setup hfs machine> dlink combo modem >internet cloud ....

I will need some more infomration form you to help you with your problem. If you have a dns acount, try adding that to your router as a dynamic dns host, not hfs and see if it can communicate via proxy ping or other...(not at home, try to ping you dns account host...

If not dyndns, try no-ip.org, or other free dns servers out there. i find it strange and understand the fiber infrastructure as i have worked as an ISP before... Strange though that your dlink would show a "peer address"... instead of a gateway...

also, to help me understand as there are different country rules and setting, are you located in the United states, or over seas (don't put you address or state, just the country/continent...)

865
HTML & templates / Re: HTML @ root
« on: February 28, 2014, 06:53:52 AM »
if you have the files added to your hfs and have permission flags: hidden / don't log/ broweserable....

in html:

css file:
in html code having this line adjusted to your path in the head tags
<link href="https://bmartino1.dyndns.org/template/HTTPS_HTML_CSS.css" rel="stylesheet" type="text/css" />

Scripts:
:: and some where in between the body and the head the java script:

<script src="https://bmartino1.dyndns.org/main.js"></script>
------------------------------------
adding these to your html code will grantee that the files will load with the pages, if this issues hasn't been fixed...

This will make any html page lad these scripts in the event they need them...

Good luck, i have pitched this to my local High school for basic web page test and development, and it was a hit for the class...
**Also make sure your schols network admin known as he/she may block it due to what it is...
(portabe web server... some school network admins don't want this on there network...)

866
towards anyone, i have done taht, but i stil can't seem to get the pdf to become viewable, is there an html code or path that needs to be in to make this happen???


867
HFS ~ HTTP File Server / Re: Started as system
« on: February 15, 2014, 03:42:02 AM »
I'm still not understanding your problem, it sounds like, to me that you are using a machine to remote in to your HFS machine, but when you remote you don't have GUI access...
So you are probably issung windows server core (or linux distro) which doesn't have a gui interface... windows and "rpc" into cmd.. as you state {I run HFS due to "a system of remote control". }

HFS is a GUI windows executable that is not meant to be used with out a gui, it is possible, and hard to do it that way...
As rejeto stated in other forums, hfs is a macro based windows executable...

How are you running it as the default "system user" to begin with, system doesn't have "default user" login rights, if you have issues opening and running a program in windows you needed to check your file/program permsions ( http://technet.microsoft.com/en-us/library/bb727008.aspx )

how to change in windows 7 gui... http://www.wikihow.com/Change-File-Permissions-on-Windows-7

To help us help you, please try to add as much detail including screen shots.

detail such as how you are remote-ing to your hfs machine, what is the machine operating system is HFS running on, how you are launching HFS... what program or protacal are you using to remote in, ie, http/ssh/rdp/ssl...

And ultimately what you are trying to accomplish form what i gather hfs for you is running as the default local "nt authority" system user , which isn't a human user, it is the windows OS machine user and is used for
( http://support.microsoft.com/kb/120929 )

to run the program as a different user require that the file/program has the users permissions...

there are no known comand line switch for HFS, that is a question for REJETO  ( i don't know of any "HFS" comand line switch or if there even are any, the power of this progrma is in the GUI ) i know default windwos and some linux switch that can help run the program...

ie,

hfs is located at c:/webroot/hfs.exe

i want to run this program with a specfic user / admin rights...

cmd comand line would be:
( http://stackoverflow.com/questions/12903629/how-do-i-run-a-program-from-command-prompt-as-a-different-user-and-as-an-admin )

batch script---
@echooff
cd \
cd webroot
runas /noprofile /user:Administrator hfs.exe
------------------

i apologize for the inconvenience, it looks like rejeto and myself do not understand your issue and I would like to help you as much as i can.

868
HFS ~ HTTP File Server / Re: Hfs and iPad
« on: February 14, 2014, 05:10:32 PM »
for you to test with your ipad, i have reinstated the old accoun and teh folder/files are there...

https://bmartino1.dyndns.org/test/html%20music%20player/

if you are unable to play the files you will have to make a m3u file...

869
HFS ~ HTTP File Server / Re: Webcam on HFS
« on: February 14, 2014, 04:58:10 PM »
you will have to do some editing, but another user has posted something that may put you on a good direction:
http://www.rejetto.com/forum/html-templates/capture-and-upload-images-from-your-webcam/msg1058770/#msg1058770

870
HTML & templates / Re: Capture and upload images from your webcam
« on: February 14, 2014, 04:55:45 PM »
Thank you for this information, i recall trying to help a person that need to setup a webcam in hfs and i believe this will help that person. Thank you for this code, good job!

Pages: 1 ... 56 57 58 59 60 61