Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
H
hzaddonsussr
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ivan zlax
hzaddonsussr
Commits
3563c741
Commit
3563c741
authored
Nov 25, 2018
by
ivan zlax
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
another try - fixed label
parent
569616ff
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
ljrpost.php
ljrpost/ljrpost.php
+11
-11
No files found.
ljrpost/ljrpost.php
View file @
3563c741
<?php
/**
* Name: L
ivejournal
Post feature
* Description: Post to L
ivejournal
* Name: L
JRossia
Post feature
* Description: Post to L
JRossia
* Version: 1.0
* Author: Tony Baldwin <https://red.free-haven.org/channel/tony>
* Author: Michael Johnston
...
...
@@ -39,7 +39,7 @@ function ljrpost_jot_nets(&$a,&$b) {
$ljr_defpost
=
get_pconfig
(
local_channel
(),
'ljrpost'
,
'post_by_default'
);
$selected
=
((
intval
(
$ljr_defpost
)
==
1
)
?
' checked="checked" '
:
''
);
$b
.=
'<div class="profile-jot-net"><input type="checkbox" name="ljrpost_enable" '
.
$selected
.
' value="1" /> '
.
t
(
'Post to L
ivejournal
'
)
.
'</div>'
;
.
t
(
'Post to L
JRossia
'
)
.
'</div>'
;
}
}
...
...
@@ -70,23 +70,23 @@ function ljrpost_settings(&$a,&$s) {
/* Add some HTML to the existing form */
$sc
.=
replace_macros
(
get_markup_template
(
'field_checkbox.tpl'
),
array
(
'$field'
=>
array
(
'ljrpost'
,
t
(
'Enable L
ivejournal
Post Plugin'
),
$checked
,
''
,
array
(
t
(
'No'
),
t
(
'Yes'
))),
'$field'
=>
array
(
'ljrpost'
,
t
(
'Enable L
JRossia
Post Plugin'
),
$checked
,
''
,
array
(
t
(
'No'
),
t
(
'Yes'
))),
));
$sc
.=
replace_macros
(
get_markup_template
(
'field_input.tpl'
),
array
(
'$field'
=>
array
(
'ljr_username'
,
t
(
'L
ivejournal
username'
),
$ljr_username
,
''
)
'$field'
=>
array
(
'ljr_username'
,
t
(
'L
JRossia
username'
),
$ljr_username
,
''
)
));
$sc
.=
replace_macros
(
get_markup_template
(
'field_password.tpl'
),
array
(
'$field'
=>
array
(
'ljr_password'
,
t
(
'L
ivejournal
password'
),
$ljr_password
,
''
)
'$field'
=>
array
(
'ljr_password'
,
t
(
'L
JRossia
password'
),
$ljr_password
,
''
)
));
$sc
.=
replace_macros
(
get_markup_template
(
'field_checkbox.tpl'
),
array
(
'$field'
=>
array
(
'ljr_bydefault'
,
t
(
'Post to L
ivejournal
by default'
),
$def_checked
,
''
,
array
(
t
(
'No'
),
t
(
'Yes'
))),
'$field'
=>
array
(
'ljr_bydefault'
,
t
(
'Post to L
JRossia
by default'
),
$def_checked
,
''
,
array
(
t
(
'No'
),
t
(
'Yes'
))),
));
$s
.=
replace_macros
(
get_markup_template
(
'generic_addon_settings.tpl'
),
array
(
'$addon'
=>
array
(
'ljrpost'
,
t
(
'L
ivejournal
Post Settings'
),
''
,
t
(
'Submit'
)),
'$addon'
=>
array
(
'ljrpost'
,
t
(
'L
JRossia
Post Settings'
),
''
,
t
(
'Submit'
)),
'$content'
=>
$sc
));
...
...
@@ -119,7 +119,7 @@ function ljrpost_post_local(&$a,&$b) {
if
(
$b
[
'item_private'
]
||
$b
[
'parent'
])
return
;
logger
(
'L
ivejournal
xpost invoked'
);
logger
(
'L
JRossia
xpost invoked'
);
$ljr_post
=
intval
(
get_pconfig
(
local_channel
(),
'ljrpost'
,
'post'
));
...
...
@@ -153,7 +153,7 @@ function ljrpost_send(&$a,&$b) {
if
(
$b
[
'parent'
]
!=
$b
[
'id'
])
return
;
// L
ivejournal
post in the LJ user's timezone.
// L
JRossia
post in the LJ user's timezone.
// Hopefully the person's Friendica account
// will be set to the same thing.
...
...
@@ -220,7 +220,7 @@ EOT;
$x = z_post_url($ljr_blog,$xml,$recurse,array('headers' => array("Content-Type: text/xml")));
}
logger('posted to L
ivejournal
: ' . print_r($x,true), LOGGER_DEBUG);
logger('posted to L
JRossia
: ' . print_r($x,true), LOGGER_DEBUG);
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment