Changeset 500
- Timestamp:
- 08/09/2010 01:40:36 PM (18 months ago)
- Location:
- trunk/WordPress/plugin/transposh
- Files:
-
- 20 edited
-
build.sh (modified) (3 diffs)
-
core/constants.php (modified) (1 diff)
-
core/logging.php (modified) (1 diff)
-
core/parser.php (modified) (2 diffs)
-
core/utils.php (modified) (1 diff)
-
transposh.php (modified) (1 diff)
-
widgets/dropdown/tpw_image_dropdown.php (modified) (2 diffs)
-
widgets/flags/tpw_flags.php (modified) (2 diffs)
-
widgets/flags/tpw_flags_css.php (modified) (2 diffs)
-
widgets/flagslist/tpw_list_with_flags.php (modified) (2 diffs)
-
widgets/flagslist/tpw_list_with_flags_css.php (modified) (2 diffs)
-
widgets/tpw_default.php (modified) (2 diffs)
-
wp/transposh_3rdparty.php (modified) (4 diffs)
-
wp/transposh_admin.php (modified) (2 diffs)
-
wp/transposh_ajax.php (modified) (2 diffs)
-
wp/transposh_backup.php (modified) (1 diff)
-
wp/transposh_db.php (modified) (1 diff)
-
wp/transposh_options.php (modified) (1 diff)
-
wp/transposh_postpublish.php (modified) (1 diff)
-
wp/transposh_widget.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/WordPress/plugin/transposh/build.sh
r493 r500 52 52 53 53 # 54 # Init replacement vars 55 # 56 DATE=`date -R` 57 YEAR=`date +%Y` 58 59 # 54 60 #Add php files while removing logging operations 55 61 # … … 57 63 echo "Adding .php files (without logging)" 58 64 for file in `find . -maxdepth 4 -iname '*.php'`; do 59 sed "s/logger.*;//;s/require_once.*(\"core.logging.*//;s/require_once.*(\'logging.*//;s/require_once.*(\"logging.*//;s/%VERSION%/$VERSION/; " $file > $TRANSPOSH_DIR/$file65 sed "s/logger.*;//;s/require_once.*(\"core.logging.*//;s/require_once.*(\'logging.*//;s/require_once.*(\"logging.*//;s/%VERSION%/$VERSION/;s/%DATE%/$DATE/;s/%YEAR%/$YEAR/;" $file > $TRANSPOSH_DIR/$file 60 66 echo "added $file" 61 67 done; … … 93 99 fi 94 100 95 DATE=`date -R`96 YEAR=`date +%Y`97 101 if [ "$DEBUG" != 'debug' ]; then 98 102 echo "Minify .js files" -
trunk/WordPress/plugin/transposh/core/constants.php
r488 r500 1 1 <?php 2 2 3 /* Copyright © 2009-2010 Transposh Team (website : http://transposh.org) 3 /* 4 * Transposh v%VERSION% 5 * http://transposh.org/ 4 6 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 7 * Copyright %YEAR%, Team Transposh 8 * Licensed under the GPL Version 2 or higher. 9 * http://transposh.org/license 9 10 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 11 * Date: %DATE% 18 12 */ 19 13 -
trunk/WordPress/plugin/transposh/core/logging.php
r466 r500 1 1 <?php 2 2 3 /* Copyright © 2009-2010 Transposh Team (website : http://transposh.org) 3 /* 4 * Transposh v%VERSION% 5 * http://transposh.org/ 4 6 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 7 * Copyright %YEAR%, Team Transposh 8 * Licensed under the GPL Version 2 or higher. 9 * http://transposh.org/license 9 10 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 11 * Date: %DATE% 18 12 */ 19 13 -
trunk/WordPress/plugin/transposh/core/parser.php
r488 r500 1 1 <?php 2 2 3 /* Copyright © 2009-2010 Transposh Team (website : http://transposh.org) 3 /* 4 * Transposh v%VERSION% 5 * http://transposh.org/ 4 6 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 7 * Copyright %YEAR%, Team Transposh 8 * Licensed under the GPL Version 2 or higher. 9 * http://transposh.org/license 9 10 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 11 * Date: %DATE% 18 12 */ 19 13 … … 484 478 // Use base64 encoding to make that when the page is translated (i.e. update_translation) we 485 479 // get back exactlly the same string without having the client decode/encode it in anyway. 486 $span = '<span class ="' . SPAN_PREFIX . '" id="' . SPAN_PREFIX . $this->segment_id . '" data-token="' . transposh_utils::base64_url_encode($original_text) . '" data-source="' .$source.'"';480 $span = '<span class ="' . SPAN_PREFIX . '" id="' . SPAN_PREFIX . $this->segment_id . '" data-token="' . transposh_utils::base64_url_encode($original_text) . '" data-source="' . $source . '"'; 487 481 // those are needed for on the fly image creation / hidden elements translations 488 482 if ($this->is_edit_mode || $for_hidden_element) { 489 $span .= ' data-orig="' .$original_text.'"';483 $span .= ' data-orig="' . $original_text . '"'; 490 484 if ($for_hidden_element) { 491 485 $span.= ' data-hidden="y"'; 492 486 // hidden elements currently have issues figuring what they translated in the JS 493 487 if ($translated_text != null) { 494 $span.= ' data-trans="' .$translated_text.'"';488 $span.= ' data-trans="' . $translated_text . '"'; 495 489 } 496 490 } -
trunk/WordPress/plugin/transposh/core/utils.php
r488 r500 1 1 <?php 2 2 3 /* Copyright © 2009-2010 Transposh Team (website : http://transposh.org) 3 /* 4 * Transposh v%VERSION% 5 * http://transposh.org/ 4 6 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 7 * Copyright %YEAR%, Team Transposh 8 * Licensed under the GPL Version 2 or higher. 9 * http://transposh.org/license 9 10 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 11 * Date: %DATE% 18 12 */ 19 13 -
trunk/WordPress/plugin/transposh/transposh.php
r492 r500 11 11 */ 12 12 13 /* Copyright © 2009-2010 Transposh Team (website : http://transposh.org) 13 /* 14 * Transposh v%VERSION% 15 * http://transposh.org/ 14 16 * 15 * This program is free software; you can redistribute it and/or modify 16 * it under the terms of the GNU General Public License as published by 17 * the Free Software Foundation; either version 2 of the License, or 18 * (at your option) any later version. 17 * Copyright %YEAR%, Team Transposh 18 * Licensed under the GPL Version 2 or higher. 19 * http://transposh.org/license 19 20 * 20 * This program is distributed in the hope that it will be useful, 21 * but WITHOUT ANY WARRANTY; without even the implied warranty of 22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23 * GNU General Public License for more details. 24 * 25 * You should have received a copy of the GNU General Public License 26 * along with this program; if not, write to the Free Software 27 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 21 * Date: %DATE% 28 22 */ 29 23 -
trunk/WordPress/plugin/transposh/widgets/dropdown/tpw_image_dropdown.php
r435 r500 11 11 */ 12 12 13 /* Copyright © 2009-2010 Transposh Team (website : http://transposh.org) 13 /* 14 * Transposh v%VERSION% 15 * http://transposh.org/ 14 16 * 15 * This program is free software; you can redistribute it and/or modify 16 * it under the terms of the GNU General Public License as published by 17 * the Free Software Foundation; either version 2 of the License, or 18 * (at your option) any later version. 17 * Copyright %YEAR%, Team Transposh 18 * Licensed under the GPL Version 2 or higher. 19 * http://transposh.org/license 19 20 * 20 * This program is distributed in the hope that it will be useful, 21 * but WITHOUT ANY WARRANTY; without even the implied warranty of 22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23 * GNU General Public License for more details. 24 * 25 * You should have received a copy of the GNU General Public License 26 * along with this program; if not, write to the Free Software 27 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 21 * Date: %DATE% 28 22 */ 29 23 … … 54 48 55 49 foreach ($args as $langrecord) { 56 $is_selected = $langrecord['active'] ? " selected=\"selected\"" : "";57 echo '<li><a href="#"><img class="flag" src="' . "$plugpath/img/flags/{$langrecord['flag']}" . '.png" alt="' . $langrecord['langorig'] . '"/> ' . $langrecord['langorig'] . '<span class="value">' . $langrecord['isocode'] . '</span></a></li>';50 $is_selected = $langrecord['active'] ? " selected=\"selected\"" : ""; 51 echo '<li><a href="#"><img class="flag" src="' . "$plugpath/img/flags/{$langrecord['flag']}" . '.png" alt="' . $langrecord['langorig'] . '"/> ' . $langrecord['langorig'] . '<span class="value">' . $langrecord['isocode'] . '</span></a></li>'; 58 52 } 59 53 -
trunk/WordPress/plugin/transposh/widgets/flags/tpw_flags.php
r488 r500 11 11 */ 12 12 13 /* Copyright © 2009-2010 Transposh Team (website : http://transposh.org) 13 /* 14 * Transposh v%VERSION% 15 * http://transposh.org/ 14 16 * 15 * This program is free software; you can redistribute it and/or modify 16 * it under the terms of the GNU General Public License as published by 17 * the Free Software Foundation; either version 2 of the License, or 18 * (at your option) any later version. 17 * Copyright %YEAR%, Team Transposh 18 * Licensed under the GPL Version 2 or higher. 19 * http://transposh.org/license 19 20 * 20 * This program is distributed in the hope that it will be useful, 21 * but WITHOUT ANY WARRANTY; without even the implied warranty of 22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23 * GNU General Public License for more details. 24 * 25 * You should have received a copy of the GNU General Public License 26 * along with this program; if not, write to the Free Software 27 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 21 * Date: %DATE% 28 22 */ 29 23 … … 48 42 echo "<div class=\"" . NO_TRANSLATE_CLASS . " transposh_flags\" >"; 49 43 foreach ($args as $langrecord) { 50 echo "<a href=\"{$langrecord['url']}\"" . ($langrecord['active'] ? ' class="tr_active"' : '' ) . '>' .51 transposh_utils::display_flag("$plugpath/img/flags", $langrecord['flag'], $langrecord['langorig'], false) .52 "</a>";44 echo "<a href=\"{$langrecord['url']}\"" . ($langrecord['active'] ? ' class="tr_active"' : '' ) . '>' . 45 transposh_utils::display_flag("$plugpath/img/flags", $langrecord['flag'], $langrecord['langorig'], false) . 46 "</a>"; 53 47 } 54 48 echo "</div>"; -
trunk/WordPress/plugin/transposh/widgets/flags/tpw_flags_css.php
r488 r500 11 11 */ 12 12 13 /* Copyright © 2009-2010 Transposh Team (website : http://transposh.org) 13 /* 14 * Transposh v%VERSION% 15 * http://transposh.org/ 14 16 * 15 * This program is free software; you can redistribute it and/or modify 16 * it under the terms of the GNU General Public License as published by 17 * the Free Software Foundation; either version 2 of the License, or 18 * (at your option) any later version. 17 * Copyright %YEAR%, Team Transposh 18 * Licensed under the GPL Version 2 or higher. 19 * http://transposh.org/license 19 20 * 20 * This program is distributed in the hope that it will be useful, 21 * but WITHOUT ANY WARRANTY; without even the implied warranty of 22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23 * GNU General Public License for more details. 24 * 25 * You should have received a copy of the GNU General Public License 26 * along with this program; if not, write to the Free Software 27 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 21 * Date: %DATE% 28 22 */ 29 23 … … 43 37 echo "<div class=\"" . NO_TRANSLATE_CLASS . " transposh_flags\" >"; 44 38 foreach ($args as $langrecord) { 45 echo "<a href=\"{$langrecord['url']}\"" . ($langrecord['active'] ? ' class="tr_active"' : '' ) . '>' .46 transposh_utils::display_flag("", $langrecord['flag'], $langrecord['langorig'], true) .47 "</a>";39 echo "<a href=\"{$langrecord['url']}\"" . ($langrecord['active'] ? ' class="tr_active"' : '' ) . '>' . 40 transposh_utils::display_flag("", $langrecord['flag'], $langrecord['langorig'], true) . 41 "</a>"; 48 42 } 49 43 echo "</div>"; -
trunk/WordPress/plugin/transposh/widgets/flagslist/tpw_list_with_flags.php
r488 r500 11 11 */ 12 12 13 /* Copyright © 2009-2010 Transposh Team (website : http://transposh.org) 13 /* 14 * Transposh v%VERSION% 15 * http://transposh.org/ 14 16 * 15 * This program is free software; you can redistribute it and/or modify 16 * it under the terms of the GNU General Public License as published by 17 * the Free Software Foundation; either version 2 of the License, or 18 * (at your option) any later version. 17 * Copyright %YEAR%, Team Transposh 18 * Licensed under the GPL Version 2 or higher. 19 * http://transposh.org/license 19 20 * 20 * This program is distributed in the hope that it will be useful, 21 * but WITHOUT ANY WARRANTY; without even the implied warranty of 22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23 * GNU General Public License for more details. 24 * 25 * You should have received a copy of the GNU General Public License 26 * along with this program; if not, write to the Free Software 27 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 21 * Date: %DATE% 28 22 */ 29 23 … … 57 51 echo "<div class=\"" . NO_TRANSLATE_CLASS . " transposh_flags\" >"; 58 52 foreach ($args as $langrecord) { 59 echo "<a href=\"{$langrecord['url']}\"" . ($langrecord['active'] ? ' class="tr_active"' : '' ) . '>' .60 transposh_utils::display_flag("$plugpath/img/flags", $langrecord['flag'], $langrecord['langorig'], false) . "</a>";61 echo "<a href=\"{$langrecord['url']}\"" . ($langrecord['active'] ? ' class="tr_active"' : '' ) . '>' . "{$langrecord['langorig']}</a><br/>";53 echo "<a href=\"{$langrecord['url']}\"" . ($langrecord['active'] ? ' class="tr_active"' : '' ) . '>' . 54 transposh_utils::display_flag("$plugpath/img/flags", $langrecord['flag'], $langrecord['langorig'], false) . "</a>"; 55 echo "<a href=\"{$langrecord['url']}\"" . ($langrecord['active'] ? ' class="tr_active"' : '' ) . '>' . "{$langrecord['langorig']}</a><br/>"; 62 56 } 63 57 echo "</div>"; -
trunk/WordPress/plugin/transposh/widgets/flagslist/tpw_list_with_flags_css.php
r488 r500 11 11 */ 12 12 13 /* Copyright © 2009-2010 Transposh Team (website : http://transposh.org) 13 /* 14 * Transposh v%VERSION% 15 * http://transposh.org/ 14 16 * 15 * This program is free software; you can redistribute it and/or modify 16 * it under the terms of the GNU General Public License as published by 17 * the Free Software Foundation; either version 2 of the License, or 18 * (at your option) any later version. 17 * Copyright %YEAR%, Team Transposh 18 * Licensed under the GPL Version 2 or higher. 19 * http://transposh.org/license 19 20 * 20 * This program is distributed in the hope that it will be useful, 21 * but WITHOUT ANY WARRANTY; without even the implied warranty of 22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23 * GNU General Public License for more details. 24 * 25 * You should have received a copy of the GNU General Public License 26 * along with this program; if not, write to the Free Software 27 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 21 * Date: %DATE% 28 22 */ 29 23 … … 53 47 echo "<div class=\"" . NO_TRANSLATE_CLASS . " transposh_flags\" >"; 54 48 foreach ($args as $langrecord) { 55 echo "<a href=\"{$langrecord['url']}\"" . ($langrecord['active'] ? ' class="tr_active"' : '' ) . '>' .56 transposh_utils::display_flag('', $langrecord['flag'], $langrecord['langorig'], false) . '</a>';57 echo "<a href=\"{$langrecord['url']}\"" . ($langrecord['active'] ? ' class="tr_active"' : '' ) . '>' . "{$langrecord['langorig']}</a><br/>";49 echo "<a href=\"{$langrecord['url']}\"" . ($langrecord['active'] ? ' class="tr_active"' : '' ) . '>' . 50 transposh_utils::display_flag('', $langrecord['flag'], $langrecord['langorig'], false) . '</a>'; 51 echo "<a href=\"{$langrecord['url']}\"" . ($langrecord['active'] ? ' class="tr_active"' : '' ) . '>' . "{$langrecord['langorig']}</a><br/>"; 58 52 } 59 53 echo "</div>"; -
trunk/WordPress/plugin/transposh/widgets/tpw_default.php
r435 r500 11 11 */ 12 12 13 /* Copyright © 2009-2010 Transposh Team (website : http://transposh.org) 13 /* 14 * Transposh v%VERSION% 15 * http://transposh.org/ 14 16 * 15 * This program is free software; you can redistribute it and/or modify 16 * it under the terms of the GNU General Public License as published by 17 * the Free Software Foundation; either version 2 of the License, or 18 * (at your option) any later version. 17 * Copyright %YEAR%, Team Transposh 18 * Licensed under the GPL Version 2 or higher. 19 * http://transposh.org/license 19 20 * 20 * This program is distributed in the hope that it will be useful, 21 * but WITHOUT ANY WARRANTY; without even the implied warranty of 22 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 23 * GNU General Public License for more details. 24 * 25 * You should have received a copy of the GNU General Public License 26 * along with this program; if not, write to the Free Software 27 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 21 * Date: %DATE% 28 22 */ 29 23 … … 45 39 echo '<option value="none">[Language]</option>'; 46 40 foreach ($args as $langrecord) { 47 $is_selected = $langrecord['active'] ? " selected=\"selected\"" : "";48 echo "<option value=\"{$langrecord['isocode']}\"{$is_selected}>{$langrecord['langorig']}</option>";41 $is_selected = $langrecord['active'] ? " selected=\"selected\"" : ""; 42 echo "<option value=\"{$langrecord['isocode']}\"{$is_selected}>{$langrecord['langorig']}</option>"; 49 43 } 50 44 echo "</select><br/>"; -
trunk/WordPress/plugin/transposh/wp/transposh_3rdparty.php
r488 r500 1 1 <?php 2 2 3 /* Copyright © 2009-2010 Transposh Team (website : http://transposh.org) 3 /* 4 * Transposh v%VERSION% 5 * http://transposh.org/ 4 6 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 7 * Copyright %YEAR%, Team Transposh 8 * Licensed under the GPL Version 2 or higher. 9 * http://transposh.org/license 9 10 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 11 * Date: %DATE% 18 12 */ 19 13 … … 46 40 47 41 // google xml sitemaps - with patch 48 add_action("sm_addurl", array(&$this, 'add_sm_transposh_urls')); 49 42 add_action("sm_addurl", array(&$this, 'add_sm_transposh_urls')); 50 43 } 51 44 … … 88 81 } 89 82 90 91 /** 83 /** 92 84 * This filter method helps buddypress understand the transposh generated URLs 93 85 * @param string $uri The url that was originally received … … 195 187 } 196 188 197 198 189 } 199 190 ?> -
trunk/WordPress/plugin/transposh/wp/transposh_admin.php
r491 r500 1 1 <?php 2 2 3 /* Copyright © 2009-2010 Transposh Team (website : http://transposh.org) 3 /* 4 * Transposh v%VERSION% 5 * http://transposh.org/ 4 6 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 7 * Copyright %YEAR%, Team Transposh 8 * Licensed under the GPL Version 2 or higher. 9 * http://transposh.org/license 9 10 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 * 19 * adapted metabox sample code from http://www.code-styling.de/ 11 * Date: %DATE% 20 12 */ 21 13 … … 23 15 * Provide the admin page for configuring the translation options. eg. what languages ? 24 16 * who is allowed to translate ? 17 * 18 * adapted metabox sample code from http://www.code-styling.de/ 25 19 */ 26 20 -
trunk/WordPress/plugin/transposh/wp/transposh_ajax.php
r494 r500 1 1 <?php 2 2 3 /* Copyright © 2009-2010 Transposh Team (website : http://transposh.org) 3 /* 4 * Transposh v%VERSION% 5 * http://transposh.org/ 4 6 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 7 * Copyright %YEAR%, Team Transposh 8 * Licensed under the GPL Version 2 or higher. 9 * http://transposh.org/license 9 10 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 11 * Date: %DATE% 18 12 */ 19 13 … … 108 102 elseif (isset($_GET['cleanup'])) { 109 103 // just make sure the admin started this... recently enough 110 check_ajax_referer('transposh-clean', 'nonce');104 check_ajax_referer('transposh-clean', 'nonce'); 111 105 $my_transposh_plugin->database->cleanup($_GET['days']); 112 106 } 113 114 107 ?> -
trunk/WordPress/plugin/transposh/wp/transposh_backup.php
r497 r500 1 1 <?php 2 2 3 /* Copyright © 2009-2010 Transposh Team (website : http://transposh.org) 3 /* 4 * Transposh v%VERSION% 5 * http://transposh.org/ 4 6 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 7 * Copyright %YEAR%, Team Transposh 8 * Licensed under the GPL Version 2 or higher. 9 * http://transposh.org/license 9 10 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 * 19 * adapted metabox sample code from http://www.code-styling.de/ 11 * Date: %DATE% 20 12 */ 21 13 -
trunk/WordPress/plugin/transposh/wp/transposh_db.php
r497 r500 1 1 <?php 2 2 3 /* Copyright © 2009-2010 Transposh Team (website : http://transposh.org) 3 /* 4 * Transposh v%VERSION% 5 * http://transposh.org/ 4 6 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 7 * Copyright %YEAR%, Team Transposh 8 * Licensed under the GPL Version 2 or higher. 9 * http://transposh.org/license 9 10 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 11 * Date: %DATE% 18 12 */ 19 20 13 21 14 /** -
trunk/WordPress/plugin/transposh/wp/transposh_options.php
r496 r500 1 1 <?php 2 2 3 /* Copyright © 2009-2010 Transposh Team (website : http://transposh.org) 3 /* 4 * Transposh v%VERSION% 5 * http://transposh.org/ 4 6 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 7 * Copyright %YEAR%, Team Transposh 8 * Licensed under the GPL Version 2 or higher. 9 * http://transposh.org/license 9 10 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 11 * Date: %DATE% 18 12 */ 13 19 14 // OLD Options - To be removed 20 15 // removed real old options support, no migration from 0.3.9 anymore -
trunk/WordPress/plugin/transposh/wp/transposh_postpublish.php
r488 r500 1 1 <?php 2 2 3 /* Copyright © 2009-2010 Transposh Team (website : http://transposh.org) 3 /* 4 * Transposh v%VERSION% 5 * http://transposh.org/ 4 6 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 7 * Copyright %YEAR%, Team Transposh 8 * Licensed under the GPL Version 2 or higher. 9 * http://transposh.org/license 9 10 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 18 * 11 * Date: %DATE% 19 12 */ 20 13 -
trunk/WordPress/plugin/transposh/wp/transposh_widget.php
r488 r500 1 1 <?php 2 2 3 /* Copyright © 2009-2010 Transposh Team (website : http://transposh.org) 3 /* 4 * Transposh v%VERSION% 5 * http://transposh.org/ 4 6 * 5 * This program is free software; you can redistribute it and/or modify 6 * it under the terms of the GNU General Public License as published by 7 * the Free Software Foundation; either version 2 of the License, or 8 * (at your option) any later version. 7 * Copyright %YEAR%, Team Transposh 8 * Licensed under the GPL Version 2 or higher. 9 * http://transposh.org/license 9 10 * 10 * This program is distributed in the hope that it will be useful, 11 * but WITHOUT ANY WARRANTY; without even the implied warranty of 12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13 * GNU General Public License for more details. 14 * 15 * You should have received a copy of the GNU General Public License 16 * along with this program; if not, write to the Free Software 17 * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA 11 * Date: %DATE% 18 12 */ 19 13
Note: See TracChangeset
for help on using the changeset viewer.
