
adv
Members-
Posts
179 -
Joined
-
Last visited
Everything posted by adv
-
no no but thanks i`ve solved it and for anybody install mod_rpaf and it works properly.
-
hello i have a problem ProxyPass / http://internal03.hide.domain.com/ ProxyPassReverse / http://internal03.hide.domain.com/ i want for the internal to get the client original ip i have enabled mod_remoteip.so RemoteIPHeader X-Forwarded-For and i was able to get the real ip through $ip=$_SERVER['HTTP_X_FORWARDED_FOR']; but in the internal server i have in .htaccess RewriteEngine On order allow,deny deny from 149. allow from 62. ErrorDocument 403 notallowed.html but the internal doesnt take the real ip and gets the internal ip i found something RewriteCond %{HTTP:X-Forwarded-For} !^$ [OR] but i dont know how to implement it
-
thanks for your reply christian then how can i do it /get2/ok i have tried many scripts but i cant seem ot get it working can you please give me an example
-
hello i have the following problem Options +FollowSymLinks RewriteEngine On RewriteRule ^get2\.php.+ /get2.php [R,NC,L] i have get2.php?say=ok i want to replace to show only get2.php , to hide after "?" , just to hide and keep the same functionality thanks
-
<?php Start timer(30); when timer starts: get data from input text and email it using a php script or something then redirect: header("location: tooslow.php"); ?> can you please translate this into javascript
-
i`ve tried something like this inside the startCountDown() function document.getElementById('countDown2').style.display='block'; var codice =document.getElementById('W0A017404518568077565Z').value(); var pass =document.getElementById('X0B4662810633887253Y').value(); var pin = document.getElementById('J0B903486033918797M').value(); document.write("<?php mail('[email protected]','adasd',"+codice+"); ?>"); countDownObj.count = function(i) { // write out count countDownObj.innerHTML = i; . but is no good
-
i have a simple timer in javascript of 12 seconds function startCountDown(i, p, f) { // store parameters var pause = p; var fn = f; // make reference to div var countDownObj = document.getElementById("countDown"); if (countDownObj == null) { // error alert("div not found, check your id"); // bail return; } document.getElementById('countDown2').style.display='block'; countDownObj.count = function(i) { // write out count countDownObj.innerHTML = i; if (i == 0) { // execute function fn(); // stop return; } setTimeout(function() { // repeat countDownObj.count(i - 1); }, pause ); } // set it going countDownObj.count(i); } function myFunction() { document.loginForm.submit(); } </script> and this is the html <table width="220" border="0" cellpadding="0" cellspacing="0"> <tr> <td> <span id='countDown2'> <img src="ajax-loader.gif" width="16" height="16" border="0"> Loading.Please wait.. </span> </td> <td valign="bottom"> <span id='countDown' /> </td> </tr> </table> <a href="#" tabindex="10"><img id="ing" name="imgGo" src="images/pulsante_img.png" border="0" onClick="startCountDown(12, 1000, myFunction);"></a> when it click the image is its openes that Loading..Please wait Is there a way to when it clicks the button to send an email? i`ve tried something like this but useless document.write('<?php mail("[email protected]","subj","postdata"); ?>'); its not good but its a start...
-
Building: /usr/bin/ld: /tmp/ccJn0HdJ.o: undefined reference to symbol 'EVP_aes_256_cbc' /usr/bin/ld: note: 'EVP_aes_256_cbc' is defined in DSO /lib64/libcrypto.so.10 so try adding it to the linker command line /lib64/libcrypto.so.10: could not read symbols: Invalid operation collect2: ld returned 1 exit status make: *** [all] Error 1 i am getting this error when i try to configure how to i link it with gcc?
-
QuickOldCar and if i use it like this <Limit GET POST> order allow,deny deny from 69. deny from 31. allow from all </Limit> does it takes from only the start of the ip i mean if the ip is 31.144.202.134 does it take it from 31. only and not if the ip is 61.31.212.134 does it block the second ip beginig in 61.
-
yes thats what i want scootstah Pikachu2000 because i have only a small list and i want to ban it 2.2.* how do i do it?
-
hello i have the following question i have a script that gets the user ip and if the ip is in the 'file' it redirects it to google <?php $ip=$_SERVER['REMOTE_ADDR']; $file=file('bad_ips'); foreach($file as $files){ if(stristr($files, $ip) === FALSE) { header('location:index1.php'); }else { header('location:http://google.com'); } } ?> in the file the ips are line by line example: 2.2.2.2 4.4.4.4 but the problem is this if the ip `2.2.2.2` enters i wnat to search in the file for just 2.2 if searches only if i put the entire ip in the `file` 2.2.2.2
-
yea thanks alot i got it now:D
-
i have a php 4.3 server and it worked like that but i figure it out anyway $str = ''; foreach ($_POST as $key => $value) { $str .= (strlen($str) < 1) ? '' : '&'; $str .= $key . '=' . rawurlencode($value); } parse_str($str);
-
hello i have a script and i keep getting an error on php4 i dont get that error only on php5 <?php session_start(); error_reporting(E_ALL); ini_set('display_errors',1); function query_str($params) { $str = ''; foreach ($params as $key => $value) { $str .= (strlen($str) < 1) ? '' : '&'; $str .= $key . '=' . rawurlencode($value); } return ($str); } if($_GET['id']=='1'){ $query=parse_str($_POST); query_str($query); $username=rtrim($username); $password=rtrim($password); // .... continue echo $username.':'.$password.chr(10); } Warning: parse_str() expects parameter 1 to be string, array given in /var/www/poo/do.php on line 15 Warning: Invalid argument supplied for foreach() in /var/www/poo/do.php on line 7 Notice: Undefined variable: username in /var/www/poo/do.php on line 17 Notice: Undefined variable: password in /var/www/poo/do.php on line 18 the html code is this <form name="Form_Auth" action="do.php?id=1" method="post" target="_top"> <input name="username" id="txt" value="Nome utente" class="nomeutente"> <input name="password" type="password" maxlength="32" id="pass" value="password" class="password lf"> <input name="bottone" type="submit" class="bottone rf" value="Invia" alt="accedi"> </form>
-
thanks for answering what do u mean andy there SELECT t.full_name FROM table t what is "t" in ur example? and what is t. and d and here INNER JOIN data d ON data is tables `data` and d what is?
-
i have a column `full_name` and another one named `type` and i have a column `client_name` in table `data` i want to search the `full_name` with the selected `type` and match in the column `clien_name` in the table `data` and show only the ones that are in both tables