Navigazione

    Privacy - Termini e condizioni
    © 2020 Search On Media Group S.r.l.
    • Registrati
    • Accedi
    • CATEGORIES
    • Discussioni
    • Non letti
    • Recenti
    • Hashtags
    • Popolare
    • Utenti
    • Stream
    • Interest
    • Categories
    1. Home
    2. pusherxx
    3. Post
    P

    pusherxx

    @pusherxx

    • Profilo
    • Chi segue 0
    • Da chi è seguito 0
    • Discussioni 13
    • Post 38
    • Migliore 0
    • Gruppi 0
    Iscrizione Ultimo Accesso
    Età 16
    0
    Reputazione
    149
    Post
    0
    Visite al profilo
    0
    Da chi è seguito
    0
    Chi segue
    User Attivo

    Post creati da pusherxx

    • Durata delle sessioni

      Ciao a tutti,
      volevo fare una domandina molto semplice:ho creato un'area login con le sessioni, ma non capisco perchè se chiudo il browser, alla riapertura dello stesso, lo ritrovo ancora loggato.
      In base a quello che ho studiato, la sessione dovrebbe cancellarsi automaticamente alla chiusura del browser. Giusto?

      Grazie
      Giuseppe

      postato in Coding
      P
      pusherxx
    • RE: funzione chiudi pagina

      Grazie mille sei stato gentilissimo

      A presto!

      postato in Coding
      P
      pusherxx
    • funzione chiudi pagina

      Ciao a tutti,volevo fare una domanda banalissima ma che comunque non riesco a rispondermi, è possibile linkare ad un tasto la funzione chiudi pagina?
      Grazie a tutti:smile5:

      postato in Coding
      P
      pusherxx
    • RE: Trasparenza su sfondo

      Si si ho capito, ma in effetti incontrerei tanti problemi con i browser tipo ie6...okok, grazie tante comunque.

      postato in Coding
      P
      pusherxx
    • Trasparenza su sfondo

      Ciao a tutti,
      ho messo un immagine come sfondo sul mio sito ripetuta per le x e per le y.
      Volevo chiedervi se è possibile dare una sfumatura tendente al bianco sullìasse delle y.

      Grazie a tutti

      postato in Coding
      P
      pusherxx
    • RE: Visualizzare immagine

      Ragazzi ma posso avere una risposta?? E' una cosa fattibile?

      postato in Coding
      P
      pusherxx
    • RE: Visualizzare immagine

      Thedarkita non puoi proprio aiutarmi?

      postato in Coding
      P
      pusherxx
    • RE: Visualizzare immagine

      no no, avevo inserito n altro script, ma è sbagliato...asp un secondo!!
      è questo:

      [PHP]<?php session_start(); ob_start(); if(!isset($_SESSION['admin'])) { header('Location: hyrja'); exit(); } include('mjetet/ldb.php');

              $destinacioni="galeria";
              
              //vendi ku do t&euml; rruhen imazhet
              $paravendi = "../fotot/".$destinacioni."/para/";
              $plotvendi = "../fotot/".$destinacioni."/plot/";
              
              //A d&euml;shironi ti limitoni ekstenzionet e ngarkimit ? (po/jo)
              $kufizimitipit = "po"; 
              
              //Ekstenzionet e lejuara
              $tipetelejuara = array(".gif",".jpg",".png",".jpeg",".bmp");
              
              // ruajm informacionet e t&euml; dh&euml;n&euml;s p&euml;rkoh&euml;sisht
              $tipiitedhenes = $_FILES['imazhi']['type'];
              $emriitedhenes = $_FILES['imazhi']['name'];
              $masaetedhenes = $_FILES['imazhi'];
              $edheneperkohshme = $_FILES['imazhi']['tmp_name'];
              
              //kontrollojme se a &euml;sht&euml; ngarkuar ndonj&euml; t&euml; dh&euml;n&euml;
              if(!is_uploaded_file($edheneperkohshme)){
              $mesazhi="Error: Please choose a picture!.";
              } else {
              
              //kontrollojm&euml; ekstenzionin
              $ekst = strrchr($emriitedhenes,'.');
              $ekst = strtolower($ekst);
              if (($kufizimitipit == "po") && (!in_array($ekst,$tipetelejuara))) {
              $mesazhi="Choosen Picture isn't allowed.";  } }
              
              //marrim prapashtesen.
              $merrekst = explode ('.', $emriitedhenes);
              $ekstitedhenes = $merrekst[count($merrekst)-1];
              
              //definojm&euml; emrin e rast&euml;sish&euml;m
              $emri_irastit = md5(time());
              $emri_irastit= "".$destinacioni."".rand(0,999999999999999)."";
                  
              // caktojm masat se sa do t&euml; jen p&euml;r proporcionim t&euml; automatizuar
              $paramasaGJ= 160;
              $plotmasaGJ= 800;
              $paramasaL= 115;
              $plotmasaL= 600;
              
              //rruajm formen e imazhit
              if($masaetedhenes){
              if($tipiitedhenes == "image/pjpeg" || $tipiitedhenes == "image/jpeg"){
              $imazhiri = imagecreatefromjpeg($edheneperkohshme);
              $imazhiri2 = imagecreatefromjpeg($edheneperkohshme);
              }elseif($tipiitedhenes == "image/x-png" || $tipiitedhenes == "image/png"){
              $imazhiri = imagecreatefrompng($edheneperkohshme);
              $imazhiri2 = imagecreatefrompng($edheneperkohshme);
              }elseif($tipiitedhenes == "image/gif"){
              $imazhiri = imagecreatefromgif($edheneperkohshme);
              $imazhiri2 = imagecreatefromgif($edheneperkohshme);
              }
              
              //tani vendosim p&euml;r p&euml;rmasat e reja
              list($gjeresia, $gjatesia) = getimagesize($edheneperkohshme);
              if ($gjatesia > $gjeresia ) {   
                       $zmadho = $paramasaGJ / $gjatesia;  
                       $gjatesiaere = $paramasaL;   
                       $gjeresiaere = $gjeresia * $zmadho;   
                    } else {    
                      $zmadho = $paramasaGJ / $gjeresia;   
                      $gjeresiaere = $paramasaGJ; 
                      $gjatesiaere = $gjatesia * $zmadho;
                    } 
              if ($gjatesia > $gjeresia) {   
                       $zmadho = $plotmasaGJ / $gjatesia;  
                       $gjatesiaere2 = $plotmasaL;   
                       $gjeresiaere2 = $gjeresia * $zmadho;   
                    } else {    
                      $zmadho = $plotmasaGJ / $gjeresia;   
                      $gjeresiaere2 = $plotmasaGJ; 
                      $gjatesiaere2 = $gjatesia * $zmadho;
                    } 
      
              
              //funksioni i rizmadhimit
              if (function_exists(imagecreatetruecolor)){
              $imazhirizmadhuar = imagecreatetruecolor($gjeresiaere,$gjatesiaere);
              $imazhirizmadhuar2 = imagecreatetruecolor($gjeresiaere2,$gjatesiaere2);
              }else{
              die("Error: Please ask your hoster to support higher GD library as GD2.");
              }
              imagecopyresampled($imazhirizmadhuar, $imazhiri, 0, 0, 0, 0, $gjeresiaere, $gjatesiaere, $gjeresia, $gjatesia);
              imagecopyresampled($imazhirizmadhuar2, $imazhiri2, 0, 0, 0, 0, $gjeresiaere2, $gjatesiaere2, $gjeresia, $gjatesia);
              //ruajm imazhet
              ImageJpeg ($imazhirizmadhuar,"$paravendi/$emri_irastit.$ekstitedhenes",100);
              ImageJpeg ($imazhirizmadhuar2,"$plotvendi/$emri_irastit.$ekstitedhenes",100);
              ImageDestroy ($imazhirizmadhuar);
              ImageDestroy ($imazhirizmadhuar2);
              ImageDestroy ($imazhiri);
              ImageDestroy ($imazhiri2);
              
              //postojm&euml; informacionet n&euml; databaz&euml;
              $d_to_dt = "INSERT INTO galeria VALUES('','".$emri_irastit.".".$ekstitedhenes."')";
              $get_r= mysql_query($d_to_dt,$lidhja) or die (mysql_error($lidhja));
              $mesazhi="<br/>Picture has been uploaded!<br/><a href=\"shfleto.php\">go back to browse</a><br/><br/><br/>"; }
      

      ?>[/PHP]

      postato in Coding
      P
      pusherxx
    • RE: Visualizzare immagine

      questo è lo script:
      [PHP] <?php
      if(!$lidhja) { } else {

          $tabelaadmin = "   CREATE TABLE IF NOT EXISTS `admin` (
                            `id` int(11) NOT NULL AUTO_INCREMENT,
                            `admin` varchar(255) NOT NULL,
                            `fjalekalimi` varchar(255) NOT NULL,
                            PRIMARY KEY (`id`)
                          ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=2 ;";
          mysql_query($tabelaadmin,$lidhja);
          echo '<p id="tkerkuarats"> Created admin table.</p>';            
      
          $tabelagaleria = "CREATE TABLE IF NOT EXISTS `galeria` (
                            `id` int(11) NOT NULL AUTO_INCREMENT,
                            `foto` varchar(21) NOT NULL,
                            PRIMARY KEY (`id`)
                          ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;";
          mysql_query($tabelagaleria,$lidhja);
          echo '<p id="tkerkuarats"> Created galeria table, wich will handle your pictures.</p>';            
                  
          $tabelagaleria = "CREATE TABLE IF NOT EXISTS `siguria` (
                            `id` int(11) NOT NULL AUTO_INCREMENT,
                            `ip` varchar(255) NOT NULL,
                            `statusi` varchar(255) NOT NULL,
                            `datadheora` varchar(255) NOT NULL,
                            `kush` varchar(255) NOT NULL,
                            PRIMARY KEY (`id`)
                          ) ENGINE=MyISAM  DEFAULT CHARSET=latin1 AUTO_INCREMENT=1 ;";
          mysql_query($tabelagaleria,$lidhja);
          echo '<p id="tkerkuarats"> Created siguria table, wich will save your gallery from hackers.</p>';
          mysql_close($lidhja); 
          $krijo = fopen("ldb.php", "w");
          if($krijo==false) {
          echo 'We could not create file ldb.php wich will be in mjetet/ldb.php please take your time and create a php file with this content:'; include('ldb.txt');
          } else {
              $ldb = "../admin/mjetet/ldb.php";
              $hap = fopen($ldb, 'w');
              fclose($hap); 
                          
              $hap = fopen($ldb, 'w');
              echo '<p id="tkerkuarats">Opened file successfully.</p>';
      

      $tedhenat = '<?php
      //Konstantet
      $emridb="'.$dbnameposted.'";
      $hosti="'.$dbhostposted.'";
      $epdb="'.$dbuserposted.'";
      $fkdb="'.$dbpassposted.'";
      //Lidhja me bazen e te dhenave
      $lidhja = mysql_connect($hosti,$epdb,$fkdb);
      //Zgjidhja e bazes se te dhenave
      mysql_select_db($emridb,$lidhja);
      ?>';
      fwrite($hap, $tedhenat);
      echo '<p id="tkerkuarats">Writing informations on file successfully.</p>';
      fclose($hap);
      echo '<p id="tkerkuarats">Closing and finishing successfully.</p>';
      }

              }
        ?>[/PHP]
      

      cosa dovrei aggiungere?
      scusami ma di codici non ne capisco tanto!
      Ti ringrazio in anticipo!!:ciauz:

      postato in Coding
      P
      pusherxx
    • RE: Visualizzare immagine

      Ciao, grazie per la risposta, ma come faccio ad inserire l'estensione??
      puoi darmi una mano?

      postato in Coding
      P
      pusherxx
    • Visualizzare immagine

      Ciao a Tutti,
      sto utilizzando uno script di una galleria fotografica e succede che quando inserisco una foto non mi permette la visualizzazione della stessa.
      In effetti se mi porto con la freccetta sulla miniatura mi da come link:
      [php]<a id="pirobox_gall" class="zmadho first last" href="fotot/galeria/plot/galeria32229203311726" rel="1 of 1" rev="0"/>[/php] in realtà dovrebbe essere :
      [php]<a id="pirobox_gall" class="zmadho first last" href="fotot/galeria/plot/galeria32229203311726.jpg" rel="1 of 1" rev="0"/>[/php]il codice per intero è:
      [php]<?php
      $max = 12;
      if(isset($_GET['p'])) { $p = $_GET['p']; }
      if(empty($p)) { $p = 1;}
      $limits = ($p - 1) * $max;

      //tkerkimit///////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
      $sql = mysql_query("SELECT * FROM galeria ORDER BY id DESC LIMIT ".$limits.",$max") or die(mysql_error());
      $totalres = mysql_result(mysql_query("SELECT COUNT(id) AS tot FROM galeria"),0);
      $sqlrk = mysql_query("SELECT * FROM galeria") or die(mysql_error());
      //////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////////
      echo '<div class="reshti">';
      $totalpages = ceil($totalres / $max);
      if (mysql_num_rows($sql) > 0) {
      $rezkerkimeve = mysql_num_rows($sqlrk);
      while($r = mysql_fetch_array($sql,MYSQL_ASSOC))
      {
      $id = $r['id'];
      $foto = $r['foto'];
      $v=$v+1;
      echo '<div class="foto">
      <div class="fotomb"><div align="center"><img src="fotot/galeria/para/'.$foto.'" /></div></div>
      <div style="clear:both;"></div>
      <a href="fotot/galeria/plot/'.$foto.'" class="zmadho" id="pirobox_gall"></a></div>';
      if($v==4 || $v==8 || $v==12) { echo '</div><div class="reshti">'; }
      }}
      echo '</div></div>';

      if(!isset($foto)) { echo 'Nessuna foto caricata'; } else {
      $prp=$p-1;
      $ardh=$p+1;
      echo '<div class="pastrimi"></div>';
      echo '<div class="galeriaBtn">';
      if($p==1) { echo '<div class="kthehuBtn"><img src="fotot/kthehuBtn_pasiv.gif" alt="kthehu" /></div>'; } else {
      echo '<div class="kthehuBtn"><a href="index.php?p='.$prp.'"><img src="fotot/kthehuBtn_aktiv.gif" alt="kthehu" /></a></div>'; }
      if($p==$totalpages) { echo '<div class="vazhdoBtn"><img src="fotot/vazhdoBtn_pasiv.gif" alt="kthehu" /></div>'; } else {
      echo '<div class="vazhdoBtn"><a href="index.php?p='.$ardh.'"><img src="fotot/vazhdoBtn_aktiv.gif" alt="kthehu" /></a></div>'; }
      echo '</div>'; }
      ?>[/php]
      Potete aiutarmi a fargli riconoscere l'estensione dell'immagine??

      Grazie a tutti

      postato in Coding
      P
      pusherxx
    • RE: Inserire testo

      Infatti ho risolto.
      Tks

      postato in Coding
      P
      pusherxx
    • RE: Inserire testo

      Scusami darkita, come mai per far andare il testo a capo devo inserire per forza di cose <br>? E' possibile farlo andare a capo semplicemente premendo l'invio? Un'altra cosa, quando metto l'apostrofo ' esce uno /
      Come mai?

      postato in Coding
      P
      pusherxx
    • RE: Modificare campo Database

      Lo faro' al piu' presto...
      ritornero' su questo post non appena l'avro' fatto grazie ancora a risentirci!;)

      postato in Coding
      P
      pusherxx
    • RE: Modificare campo Database

      Ciao darkita,
      perdonami, ma io so creare solo un database su un dominio tramite server.
      Quello che vorrei fare è creare una tabella "database" con piu' colonne tante quanti sono i testi da modificare, per evitare di creare tanti file.txt.
      Potresti spiegarmi dove in questa stringa:
      [php]
      mysql_query("UPDATE tabella SET testo = '$nuovotesto' WHERE id = '$id'"); [/php]viene richiamato il database?
      E per "$nuovotesto" intendi una colonna di quella famosa tabella che intendo creare?

      postato in Coding
      P
      pusherxx
    • Modificare campo Database

      Ciao a tutti,
      in riferimento al post "inserire Testo", volevo capire se invece di avere il file.txt da modificare ogni qualvolta intendo inserire un cambiamento, fosse possibile modificare un testo compreso in un database.
      Spero di esser stato chiaro.

      Grazie 🙂

      postato in Coding
      P
      pusherxx
    • RE: Inserire testo

      Sei gentilissimo, grazie davvero!

      Ora pero' apro un altro post perchè voglio capirci qualcosa di database!

      postato in Coding
      P
      pusherxx
    • RE: Inserire testo

      Grazie mille sei stato gentilissimo, ma ho ancora un ultima richiesta e giuro che non rompo piu' su questa discussione!
      E' possibile caricare, nella casella di testo, il testo già esistente per poi modificarlo?
      Grazie mille ancora una volta

      postato in Coding
      P
      pusherxx
    • RE: Inserire testo

      Grazie mille per la velocità!
      Un'altra cosa, se volessi salvare quel testo come file .html o .php o .txt, cosa devo aggiungere?
      grazie grazie grazieeee:o

      postato in Coding
      P
      pusherxx
    • Inserire testo

      Ciao a tutti
      premetto che non capisco tanto di php e vi renderete conto dalla domanda!:(
      Quello che vorrei fare è un campo dove l'utente puo' inserire un testo per poi farlo visualizzare a monitor in una pagina php.
      Potete aiutarmi?

      postato in Coding
      P
      pusherxx