Jump to content

canadabeeau

Members
  • Posts

    364
  • Joined

  • Last visited

Everything posted by canadabeeau

  1. I have a php function in functions.php function func_page_layout(){ $uri = $_GET['uri']; if($uri == ""){ $uri = "home"; } else { $uri = $uri; }; $mysqli = func_db_connect(); $qry = "SELECT * FROM `pages` WHERE `uri`='$uri' LIMIT 1"; $result = $mysqli->query($qry, MYSQLI_STORE_RESULT); $array = mysqli_fetch_array($result); $layout = $array['layout']; include('themes/default/layouts/'.$layout.'.php'); }; now this is not working but if in the page instead of executing the function I do the include straight out it works, any ideas?
  2. If you look at this post http://www.phpfreaks.com/forums/index.php/topic,282057.0.html you will see the lines of code, where would I put it?
  3. I have a HTML list (ul, li, etc) that I wan to space automatically using CSS so it take up 100% width, how can I achieve this?
  4. canadabeeau

    Lists

    I have a list acting as a drop down CSS /****************************** DROPDOWN ******************************/ ul.dropdown, ul.dropdown li, ul.dropdown ul { list-style: none; margin: 0; padding: 0; color: #660000; } ul.dropdown { position: relative; z-index: 597; float: left; color: #660000; } ul.dropdown li { float: left; line-height: 1.3em; vertical-align: middle; zoom: 1; padding: 7px 12px; color: #660000; } ul.dropdown li.hover, ul.dropdown li:hover { position: relative; z-index: 599; cursor: default; text-decoration: none; } ul.dropdown ul { visibility: hidden; position: absolute; top: 100%; left: 0; z-index: 598; width: 100%; } ul.dropdown ul li { float: none; } ul.dropdown ul ul { top: 1px; left: 99%; } ul.dropdown li:hover > ul { visibility: visible; } ul.dropdown li.rtl ul { top: 100%; right: 0; left: auto; } ul.dropdown li.rtl ul ul { top: 1px; right: 99%; left: auto; } ul.dropdown { font: bold 12px Constantia; } ul.dropdown a:link, ul.dropdown a:visited { color: #660000; text-decoration: none; } ul.dropdown a:hover { color: #660000; text-decoration: none; } ul.dropdown a:active { color: #660000; } ul.dropdown ul { margin-left: 6px; width: 170px; padding-bottom: 9px; /* background-color: #161616; */ background-image: url(img/nav.png); color: #000000; font-size: 11px; font-weight: normal; } ul.dropdown ul li { background-color: transparent; color: #660000; } ul.dropdown ul li.hover, ul.dropdown ul li:hover { background-color: transparent; } ul.dropdown ul li.empty { padding: 12px 12px 7px !important; font-weight: bold; } ul.dropdown ul a:link, ul.dropdown ul a:visited { color: #000000; } ul.dropdown ul a:hover { color: #000000; text-decoration: none; } ul.dropdown ul a:active { color: #000000; } ul.dropdown ul ul { display: none; } ul.dropdown ul ul li {} ul.dropdown *.dir {padding-right: 12px; background-image: none; background-position: 100% 50%; background-repeat: no-repeat; } ul.dropdown-horizontal ul *.dir { padding-right: 15px; background-image: url(img/nav-arrow-right.png); background-position: 100% 50%; background-repeat: no-repeat; } ul.dropdown-vertical *.dir { background-image: url(img/nav-arrow-right.png); } ul.dropdown-vertical-rtl *.dir { padding-right: 15px; background-image: url(img/nav-arrow-left.png); background-position: 0 50%; } ul.dropdown li a { display: block; padding: 7px 12px; } ul.dropdown li { padding: 0; } ul.dropdown li.dir { padding: 7px 20px 7px 12px; } ul.dropdown ul li.dir { padding-right: 15px; } ul.dropdown li { } ul.dropdown ul a { padding: 4px 5px 4px 12px; } ul.dropdown ul a:hover { padding: 3px 5px 3px 11px; border: solid 1px #FFC000; color: #000000; background-color: #FFFFFF; font-weight: bold; } ul.dropdown ul a.dir { } HTML <ul id="nav" class="dropdown dropdown-horizontal"> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/company" class="dir">Company</a> <ul> <li class="empty">Profile</li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/company/about">About</a></li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/company/history">History</a></li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/company/portfolio">Portfolio</a></li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/legal">Legal</a></li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/partners">Official Tecnology Partners</a></li> <li class="empty">Managment</li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/managment/managingdirector">Managing Director</a></li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/managment/boardofdirectors">Board of Directors</a></li> <li class="empty">Contact</li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/contact/asiaoceania">Asia / Oceania</a></li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/contact/europe">Europe</a></li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/contact/americas">Americas</a></li> </ul> </li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/forefront" class="dir">Forefront</a> <ul> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/forefront">Forefront</a></li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/opensource">Open Source</a></li> </ul> </li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/solutions" class="dir">Solutions</a> <ul> <li class="empty">Consulting</li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/consulting/newinfrastructure">New Infrastructure</a></li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/consulting/existinginfrastructure">Existing Infrastructure</a></li> <li class="empty">Software</li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/legal/generalsla">2009/2010 Products</a></li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/legal/generalsla">Software Development</a></li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/legal/generalsla">Software License Agreement</a></li> <li class="empty">Web Based Services</li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/webbasedservices/hostingdomains">Web-hosting & Domains</a></li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/webbasedservices/design">Website Design</a></li> </ul> </li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/publishing" class="dir">Publishing</a> </li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/login/" class="dir">Portals</a> <ul> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/portals/privacy/">Privacy Access Portral</a></li> <li class="empty">Customer</li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/portals/customers/">Customer Portal Services</a></li> <li class="empty">Employees</li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/portals/employees/">Employee Portal Services</a></li> <li><a href="<?php echo 'http://'.$_SERVER['HTTP_HOST'].'';?>/administration/">RKcms Administration</a></li> </ul> </li> </ul> Now it is in its own div and when I hover over the drop downs cutoff where the next div starts, how can I fix this?
  5. How hackable is this? function encrypt($string, $key) { $result = ''; for($i=0; $i<strlen($string); $i++) { $char = substr($string, $i, 1); $keychar = substr($key, ($i % strlen($key))-1, 1); $char = chr(ord($char)+ord($keychar)); $result.=$char; } return $result; } print_r(encrypt('<?php..zzzzzzzzzzz... ?>', 'mysite.com');
  6. Thanks ignace but where to get started? Can you link to a specific page?
  7. Okay, I am going to look at making my own Apache module now so thanks to everyone, if anyone thinks this is the wrong way to go about it give me a post or PM
  8. Hello, I wish to write my own Apache module which will decrypt a PHP page, how can I go about this, I have never written my own Apache module so any help would be fantastic, even link to tutorials would be great appreciations in advance
  9. oni-kun the only problem being I some of my clients (through out sourced web hosting) may not have access to the Apache modules folder (am I able to somehow place the module outside the module folder of Apache), and would a person not be able to read the module file and be able then to decrypt the script? or not?
  10. oni-kun I think you just gave me the wording I was looking for, I want to build my own PHP encrypt/decrypt module so basically they place a dll in their web root or something and then decrypt the code. Basically I want to make my own Zend Guard (but with lost of customizing, I just need to get the base made which is what I am asking about)
  11. I was thinking of using my own encryption string NOT base64, so could that work or still easily hackable. I just want to say I do NOT want to buy a PHP encryptor, I want to build my own so that is why I need and want this advice on how I can build my own
  12. What about something like this (http://www.devshed.com/c/a/PHP/PHP-Encryption-and-Decryption-Methods/) and use a different custom function other than 64 (so design my own and have it include from my server to their page. Would this work or can they easily hack it? I really want to build this as you can probably tell,
  13. I want to write my own I just need to know how to rig the server to decrypt the code (I will not be encrypting it to binary instead a custom string shall do it) so how do I get the server to decrypt it. For example the file is <?php echo "Hello";?> encrypted it is <?php echo "\110\145\x6c\x6c\x6f";?> (as a very loose example) How do I get the server to decrypt the code?? Any help would be greatly appreciated as always.....
  14. Okay so the answer is ENCRYPTION not OBFUSCATION, how do I get the server to decrypt y custom encryption?
  15. Okay someone tell me what I am trying to build based on these conditions, I want the code so a human (webmaster installing the program) cannot read the code or alter it in any way (because they cant read it) Then I want to build my own opensource version so how would I go about making the server read the code? I know how I could obfuscate it (or encrypt) but how do I get the server to do the reverse?
  16. OPTIKALEFX I am obfuscating for people (webamsters) installing it, prevent them from modifying the code
  17. Can someone please guide me in the correct direction
  18. I was using md5 as an example, as I said. Anyway I have a PHP project I now want to obfuscate, now I want to build my own obfuscate method, I have figured out how I can get the files to obfuscate by passing them through a PHP script and downloading the file at the end (so I would upload index.php and the script would obfuscate it then give me a link to download index.php obfuscated) anyway that not the problem, how do you do the obfuscate part, is it a series of functions, that goes replace all instances of "if" with 525Z and maybe echo with 8955Y??? or does it do more like md5 hash and do the whole think letter by letter (kind of). Second how do I make the server un-obfuscate so it will run on the server? Premiso if this is not clear enough let me know please and I forgot before, thanks for all help in advance
  19. or have I got this completely wrong and can someone put me on the correct path, where do I start?
  20. I am building my own method of PHP obfuscating (or plan to), as I know what I want but cant find something to totally fit the requirements. Now my problem is I don't exactly know how PHP obfuscating works. Is it (basically) just encrypting all the code in md5 (as an example) and the server decrypts it?
  21. BloodyMind, I have heard of obfuscate but compiling?? Do you mean into a web based exe? In essence what will PHP compiling do? compared to obfuscating??
  22. ignace any idea on how I could go about this then? Do you think that, what if the function was called from functions.php (on my server) and then they could not make it always true, or they could but it would do nothing as it would be processing all on my server side :-) Does anyone think this can/will work
  23. or am I wrong in thinking this?
×
×
  • 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.