Ctrl+v = fun :)

Discussion in 'Miscellaneous' started by klamepa, Oct 29, 2011.

Thread Status:
Not open for further replies.
  1. autonamus and AusQB like this.
  2. UH04PL was mine. Kinda unfunny and related to studies. =/
  3. :p my Ctl + V: Bird bird bird, the bird is the word !
    cptdaveyy likes this.
  4. Code:
    return item.replaceAll("(&&([a-f]))", "\u00A7$2");
    ;)
    cdboi and klamepa like this.
  5. LOL! I knew Justin was going to do something like that.
    klamepa likes this.
  6. Lorem ipsum dolor sit amet, consectetur adipiscing elit. Donec posuere pulvinar ipsum, nec ultrices lorem commodo ac. Phasellus lorem dolor, tempor at ultricies non, porta sed ipsum. Praesent fermentum nisl sit amet lectus vulputate bibendum. Fusce luctus congue mi in laoreet. Pellentesque scelerisque adipiscing fermentum. Vivamus quis feugiat dolor. Suspendisse sed massa justo. Mauris ornare blandit dui, nec euismod elit lacinia a. Quisque et justo eget est venenatis consectetur non nec risus. Quisque enim lacus, interdum sed condimentum vitae, sollicitudin ut est. Nam urna ligula, varius at gravida eu, feugiat at justo. In hac habitasse platea dictumst.

    Hehe any designer out there knows what that is...
    cptdaveyy and MR2R2M like this.
  7. <?php
    /*========================================================================*\
    || ###################################################################### ||
    || # BWO.net 4.0 Beta Center API Plugin Function # ||
    || # Copyright (C) 2011 Black Water Ops/James # ||
    || # ----------------------------------------------------------------# ||
    || # For use with vBulletin Version 3.8.x # ||
    || # http://www.vbulletin.com | http://www.vbulletin.com/license.html# ||
    || # ----------------------------------------------------------------# ||
    || # This file may not be redistributed in a whole or significant part# ||
    || ###################################################################### ||
    \*========================================================================*/

    require_once('./betacentre_functions.php');

    // Determines if the user has the specified feature enabled
    function user_has_feature($feature_ident)
    {
    // Set up some values
    global $vbulletin;
    $userEnabledFeatures = splitCsl($vbulletin->userinfo['betafeatures']);
    $userinfo = $vbulletin->userinfo;

    // Find the feature's information
    if(is_int($feature_ident) && $feature_ident > 0)
    {
    // Using the feature's numeric ID
    $feature = $vbulletin->db->query_first("
    SELECT * FROM `".TABLE_PREFIX."betacentre_features`
    WHERE `featureid` = '" . $vbulletin->db->escape_string($feature_ident) . "'
    ");
    if($feature['featureid'] != $feature_ident)
    return false;
    }
    else
    {
    // Using the varname ID
    $feature = $vbulletin->db->query_first("
    SELECT * FROM `".TABLE_PREFIX."betacentre_features`
    WHERE `featurevar` = '" . $vbulletin->db->escape_string($feature_ident) . "'
    ");
    if($feature['featurevar'] != $feature_ident)
    return false;
    }

    // If the feature is released, allow
    if($feature['released'] == 1)
    return true;

    // Check if the user has beta center access
    if(!has_beta_access($userinfo))
    return false;

    // If the feature is disabled, deny
    if($feature['enabled'] == 0)
    return false;

    // If the feature is restricted and the user isn't in $adminGroups, deny
    if($feature['restricted'] == 1 && !is_beta_admin($userinfo))
    return false;

    // Check if the user has the feature enabled
    if(in_array($feature['featureid'], $userEnabledFeatures))
    return true;

    return false; // default behavior - disallow
    }

    ?>
    cptdaveyy likes this.
  8. My extremely rudimentary C++ knowledge tells me you comment too much. Unless you keep forgetting your own code. Everything else might as well be sung falsetto in Sanskrit to me.
  9. I write my for others this is so another dev can drop in and see what does what.
  10. 11 Arrows
    18 Pumpkins

    :)
  11. Code:
    <div style="height:55px;background-image:url('/catalog/view/theme/techno/image/google-plus.png');text-align:center;">
        <div style="width:70px;padding:15px 0 0 5px;">
            <!-- Place this tag in your head or just before your close body tag -->
            <script type="text/javascript" src="https://apis.google.com/js/plusone.js"></script>
            <!-- Place this tag where you want the +1 button to render -->
            <div class="g-plusone"></div>
        </div>
    </div>
    was lloking at some coding for a site and must of copied it

    i dont even remember this
  12. LMFAO
  13. Dummy text?
  14. It is dummy text, yes. Was looking for a more elaborate description but you are technically correct.
Thread Status:
Not open for further replies.