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. cooly
    3. Post
    C

    cooly

    @cooly

    • Profilo
    • Chi segue 0
    • Da chi è seguito 0
    • Discussioni 17
    • Post 47
    • Migliore 0
    • Gruppi 0
    Iscrizione Ultimo Accesso
    Località Torino Età 34
    0
    Reputazione
    47
    Post
    0
    Visite al profilo
    0
    Da chi è seguito
    0
    Chi segue
    User

    Post creati da cooly

    • RE: [SMF] funzione popup al click sull'allegato

      esempio supponiamo che ogni allegato esca la scritta clicca qua per scaricare l'allegato:
      tirando giù del codice ho fatto in modo che al click della scritta o immagine che metterò aprirà un popup dell url di destinazione

      
      
      
      <SCRIPT LANGUAGE="JavaScript">
      function openWindow()
      {
      open ("pagina.html","new","height=300,width=400,scrollbars=0,resizable=0,status=1,menubar=0,toolbar=0,location")
      }
      </SCRIPT>
      <A HREF="JavaScript:openWindow()" onMouseOver="window.status='Click here to visit... ';return true">Clicca qua per scaricare l'allegato</A>
      ```manca  la parte dei due secondi che ti permette di scaricare l'allegato e  infine unirlo al codice smf che per me e la cosa piu complicata
      postato in CMS & Piattaforme Self-Hosted
      C
      cooly
    • [SMF] funzione popup al click sull'allegato

      salve volevo fare questa domanda ma non sapendo dove scriverla ho scritto qua
      il mio problema e questo
      ho un cms chiamato SMF
      vorrei fare questa funzione
      ovvero al click per scaricare un allegaqto di qualsiasi topic nel mio forum vorrei che prima che scaricasse l'allegato
      uscisse un popup con un immagine che se cliccata apre un altra pagina di redirect dell'immagine(quindi un semplice a href ma al posto della scritta ce un immagine)
      che quindi appena cliccato che ti apre url di destinazione dopo 2-3 secondi ti scarica l'allegato...
      come posso fare?
      grazie mille

      postato in CMS & Piattaforme Self-Hosted
      C
      cooly
    • RE: Php script similar yahoo Answer

      [...]

      postato in CMS & Piattaforme Self-Hosted
      C
      cooly
    • RE: [SMF] sintassi php

      il file completo e questo

      <?php
      
      if (!defined('SMF'))
          die('Hacking attempt...');
      
      /*    This file contains all the screens that control settings for topics and
          posts.
      
          void ManagePostSettings()
              - the main entrance point for the 'Posts and topics' screen.
              - accessed from ?action=postsettings.
              - calls the right function based on the given sub-action.
              - defaults to sub-action 'posts'.
              - requires (and checks for) the admin_forum permission.
      
          void SetCensor()
              - shows an interface to set and test word censoring.
              - requires the moderate_forum permission.
              - uses the Admin template and the edit_censored sub template.
              - tests the censored word if one was posted.
              - uses the censor_vulgar, censor_proper, censorWholeWord, and
                censorIgnoreCase settings.
              - accessed from ?action=postsettings;sa=censor.
      
          void ModifyPostSettings()
              - set any setting related to posts and posting.
              - requires the admin_forum permission
              - uses the edit_post_settings sub template of the Admin template.
              - accessed from ?action=postsettings;sa=posts.
      
          void ModifyBBCSettings()
              - set a few Bulletin Board Code settings.
              - requires the admin_forum permission
              - uses the edit_bbc_settings sub template of the Admin template.
              - accessed from ?action=postsettings;sa=bbc.
              - loads a list of Bulletin Board Code tags to allow disabling tags.
      
          void ModifyTopicSettings()
              - set any setting related to topics.
              - requires the admin_forum permission
              - uses the edit_topic_settings sub template of the Admin template.
              - accessed from ?action=postsettings;sa=topics.
      */
      
      function ManagePostSettings()
      {
          global $context, $txt, $scripturl;
      
          // Boldify "Posts and Topics" on the admin bar.
          adminIndex('posts_and_topics');
      
          $subActions = array(
              'posts' => array('ModifyPostSettings', 'admin_forum'),
              'bbc' => array('ModifyBBCSettings', 'admin_forum'),
              'censor' => array('SetCensor', 'moderate_forum'),
              'topics' => array('ModifyTopicSettings', 'admin_forum'),
          );
      
          // Default the sub-action to 'view ban list'.
           $_REQUEST['sa'] = isset($_REQUEST['sa']) &&  isset($subActions[$_REQUEST['sa']]) ? $_REQUEST['sa'] :  (allowedTo('admin_forum') ? 'posts' : 'censor');
      
          // Make sure you can do this.
          isAllowedTo($subActions[$_REQUEST['sa']][1]);
      
          $context['page_title'] = $txt['manageposts_title'];
      
          // Tabs for browsing the different ban functions.
          $context['admin_tabs'] = array(
              'title' => $txt['manageposts_title'],
              'help' => 'posts_and_topics',
              'description' => $txt['manageposts_description'],
              'tabs' => array()
          );
          if (allowedTo('admin_forum'))
          {
              $context['admin_tabs']['tabs'][] = array(
                  'title' => $txt['manageposts_settings'],
                  'description' => $txt['manageposts_settings_description'],
                  'href' => $scripturl . '?action=postsettings;sa=posts',
                  'is_selected' => $_REQUEST['sa'] == 'posts',
              );
              $context['admin_tabs']['tabs'][] = array(
                  'title' => $txt['manageposts_bbc_settings'],
                  'description' => $txt['manageposts_bbc_settings_description'],
                  'href' => $scripturl . '?action=postsettings;sa=bbc',
                  'is_selected' => $_REQUEST['sa'] == 'bbc',
              );
          }
          if (allowedTo('moderate_forum'))
              $context['admin_tabs']['tabs'][] = array(
                  'title' => $txt[135],
                  'description' => $txt[141],
                  'href' => $scripturl . '?action=postsettings;sa=censor',
                  'is_selected' => $_REQUEST['sa'] == 'censor',
                  'is_last' => !allowedTo('admin_forum'),
              );
          if (allowedTo('admin_forum'))
              $context['admin_tabs']['tabs'][] = array(
                  'title' => $txt['manageposts_topic_settings'],
                  'description' => $txt['manageposts_topic_settings_description'],
                  'href' => $scripturl . '?action=postsettings;sa=topics',
                  'is_selected' => $_REQUEST['sa'] == 'topics',
                  'is_last' => true,
              );
      
          // Call the right function for this sub-acton.
          $subActions[$_REQUEST['sa']][0]();
      }
      
      // Set the censored words.
      function SetCensor()
      {
          global $txt, $modSettings, $context;
      
          if (!empty($_POST['save_censor']))
          {
              // Make sure censoring is something they can do.
              checkSession();
      
              $censored_vulgar = array();
              $censored_proper = array();
      
              // Rip it apart, then split it into two arrays.
              if (isset($_POST['censortext']))
              {
                  $_POST['censortext'] = explode("\n", strtr($_POST['censortext'], array("\r" => '')));
      
                  foreach ($_POST['censortext'] as $c)
                      list ($censored_vulgar[], $censored_proper[]) = array_pad(explode('=', trim($c)), 2, '');
              }
              elseif (isset($_POST['censor_vulgar'], $_POST['censor_proper']))
              {
                  if (is_array($_POST['censor_vulgar']))
                  {
                      foreach ($_POST['censor_vulgar'] as $i => $value)
                          if ($value == '')
                          {
                              unset($_POST['censor_vulgar']*);
                              unset($_POST['censor_proper']*);
                          }
      
                      $censored_vulgar = $_POST['censor_vulgar'];
                      $censored_proper = $_POST['censor_proper'];
                  }
                  else
                  {
                      $censored_vulgar = explode("\n", strtr($_POST['censor_vulgar'], array("\r" => '')));
                      $censored_proper = explode("\n", strtr($_POST['censor_proper'], array("\r" => '')));
                  }
              }
      
              // Set the new arrays and settings in the database.
              $updates = array(
                  'censor_vulgar' => implode("\n", $censored_vulgar),
                  'censor_proper' => implode("\n", $censored_proper),
                  'censorWholeWord' => empty($_POST['censorWholeWord']) ? '0' : '1',
                  'censorIgnoreCase' => empty($_POST['censorIgnoreCase']) ? '0' : '1',
              );
      
              updateSettings($updates);
          }
      
          if (isset($_POST['censortest']))
          {
              $censorText = htmlspecialchars(stripslashes($_POST['censortest']), ENT_QUOTES);
              $context['censor_test'] = strtr(censorText($censorText), array('"' => '&quot;'));
          }
      
          // Set everything up for the template to do its thang.
          $censor_vulgar = explode("\n", $modSettings['censor_vulgar']);
          $censor_proper = explode("\n", $modSettings['censor_proper']);
      
          $context['censored_words'] = array();
          for ($i = 0, $n = count($censor_vulgar); $i < $n; $i++)
          {
              if (empty($censor_vulgar*))
                  continue;
      
              // Skip it, it's either spaces or stars only.
              if (trim(strtr($censor_vulgar*, '*', ' ')) == '')
                  continue;
      
                $context['censored_words'][htmlspecialchars(trim($censor_vulgar*))] =  isset($censor_proper*) ? htmlspecialchars($censor_proper*) : '';
          }
      
          $context['sub_template'] = 'edit_censored';
          $context['page_title'] = $txt[135];
      }
      
      // Modify all settings related to posts and posting.
      function ModifyPostSettings()
      {
          global $context, $txt, $db_prefix, $modSettings;
      
          // Setup the template.
          $context['sub_template'] = 'edit_post_settings';
          //Load the jump to data.
          loadJumpTo();
          $context['page_title'] = $txt['manageposts_settings'];
      
          // Saving?
          if (isset($_POST['save_settings']))
          {
              checkSession();
      
              // Let's find out if they want things way too long...
              if (!empty($_POST['max_messageLength']) && $_POST['max_messageLength'] != $modSettings['max_messageLength'])
              {
                  $request = db_query("
                      SHOW COLUMNS
                      FROM {$db_prefix}messages", false, false);
                  if ($request !== false)
                  {
                      while ($row = mysql_fetch_assoc($request))
                          if ($row['Field'] == 'body')
                              $body_type = $row['Type'];
                      mysql_free_result($request);
                  }
      
                  $request = db_query("
                      SHOW INDEX
                      FROM {$db_prefix}messages", false, false);
                  if ($request !== false)
                  {
                      while ($row = mysql_fetch_assoc($request))
                           if ($row['Column_name'] == 'body' &&  (isset($row['Index_type']) && $row['Index_type'] == 'FULLTEXT'  || isset($row['Comment']) && $row['Comment'] == 'FULLTEXT'))
                              $fulltext = true;
                      mysql_free_result($request);
                  }
      
                  if (isset($body_type) && $_POST['max_messageLength'] > 65535 && $body_type == 'text')
                  {
                      // !!! Show an error message?!
                      // MySQL only likes fulltext indexes on text columns... for now?
                      if (!empty($fulltext))
                          $_POST['max_messageLength'] = 65535;
                      else
                      {
                          // Make it longer so we can do their limit.
                          db_query("
                              ALTER TABLE {$db_prefix}messages
                              CHANGE COLUMN body body mediumtext", __FILE__, __LINE__);
                      }
                  }
                  elseif (isset($body_type) && $_POST['max_messageLength'] <= 65535 && $body_type != 'text')
                  {
                      // Shorten the column so we can have the benefit of fulltext searching again!
                      db_query("
                          ALTER TABLE {$db_prefix}messages
                          CHANGE COLUMN body body text", __FILE__, __LINE__);
                  }
              }
      
              // Update the actual settings.
              updateSettings(array('removeNestedQuotes' => empty($_POST['removeNestedQuotes']) ? '0' : '1'));
                  // The boards for post_prefix
              if (in_array(0, $_POST['post_prefix_boards']))
                  $_POST['post_prefix_boards'] = 0;
              else
                  $_POST['post_prefix_boards'] = implode(',', $_POST['post_prefix_boards']);
      
              // Fix UTF-8 stuff.
               $_POST['post_prefix'] =  preg_replace('~&amp;#(\d{4,5}|[2-9]\d{2,4}|1[2-9]\d);~',  '&#$1;', $_POST['post_prefix']);
              $_POST['post_prefix'] = preg_replace('~&(#\d*)?$~', '', $_POST['post_prefix']);
                  'enableEmbeddedFlash' => empty($_POST['enableEmbeddedFlash']) ? '0' : '1',
                  'enableSpellChecking' => empty($_POST['enableSpellChecking']) ? '0' : '1',
                  'max_messageLength' => empty($_POST['max_messageLength']) ? '0' : (int) $_POST['max_messageLength'],
                  'fixLongWords' => empty($_POST['fixLongWords']) ? '0' : (int) $_POST['fixLongWords'],
                  'topicSummaryPosts' => empty($_POST['topicSummaryPosts']) ? '0' : (int) $_POST['topicSummaryPosts'],
                  'spamWaitTime' => empty($_POST['spamWaitTime']) ? '0' : (int) $_POST['spamWaitTime'],
                  'edit_wait_time' => empty($_POST['edit_wait_time']) ? '0' : (int) $_POST['edit_wait_time'],
                  'post_prefix' => htmlspecialchars($_POST['post_prefix'], ENT_QUOTES),
                  'post_prefix_boards' => $_POST['post_prefix_boards'],
                  'edit_disable_time' => empty($_POST['edit_disable_time']) ? '0' : (int) $_POST['edit_disable_time'],
              ));
          }
      
          // Check if your PHP is able to use spell checking.
          // Explode post_prefix boards
          if (!empty($modSettings['post_prefix_boards']) && $modSettings['post_prefix_boards'] != '0')
          $modSettings['post_prefix_boards'] = explode(',', $modSettings['post_prefix_boards']);
          $context['spellcheck_installed'] = function_exists('pspell_new');
      }
      
      // Bulletin Board Code...a lot of Bulletin Board Code.
      function ModifyBBCSettings()
      {
          global $context, $txt, $modSettings, $helptxt;
      
          // Setup the template.
          $context['sub_template'] = 'edit_bbc_settings';
          $context['page_title'] = $txt['manageposts_bbc_settings_title'];
      
          // Ask parse_bbc() for its bbc code list.
          $temp = parse_bbc(false);
          $bbcTags = array();
          foreach ($temp as $tag)
              $bbcTags[] = $tag['tag'];
      
          $bbcTags = array_unique($bbcTags);
          $totalTags = count($bbcTags);
      
          // The number of columns we want to show the BBC tags in.
          $numColumns = 3;
      
          // In case we're saving.
          if (isset($_POST['save_settings']))
          {
              checkSession();
      
              if (!isset($_POST['enabledTags']))
                  $_POST['enabledTags'] = array();
              elseif (!is_array($_POST['enabledTags']))
                  $_POST['enabledTags'] = array($_POST['enabledTags']);
      
              // Update the actual settings.
              updateSettings(array(
                  'enableBBC' => empty($_POST['enableBBC']) ? '0' : '1',
                  'enablePostHTML' => empty($_POST['enablePostHTML']) ? '0' : '1',
                  'autoLinkUrls'  => empty($_POST['autoLinkUrls']) ? '0' : '1',
                  'disabledBBC' => implode(',', array_diff($bbcTags, $_POST['enabledTags'])),
              ));
          }
      
          $context['bbc_columns'] = array();
          $tagsPerColumn = ceil($totalTags / $numColumns);
          $disabledTags = empty($modSettings['disabledBBC']) ? array() : explode(',', $modSettings['disabledBBC']);
      
          $col = 0;
          $i = 0;
          foreach ($bbcTags as $tag)
          {
              if ($i % $tagsPerColumn == 0 && $i != 0)
                  $col++;
      
              $context['bbc_columns'][$col][] = array(
                  'tag' => $tag,
                  'is_enabled' => !in_array($tag, $disabledTags),
                  // !!! 'tag_' . ?
                  'show_help' => isset($helptxt[$tag]),
              );
      
              $i++;
          }
      
          $context['bbc_all_selected'] = empty($disabledTags);
      }
      
      // Function for modifying topic settings. Not very exciting.
      function ModifyTopicSettings()
      {
          global $context, $txt, $modSettings;
      
          // Setup the template.
          $context['sub_template'] = 'edit_topic_settings';
          $context['page_title'] = $txt['manageposts_topic_settings'];
      
          // Wanna save this page?
          if (isset($_POST['save_settings']))
          {
              checkSession();
      
              // Update the actual settings.
              updateSettings(array(
                  'enableStickyTopics' => empty($_POST['enableStickyTopics']) ? '0' : '1',
                  'enableParticipation' => empty($_POST['enableParticipation']) ? '0' : '1',
                  'oldTopicDays' => empty($_POST['oldTopicDays']) ? '0' : (int) $_POST['oldTopicDays'],
                  'defaultMaxTopics' => empty($_POST['defaultMaxTopics']) ? '0' : (int) $_POST['defaultMaxTopics'],
                  'defaultMaxMessages' => empty($_POST['defaultMaxMessages']) ? '0' : (int) $_POST['defaultMaxMessages'],
                  'hotTopicPosts' => empty($_POST['hotTopicPosts']) ? '0' : (int) $_POST['hotTopicPosts'],
                  'hotTopicVeryPosts' => empty($_POST['hotTopicVeryPosts']) ? '0' : (int) $_POST['hotTopicVeryPosts'],
                  'enableAllMessages' => empty($_POST['enableAllMessages']) ? '0' : (int) $_POST['enableAllMessages'],
                  'enablePreviousNext' => empty($_POST['enablePreviousNext']) ? '0' : '1',
              ));
          }
      }
      
      ?>
      

      ora mi dice questo:
      Parse error: syntax error, unexpected T_DOUBLE_ARROW in //***/Sources/ManagePosts.php** on line 286

      postato in CMS & Piattaforme Self-Hosted
      C
      cooly
    • [SMF] sintassi php

      Parse error: syntax error, unexpected T_IF, expecting ')' in //*/Sources/ManagePosts.php on line 279

      			// Update the actual settings.
      	updateSettings(array(
      		'removeNestedQuotes' => empty($_POST['removeNestedQuotes']) ? '0' : '1',
      		//*The boards for post_prefix
      

      if (in_array(0, $_POST['post_prefix_boards']))
      $_POST['post_prefix_boards'] = 0;
      else
      $_POST['post_prefix_boards'] = implode(',', $_POST['post_prefix_boards']);

      	// Fix UTF-8 stuff.
      	$_POST['post_prefix'] = preg_replace('~&amp;#(\d{4,5}|[2-9]\d{2,4}|1[2-9]\d);~', '&#$1;', $_POST['post_prefix']);
      	$_POST['post_prefix'] = preg_replace('~&(#\d*)?$~', '', $_POST['post_prefix']);
      

      quella evidenzionata e la 279 l'errore dice che c'è qualche errore di parentesi come risolvo?

      postato in CMS & Piattaforme Self-Hosted
      C
      cooly
    • RE: errore flashfxp

      pannello di controllo di fastweb
      però non so come aprirle

      postato in Hosting e Cloud
      C
      cooly
    • RE: errore flashfxp

      su google dice di andare nella myfastpage me non ho l'impostazione delle porte del router

      postato in Hosting e Cloud
      C
      cooly
    • RE: errore flashfxp

      non so farlo come posso fare?

      postato in Hosting e Cloud
      C
      cooly
    • bot in perl miglioramento

      salve ragazzi o messo giù questo codice in perl
      volevo sapere in questo codice c'è qualche sezione che posso migliorare? se si come grazie perchè ciò messo 1 mese per prepararlo e rendelro funzionante ma vorrei migliorare il codice

      use IO::Socket::INET;
      use LWP::UserAgent;
      use Net::FTP;
      
      #  code //  #
      
      #NOME PROCESSO
      bot:
      my $np = 'nex';
      
      #PROCESSO CGI
      
      $0="$np"."\0"x1;;
      my $PID = fork;
      exit if $PID;
      
      #dati server porta canale pass
      $server = "dns server";
      $port = "6668";
      $nick = "Nome-bot";
      $passn = "password";                 #pass nickname
      $ch = "#chan";
      $chcomand ="#chan";
      $cmdup ="cd /home/;./run.bash";
      $cmddwn ="killall -9 iroffer-it64";
      #connessione ad irc
      
      $irc = IO::Socket::INET->new(PeerAddr=>"$server",PeerPort=>"$port",Proto=>"tcp") or die "Impossibile contattare il server!\n";
      $irc->autoflush(1);
      sleep(5);
      
      #dico al server il mio nick il mio user e il mio ident
      
      print $irc "NICK $nick\r\n";
      print $irc "USER BANNER 8 *  : BANNER :r0x\r\n";
      print $irc "NS IDENTIFY $passn\r\n";
      
      
      #entro nel canale di ascolto e mi do la Op
      
      print $irc "JOIN $ch $pass\r\n";sleep (1);
      print $irc "JOIN $chcomand \r\n";
      
      #Code // ascolto da irc ed eseguo comandi in ssh //
      
      while ($line = <$irc>) {
              if ($line =~ /^PING \:(.*)/) {
                  print $irc "PONG :$1\r\n";
              }
      #comando help canale 1
      
              if ($line=~ /^:(.+?)!(.+?)@(.+?) PRIVMSG $ch :.help/i){
               print $irc "PRIVMSG $ch 18\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\t\tTool Gestore Iroffer \r\n";sleep (1);
               print $irc "PRIVMSG $ch 4\t\t!op nick 19Oppa il nick  4[17comando da dare su $ch4]\r\n";sleep (1);
               print $irc "PRIVMSG $ch 4\t\t!deop nick 19Deoppa in nick 4[17comando da dare su $ch4]\r\n";
               print $irc "PRIVMSG $ch 4\t\t!ban nick 19Per bannare e kikkare fuori lo scemo di turno4[17comando da dare su $ch4] \r\n";sleep (1); 
               print $irc "PRIVMSG $ch 4\t\t!unban nick 19Per Togliere Il Ban4[17comando da dare su $ch4]\r\n";       
               print $irc "PRIVMSG $ch 4\t\t!kick nick 19Per kikkare Senza Ban Lo Scemo Di Turno4[17comando da dare su $ch4] \r\n";sleep (1);
               print $irc "PRIVMSG $ch 4\t\t!list 19Per vedere la lista web4[17comando da dare su $ch4] \r\n";
               print $irc "PRIVMSG $ch 4\t\t!esci 19Per killare $nick4[17comando da dare su $ch4] \r\n";sleep (1);
               print $irc "PRIVMSG $ch 4\t\t!voicizza 19Per dare il +v a tutti i bot4[17comando da dare in pvt a $nick4] \r\n";
               print $irc "PRIVMSG $ch 4\t\t!devoicizza 19Per togliere il +v a tutti i bot4[17comando da dare in pvt a $nick4] \r\n";sleep (1);
               print $irc "PRIVMSG $ch 4\t\t!add sitolista 19Per cambiare link alla lista web4[17comando da dare in pvt a $nick4] \r\n";
               print $irc "PRIVMSG $ch 4\t\t!banner sitobanner 19Per cambiare link del banner4[17comando da dare in pvt a $nick4] \r\n";
               print $irc "PRIVMSG $ch 4\t\t!Up 19Per alzare tutti gli iroffer 4[17comando da dare su $ch4]\r\n";
               print $irc "PRIVMSG $ch 4\t\t!Dwn 19Per killare tutti gli iroffer 4[17comando da dare su $ch4]\r\n";
               print $irc "PRIVMSG $ch 4\t\t!link 19Per vedere il link della lista web 4[17comando da dare su $ch4] \r\n";
               print $irc "PRIVMSG $ch 4\t\t!rehash 19Per rehashare il bot 4[17comando da dare in pvt a $nick4] \r\n";
      } !op (Assegna lo stato di operatore al nick da voi richiesto nel canale degli user)
              if ($line=~ /^:(.+?)!(.+?)@(.+?) PRIVMSG $ch :.op (.*)\r/i){
              $friends = "$4";
              print $irc "MODE $chcomand +o $friends  \r\n";
              print $irc "PRIVMSG $ch 4 op su 19$chcomand ... 4nuovo op 19(( $friends  )) \r\n";
      
      } !deop (Toglie lo stato di operatore al nick da voi richiesto nel canale degli user)
              if ($line=~ /^:(.+?)!(.+?)@(.+?) PRIVMSG $ch :.deop (.*)\r/i){
              $friends = "$4";
              print $irc "MODE $chcomand -o $friends  \r\n";
              print $irc "PRIVMSG $ch 4 deop su 19$chcomand ... 4Op Declassato 19(( $friends  )) \r\n";
      } !ban (Butta fuori il nick da voi richiesto nel canale degli user)
             if ($line=~ /^:(.+?)!(.+?)@(.+?) PRIVMSG $ch :.ban (.*)\r/i){
              $friends = "$4";
              $admin = "$1";
              print $irc "MODE $chcomand +b $friends  \r\n";
              print $irc "KICK $chcomand $friends : $admin ti domina e ti caccia\r\n";
              print $irc "PRIVMSG $ch  4Banned 19(( $friends  )) 4su 19$chcomand \r\n";
      } !unban (Toglie il ban al nick da voi richiesto nel canale degli user)
              if ($line=~ /^:(.+?)!(.+?)@(.+?) PRIVMSG $ch :.unban (.*)\r/i){
              $friends = "$4";
              print $irc "MODE $chcomand -b $friends\r\n";
              print $irc "PRIVMSG $ch 4 UnBanned 19(( $friends  )) 4su 19$chcomand \r\n";
      } !kick (Kicca fuori il nick da voi richiesto nel canale degli user)
              if ($line=~ /^:(.+?)!(.+?)@(.+?) PRIVMSG $ch :.kick (.*)\r/i){
              $vittima = "$4";
              print $irc "PRIVMSG $ch 4Lo scemo di turno --> 19$vittima 4è stato cacciato da 19$chcomand ... \r\n";
              print $irc "KICK $chcomand $vittima : 4cominciamo ad impare le buone maniere\r\n";
      
      }
      ###############################################################################
      #########   ATTENZIONE   ATTENZIONE   ATTENZIONE   ATTENZIONE   ATTENZIONE    #
      ######### crea un txt chiamato nickbot.txt con tutti i nick uno sotto laltro  #
      ###############################################################################
      # !voicizza (Assegna il grado di +v a tutti i bot nel canale degli user)
              if ($line=~ /^:(.+?)!(.+?)@(.+?) PRIVMSG $nick :!voicizza/i){
              print $irc "PRIVMSG $ch 4Boss 8Voicizzo La Net\r\n";
               $file = 'nickbot.txt';
               open(INFO, $file);
               # Apre il file
               @righe = <INFO> ;
               # Legge tutto in un array
               close(INFO);
               # Chiude il file
               foreach $bots (@righe)
      {        
               print $irc "MODE $chcomand +v $bots\r\n";
             
              
      }      
      } !devoicizza (Toglie il grado di +v a tutti i bot nel canale degli user)
              if ($line=~ /^:(.+?)!(.+?)@(.+?) PRIVMSG $nick :!devoicizza/i){
              print $irc "PRIVMSG $ch 4Boss 8Devoicizzo La Net\r\n";
               $file = 'nickbot.txt';
               open(INFO, $file);
               # Apre il file
               @righe = <INFO> ;
               # Legge tutto in un array
               close(INFO);
               # Chiude il file
               foreach $bots (@righe)
      {        
               print $irc "MODE $chcomand -v $bots\r\n";
             
              
      }      
      } !list (Da la lista nel canale degli user a chi la richiede sia in canale che in pvt )
              if ($line=~ /^:(.+?)!(.+?)@(.+?) PRIVMSG $chcomand :!list/i){
              print "";sleep (1);
              my $nik = $1 ;
              $file = 'bweb.txt';
              open(INFO, $file);
              # Apre il file
              @righe = <INFO> ;
              # Legge tutto in un array
              close(INFO);
              # Chiude il file
              print $irc "NOTICE $nik  9 0,2 VAI SUL BLOG 4 @righe \n\r";
              print $irc "NOTICE $nik 4 Copia il link di un banner publicitario in privato a 9$nick 4che ti da il link della lista web di $chcomand \n\r";
              print $irc "PRIVMSG $ch 4 Richiesta lista da $nik su $chcomand\r\n";
      
      } !add (Memorizza il link della lista web da dare al richiedente , Cosi e' possibile cambiare anche il link tutti i giorni
              if ($line=~ /^:(.+?)!(.+?)@(.+?) PRIVMSG $nick :!add (.*)/i){
              $nik ="$1";
              $files ="$4";
              system ("rm -fr pweb.txt");
              open VULN, ">>", "pweb.txt";
              print VULN "$files\n";
              print $irc "PRIVMSG $nik 4 Boss 8nuova lista addata \r\n";
              close VULN;
      
      } !banner (Memorizza il link della banner da dare al richiedente , Cosi e' possibile cambiare anche il link tutti i giorni
              if ($line=~ /^:(.+?)!(.+?)@(.+?) PRIVMSG $nick :!banner (.*)/i){
              $nik ="$1";
              $files ="$4";
              system ("rm -fr bweb.txt");
              open VULN, ">>", "bweb.txt";
              print VULN "$files\n";
              print $irc "PRIVMSG $nik 4 Boss 8nuova banner addata \r\n";
              close VULN;
      }
      # comando per legegre il banner dal pvt del bot
              if ($line=~ /^:(.+?)!(.+?)@(.+?) PRIVMSG $nick :http(\:\/\/sitolink.*\/)/i){
              $nik ="$1";
              $links ="$4";
      
               $file = 'pweb.txt';
               open(INFO, $file);
               # Apre il file
               @righe = <INFO> ;
               # Legge tutto in un array
               close(INFO);
               # Chiude il file
              print $irc "PRIVMSG $ch 4 Lutente 8$nik messaggio http$links \n\r";
             
              print $irc "NOTICE $nik messaggio @righe \r\n";
      }
      # comando per legegre il banner dal pvt del bot
              if ($line=~ /^:(.+?)!(.+?)@(.+?) PRIVMSG $nick :https(\:\/\/sitolink.*\/)/i){
              $nik ="$1";
              $links ="$4";
      
               $file = 'pweb.txt';
               open(INFO, $file);
               # Apre il file
               @righe = <INFO> ;
               # Legge tutto in un array
               close(INFO);
               # Chiude il file
              print $irc "PRIVMSG $ch 4 Lutente 8$nik messaggio http$links \n\r";
             
              print $irc "NOTICE $nik messaggio @righe \r\n";
      }
       per alzare le shell
              if ($line=~ /^:(.+?)!(.+?)@(.+?) PRIVMSG $ch :!Up/i){
              print $irc "PRIVMSG $ch Boss alzo la net ..\r\n";
              system("$cmdup");
      } per buttare le shell
              if ($line=~ /^:(.+?)!(.+?)@(.+?) PRIVMSG $ch :!Dwn/i){
              print $irc "PRIVMSG $ch Boss killo la net ..\r\n";
              system("$cmddwn");
      } !esci (per far uscire il bot da irc .Comando disponibile solo per un admin
              if ($line=~ /^:(.+?)!(.+?)@(.+?) PRIVMSG $nick :!esci peppe/i){
              print $irc "QUIT Tool Perl Versione2\r\n";
              system("kill -USR1 `pidof nex`");
      } per rehashare
              if ($line=~ /^:(.+?)!(.+?)@(.+?) PRIVMSG $nick :!rehash peppe/i){
              $boss ="$1";
              print $irc "NOTICE $boss Boss Rehashing ..\r\n";
              system("./a.sh &");
              system("kill -USR1 `pidof nex`");
      }
      #rejoin dopo kick
              if ($line=~/:(.*)!.*KICK/) {
              print $irc "JOIN $ch\r\n";
              print $irc "JOIN $chcomand\r\n";
      
      } 
              #lettura onjoin
              if ($line=~/:(RLZ\|.*\|.*)!.*JOIN/) {
              $nik ="$1";
              print $irc "MODE $chcomand +v $nik\r\n";
              print $irc "PRIVMSG $ch 1,4ATTENZIONE ERA CADUTO 1,0\t\t---> \t\t1,6$nik\r\n";          
      }
      # comando per legegre il banner dal pvt del bot
              if ($line=~ /^:(.+?)!(.+?)@(.+?) PRIVMSG $ch :!link/i){
              $nik ="$1";
              $links ="$4";
              $file = 'pweb.txt';
              open(INFO, $file);
              # Apre il file
              @righe = <INFO> ;
              # Legge tutto in un array
              close(INFO);
              # Chiude il file
              print $irc "NOTICE $nik 4 ATTENZIONE $nik  9Ecco Il Link della lista di $chcomand @righe \r\n";
      }
      }
      # Code // Fine  // #
      # Auto-riconnessione
      $irc_state = 0;
      while($irc_state != 1)
      {
          goto bot;
      }
      
      postato in Coding
      C
      cooly
    • RE: errore flashfxp

      come si fa? sono fastweb

      postato in Hosting e Cloud
      C
      cooly
    • errore flashfxp

      quando cerco di trasferire file dal mio server al mio pc mi da questo errore

       501- ==YOU'RE BEHIND A NAT ROUTER==
       501- Configure the firewall settings of your FTP client
       501-   to use your real IP: 93.38.173.74
       501- And set up port forwarding in your router.
       501- Or you can just use a PRET capable client, see
       501    drftpd.org for PRET capable clients
       Listening at IP: 10.168.200.207 PORT: 51248 for data connecting
       PORT 10,168,200,207,200,48
       501- ==YOU'RE BEHIND A NAT ROUTER==
       501- Configure the firewall settings of your FTP client
       501-   to use your real IP: 93.38.173.74
       501- And set up port forwarding in your router.
       501- Or you can just use a PRET capable client, see
       501    drftpd.org for PRET capable clients
      * Trasferimenti Falliti: 398.Gameloft.HD.Mini.Android.Games.Collection.rar
       (User Disconnect Connection)
      * Falliti 1 file, Saltati 0 file
      [2] PRET LIST
      
      postato in Hosting e Cloud
      C
      cooly
    • [Offro Lavoro][NON RETRIBUITO] moderatore forum

      salve a tutti sto cercando moderatori per il mio forum di supporto
      gicasupport.altervista.org
      per chi si iscrivesse contattate Stark

      postato in Collaborazioni WEB e Lavoro: offro e cerco
      C
      cooly
    • Programma windows per postare su Drupal

      salve ragazzi volevo chiedervi esiste un programma per postare dal programma sul web nel mio sito drupal? quindi un collegamento diretto che posto senza entrare nel sito
      grazie

      postato in CMS & Piattaforme Self-Hosted
      C
      cooly
    • RE: informazioni su: DrFTPD

      ok ma se puoi altre un po piu specifiche e meglio grazie

      postato in Hosting e Cloud
      C
      cooly
    • RE: informazioni su: DrFTPD

      a ok alloora lo provo hai una guida mi dettagliata?

      postato in Hosting e Cloud
      C
      cooly
    • RE: informazioni su: DrFTPD

      questo programma mi uscisce piu hard disk diversi? e fornendo uno solo? e un solo accesos ftp?

      postato in Hosting e Cloud
      C
      cooly
    • RE: informazioni su: DrFTPD

      @paolino said:

      Quello che chiedi è fattibile, ma ha un costo in termini di risorse non proprio banale. In pratica vuoi creare un cluster, ma uno degli obblighi da assolvere nella creazione di un cluster è quello di avere i server fisicamente connessi a rete gigabit. Non so quanto possa andare una cosa del genere con server che si trovano sparsi per il globo e non possono scambiarsi dati a 3-4 gigabit/s.

      Nel tuo caso si tratta solo di condividere i filesystem, quindi basta usare NFS. In rete ci sono un'infinità di tutorial sull'argomento.

      potresti suuggerirmene alcuni?

      postato in Hosting e Cloud
      C
      cooly
    • informazioni su: DrFTPD

      Salve,
      vi spiego il più possibile il mio problema
      io ho 6 server dedicati e quindi 6 accessi FTP
      Accedo a questi server tramite Filezilla per i trsferimenti diretti sul mio pc ma quando devo trsferire file da server a server uso FlashFXP
      siccome vorrei far in modo che al posto di accedere su sei ftp diversi
      unire i sei hard disk e farne uno solo (una specie di raid ma diversi ip)
      quindi:
      1 server sarà il master e 5 slave
      io mi connetto al ftp del master e accedendo sul server potrò vedere tutte le cartelle degli altri server come se fosse tutto in un unico server
      mi hanno consigliato:
      DrFTPD
      vorrei solo capire se fa per il mio problema e se si come si installa ( se è possibile in italiano)
      le guide che ho visto sono in inglese
      io ho su tutti i server com e sistema operativo Debian6
      grazie

      postato in Hosting e Cloud
      C
      cooly
    • RE: Consiglio Server Virtuale Europa/Italia

      [...]

      postato in Hosting e Cloud
      C
      cooly
    • RE: aiuto su centraggio

      risolto:

      html,body {
      font:700 .8em/1.3 helvetica, arial, "nimbus sans l", sans-serif;
      background:#edf8ff;
      height:50%;

      postato in Coding
      C
      cooly