Jump to content

Ninjakreborn

Members
  • Posts

    3,922
  • Joined

  • Last visited

Everything posted by Ninjakreborn

  1. Pros: * Nice clean look. * Nicely aligned/nice looking footer. * Decent logo/banner. * Nice font throughout the site. Cons: * Top navigation seems to jump around some. * Banner is a little (too) faded, if you can tone down on the fade slightly it might look a little better.
  2. Pros: *Basic white look can be appealing when used properly. Cons: * Header area, and navigation is ugly, and way to basic. * Homepage is way too long. * Pages load very slow throughout the site. * Footer alignment is heavily messed up.
  3. Pros: * Nice clean look. * Nice color scheme. Cons: * Clunky usability. * Hard to navigate. * Errors all over the place. * Nasty logo that is blurry. * Interface is ugly and hard to use.
  4. Pros: * very clean. * Very slick flash header. * Nice coloring scheme. Cons: * Footers a little basic and could use some "Sprucing".
  5. Yes, to recieve a detailed answer. Explain in as much detail as possible what's not working. and how it's not working. Also tell us how it's suppose to be working so we have something to compare the problem too.
  6. <?php if($HTTP_SERVER_VARS["HTTPS"] != "on") { $newurl = "https://" . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]; header("location: $newurl"); } ?> Just put this code at the top of every page that you need to force ssl. I also attempted to turn it into a function but haven't tested/debugged it yet. <?php // function forces https connection (simply put the function at the // top of whatever pages need to have forced SSL (assuming SSL is active on the site). function forcesecure() { if($HTTP_SERVER_VARS["HTTPS"] != "on") { $newurl = "https://" . $_SERVER["SERVER_NAME"] . $_SERVER["REQUEST_URI"]; header("location: $newurl"); } } ?>
  7. Not working it sits there 5 minutes and comes up with page notfound. I need when someone goes to the page it needs to take them to https so it's on a secure connection, anymore advice?
  8. In php is there a way to force if they are at https://www.domainname.com and if not then redirect them to the https version?? Thanks.
  9. Ah ok. Flash itself can't handle drag/drop from a desktop. However when checking with the host I think java can be used on there server.
  10. Sorry I left that part out. Drag/Drop is easy with either flash or ajax. Those are not problems. It's the desktop drag/drop. Basically dragging a file, or folder full of files into a draggable area on a site and it shows them as uploaded. Afterwards they upload the files after they are done dragging/dropping (also hopefully it'lly support copy/paste) I have seen A LOT of stuff on it but it's all on java and that server doesn't support java. Are there any other options for that.
  11. Any scripting language is great. I can use PHP, but the only way I ever saw to get the initial drag/drop features working for desktop was with java. What is "AFAIK Flash" I did a search on it and found nothing specifically about what it is.
  12. I want to create a flash upload system (easy). I need a backend to process it (easy). Last element is I want to have "drag and drop" usability. I don't think this can be accomplished with PHP or Java Script. I know it can be easily done with java, and I am wanting to create something to do this but the server the site is on is not in java. What are my options. I have heard that you can have java ran from one server to work properly. Do I have any other options??
  13. Thanks for all the advice, really appreciated.
  14. I am trying to create an auto-installer for my "admin" program that I re-use from project to project. That I have built into my framework. I have created a file called install.php <?php require_once("../ppassistant/system/core/config.php"); #START // current information // $username = "admin"; // $password = "password"; // you can change it after you login once it's installed. $sql = " CREATE TABLE `administration` ( `id` bigint(20) NOT NULL auto_increment, `email` varchar(220) NOT NULL default '', `username` varchar(120) NOT NULL default '', `password` varchar(120) NOT NULL default '', `accesslvl` varchar(20) NOT NULL default '', PRIMARY KEY (`id`) ); INSERT INTO `administration` (email, username, password, accesslvl) VALUES ('admin', 'admin', '5f4dcc3b5aa765d61d8327deb882cf99', 'all'); "; if (mysql_query($sql)) { echo "Admin Installation Successful.<br />"; }else { echo "Admin Installation Problem.<br />"; echo mysql_error(); } ?> It's coming back with. Can anyone see something I might have done wrong with this, thanks?
  15. Well yes I have a development environment. The issue is with mod_perl above I can't get that working in the browser. Python for example I can just download mod_python and install it into apache on my development server and I am ready to go. As for other languages, yes that is a good idea but I don't know where to start to get access to some of those other languages. I guess for ruby find something called mod_ruby. I don't much about there initial setup. Even for coldfusion I was able to get it isntalled on my development, but I am still looking into where to upload my cfm files so I can start doing development on them, and playing around with it some.
  16. Ah, ok thanks for filling me in on all of that, thanks again.
  17. Ok, that makes sense. If it's a help file is there a way for me to get access to where these commands can be used. Is this if you go into command line, and then make your way into the database system from there, can youe execute these commands or are they for something different? Thanks.
  18. On a side note SMF is literally one of the easiest forums to skin/modify. I haven't done a lot with it before, but it was the easiest experience I have ever lost.
  19. I have 2 pages. Encrypt.php <?php /* Open the cipher */ $td = mcrypt_module_open('rijndael-256', '', 'ofb', ''); /* Create the IV and determine the keysize length, used MCRYPT_RAND * on Windows instead */ $iv = mcrypt_create_iv(mcrypt_enc_get_iv_size($td), MCRYPT_DEV_RANDOM); $ks = mcrypt_enc_get_key_size($td); /* Create key */ $key = substr(md5('Secret Key'), 0, $ks); /* Intialize encryption */ mcrypt_generic_init($td, $key, $iv); /* Encrypt data */ $encrypted = mcrypt_generic($td, 'This is very important data'); /* Terminate encryption handler */ mcrypt_generic_deinit($td); echo $key; ?> Decrypt.php <?php $td = mcrypt_module_open('rijndael-256', '', 'ofb', ''); /* Initialize encryption module for decryption */ mcrypt_generic_init($td, $key, $iv); /* Decrypt encrypted string */ $decrypted = mdecrypt_generic($td, $encrypted); /* Terminate decryption handle and close module */ mcrypt_generic_deinit($td); mcrypt_module_close($td); /* Show string */ echo trim($decrypted) . "\n"; ?> The idea is on the encryption page it works. However I am needing to be able to get it decrypted. I see that I "can't" just database the key and have enough info to decrypt it. How do I carry over the other information. So basically in order to be secure I can just database the iv and key. I need both of those instead of just the key right. So basically 1. Encrypt the data. 2. Put it in a file outside the root in a txt file with an identifier. userid key iv for each record so I can find them later based on "id". perfect, that should be it. However, is this going to be completely secure.
  20. I found a file in my server called "-h". It had this in it mysql Ver 14.12 Distrib 5.0.16, for pc-linux-gnu (i686) using readline 5.0 Copyright (C) 2002 MySQL AB This software comes with ABSOLUTELY NO WARRANTY. This is free software, and you are welcome to modify and redistribute it under the GPL license Usage: mysql [OPTIONS] [database] -?, --help Display this help and exit. -I, --help Synonym for -? --auto-rehash Enable automatic rehashing. One doesn't need to use 'rehash' to get table and field completion, but startup and reconnecting may take a longer time. Disable with --disable-auto-rehash. -A, --no-auto-rehash No automatic rehashing. One has to use 'rehash' to get table and field completion. This gives a quicker start of mysql and disables rehashing on reconnect. WARNING: options deprecated; use --disable-auto-rehash instead. -B, --batch Don't use history file. Disable interactive behavior. (Enables --silent) --character-sets-dir=name Directory where character sets are. --default-character-set=name Set the default character set. -C, --compress Use compression in server/client protocol. -#, --debug[=#] This is a non-debug version. Catch this and exit -D, --database=name Database to use. --delimiter=name Delimiter to be used. -e, --execute=name Execute command and quit. (Disables --force and history file) -E, --vertical Print the output of a query (rows) vertically. -f, --force Continue even if we get an sql error. -g, --no-named-commands Named commands are disabled. Use \* form only, or use named commands only in the beginning of a line ending with a semicolon ( Since version 10.9 the client now starts with this option ENABLED by default! Disable with '-G'. Long format commands still work from the first line. WARNING: option deprecated; use --disable-named-commands instead. -G, --named-commands Enable named commands. Named commands mean this program's internal commands; see mysql> help . When enabled, the named commands can be used from any line of the query, otherwise only from the first line, before an enter. Disable with --disable-named-commands. This option is disabled by default. -i, --ignore-spaces Ignore space after function names. --local-infile Enable/disable LOAD DATA LOCAL INFILE. -b, --no-beep Turn off beep on error. -h, --host=name Connect to host. -H, --html Produce HTML output. -X, --xml Produce XML output --line-numbers Write line numbers for errors. -L, --skip-line-numbers Don't write line number for errors. WARNING: -L is deprecated, use long version of this option instead. --no-pager Disable pager and print to stdout. See interactive help (\h) also. WARNING: option deprecated; use --disable-pager instead. --no-tee Disable outfile. See interactive help (\h) also. WARNING: option deprecated; use --disable-tee instead -n, --unbuffered Flush buffer after each query. --column-names Write column names in results. -N, --skip-column-names Don't write column names in results. WARNING: -N is deprecated, use long version of this options instead. -O, --set-variable=name Change the value of a variable. Please note that this option is deprecated; you can set variables directly with --variable-name=value. --sigint-ignore Ignore SIGINT (CTRL-C) -o, --one-database Only update the default database. This is useful for skipping updates to other database in the update log. --pager[=name] Pager to use to display results. If you don't supply an option the default pager is taken from your ENV variable PAGER. Valid pagers are less, more, cat [> filename], etc. See interactive help (\h) also. This option does not work in batch mode. -p, --password[=name] Password to use when connecting to server. If password is not given it's asked from the tty. -P, --port=# Port number to use for connection. --prompt=name Set the mysql prompt to this value. --protocol=name The protocol of connection (tcp,socket,pipe,memory). -q, --quick Don't cache result, print it row by row. This may slow down the server if the output is suspended. Doesn't use history file. -r, --raw Write fields without conversion. Used with --batch. --reconnect Reconnect if the connection is lost. Disable with --disable-reconnect. This option is enabled by default. -s, --silent Be more silent. Print results with a tab as separator, each row on new line. -S, --socket=name Socket file to use for connection. -t, --table Output in table format. -T, --debug-info Print some debug info at exit. --tee=name Append everything into outfile. See interactive help (\h) also. Does not work in batch mode. -u, --user=name User for login if not current user. -U, --safe-updates Only allow UPDATE and DELETE that uses keys. -U, --i-am-a-dummy Synonym for option --safe-updates, -U. -v, --verbose Write more. (-v -v -v gives the table output format). -V, --version Output version information and exit. -w, --wait Wait and retry if connection is down. --connect_timeout=# Number of seconds before connection timeout. --max_allowed_packet=# Max packet length to send to, or receive from server --net_buffer_length=# Buffer for TCP/IP and socket communication --select_limit=# Automatic limit for SELECT when using --safe-updates --max_join_size=# Automatic limit for rows in a join when using --safe-updates --secure-auth Refuse client connecting to server if it uses old (pre-4.1.1) protocol --show-warnings Show warnings after every statement. Default options are read from the following files in the given order: /etc/my.cnf ~/.my.cnf The following groups are read: mysql client The following options may be given as the first argument: --print-defaults Print the program argument list and exit --no-defaults Don't read default options from any options file --defaults-file=# Only read default options from the given file # --defaults-extra-file=# Read this file after the global files are read Variables (--variable-name=value) and boolean options {FALSE|TRUE} Value (after reading options) --------------------------------- ----------------------------- auto-rehash FALSE character-sets-dir (No default value) default-character-set latin1 compress FALSE database (No default value) delimiter ; vertical FALSE force FALSE named-commands FALSE local-infile FALSE no-beep FALSE host (No default value) html FALSE xml FALSE line-numbers TRUE unbuffered FALSE column-names TRUE sigint-ignore FALSE port 0 prompt mysql> quick FALSE raw FALSE reconnect FALSE socket /kunden/tmp/mysqld.sock table FALSE debug-info FALSE user db01888106110 safe-updates FALSE i-am-a-dummy FALSE connect_timeout 0 max_allowed_packet 16777216 net_buffer_length 16384 select_limit 1000 max_join_size 1000000 secure-auth FALSE show-warnings FALSE What is this. Is this some kind of "config" file for mysql, bause I never saw this before.
  21. Hi, I am going to basically use this same post for all my questions (saves space). I set down for a few hours tonight and started playing with some coldfusion. It really wasn't something I was interested in but it was VERY easy to pickup some of it. After that I started playing with perl. It's almost like php on steroids. I mean you can use the $ for variables. The greatest thing is the for, while, if, elseif and other like control structures have roughly the same usage. The hardest part of perl seemed to not be the part about programming with it, but the part about setting it up. I had multiple issues. After about 2 hours I finally got it showing up in command line. The ONLY way I could do that was specify the path to the module then the file name. I tried to enter a shebang at the top of the perl page, and nothing. Another issue I had is no matter what I did I couldn't get that to come up in the browser. One thing I am really, really amazed at about perl was it's power over strings. Things that take 20 minutes in php take 10 seconds in perl. (I still prefer php) but I can see why people used perl for so long. It was one of the escape string. Basically though. 1. Why didn't the shebang work at the top of the perl page. 2. How do I get perl to showup in the browser so I can play with it there. 3. What do I need to do to get access to a server that support c, c#, and java. Python I can get access to from any server by just installing mod_python (that's how I have access to perl).
  22. One last question. chmod +x phptest I went ahead and tried another file, and it came up like it didn't work. I actually used ti "With" an extension because I don't know anything about not putting extensions. So for example it ends up being chmod +x file.ext (if were in the same directory currently as the file). I have like 3 quick questions about this. 1. Can a file not be run at all until it's chmodded. 2. Does this go for perl/python scripts as well. 3. If I was creating a script that would need to be used later on another server (an auto-install system that uses command line or something), then people will get frustrated if things require being changed to executable before use. So is there a way to make a file automatically start off as executable, or something. Or whatever this chmod command with +x does. Also is this something maybe I could put at the top of the file liek I did with the other. Like #! chmod +x same thing as with the other, except chmod it then do the other. Will that take care of everything automatically (with regards to setting file permissions, and where to find the processor.) I know the one about processor works, because I Tested it. I just want to find out if the one about executable will work, and if that is required for python/perl files.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.