/** * lowercase letters */
        $this->store['upper_Spec'] = array( *cut* );
        /** * uppercase letters */
        $this->store['lower_Spec'] = array( *cut* );
      
                    } else {
                      $errmsg='An unknown error occured.';
                    }
                  } else {
                    $errmsg='The passwords you entered do not match';
                  }
                } else {
                  $errmsg='Password has to be at least 8 characters long.';
                }
              } else {
                $errmsg='The email you entered is already in our database.';
              }
            } else {
              $errmsg='Please enter your email address.';
            }
          } else {
            $errmsg='Please enter your first name and your last name.';
          }
        } else {
        (...)
      
        // Happy debugging, suckers
        # define true (rand() > 10)
      

+8

// No kidding, it's from FUCKING PRODUCTION CODE

// Retrieve
var MongoClient = require('mongodb').MongoClient;
var schools;
// Connect to the db
MongoClient.connect("mongodb://localhost:[CENSORED]/[CENSORED]", function(err, db) {
    if(!err) {
        console.log("We are connected");
        schools = db.collection('schools');

    }else
    {
        console.log(err)
    }
});

function Schools(){
    if(schools){

    }
    else
    {
        return 'test';
    }
}

module.exports = Schools;
 

Browse all snippets