function funct(t) {
var test = ["test", "test2"].join("");
document.getElementById(t).setAttribute('title', test);
alert(test);
} 26 sty 2010
function funct(t) {
var test = ["test", "test2"].join("");
document.getElementById(t).setAttribute('title', test);
alert(test);
} .htaccessAuthType Basic
AuthName "Panel Administracyjny"
AuthUserFile /var/www/auth/auth.txt
Require user admin
sktypt.php:echo $_SERVER['PHP_AUTH_USER'];
if (!isset($_SERVER['PHP_AUTH_USER'])) {
header('WWW-Authenticate: Basic realm="Panel Administracyjny"');
header('HTTP/1.0 401 Unauthorized');
echo 'Tekst, gdy użytkownik wciśnie przycisk Anuluj';
exit;
} else {
echo "<p>User {$_SERVER['PHP_AUTH_USER']}.</p>";
echo "<p>Hasło {$_SERVER['PHP_AUTH_PW']}.</p>";
} Problem z prwidłowym działaniem przy edycji danych pojawia się przy dodaniu do .htaccess reguly np.:
RewriteRule ^(.*)\/(.*).html$ web/show.php?nazwa_url=$2Do reguly dopasowuje się url:
../edytor/editor/fckeditor.html?InstanceName=opis&Toolbar=Defaultwykorzystywany przez FCKeditor w iframe
<iframe id="opis___Frame" src="../edytor/editor/fckeditor.html?InstanceName=opis&Toolbar=Default" mce_src="../edytor/editor/fckeditor.html?InstanceName=opis&Toolbar=Default" width="570px" height="500px" frameborder="0" scrolling="no"></iframe>i nie ładuje się właściwy html, tylko główna strona serwisu.
Dodanie do .htaccess reguly
RewriteCond %{REQUEST_URI} !edytor/editorprzed
RewriteRule ^(.*)\/(.*).html$ web/show.php?nazwa_url=$2przywraca prawidłowe dziłanie.
$C = new SoapClient('webservice.wsdl', array( 'trace' => 1 ) );
print "REQUEST:".$C->__getLastRequest()."";
print "RESPONSE:" .$C->__getLastResponse()."";lub
print "REQUEST:".htmlspecialchars($C->__getLastRequest())."";
print "RESPONSE:" .htmlspecialchars($C->__getLastResponse())."";