!C99Shell v.2.1 [PHP 7 Update] [1.12.2019]!

Software: Apache. PHP/5.3.29 

uname -a: Linux tardis23.nocplanet.net 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024
x86_64
 

 

Safe-mode: OFF (not secure)

/opt/alt/alt-nodejs6/root/usr/lib/node_modules/npm/node_modules.bundled/npm-registry-client/lib/   drwxr-xr-x
Free 977.86 GB of 1859.98 GB (52.57%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     star.js (1.37 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
module.exports = star

var assert = require('assert')

function star (uri, params, cb) {
  assert(typeof uri === 'string', 'must pass registry URI to star')
  assert(params && typeof params === 'object', 'must pass params to star')
  assert(typeof cb === 'function', 'must pass callback to star')

  var starred = !!params.starred

  var auth = params.auth
  assert(auth && typeof auth === 'object', 'must pass auth to star')
  if (!(auth.token || (auth.password && auth.username && auth.email))) {
    var er = new Error('Must be logged in to star/unstar packages')
    er.code = 'ENEEDAUTH'
    return cb(er)
  }

  var client = this
  this.request(uri + '?write=true', { auth: auth }, function (er, fullData) {
    if (er) return cb(er)

    client.whoami(uri, params, function (er, username) {
      if (er) return cb(er)

      var data = {
        _id: fullData._id,
        _rev: fullData._rev,
        users: fullData.users || {}
      }

      if (starred) {
        client.log.info('starring', data._id)
        data.users[username] = true
        client.log.verbose('starring', data)
      } else {
        delete data.users[username]
        client.log.info('unstarring', data._id)
        client.log.verbose('unstarring', data)
      }

      var options = {
        method: 'PUT',
        body: data,
        auth: auth
      }
      return client.request(uri, options, cb)
    })
  })
}

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0008 ]--